/* Propelltilbud - the app's own styles on top of resorted-ui (ui/ui.css). Phones first:
   one column and a filter sheet from below; from 1000 px the filters sit in a sidebar. */

:root {
  --discord-bg: #313338;
  --discord-embed: #2b2d31;
  /* Product pictures sit on this: their white backgrounds blend into it (multiply), so a page of them
     isn't a wall of white on the dark site. Hover / the deal's dialog show them brighter. */
  --img-bg: #b2b9c3;
  --img-bg-hover: #e8ecf1;
  --deal-red: #ff6b6b;
  --gutter: 16px;
  --top-h: 64px;
}
@media (min-width: 720px) { :root { --gutter: 24px; } }

body.pt-noscroll { overflow: hidden; }
.grow { flex: 1; min-width: 0; }
.small { font-size: 12.5px; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.ic-wrap { display: inline-flex; flex: none; }
.ic-wrap svg { display: block; }

/* ---------- top bar ---------- */
.pt-top { position: sticky; top: 0; z-index: 60; background: linear-gradient(180deg, rgba(18, 24, 33, 0.97), rgba(13, 18, 25, 0.95)); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.pt-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--c1), var(--c2), transparent); opacity: 0.35; }
.pt-top-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 16px; width: min(100% - 2 * var(--gutter), 1640px); margin: 0 auto; padding: 10px 0; }
.pt-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 600 18px var(--font-display); text-decoration: none; letter-spacing: 0.01em; }
.pt-brand img { width: 36px; height: 36px; }
.pt-brand:hover { color: var(--text); }
.pt-search { position: relative; display: flex; align-items: center; max-width: 720px; width: 100%; justify-self: center; }
.pt-search > .ic-wrap { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.pt-q { width: 100%; min-height: 44px; padding-left: 44px !important; border-radius: 999px !important; font-size: 15px; }
.pt-top-actions { display: flex; align-items: center; gap: 6px; }
.pt-lang span { font: 700 12.5px var(--font-display); letter-spacing: 0.08em; }
.pt-acc-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 3px 12px 3px 4px; border: 1px solid var(--line2); border-radius: 999px; background: var(--card); color: var(--text); font: 600 14px var(--font); cursor: pointer; }
.pt-acc-btn:hover { border-color: var(--line3); }
.pt-acc-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.pt-avatar.blank { display: inline-grid; place-items: center; background: var(--grad); color: var(--on-grad); font-weight: 700; }
.pt-avatar.big { width: 64px; height: 64px; font-size: 26px; }
.pt-acc-menu, .pt-views-menu { right: 0; left: auto; min-width: 230px; }
.rui-menu { position: absolute; top: calc(100% + 8px); z-index: 70; display: flex; flex-direction: column; gap: 2px; padding: 6px; }
.pt-mi { display: flex; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: 500 14px var(--font); text-align: left; cursor: pointer; }
.pt-mi:hover { background: var(--card2); }
.pt-mi-row { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; }
.pt-mi-row .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-mi-row .ic-wrap { color: var(--muted); }
.pt-mi-sep { height: 1px; margin: 4px 6px; background: var(--line); }
.pt-mi-note { max-width: 260px; white-space: normal; }

@media (max-width: 760px) {
  .pt-top-in { grid-template-columns: 1fr auto; padding: 8px 0 10px; }
  .pt-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .pt-brand span { font-size: 17px; }
  .pt-bell-text, .pt-acc-name { display: none; }
  .pt-signin-btn { padding: 0 12px; gap: 6px; }
  .pt-brand img { width: 32px; height: 32px; }
  .pt-acc-btn { padding: 3px; }
  .pt-lang { padding: 0 10px; }
}
@media (min-width: 761px) and (max-width: 1100px) { .pt-bell-text { display: none; } }

/* ---------- page ---------- */
.pt-main { width: min(100% - 2 * var(--gutter), 1640px); min-height: 60vh; margin: 0 auto; padding: 14px 0 40px; }
.pt-narrow { width: min(100%, 860px); margin: 18px auto 0; display: flex; flex-direction: column; gap: 16px; }
.pt-narrow.wide { width: min(100%, 1380px); }
.pt-narrow .rui-panel { padding: 22px; }
.pt-narrow .rui-panel h2 { margin: 0 0 10px; font-size: 18px; }
.pt-hero-ic-wrap { color: var(--c1); }
.pt-hero-ic-wrap svg { width: 56px; height: 56px; margin-bottom: 10px; }

/* category bar: a swipeable row on phones, all 14 at once (7 + 7) from 700 px */
.pt-cats { display: flex; gap: 8px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
.pt-cat { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font: 600 14px var(--font); text-decoration: none; white-space: nowrap; scroll-snap-align: start; transition: border-color 0.15s, color 0.15s; }
.pt-cat:hover { color: var(--text); border-color: var(--line3); }
.pt-cat-text { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.pt-cat-text b { font-weight: 600; }
.pt-cat small { color: var(--faint); font-weight: 500; font-size: 12px; }
.pt-cat[aria-current='page'] { border-color: transparent; background: linear-gradient(var(--card2), var(--card2)) padding-box, var(--grad) border-box; border: 1px solid transparent; color: var(--text); box-shadow: 0 0 22px -12px var(--c1); }
.pt-cat[aria-current='page'] .ic-wrap { color: var(--c1); }
@media (min-width: 700px) {
  .pt-cats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 4px 0 14px; overflow: visible; }
  .pt-cat { min-width: 0; white-space: normal; border-radius: 14px; }
  .pt-cat-text { flex-direction: column; align-items: flex-start; gap: 1px; }
  .pt-cat-text b { display: -webkit-box; overflow: hidden; line-height: 1.2; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
}
/* tablets: small tiles, icon above the name */
@media (min-width: 700px) and (max-width: 1099px) {
  .pt-cat { flex-direction: column; justify-content: center; gap: 5px; min-height: 86px; padding: 10px 6px; text-align: center; }
  .pt-cat-text { align-items: center; }
  .pt-cat-text b { font-size: 12.5px; }
}
/* computers: icon on the left, name (up to two lines) and count beside it */
@media (min-width: 1100px) {
  .pt-cat { min-height: 58px; padding: 8px 12px; gap: 10px; }
  .pt-cat-text b { font-size: 14px; }
}

.pt-browse { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1000px) { .pt-browse { grid-template-columns: 272px minmax(0, 1fr); } }
.pt-results { min-width: 0; }
.pt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin: 6px 0 12px; }
.pt-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.pt-title h1 { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(22px, 3vw, 30px); }
.pt-title-ic { color: var(--c1); }
.pt-title-ic svg { width: 26px; height: 26px; }
.pt-count { color: var(--muted); font-size: 14px; }
.pt-viewname { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 6px; border-radius: 999px; background: rgba(79, 220, 255, 0.1); color: #a6ecff; font-size: 13px; font-weight: 600; }
.pt-viewname svg { width: 16px; height: 16px; }
.pt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-tools .rui-dd { min-width: 170px; }
.pt-layout .seg-btn { padding: 0 10px; }
.pt-filter-btn .pt-badge:not(:empty) { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--grad); color: var(--on-grad); font-size: 12px; }
@media (min-width: 1000px) { .pt-filter-btn { display: none; } }
@media (max-width: 560px) {
  .pt-tools { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .pt-tools .rui-dd, .pt-tools > select { grid-column: 1 / -1; }
  .pt-tools .pt-view-tools .btn, .pt-filter-btn { width: 100%; }
  .pt-layout { display: none; }
}

.pt-subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.pt-sub { min-height: 34px; }
.pt-sub small { color: var(--faint); }
.pt-sub[aria-pressed='true'] { border-color: transparent; background: linear-gradient(110deg, rgba(79, 220, 255, 0.22), rgba(61, 139, 255, 0.22)); color: #d5f6ff; }
.pt-sub[aria-pressed='true'] small { color: #a6ecff; }
.pt-viewsbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(79, 220, 255, 0.04); }
.pt-viewsbar-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; color: var(--faint); font: 600 11px var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.pt-viewsbar-label svg { width: 15px; height: 15px; color: var(--c1); }
.pt-vchip { min-height: 32px; }
.pt-vchip[aria-pressed='true'] { border-color: transparent; background: linear-gradient(110deg, rgba(79, 220, 255, 0.24), rgba(61, 139, 255, 0.24)); color: #d5f6ff; }
.pt-vmanage { margin-left: auto; font-size: 13px; white-space: nowrap; }
.pt-save-view .ic-wrap { color: var(--c1); }
.pt-save-view.saved { color: #a6ecff; }
@media (max-width: 560px) {
  .pt-viewsbar, .pt-subs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pt-viewsbar > *, .pt-subs > * { flex: none; }
  .pt-subs { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
}
.pt-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.pt-achip { background: var(--card2); }

/* ---------- filters (sidebar / sheet) ---------- */
.pt-filters { display: flex; flex-direction: column; gap: 4px; }
.pt-fhead { display: flex; align-items: center; gap: 10px; padding: 0 2px 6px; }
.pt-fhead h2 { margin: 0; flex: 1; font-size: 17px; }
.pt-fsec { padding: 12px 2px; border-top: 1px solid var(--line); }
.pt-flabel { margin: 0 0 8px; color: var(--faint); font: 600 11px var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; }
.pt-fhint { margin: 6px 0 0; color: var(--faint); font-size: 12.5px; }
.pt-seg { display: flex; width: 100%; }
.pt-seg .seg-btn { flex: 1; padding: 0 8px; font-size: 13px; }
.pt-price { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; color: var(--muted); }
.pt-price .field { min-width: 0; }
.pt-toggles { display: flex; flex-direction: column; gap: 4px; }
.pt-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; font-size: 14px; cursor: pointer; }
.pt-stores { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.pt-stores-search { margin-bottom: 8px; }
.pt-store { display: grid !important; grid-template-columns: auto 24px 1fr auto; align-items: center; gap: 8px !important; min-height: 34px; padding: 2px 4px; border-radius: 8px; font-size: 14px; }
.pt-store:hover { background: var(--card); }
.pt-store small { color: var(--faint); }
.pt-store-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-logo { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; background: #fff; }
.pt-logo.blank { display: inline-grid; place-items: center; background: var(--card2); color: var(--muted); font-size: 12px; font-weight: 700; }
.pt-fmore { margin-top: 6px; font-size: 13.5px; }
.pt-sheet-x, .pt-sheet-foot, .pt-sheet-bg { display: none; }
.field.small { min-height: 36px; padding: 6px 10px; font-size: 14px; }

@media (min-width: 1000px) {
  .pt-filters { position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100vh - var(--top-h) - 32px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
}
@media (max-width: 999px) {
  .pt-filters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; max-height: 86dvh; padding: 16px var(--gutter) 0; overflow: auto; border: 1px solid var(--line2); border-bottom: 0; border-radius: 20px 20px 0 0; background: #121924; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.9); transform: translateY(102%); transition: transform 0.25s ease; visibility: hidden; }
  .pt-filters.open { transform: none; visibility: visible; }
  .pt-sheet-bg { position: fixed; inset: 0; z-index: 85; display: block; background: rgba(5, 8, 12, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  .pt-sheet-bg.open { opacity: 1; pointer-events: auto; }
  .pt-sheet-x { display: inline-grid; }
  .pt-sheet-foot { position: sticky; bottom: 0; display: block; margin: 8px calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #121924 30%); }
  .pt-sheet-foot .btn { width: 100%; min-height: 50px; }
}

/* ---------- the deals ---------- */
.pt-grid { display: grid; gap: 14px; transition: opacity 0.15s; }
.pt-grid.grid { grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); }
@media (max-width: 520px) { .pt-grid.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.pt-grid.loading { opacity: 0.55; pointer-events: none; }
.deal { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--card); cursor: pointer; transition: transform 0.15s, border-color 0.15s, box-shadow 0.2s; }
.deal:hover, .deal:focus-visible { border-color: var(--line3); transform: translateY(-2px); box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.9), 0 0 30px -20px rgba(79, 220, 255, 0.55); }
.deal-img { position: relative; display: grid; place-items: center; flex: none; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; background: var(--img-bg); isolation: isolate; transition: background-color 0.25s; }
.deal-img img { mix-blend-mode: multiply; }
.deal:hover .deal-img, .deal:focus-visible .deal-img { background: var(--img-bg-hover); }
/* The whole picture, fitted into the square (never cropped: circulars print prices in them). */
.deal-img img { position: absolute; top: 36px; left: 8px; width: calc(100% - 16px); height: calc(100% - 44px); object-fit: contain; }
.deal-noimg-wrap { color: #b8c2cf; }
.deal-noimg-wrap svg { width: 44px; height: 44px; }
/* The badges have their own strip above the picture: they never cover any of it. */
.deal-badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: nowrap; gap: 4px; height: 22px; overflow: hidden; pointer-events: none; }
.pt-b { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; background: #1a2330; color: #fff; font: 700 11.5px/1.35 var(--font); letter-spacing: 0.01em; white-space: nowrap; }
.pt-b.off { background: var(--deal-red); color: #fff; font-size: 12.5px; }
.pt-b.new { background: var(--grad); color: var(--on-grad); }
.pt-b.soon { background: #f5b942; color: #241800; }
.pt-b.member { background: #2d3949; color: #e6edf3; }
.pt-b.up { background: #6d5cff; }
.pt-b.online { padding: 0 6px; background: rgba(79, 220, 255, 0.14); color: #a6ecff; font-size: 10.5px; }
.deal-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 11px 12px 12px; }
/* Fixed lines: the same height in every card, whatever a deal has. */
.deal-store { display: flex; align-items: center; gap: 7px; height: 20px; min-width: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.deal-store img { width: 20px; height: 20px; flex: none; border-radius: 5px; object-fit: contain; background: #fff; }
.deal-store span:not(.pt-b):not(.muted) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-name { display: -webkit-box; height: 2.6em; margin: 0; overflow: hidden; color: var(--text); font: 600 15px/1.3 var(--font); -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.deal-deal, .deal-unit, .deal-period, .deal-left { display: block; height: 1.4em; overflow: hidden; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
.deal-deal { color: #ffb4b4; font-size: 13px; font-weight: 600; }
.deal-price { display: flex; align-items: baseline; gap: 8px; height: 26px; overflow: hidden; white-space: nowrap; }
.deal-price b { color: #fff; font: 700 20px/1.25 var(--font-display); }
.deal-price s { color: var(--faint); font-size: 13.5px; }
.deal-unit { color: var(--faint); font-size: 12px; }
.deal-dates { display: flex; flex-direction: column; gap: 1px; color: var(--muted); font-size: 12.5px; }
.deal-period { display: flex; align-items: center; gap: 6px; }
.deal-period > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.deal-dates .ic-wrap svg { width: 15px; height: 15px; }
.deal-left { color: var(--faint); font-style: normal; }
.deal-dates.soon, .deal-dates.soon .deal-left { color: var(--warn); }
@media (max-width: 520px) {
  .deal-body { padding: 9px 10px 10px; }
  .deal-name { font-size: 14px; }
  .deal-price b { font-size: 18px; }
  .deal-price { height: 24px; }
}

/* list layout: rows */
.pt-grid.list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pt-grid.list .deal { flex-direction: row; }
.pt-grid.list .deal-img { flex: none; width: 128px; aspect-ratio: 1; }
.pt-grid.list .deal-img img { top: 30px; left: 6px; width: calc(100% - 12px); height: calc(100% - 36px); }
.pt-grid.list .deal-badges { top: 6px; left: 6px; right: 6px; }
.pt-grid.list .deal-name { height: auto; }
.pt-grid.list .deal-deal:empty, .pt-grid.list .deal-unit:empty, .pt-grid.list .deal-left:empty { display: none; }
.pt-grid.list .deal-unit { grid-area: unit; text-align: right; }
.pt-grid.list .deal-badges { top: 6px; left: 6px; }
.pt-grid.list .deal-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'store price' 'name unit' 'deal deal' 'dates dates'; align-content: center; column-gap: 16px; }
.pt-grid.list .deal-store { grid-area: store; }
.pt-grid.list .deal-name { grid-area: name; }
.pt-grid.list .deal-deal { grid-area: deal; }
.pt-grid.list .deal-price { grid-area: price; flex-direction: column; align-items: flex-end; height: auto; margin: 0; text-align: right; }
.pt-grid.list .deal-dates { grid-area: dates; }
@media (max-width: 520px) { .pt-grid.list .deal-img { width: 96px; } .pt-grid.list .deal-body { grid-template-areas: 'store store' 'name name' 'deal deal' 'price price' 'unit unit' 'dates dates'; } .pt-grid.list .deal-price { align-items: flex-start; flex-direction: row; } .pt-grid.list .deal-unit { text-align: left; } }

/* while loading */
.deal.skeleton { pointer-events: none; }
.deal.skeleton .deal-img { background: var(--card2); }
.deal.skeleton i { display: block; height: 12px; margin: 4px 0; border-radius: 6px; background: linear-gradient(90deg, var(--card2), #222c3a, var(--card2)); background-size: 200% 100%; animation: pt-shine 1.2s linear infinite; }
.deal.skeleton i:nth-child(2) { width: 70%; }
.deal.skeleton i:nth-child(3) { width: 40%; height: 18px; }
@keyframes pt-shine { to { background-position: -200% 0; } }
.pt-none { grid-column: 1 / -1; align-items: center; padding: 40px 20px; text-align: center; }
.pt-none .ic-wrap svg { width: 36px; height: 36px; color: var(--faint); }
.pt-more { display: flex; justify-content: center; padding: 22px 0 6px; }
.pt-updated { margin: 0; font-size: 13px; }

/* ---------- dialogs ---------- */
.pt-dialog { padding: 20px 22px 22px; }
.pt-dialog.wide { width: min(980px, calc(100% - 24px)); }
.pt-dialog-head { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 6px; }
.pt-dialog-head h2 { flex: 1; margin: 2px 0 6px !important; }
.pt-dialog-x { margin-left: auto; width: 34px; height: 34px; font-size: 18px; }
.pt-deal-dialog .pt-dialog-head { position: absolute; top: 10px; right: 10px; z-index: 2; margin: 0; }
.pt-deal-dialog .pt-dialog-x { background: rgba(19, 26, 36, 0.85); }
.pt-deal-dialog .pt-dialog-body { padding-top: 6px; }
.pt-form { display: flex; flex-direction: column; gap: 10px; }
.pt-form .label { margin: 4px 0 0; }
.pt-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; }
@media (max-width: 560px) {
  .pt-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 16px; }
  .pt-two { grid-template-columns: minmax(0, 1fr); }
}

/* a deal's dialog */
.pt-deal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 760px) { .pt-deal { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.pt-deal-img { position: relative; display: grid; place-items: center; min-height: 240px; max-height: 480px; padding: 40px 16px 16px; border-radius: 16px; background: #dfe3e9; isolation: isolate; }
.pt-deal-img img { mix-blend-mode: multiply; }
.pt-deal-img img { max-width: 100%; max-height: 420px; object-fit: contain; }
.pt-deal-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pt-deal-name { margin: 0; font-size: clamp(20px, 3vw, 26px); line-height: 1.2; overflow-wrap: anywhere; }
.pt-deal-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.pt-deal-price b { color: #fff; font: 700 32px/1 var(--font-display); }
.pt-deal-price s { color: var(--faint); font-size: 17px; }
.pt-save { color: var(--ok); font-weight: 600; }
.pt-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 6px 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); }
.pt-facts dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.pt-facts dt svg { width: 17px; height: 17px; }
.pt-facts dd { margin: 0; font-size: 14.5px; }
.pt-facts dd small { display: block; color: var(--faint); font-size: 12.5px; }
.pt-facts dd.soon { color: var(--warn); }
.pt-deal-desc { margin: 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.pt-deal-actions .btn { flex: 1 1 auto; }
/* the same game at other stores */
.pt-b.more { padding: 0 6px; background: rgba(255, 255, 255, 0.1); color: var(--text); font-size: 10.5px; }
.pt-others { margin: 4px 0 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); }
.pt-others h3 { margin: 0; font-size: 15px; }
.pt-others p { margin: 2px 0 8px; }
.pt-others ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pt-others li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: 'store price pct btn'; align-items: center; gap: 6px 10px; padding: 6px 8px; border-radius: 10px; }
.pt-others li > .pt-others-store { grid-area: store; }
.pt-others li > .pt-others-price { grid-area: price; }
.pt-others li > .pt-others-pct { grid-area: pct; min-width: 52px; text-align: right; }
.pt-others li > .btn { grid-area: btn; }
/* the deal this dialog is about */
.pt-others li.here { background: rgba(79, 220, 255, 0.08); box-shadow: inset 3px 0 0 #4fdcff; }
.pt-others-store { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 600; font-size: 13.5px; }
.pt-others-store img { width: 20px; height: 20px; flex: none; border-radius: 5px; object-fit: contain; background: #fff; }
.pt-others-store > span:not(.pt-b) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-others-store small { display: -webkit-box; overflow: hidden; white-space: normal; overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 500; font-size: 12px; }
.pt-others-price { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.pt-others-price s { color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) {
  .pt-others li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'store pct' 'price btn'; padding: 8px 10px; }
  .pt-others li > .pt-others-pct { min-width: 0; }
}
@media (max-width: 560px) { .pt-deal-actions { display: grid; grid-template-columns: minmax(0, 1fr); } }
.pt-admin-box { margin-top: 6px; padding: 10px 12px; border: 1px dashed var(--line2); border-radius: 12px; }
.pt-admin-box summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }

/* sign in */
.pt-signin-dialog { width: min(480px, calc(100% - 24px)); }
.pt-signin { display: flex; flex-direction: column; gap: 14px; }
.pt-why { margin: 0; }
.pt-signin .btn.big { width: 100%; }
.pt-email .field.big, .pt-signin .field.big { min-height: 52px; font-size: 17px; }
.pt-code { letter-spacing: 0.3em; text-align: center; font: 600 22px var(--font-mono) !important; }
.pt-sent { display: flex; gap: 10px; margin: 0; padding: 12px; border-radius: 12px; background: rgba(79, 220, 255, 0.08); }
.pt-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; }
.pt-soon { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); }
.pt-passkey { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pt-pk-btn { justify-content: flex-start !important; gap: 14px !important; min-height: 62px !important; text-align: left; }
.pt-pk-btn svg { width: 26px; height: 26px; color: var(--c1); }
.pt-pk-text { display: flex; flex-direction: column; gap: 2px; white-space: normal; }
.pt-pk-text small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.pt-or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.pt-or::before, .pt-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pt-brands { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pt-brands .btn { justify-content: flex-start; gap: 14px; min-height: 50px; font-size: 15px; }
.btn.brand.discord { border-color: transparent; background: #5865f2; color: #fff; }
.btn.brand.twitch { border-color: transparent; background: #9146ff; color: #fff; }
.btn.brand.google { border-color: transparent; background: #fff; color: #1f1f1f; }
.btn.brand.steam { border-color: transparent; background: #1b2838; color: #fff; box-shadow: inset 0 0 0 1px #2a475e; }
.btn.brand:hover:not(:disabled) { filter: brightness(1.08); color: inherit; }
.btn.brand.google:hover:not(:disabled) { background: #f2f2f2; color: #1f1f1f; }
.btn.brand.discord:hover:not(:disabled), .btn.brand.twitch:hover:not(:disabled) { color: #fff; }
.btn.brand.discord:hover:not(:disabled) { background: #6974f5; }
.btn.brand.twitch:hover:not(:disabled) { background: #9d5cff; }
.btn.brand.steam:hover:not(:disabled) { background: #223447; color: #fff; }
.pt-offer { display: flex; align-items: center; gap: 16px; }
.pt-offer-ic-wrap svg { width: 44px; height: 44px; color: var(--c1); }

/* account */
.pt-acc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pt-acc-head h1 { margin: 0 0 4px; font-size: 24px; }
.pt-inline { display: flex; gap: 8px; }
.pt-inline .field { flex: 1; }
.pt-ways { display: flex; flex-direction: column; gap: 2px; }
.pt-way { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--line); }
.pt-way:first-child { border-top: 0; }
.pt-way > .grow { display: flex; flex-direction: column; gap: 2px; }
.pt-way-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--card2); color: var(--c1); }
.brand-ic.discord { color: #8f98ff; }
.brand-ic.twitch { color: #b38bff; }
.brand-ic.steam { color: #c7d5e0; }
.pt-who { display: inline-flex; align-items: center; gap: 6px; }
.pt-who img { width: 20px; height: 20px; border-radius: 50%; }
.pt-pks { margin: 4px 0 0; padding: 0; list-style: none; }
.pt-pks li { display: flex; align-items: center; gap: 8px; }
.pt-danger { border-color: rgba(255, 122, 122, 0.3); }

/* views */
.pt-vlist { margin: 4px 0; }
.pt-vrow { gap: 10px !important; }
.pt-vname { text-align: left; text-decoration: none; font-weight: 600; color: var(--text); }

/* ---------- alerts ---------- */
.pt-alerts { gap: 12px; }
.pt-alert .card-head { gap: 14px; }
.pt-alert-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; color: var(--muted); font-size: 13.5px; }
.pt-alert-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.pt-alert-meta svg { width: 16px; height: 16px; }
.pt-editor { padding: 20px; }
.pt-ed-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pt-ed-top h2 { flex: 1; margin: 0; font-size: 20px; }
.pt-ed-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1100px) { .pt-ed-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.pt-ed-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pt-ed-sec { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.015); }
.pt-ed-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.pt-ed-sec h3 svg { width: 18px; height: 18px; color: var(--c1); }
.pt-ed-sec .label { margin: 0 0 6px; }
.pt-ed-preview { position: sticky; top: calc(var(--top-h) + 16px); }
.pt-view-sum { margin: 0; font-weight: 600; }
.pt-match { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.pt-match svg { width: 16px; height: 16px; }
.pt-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pt-dest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
@media (min-width: 640px) { .pt-dest { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pt-dest .seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; font-size: 13px; }
.pt-dest svg { width: 16px; height: 16px; }
.pt-langrow, .pt-maxrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.pt-num { width: 80px; }
.embed-box.off > :not(.embed-box-top) { opacity: 0.45; pointer-events: none; }
.ed-switch.inline { gap: 10px; min-height: 0; }
.note.ok { color: var(--ok); }
.note.bad { color: var(--bad); }
.ping-bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ping-bar .chips { flex: 1; }
.reset-row { font-size: 13px; }
.chip.mention { background: rgba(88, 101, 242, 0.18); border-color: rgba(88, 101, 242, 0.4); }

/* Discord preview (as in Twitch Watcher) */
.preview { min-height: 120px; padding: 14px 12px; border-radius: 12px; background: var(--discord-bg); color: #dbdee1; font: 15px/1.375 'gg sans', 'Noto Sans', var(--font); display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 12px; }
.msg-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.msg-body { flex: 1; min-width: 0; }
.msg-head { display: flex; align-items: center; gap: 6px; }
.msg-head b { color: #fff; }
.msg-head small { color: #949ba4; font-size: 12px; }
.app-tag { padding: 0 4px; border-radius: 3px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; }
.msg-content { margin: 2px 0 4px; overflow-wrap: anywhere; }
.preview .emote { width: 22px; height: 22px; object-fit: contain; vertical-align: -5px; }
.mention { padding: 0 2px; border-radius: 3px; background: rgba(88, 101, 242, 0.3); color: #c9cdfb; font-weight: 500; }
.embed { display: flex; gap: 12px; max-width: 440px; margin-top: 4px; padding: 10px 14px 12px 12px; border-left: 4px solid var(--bar, var(--c2)); border-radius: 4px; background: var(--discord-embed); }
.embed-main { display: grid; flex: 1; gap: 6px; min-width: 0; }
.embed-author { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 600; }
.embed-title { color: #00a8fc; font-weight: 600; text-decoration: none; }
div.embed-title { color: #fff; }
.embed-desc { font-size: 14px; overflow-wrap: anywhere; }
.embed-desc a, .embed-field a { color: #00a8fc; text-decoration: none; }
.embed-fields { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.embed-field { display: grid; }
.embed-field.full { flex-basis: 100%; }
.embed-field b { color: #fff; }
.embed-footer { color: #949ba4; font-size: 12px; }
.embed-thumb { flex: none; width: 80px; height: 80px; object-fit: contain; border-radius: 4px; background: #fff; }
.embed-image { justify-self: start; max-width: 100%; max-height: 220px; object-fit: contain; border-radius: 4px; background: #fff; }
.msg-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.msg-button { padding: 5px 14px; border-radius: 4px; background: #4e5058; color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; }
.msg-button:hover { color: #fff; background: #6d6f78; }
.time { padding: 0 2px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); }
.pt-mailprev { overflow: hidden; border-radius: 12px; background: #f3f5f8; color: #1b2430; }
.pt-mail-subject { padding: 12px 16px; border-bottom: 1px solid #dde2ea; background: #fff; font-weight: 700; }
.pt-mail-body { padding: 0; }
.pt-mail-body > div { margin: 12px !important; }

/* ---------- admin ---------- */
.pt-admin .card { padding: 20px; }
.pt-admin .card h2 { margin: 0 0 8px; font-size: 18px; }
.pt-admin .stats { --cols: 2; }
@media (min-width: 900px) { .pt-admin .stats { --cols: 4; } }
/* The numbers two by two on a phone (the kit puts them one per row), smaller */
@media (max-width: 900px) {
  .pt-admin .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pt-admin .stat { padding: 12px 14px; }
  .pt-admin .pt-stat { font-size: 22px; }
}
.pt-stat { display: block; margin: 4px 0; font: 700 26px var(--font-display); }
.pt-scroll { overflow-x: auto; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt-table th { padding: 8px; color: var(--faint); font: 600 11px var(--font-display); letter-spacing: 0.14em; text-align: left; text-transform: uppercase; }
.pt-table td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.pt-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pt-sub-sec { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pt-sub-sec h3 { margin: 0 0 4px; }
.pt-shop { display: grid !important; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 8px; }
.pt-rule-add { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
@media (min-width: 900px) { .pt-rule-add { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: center; } }
.pt-fix-img img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #fff; }
.pt-fix-pick { min-width: 260px; }
.pt-fix-pick .pt-two { margin-bottom: 6px; }
/* tabs: stuck under the site's top bar (its height is measured: two rows on a phone), sideways on a phone */
/* (the band around it is the page's colour, so nothing shows above or through the row while it's stuck) */
.pt-adm-bar { position: sticky; top: var(--adm-top, var(--top-h)); z-index: 30; margin: -8px 0; padding: 8px 0; background: radial-gradient(1200px 420px at 50% -160px, rgba(61, 139, 255, 0.1), transparent 70%), var(--bg); background-attachment: fixed; }
.pt-adm-tabs { flex-wrap: nowrap; width: 100%; overflow-x: auto; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32); scrollbar-width: none; }
.pt-adm-tabs::-webkit-scrollbar { display: none; }
.pt-adm-tabs .tab { flex: none; }
.pt-adm-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 7px; padding: 0 5px; border-radius: 9px; background: rgba(255, 122, 122, 0.16); color: #ff9b9b; font: 700 11px var(--font); }
.pt-adm-panel { display: flex; flex-direction: column; gap: 16px; }
.pt-adm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 12px; }
.pt-adm-find { flex: 1 1 220px; max-width: 360px; }
/* sources on a phone: two lines each - name | deals, last run | on + run */
@media (max-width: 640px) {
  .pt-src, .pt-src tbody { display: block; }
  .pt-src tr:first-child { display: none; }
  .pt-src tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: 'name name deals' 'run on btn'; align-items: center; gap: 6px 10px; padding: 12px 0; border-top: 1px solid var(--line); }
  .pt-src td { padding: 0; border: 0; }
  .pt-src td:nth-child(1) { grid-area: name; }
  .pt-src td:nth-child(2) { grid-area: deals; font-weight: 600; }
  .pt-src td:nth-child(3) { grid-area: run; font-size: 13px; }
  .pt-src td:nth-child(4) { grid-area: on; }
  .pt-src td:nth-child(5) { grid-area: btn; }
}
/* category names: one fold-out box per main category, a row per name (Norwegian | English | buttons) */
.pt-cn-list { display: flex; flex-direction: column; gap: 8px; }
.pt-cn { border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.pt-cn.open { border-color: var(--line2); }
.pt-cn-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: none; color: var(--text); font: 500 15px var(--font); text-align: left; cursor: pointer; }
.pt-cn-head:hover { background: rgba(255, 255, 255, 0.03); }
.pt-cn-head > .ic-wrap { display: inline-flex; color: var(--muted); transition: transform 0.15s; }
.pt-cn-head[aria-expanded='true'] > .ic-wrap { transform: rotate(90deg); }
.pt-cn-body { padding: 0 14px 4px; }
.pt-cn-row { padding: 12px 0; border-top: 1px solid var(--line); }
.pt-cn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 8px; }
.pt-cn-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pt-cn-in { position: relative; display: block; min-width: 0; }
.pt-cn-in .pt-flag { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); pointer-events: none; }
.pt-cn-in .field { width: 100%; padding-left: 44px; }
.pt-cn-act { display: flex; flex-wrap: wrap; gap: 6px; min-width: 112px; }
.pt-cn-new:not(:empty) { margin-top: 6px; }
.pt-cn-meta code { overflow-wrap: anywhere; }
.pt-cn-act:empty { min-height: 0; }
@media (max-width: 760px) {
  .pt-cn-fields { grid-template-columns: minmax(0, 1fr); }
  .pt-cn-act { min-width: 0; }
  .pt-cn-act:empty { display: none; }
  .pt-cn-body { padding: 0 10px 4px; }
}

/* ---------- footer ---------- */
.pt-foot { width: min(100% - 2 * var(--gutter), 1640px); margin: 30px auto 0; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; text-align: center; }
.pt-foot p { margin: 4px auto; max-width: 760px; }
.pt-foot-links { display: flex; justify-content: center; gap: 18px; }

/* ---------- privacy and terms ---------- */
.pt-legal .rui-panel { padding: clamp(20px, 4vw, 36px); }
.pt-legal h1 { margin: 0 0 6px; }
.pt-legal h2 { margin: 26px 0 8px; font-size: 18px; }
.pt-legal p, .pt-legal li { line-height: 1.6; }
.pt-legal ul { padding-left: 20px; }
.pt-legal-short { margin: 16px 0 4px; padding: 14px 18px; border: 1px solid var(--line2); border-radius: 14px; background: rgba(79, 220, 255, 0.05); }

/* "Back to top": bottom right once you've scrolled down */
.pt-totop { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 75; min-height: 44px; padding: 0 16px 0 12px; border-color: var(--line3); border-radius: 999px; background: rgba(25, 33, 45, 0.94); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.9), 0 0 24px -12px rgba(79, 220, 255, 0.7); backdrop-filter: blur(8px); animation: rui-rise 0.2s ease-out; }
.pt-totop .ic-wrap { color: var(--c1); }
@media (max-width: 560px) { .pt-totop { padding: 0 12px; } .pt-totop span:last-child { display: none; } }
/* narrow phones: a little less in the top bar so the name doesn't run into the buttons */
@media (max-width: 420px) {
  .pt-top-in { gap: 8px 6px; }
  .pt-brand { gap: 8px; }
  .pt-brand span { font-size: 15.5px; }
  .pt-brand img { width: 30px; height: 30px; }
  .pt-lang, .pt-bell { padding: 0 8px; min-height: 40px; }
  .pt-signin-btn { padding: 0 10px; min-height: 40px; font-size: 13.5px; }
}

.pt-dice { flex: none; min-width: 52px; font-size: 20px; }
/* alert kinds: three choices with a line each */
.pt-kinds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 760px) { .pt-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pt-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--field); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pt-kind svg { width: 18px; height: 18px; color: var(--muted); }
.pt-kind small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.pt-kind:hover:not(:disabled) { border-color: var(--line3); }
.pt-kind[aria-pressed='true'] { border-color: transparent; background: linear-gradient(var(--card2), var(--card2)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.pt-kind[aria-pressed='true'] svg { color: var(--c1); }
.pt-kind:disabled { opacity: 0.45; cursor: not-allowed; }
.pt-onend { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
/* Switches in the editor: full width, the choices sharing it evenly (never huddled at one end). */
.pt-ed-sec > .seg, .pt-ed-choice .seg, .pt-when > .seg { display: flex; }
.pt-ed-sec > .seg, .pt-ed-choice .seg { width: 100%; }
.pt-ed-sec > .seg .seg-btn, .pt-ed-choice .seg .seg-btn { flex: 1; }
.pt-ed-choice .msg-ed-label { margin-bottom: 6px; }
.pt-onend .seg { width: 100%; }
.pt-onend .seg-btn { flex: 1; }

/* Discord connections in the alert editor */
.pt-connect { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pt-connect.ok { flex-direction: row; align-items: center; padding: 10px 12px; border: 1px solid rgba(60, 207, 145, 0.35); border-radius: 12px; background: rgba(60, 207, 145, 0.07); }
.pt-connect.ok > .ic-wrap { color: var(--ok); }
.pt-connect .pt-two { width: 100%; }
.pt-connect .banner { width: 100%; margin: 0; }
.pt-refresh { font-size: 13px; }

/* server picker: icon + name */
.pt-gpick .rui-dd-btn { gap: 10px; }
.pt-gicon { flex: none; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.pt-gicon.blank { display: inline-grid; place-items: center; background: linear-gradient(135deg, #3d4b63, #2a3445); color: #dce6f3; font: 700 12px var(--font-display); }
.pt-glist { gap: 4px; }
.pt-gsearch { margin: 2px 2px 4px; }
.pt-gitems { display: flex; flex-direction: column; gap: 2px; }
.pt-gname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-gnone { margin: 8px 10px; }

/* buttons instead of link-styled texts (user, 2026-11-24) */
.pt-refresh { display: flex; }
.pt-vmanage { margin-left: auto; }
.pt-foot-links { gap: 10px; flex-wrap: wrap; margin-top: 12px !important; }
.pt-links { align-items: center; }
.pt-deal-cat { min-height: 30px; }

/* a game sold in another currency: the store's own price under the NOK one */
.pt-fx { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 0; font-size: 13px; }
.pt-fx .ic-wrap svg { width: 16px; height: 16px; }

/* admin: AI sorting budget */
.pt-budget-row { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pt-budget { width: 90px; }

/* groups: a third row inside one picked sub-category */
.pt-grps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--card) 60%, transparent); }
.pt-grps[hidden] { display: none; }
.pt-grps-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.pt-grp { font-size: 13px; }
@media (max-width: 700px) {
  .pt-grps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pt-grps > * { flex: none; }
}

/* the language button's flag (drawn, same on every device) */
.pt-flag { display: inline-flex; flex: none; width: 21px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.pt-flag svg { width: 100%; height: 100%; display: block; }
/* the display font sits its capitals ~1.5 px above the middle of its line: down to the flag's centre (measured) */
.pt-lang span:not(.pt-flag) { line-height: 1; transform: translateY(0.12em); }
