/* GccFY — the signed-in app. Builds on site.css (tokens, buttons, forms, plans). Same rules: logical properties
   only (one sheet for right-to-left and left-to-right), no inline styles, nothing loaded from outside. */

/* ---------- frame */
body.app { background: var(--bg-soft); min-height: 100vh; line-height: 1.7; }
html[lang="en"] body.app { line-height: 1.6; }
.app-boot { min-height: 70vh; display: grid; place-items: center; }
.spin, .spin-lg { display: inline-block; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .7s linear infinite; }
.spin { width: 16px; height: 16px; }
.spin.dark { width: 22px; height: 22px; color: var(--brand-700); }
.spin-lg { width: 36px; height: 36px; border-width: 3px; color: var(--brand-600); }
.muted { color: var(--muted); }
.strong { font-weight: 600; color: var(--ink); }
.grow { flex: 1; }

.app-header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.app-bar { max-width: 1480px; margin-inline: auto; padding-inline: 24px; min-height: 64px; display: flex; align-items: center; gap: 18px; }
.app-nav { display: flex; gap: 4px; margin-inline-start: 10px; }
.app-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .97rem;
  transition: color .15s, background-color .15s; }
.app-nav a .ic { width: 18px; height: 18px; }
.app-nav a:hover { color: var(--ink); background: var(--bg-tint); text-decoration: none; }
.app-nav a.on { color: var(--brand-800); background: var(--brand-50); }
.app-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
/* the user's menu at the end of the bar (2026-10-20): the initial in a round button, the menu under it */
.user-wrap { position: relative; flex: none; }
.user-btn { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 3px 4px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  color: var(--muted); transition: border-color .15s, box-shadow .15s; }
html[dir="rtl"] .user-btn { padding: 3px 3px 3px 4px; }
.user-btn:hover, .user-btn[aria-expanded="true"] { border-color: var(--line-strong); box-shadow: var(--shadow-1); color: var(--ink); }
.user-btn:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; }
.user-btn.on .user-ini { box-shadow: 0 0 0 3px var(--brand-100); }
.user-ini { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; }
.um-caret { width: 16px; height: 16px; color: var(--faint); }
.user-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 250px; max-width: min(320px, calc(100vw - 24px)); padding: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-2); z-index: calc(var(--z-header) + 1); }
.user-menu[hidden] { display: none; }
.um-who { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.um-who b { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-who span { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-who .um-plan { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-800); font-weight: 600; }
.um-who .um-plan .ic { width: 14px; height: 14px; }
.um-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text);
  font: inherit; font-weight: 500; text-align: start; cursor: pointer; text-decoration: none; }
.um-item .ic { width: 18px; height: 18px; color: var(--muted); flex: none; }
.um-item:hover, .um-item:focus-visible { background: var(--bg-tint); color: var(--ink); text-decoration: none; outline: none; }
.um-item.danger, .um-item.danger .ic { color: var(--red-700, #b91c1c); }
.um-sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
@media (max-width: 640px) { .user-menu { position: fixed; inset-inline: 12px; top: 64px; min-width: 0; max-width: none; } }
.usage-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: .88rem; font-weight: 500; white-space: nowrap; transition: border-color .15s; }
.usage-pill b { color: var(--ink); }
.usage-pill:hover { text-decoration: none; border-color: var(--line-strong); }
.usage-pill.full { border-color: #fde68a; background: var(--amber-100); color: var(--amber-900); }
.usage-pill.full b { color: var(--amber-900); }
.plan-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-800);
  border: 1px solid var(--brand-100); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.plan-badge:hover { text-decoration: none; border-color: var(--brand-400); }
.bar-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--muted);
  font-weight: 600; font-size: .92rem; cursor: pointer; transition: color .15s, background-color .15s; }
.bar-btn:hover { color: var(--ink); background: var(--bg-tint); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none;
  transition: color .15s, background-color .15s; }
.icon-btn:hover { background: var(--bg-tint); color: var(--ink); text-decoration: none; }
.icon-btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn .ic { width: 19px; height: 19px; }
.test-banner { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 16px; background: var(--amber-100); color: var(--amber-900); font-size: .9rem;
  border-bottom: 1px solid #fde68a; text-align: center; }
.app-main { max-width: 1480px; margin-inline: auto; padding: 24px 24px 72px; }
.app-tabs { display: none; }
.page-top { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 16px; }
.page-top h1 { font-size: 1.5rem; }
.left-note { color: var(--faint); font-size: .92rem; }

/* ---------- toasts, dialogs */
#toasts { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--shadow-2); font-size: .95rem;
  max-width: min(420px, calc(100vw - 44px)); animation: toast-in .2s ease-out; }
.toast.ok .ic { color: var(--brand-400); }
.toast.bad { background: var(--red-700); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade-in { from { opacity: 0; } }
body.locked { overflow: hidden; }
.scrim { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(11, 18, 32, .55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fade-in .15s; }
.modal { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-3); width: 100%; max-width: 460px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column; overflow: hidden; }
.modal.lg { max-width: 860px; }
.modal.xl { max-width: 1280px; height: calc(100vh - 40px); height: calc(100dvh - 40px); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; padding-inline: 18px 12px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.12rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.modal-sub { color: var(--faint); font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 0; }
.modal-body { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 0; overscroll-behavior: contain; container-type: inline-size; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.upgrade-art { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--amber-100); color: var(--amber-600); }
.btn-danger { background: var(--red-700); color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn.off { opacity: .6; cursor: default; pointer-events: none; }

/* ---------- small shared pieces */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 56px 20px; }
.empty-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--bg-tint); color: var(--faint); }
.empty b { color: var(--ink); font-size: 1.1rem; }
.empty > .btn, .empty-actions { margin-top: 8px; }
.empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.posts-msg { background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.skel-card { height: 430px; border-radius: 16px; }
.posts.feed .skel-card { height: 250px; }
.posts.tiles .skel-card { height: 320px; }
.skel-head { height: 150px; }
.skel-shot { height: 520px; }
.skel-line { display: inline-block; width: 220px; height: 18px; }
.skel-panel { height: 170px; border-radius: var(--radius-lg); }
.skel-row { height: 62px; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 999px; background: var(--bg-tint); color: var(--muted); font-size: 12px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip .pico, .chip .sico { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; }
.chip b.num { color: var(--brand-800); font-weight: 700; }
.flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08); flex: none; }
.pchip { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--bg-tint); color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.sico { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; flex: none; }
.tag-status { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--bg-tint); color: var(--muted); white-space: nowrap; }
.tag-status.active, .tag-status.completed { background: var(--brand-50); color: var(--brand-800); border: 1px solid var(--brand-100); }
.tag-status.suspended, .tag-status.refunded, .tag-status.partly_refunded, .tag-status.reversed, .tag-status.approval_pending, .tag-status.ending { background: var(--amber-100); color: var(--amber-900); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel > h2 { font-size: 1.15rem; }
.notices { display: flex; flex-direction: column; gap: 10px; }
.notices:not(:empty) { margin-bottom: 16px; }
.panel .notices:not(:empty) { margin-bottom: 0; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; }
.box h3 { font-size: 1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.box.upsell { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; background: var(--amber-100); border-color: #fde68a; color: var(--amber-900); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: .92rem; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--text); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.table th { color: var(--faint); font-weight: 600; font-size: .86rem; background: var(--bg-soft); }
.table tr:last-child td { border-bottom: 0; }
.ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; color: var(--muted); }

/* ---------- library: filters (the admin panel's grid: three groups a row, the buttons under them) */
.page-top .filters-btn { display: none; margin-inline-start: auto; }
.filters-btn .count { background: var(--brand-700); color: #fff; }
.lib-filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-1); }
.lf-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: end; }
.fg { grid-column: span 4; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
/* every row adds up to 12: 4+4+4, 4+4+4, 3+3+6 (the two dates), 12 (the text) */
.fg.w3 { grid-column: span 3; }
.fg.w5 { grid-column: span 5; }
.fg.w6 { grid-column: span 6; }
.fg.w12 { grid-column: 1 / -1; }
.fg-label { font-size: .84rem; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
html[lang="en"] .fg-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.fg.changed .fg-label { color: var(--brand-700); }
.fg.changed .ms-btn, .fg.changed .select, .fg.changed .input { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(16, 185, 129, .14); }
.lib-filters .select, .lib-filters .input { min-height: 46px; padding-block: 8px; }
.lf-btns { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.lf-btns .btn { min-width: 120px; }
.lock-mini { display: inline-flex; color: var(--amber-600); }
.lock-mini .ic { width: 13px; height: 13px; }
.dates { display: flex; align-items: center; gap: 6px; }
.dates .input { min-width: 0; flex: 1; padding-inline: 8px; font-size: .88rem; }
.apply-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--amber-900); background: var(--amber-100); border-radius: 999px; padding: 4px 12px; font-size: .88rem;
  margin-inline-end: auto; }
.btn.pulse { box-shadow: 0 0 0 4px rgba(16, 185, 129, .3), 0 6px 18px rgba(4, 120, 87, .22); }
.locked-wrap { position: relative; }
.locked-wrap > :first-child { opacity: .5; }
.lock-cover { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius); display: flex; align-items: center; justify-content: flex-end;
  padding-inline: 8px 34px; }
.lock-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600;
  box-shadow: var(--shadow-1); transition: background-color .15s; }
.lock-cover:hover .lock-tag { background: var(--brand-700); }

/* the dropdowns: several choices (platforms, countries) or one with icons (the website type) */
.ms { position: relative; min-width: 0; }
.ms-btn { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: #fff;
  color: var(--text); font: inherit; font-size: .95rem; text-align: start; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ms-btn:hover { border-color: #94a3b8; }
.ms.open .ms-btn { border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); }
.ms-picked { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
.ms-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ms-ph { color: #94a3b8; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-caret { margin-inline-start: auto; color: var(--faint); flex: none; transition: transform .15s; }
.ms.open .ms-caret { transform: rotate(180deg); }
.ms-dd { display: none; position: absolute; z-index: 40; inset-block-start: calc(100% + 6px); inset-inline: 0; min-width: 250px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-3); overflow: hidden; }
.ms.open .ms-dd { display: block; animation: fade-in .12s; }
.ms-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
/* the pixels' icons in the list, the field and the tags; the one-click states ("has a pixel" / "no pixel") when on */
.pxi { width: 16px; height: 16px; object-fit: contain; flex: none; }
.mini-btn.ms-mode.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.lib-filters .ms-find { min-height: 38px; padding: 6px 10px; font-size: .9rem; flex: 3; min-width: 0; }
.ms-list { max-height: 320px; overflow-y: auto; padding: 4px; overscroll-behavior: contain; }
.ms-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 6px 10px; border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--text); font: inherit; font-size: .93rem; text-align: start; cursor: pointer; transition: background-color .12s; }
.ms-opt:hover { background: var(--bg-tint); }
.ms-opt.on { background: var(--brand-50); color: var(--brand-900); font-weight: 600; }
.ms-opt input { width: 17px; height: 17px; margin: 0; accent-color: var(--brand-600); flex: none; }
.ms-opt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-noic { width: 16px; flex: none; }
.ms-sep { padding: 10px 10px 4px; margin-top: 4px; border-top: 1px solid var(--line); font-size: .76rem; font-weight: 700; color: var(--faint); }
.mini-btn { min-height: 34px; padding: 4px 10px; border-radius: var(--radius-sm); border: 1px solid var(--brand-100); background: var(--brand-50); color: var(--brand-800); font: inherit;
  font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .15s; }
.mini-btn:hover { background: var(--brand-100); }
.bico { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; flex: none; }
.chip .bico, .ftag .bico { width: 14px; height: 14px; object-fit: contain; border-radius: 3px; }

/* ---------- library: results */
.results { margin-top: 18px; scroll-margin-top: 84px; display: flex; flex-direction: column; gap: 14px; min-width: 0; container-type: inline-size; }
.lib-bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.ftags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1; min-width: 0; }
.ftags-label { font-size: .82rem; font-weight: 700; color: var(--faint); margin-inline-end: 2px; }
.ftag { display: inline-flex; align-items: center; gap: 6px; padding-block: 3px; padding-inline: 10px 3px; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-100);
  color: var(--brand-900); font-size: .86rem; font-weight: 500; max-width: 100%; }
.ftag .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.ftag .flag { width: 18px; height: 12px; }
.ftag > button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; flex: none;
  transition: background-color .15s; }
.ftag > button:hover { background: var(--brand-100); }
.vtabs { margin-inline-start: auto; display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--bg-tint); border: 1px solid var(--line); flex: none; }
.vtab { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit;
  font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: color .15s, background-color .15s, box-shadow .15s; }
.vtab:hover { color: var(--ink); }
.vtab.on { background: #fff; color: var(--brand-800); box-shadow: var(--shadow-1); }
.vtab .ic { width: 16px; height: 16px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding-block: 8px; }
.pager:empty { display: none; }
.lib-total { flex-basis: 100%; font-size: .95rem; color: var(--ink); min-height: 1.6em; }
.lib-total .muted { color: var(--muted); font-weight: 400; }
.pager-note { flex-basis: 100%; text-align: center; color: var(--muted); font-size: .82rem; }
.pager-page { min-width: 84px; text-align: center; color: var(--ink); font-weight: 600; font-size: .95rem; }
.cap-note { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius);
  background: var(--amber-100); color: var(--amber-900); font-size: .95rem; text-align: center; }

/* ---------- one ad, in three views */
.posts { display: grid; gap: 16px; align-items: start; }
.posts.store { grid-template-columns: repeat(auto-fill, minmax(370px, 1fr)); }
.posts.tiles { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.posts.feed { grid-template-columns: minmax(0, 1fr); }
.post { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.post:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.post-top { display: flex; align-items: flex-start; gap: 8px; padding: 12px 12px 8px; }
.post-head { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.app .avatar { width: 40px; height: 40px; font-size: 15px; }
.app .avatar.xl { width: 64px; height: 64px; font-size: 24px; }
.who { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.who-name { font-weight: 600; color: var(--ink); font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; text-align: start; }
button.who-name { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: 600; }
button.who-name:hover { color: var(--brand-700); text-decoration: underline; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; white-space: nowrap; }
.status.on { color: var(--brand-700); font-weight: 600; }
.status.off { color: var(--faint); }
.actions { display: flex; gap: 0; flex: none; }
.actions .icon-btn { width: 36px; height: 36px; }
.icon-btn.save.on { color: var(--brand-700); }
.icon-btn.save.on .ic { fill: currentColor; }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.sm .ic { width: 16px; height: 16px; }
.flags { display: inline-flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.flag-name, .plat-name { display: inline-flex; align-items: center; gap: 5px; margin-inline-end: 8px; }
.plats { display: inline-flex; align-items: center; gap: 6px; }
.chip.store { padding: 2px 9px; font-size: 12px; }
.post-body { padding: 0 12px 10px; }
.post-text { font-size: .93rem; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; text-align: start; }
.post-text.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-text.none { color: var(--faint); font-style: italic; }
.btn-link.sm { font-size: .86rem; margin-top: 4px; }
.media { background: #0b1220; }
/* the creative at its own shape, whole (never a forced square), up to 600 px tall; a video plays in the same place,
   at the same size, with its controls */
.media-box { position: relative; display: grid; place-items: center; overflow: hidden; background: #0b1220; min-height: 200px; }
.media-box > img, .media-box > video { width: 100%; height: auto; max-height: 600px; object-fit: contain; display: block; }
.media-box > video { background: #000; }
/* the details window: the picture or the video at its own shape, whole, as tall as the screen allows */
.media.big .media-box { aspect-ratio: auto; min-height: 220px; }
.media.big .media-box > img, .media.big .media-box > video { height: auto; max-height: 66vh; }
.pair-text { padding-top: 12px; }
.media-play { position: relative; display: block; width: 100%; min-height: 200px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.media-play img { width: 100%; height: auto; max-height: 600px; object-fit: contain; display: block; margin-inline: auto; }
.play-badge { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: rgba(11, 18, 32, .72); color: #fff; display: grid;
  place-items: center; backdrop-filter: blur(4px); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); transition: background-color .18s, transform .18s; }
.play-badge .ic { width: 28px; height: 28px; fill: currentColor; stroke: none; margin-left: 4px; }
.media-play:hover .play-badge, .media-play:focus-visible .play-badge { background: var(--brand-700); transform: scale(1.06); }
.no-media { color: #94a3b8; font-size: .88rem; }
.gone { visibility: hidden; }
.thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--line); }
.thumbs button { position: relative; width: 52px; height: 52px; flex: none; border-radius: 8px; border: 2px solid transparent; padding: 0; overflow: hidden; background: var(--bg-tint); cursor: pointer; }
.thumbs button.on { border-color: var(--brand-600); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.tplay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(11, 18, 32, .35); }
.post-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.post-link-text { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.post-link .dom { font-size: 11px; color: var(--faint); letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[dir="rtl"] .post-link .dom, html[dir="rtl"] .snap-cap .host, html[dir="rtl"] .smini-tx b[dir="ltr"], html[dir="rtl"] .chan-tx b[dir="ltr"] { text-align: right; }
.post-link b { font-size: .92rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.post-link .desc { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-bar { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 0; border-top: 1px solid var(--line); background: var(--bg-soft); color: var(--muted);
  font: inherit; font-size: .88rem; cursor: pointer; width: 100%; text-align: start; transition: background-color .15s, color .15s; margin-top: auto; }
.more-bar:hover { background: var(--brand-50); color: var(--brand-900); }
.more-n { color: var(--ink); font-weight: 700; }
.more-lb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-bar .go { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--brand-700); font-weight: 600; white-space: nowrap; }

/* the store page beside an ad (a picture of the captured page), or where the ad sends people instead */
.snap { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: start; border-radius: 12px; color: inherit; font: inherit; }
.snap.off, .snap:disabled { cursor: default; }
.snap-img { position: relative; display: block; width: 100%; height: 196px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-tint);
  transition: border-color .15s, box-shadow .15s; }
.snap.tall .snap-img { height: 236px; }
.snap:not(.off):not(:disabled):hover .snap-img, .snap:focus-visible .snap-img { border-color: var(--brand-500); box-shadow: 0 6px 18px rgba(4, 120, 87, .16); }
.snap-img > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.snap-img .zoom { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; width: 30px; height: 30px; border-radius: 8px; background: rgba(11, 18, 32, .72); color: #fff;
  display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.snap:hover .zoom, .snap:focus-visible .zoom { opacity: 1; }
.snap-img.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-align: center; color: var(--faint); font-size: .8rem;
  border-style: dashed; background: var(--bg-soft); }
.snap-img.ph b { font-weight: 600; color: var(--muted); }
.snap.locked .snap-img.ph { background: var(--amber-100); border-color: #fde68a; color: var(--amber-900); }
.snap.locked .snap-img.ph b { color: var(--amber-900); }
.snap-cap { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: .78rem; }
.snap-cap:not(:has(.host:not(:empty))) { display: none; }
.snap-cap .host { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snap-meta { color: var(--faint); font-size: .74rem; }
.chan { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: start; }
.chan.in-snap { flex-direction: column; text-align: center; gap: 8px; }
.chan-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); flex: none; color: var(--faint);
  box-shadow: var(--shadow-1); }
.chan-logo { width: 22px; height: 22px; object-fit: contain; }
.chan-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chan-tx b { color: var(--ink); font-size: .88rem; font-weight: 700; overflow-wrap: anywhere; }
.chan-tx span { color: var(--muted); font-size: .78rem; line-height: 1.55; }
.chan.big { flex-direction: column; text-align: center; gap: 12px; padding: 44px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: #fff; }
.chan.big .chan-ic { width: 68px; height: 68px; border-radius: 20px; }
.chan.big .chan-logo { width: 36px; height: 36px; }
.chan.big .chan-tx b { font-size: 1.08rem; }
.chan.big .chan-tx span { font-size: .93rem; max-width: 340px; }

/* Ads + Store pages: the facts and the store page side by side above the ad */
.sv-top { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; padding: 2px 12px 12px; align-items: start; }
.meta-list { display: flex; flex-direction: column; gap: 8px; font-size: .84rem; min-width: 0; padding-top: 2px; }
.mrow { display: flex; align-items: center; gap: 4px 8px; min-width: 0; flex-wrap: wrap; }
.mk { color: var(--faint); min-width: 70px; flex: none; }
.mv { color: var(--text); min-width: 0; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; overflow-wrap: anywhere; }
.mv a { color: var(--brand-700); }

/* Feed: one ad per row — creative | text | store page */
.post.fv { display: grid; grid-template-columns: 220px minmax(0, 1fr) 190px; gap: 16px; padding: 14px; align-items: start; }
.fv-media { position: relative; min-width: 0; }
.fv-n { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 7px;
  background: rgba(11, 18, 32, .75); color: #fff; font-size: .74rem; font-weight: 600; pointer-events: none; }
.fv-med { aspect-ratio: 4 / 5; border-radius: 10px; }
.fv-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.fv-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.fv-head .post-head { flex: 1 1 200px; }
.fv-right { display: inline-flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.fv-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--muted); align-items: center; }
.fv-meta b { color: var(--text); font-weight: 600; }
.fv-dom { color: var(--muted); }
.fv-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.fv-foot .hl { font-weight: 600; color: var(--ink); min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-store { min-width: 0; }
.post.fv > .more-bar { grid-column: 1 / -1; margin: 0 -14px -14px; width: calc(100% + 28px); }

/* the creative as a button (Feed, Tiles): opens the ad next to its store page */
.med { position: relative; display: block; width: 100%; border: 0; padding: 0; background: #0b1220; overflow: hidden; cursor: pointer; color: #fff; font: inherit; text-align: start; }
.med > img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.med:hover > img { opacity: .9; }
.med > .no-media { position: absolute; inset: 0; display: grid; place-items: center; }
.med-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.med-play .ic { width: 46px; height: 46px; fill: #fff; stroke: none; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); }

/* Tiles: creative first */
.tv-med { aspect-ratio: 4 / 5; }
.tv-top { position: absolute; inset-block-start: 8px; inset-inline: 8px; display: flex; justify-content: space-between; align-items: center; gap: 6px; pointer-events: none; }
.tchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: .74rem; font-weight: 600; }
.tchip.dark { background: rgba(11, 18, 32, .75); color: #fff; }
.tchip .plats { gap: 4px; }
.tchip .bico { width: 14px; height: 14px; }
.tv-cap { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 44px 12px 12px; background: linear-gradient(180deg, rgba(11, 18, 32, 0), rgba(11, 18, 32, .86) 70%);
  display: flex; flex-direction: column; gap: 2px; text-align: start; }
.tv-name { font-size: .78rem; opacity: .88; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-title { font-weight: 700; font-size: .9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-title:empty { display: none; }
.tv-foot { display: flex; align-items: center; gap: 8px; padding-block: 8px; padding-inline: 10px 4px; }
.tv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .74rem; color: var(--muted); flex: none; }
.smini { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; border: 0; background: none; padding: 4px; margin: -4px; border-radius: 10px; cursor: pointer; text-align: start;
  color: inherit; font: inherit; transition: background-color .15s; }
.smini:not(.off):not(:disabled):hover { background: var(--bg-tint); }
.smini.off, .smini:disabled { cursor: default; }
.smini-th { width: 40px; height: 52px; border-radius: 7px; border: 1px solid var(--line); overflow: hidden; background: var(--bg-tint); flex: none; display: grid; place-items: center; color: var(--faint); }
.smini-th > img:not(.chan-logo) { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.smini-th.ph { border-style: dashed; background: var(--bg-soft); }
.smini-tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.smini-tx b { font-size: .8rem; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smini-tx span { font-size: .74rem; color: var(--brand-700); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smini.off .smini-tx span, .smini:disabled .smini-tx span { color: var(--faint); }

/* ---------- saving an ad: the category and the note */
.modal.md { max-width: 580px; }
.scrim.nested { background: rgba(11, 18, 32, .3); backdrop-filter: none; }
.modal.under { transform: scale(.985); filter: brightness(.9); transition: transform .2s, filter .2s; }
.modal.nested { box-shadow: var(--shadow-3), 0 0 0 1px rgba(255, 255, 255, .5); }
.modal.nested.lg { max-width: 760px; }
.modal.nested.xl { max-width: 1120px; height: calc(100vh - 96px); height: calc(100dvh - 96px); }
.modal.nested.xl[data-depth="2"] { max-width: 980px; height: calc(100vh - 150px); height: calc(100dvh - 150px); }
.modal-back { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; max-width: 32%; padding: 5px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-800); font-size: .84rem; font-weight: 600; white-space: nowrap; flex: none; transition: background-color .15s; }
.modal-back span { overflow: hidden; text-overflow: ellipsis; }
.modal-back:hover { background: var(--brand-100, #d1fae5); }
.modal-back:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.modal-back .ic { width: 14px; height: 14px; flex: none; }
.save-sec { display: flex; flex-direction: column; gap: 8px; }
.save-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.note-count { font-size: .78rem; color: var(--faint); font-weight: 500; }
.save-sec .textarea { min-height: 110px; }
.cat-picks { display: flex; flex-wrap: wrap; gap: 8px; max-height: 248px; overflow-y: auto; padding: 2px; }
.cat-pick { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--text);
  font: inherit; font-size: .9rem; cursor: pointer; max-width: 100%; transition: border-color .15s, background-color .15s, color .15s; }
.cat-pick:hover { border-color: #94a3b8; }
.cat-pick .ic { color: var(--faint); }
.cat-pick.on { background: var(--brand-50); border-color: var(--brand-600); color: var(--brand-900); font-weight: 600; }
.cat-pick.on .ic { color: var(--brand-700); }
.cat-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.cat-n { font-size: .74rem; color: var(--muted); background: var(--bg-tint); border-radius: 999px; padding-inline: 7px; min-width: 22px; text-align: center; line-height: 1.6; }
.cat-pick.on .cat-n { background: #fff; color: var(--brand-800); }
.cat-tools { display: flex; align-items: center; gap: 8px; min-height: 0; }
.cat-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 0; }
.cat-new { display: flex; gap: 8px; }
.cat-new .input { flex: 1; min-width: 0; min-height: 44px; }
.cat-full { font-size: .86rem; }
.danger-text { color: var(--red-700); }
.danger-text:hover { background: var(--red-50); color: var(--red-700); }

/* ---------- the saved ads: categories beside the ads */
.saved-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.saved-layout .results { margin-top: 0; }
.cats { position: sticky; inset-block-start: 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px; display: flex; flex-direction: column; gap: 6px;
  max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; }
.cats-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px 2px; font-size: .84rem; font-weight: 700; color: var(--muted); }
.cats-n { font-size: .78rem; color: var(--faint); font-weight: 600; }
.cats-list { display: flex; flex-direction: column; gap: 2px; }
.cats .skel-line { width: 100%; height: 36px; display: block; margin-block: 3px; }
.cat-item { display: flex; align-items: center; border-radius: 10px; transition: background-color .15s; }
.cat-item:hover { background: var(--bg-tint); }
.cat-item.on { background: var(--brand-50); }
.cat-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 6px 10px; border: 0; background: transparent; color: var(--text); font: inherit;
  font-size: .93rem; cursor: pointer; text-align: start; border-radius: 10px; }
.cat-go .ic { color: var(--faint); flex: none; }
.cat-go .cat-name { flex: 1; max-width: none; }
.cat-item.on .cat-go { color: var(--brand-900); font-weight: 600; }
.cat-item.on .cat-go .ic { color: var(--brand-700); }
.cat-item.on .cat-n { background: #fff; color: var(--brand-800); }
.cat-edit { opacity: 0; transition: opacity .15s; }
.cat-item:hover .cat-edit, .cat-item.on .cat-edit, .cat-edit:focus-visible { opacity: 1; }
.cats-add { justify-content: center; margin-top: 4px; }
.cats-full { font-size: .82rem; padding: 4px 8px; }
.saved-bar { display: flex; flex-direction: column; gap: 12px; }
.saved-h { font-size: 1.15rem; overflow-wrap: anywhere; }
.saved-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.saved-tools .q-box { flex: 1 1 260px; min-width: 0; }
.saved-tools .select { width: auto; min-height: 44px; padding-block: 8px; }
.saved-tools .input { min-height: 44px; padding-block: 8px; }
.saved-tools .vtabs { margin-inline-start: auto; }
.q-box { position: relative; display: flex; align-items: center; }
.q-box > .ic { position: absolute; inset-inline-start: 14px; color: var(--faint); pointer-events: none; }
.q-box .input { padding-inline-start: 40px; }
.tog { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--text);
  font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: border-color .15s, background-color .15s, color .15s; }
.tog:hover { border-color: #94a3b8; }
.tog[aria-pressed="true"] { background: var(--brand-50); border-color: var(--brand-600); color: var(--brand-900); font-weight: 600; }
/* the note on a saved ad: a soft yellow slip, like a sticky note */
.note-strip { margin: 0 12px 10px; padding: 10px 12px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; display: flex; flex-direction: column; gap: 6px; }
.tv .note-strip { margin: 10px 10px 0; }
.fv .note-strip { margin: 0; }
.note-strip.out { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-soft); border-color: var(--line); }
.ns-gone { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .86rem; }
.note-strip.out .btn-link { margin: 0; }
.ns-top { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; }
.cat-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: #fff; border: 1px solid #fde68a; color: var(--ink); font-size: .78rem;
  font-weight: 600; max-width: 100%; min-width: 0; }
.cat-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-chip.none { color: var(--muted); font-weight: 500; }
.ns-date { font-size: .74rem; color: var(--amber-900); opacity: .8; }
.btn-link.ns-edit { margin: 0; margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; min-height: 30px; font-size: .82rem; }
.ns-note { font-size: .86rem; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; text-align: start; display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- windows: one advertiser, one store page, one ad */
.pg-head { display: flex; flex-direction: column; gap: 14px; }
.pg-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pg-who { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.pg-who h3 { font-size: 1.25rem; overflow-wrap: anywhere; }
.pg-sub { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted); font-size: .93rem; }
.pg-links { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.stat-tile { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); display: flex; flex-direction: column; min-width: 0; }
.stat-tile b { font-size: 1.15rem; color: var(--ink); }
.stat-tile span { color: var(--muted); font-size: .84rem; }
.stat-tile.live b { color: var(--brand-700); }
.facets { display: flex; flex-direction: column; gap: 8px; }
.facet { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; }
.facet-label { width: 86px; flex: none; color: var(--faint); font-size: .86rem; font-weight: 600; }
.pg-more { display: flex; align-items: center; justify-content: center; gap: 14px; padding-block: 8px; flex-wrap: wrap; }
.store-win { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-tint); }
.shot img { width: 100%; height: auto; }
.store-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pixels { display: flex; flex-direction: column; gap: 6px; }
.pixel { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--bg-soft); font-size: .9rem; }
.pname { display: inline-flex; align-items: center; gap: 8px; text-transform: capitalize; font-weight: 600; color: var(--ink); }
.pdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pid { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; overflow-wrap: anywhere; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.gallery a { aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--bg-tint); border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.history { display: flex; flex-wrap: wrap; gap: 6px; }
.history button { min-height: 38px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font-size: .88rem; }
.history button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.mini-ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.mini-ad { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .8rem; }
.mini-ad img, .mini-ad .ph { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: var(--bg-tint); display: grid; place-items: center; color: var(--faint); }
.mini-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pair-ad { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.pair-ad .box { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.pair-store { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pair-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- billing */
.billing { display: flex; flex-direction: column; gap: 18px; }
.panel.current { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.cur-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cur-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); flex: none; }
.cur-text { min-width: 0; }
.cur-text h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.cur-text h2 small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.cur-text p { font-size: .95rem; }
.notice.wide { flex-basis: 100%; }
.cur-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cur-links { flex-basis: 100%; display: flex; gap: 6px 22px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.cur-links .btn-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: .93rem; }
.meters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.meter { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .93rem; color: var(--muted); }
.meter-top b { color: var(--ink); }
.meter .track { height: 8px; border-radius: 999px; background: var(--bg-tint); overflow: hidden; }
.meter .bar { display: block; height: 100%; border-radius: 999px; background: var(--brand-600); transition: width .4s; }
.meter .bar.high { background: var(--amber-600); }
.meter .bar.full { background: var(--red-700); }
.meter-scope { font-size: .8rem; color: var(--faint); }
.lock-note { display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; color: var(--faint); }
.plans-panel .bill-toggle { margin-bottom: 0; }
.plans-panel .plans { margin-top: 14px; }
.plans-panel .plan { scroll-margin-top: 90px; }
.plan.chosen { border: 2px solid var(--amber-600); padding: 25px 21px; box-shadow: 0 0 0 4px rgba(217, 119, 6, .14); }
/* the sale (plans.js SALE): the plans' tags and lock note, the line over the plans, the checkout's row, the mini plans */
.plan.sale { border-color: #111827; }
.plan .tag.sale, .mini-plan .mp-tag.sale { background: #09090b; color: #ffd60a; white-space: nowrap; }
.sale-lock { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: #92400e; font-size: .84rem; font-weight: 600; }
.sale-lock .ic { color: #d97706; flex: none; }
.plans-panel .sale-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #111827; color: #fde68a; font-size: .93rem; }
.plans-panel .sale-line b { color: #fff; }
.plans-panel .sale-line .ic { color: #fbbf24; flex: none; }
.co-offer.co-sale { background: #111827; border-color: #111827; color: #fde68a; }
.co-offer.co-sale .ic { color: #fbbf24; }
/* Black Friday for the free accounts (sale.js): the band under the filters with the three prices and the clock, the
   window shown once, the wall at the day's limit. The owner, 2026-11-10: "must show like a good offer and a noticed
   countdown" — black with one loud yellow (the same pair as the public pages' Black Friday look, site.css), the cut
   in large figures, a clock that reads from across the room, a yellow button. */
.sale-band, .sale-hero { --bf: #ffd60a; --bf-hi: #ffe45c; --bf-ink: #171200; --bf-bg: #09090b; --bf-card: #151518; --bf-line: #2b2b31; }
.sale-band { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) auto auto; align-items: center; gap: 18px 30px; margin: 18px 0 0;
  padding: 24px 28px; border-radius: var(--radius-lg); background: var(--bf-bg); color: #fff; border: 1px solid #3a3410; box-shadow: 0 0 0 1px rgba(255, 214, 10, .22), 0 22px 44px -26px rgba(0, 0, 0, .8); }
.sale-band::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(520px 260px at 100% 0, rgba(255, 214, 10, .2), transparent 70%), repeating-linear-gradient(135deg, rgba(255, 214, 10, .05) 0 12px, transparent 12px 26px); }
[dir="rtl"] .sale-band::before { background: radial-gradient(520px 260px at 0 0, rgba(255, 214, 10, .2), transparent 70%), repeating-linear-gradient(135deg, rgba(255, 214, 10, .05) 0 12px, transparent 12px 26px); }
.sale-band::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px; background: var(--bf); }
.sale-band[hidden], .sale-hero[hidden] { display: none; }
.sale-band .sb-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sb-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 12px; border-radius: 6px; background: var(--bf, #ffd60a); color: var(--bf-ink, #171200); font-size: .8rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; }
.sb-badge .ic { width: 14px; height: 14px; fill: currentColor; }
.sb-title { font-size: clamp(1.4rem, 2.5vw, 2.05rem); font-weight: 800; line-height: 1.15; color: #fff; letter-spacing: -.01em; }
.sb-title mark, .sale-hero-title mark { background: none; color: var(--bf); font-size: 1.22em; padding: 0 .08em; white-space: nowrap; }
.sale-band .sb-text { display: flex; align-items: flex-start; gap: 7px; color: #d4d4d8; font-size: .92rem; line-height: 1.5; }
.sale-band .sb-text .ic { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--bf); }
.sb-prices { display: flex; gap: 10px; flex-wrap: wrap; }
.sb-prices > a { position: relative; display: grid; grid-template-columns: auto auto; column-gap: 7px; align-items: baseline; min-width: 96px; padding: 10px 13px 9px; border-radius: 12px; background: var(--bf-card);
  border: 1px solid var(--bf-line); direction: ltr; text-align: left; color: #fff; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.sb-prices > a:hover, .sb-prices > a:focus-visible { border-color: var(--bf); text-decoration: none; transform: translateY(-1px); }
.sb-prices em { grid-column: 1 / -1; font-style: normal; color: #e4e4e7; font-size: .78rem; font-weight: 700; padding-inline-end: 44px; }
.sb-prices b { font-size: 1.55rem; color: #fff; line-height: 1.1; }
.sb-prices s { color: #a1a1aa; font-size: .9rem; text-decoration-color: var(--bf); }
.sb-prices small { grid-column: 1 / -1; color: #a1a1aa; font-size: .72rem; }
.sb-off { position: absolute; top: 8px; right: 8px; padding: 1px 6px; border-radius: 5px; background: var(--bf); color: var(--bf-ink); font-style: normal; font-size: .7rem; font-weight: 800; }
.sale-band .sb-side { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.sb-count { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.sb-count-label { display: inline-flex; align-items: center; gap: 6px; color: var(--bf); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sb-count-label .ic { width: 14px; height: 14px; }
.sb-segs { display: inline-flex; gap: 7px; }
.sb-seg { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 60px; padding: 8px 6px 7px; border-radius: 12px; background: var(--bf-card); border: 1px solid #3a3410; }
.sb-seg b { font-size: 1.7rem; line-height: 1; color: var(--bf); font-variant-numeric: tabular-nums; font-weight: 800; }
.sb-seg small { font-size: .66rem; color: #d4d4d8; text-transform: uppercase; letter-spacing: .05em; }
.sb-seg.seconds b { animation: bfTick 1s steps(2, jump-none) infinite; }
.sb-cta { background: var(--bf, #ffd60a); color: var(--bf-ink, #171200); border: 0; font-weight: 800; min-height: 48px; padding: 8px 22px; font-size: 1rem; border-radius: 12px; white-space: nowrap; justify-content: center;
  box-shadow: 0 0 0 0 rgba(255, 214, 10, .5); animation: bfPulse 2.4s ease-out infinite; }
.sb-cta:hover, .sb-cta:focus-visible { background: #ffe45c; color: #171200; text-decoration: none; }
@keyframes bfPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 214, 10, .5); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 214, 10, 0); } }
@keyframes bfTick { 0% { opacity: 1; } 100% { opacity: .72; } }
@media (prefers-reduced-motion: reduce) { .sb-cta, .sb-seg.seconds b { animation: none; } .sb-prices > a { transition: none; } }
/* the same offer inside a window (the one shown once, the upgrade window) and on the wall */
.sale-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 22px 18px; border-radius: var(--radius-lg);
  background: var(--bf-bg); color: #fff; border: 1px solid #3a3410; }
.sale-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(420px 220px at 50% 0, rgba(255, 214, 10, .2), transparent 70%), repeating-linear-gradient(135deg, rgba(255, 214, 10, .05) 0 12px, transparent 12px 26px); }
.sale-hero .sb-badge { align-self: center; }
.sale-hero-title { font-size: clamp(1.3rem, 3.4vw, 1.7rem); font-weight: 800; line-height: 1.2; }
.sale-hero-text { color: #d4d4d8; font-size: .9rem; max-width: 520px; }
.sale-hero .sb-prices { justify-content: center; }
.sale-modal .modal-body { gap: 10px; }
.ai-next { display: flex; flex-direction: column; gap: 8px; }
/* the pay page's choice (billing.js): two large buttons, Card (Paddle's window) and PayPal */
.co-methods { display: flex; flex-direction: column; gap: 14px; }
.co-method { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 92px; padding: 18px 20px; border: 2px solid var(--line); border-radius: 16px; background: #fff; color: var(--text);
  font: inherit; text-align: start; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.co-method:hover, .co-method:focus-visible { border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(5, 150, 105, .12); }
.co-method.paypal:hover, .co-method.paypal:focus-visible { border-color: #0070ba; box-shadow: 0 0 0 4px rgba(0, 112, 186, .12); }
.co-method:disabled { opacity: .7; cursor: progress; justify-content: center; }
.co-method .cm-ic { flex: none; width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); }
.co-method.paypal .cm-ic { background: #ffc439; }
.cm-pp { font-weight: 800; font-style: italic; font-size: .98rem; letter-spacing: -.02em; }
.cm-pp i:first-child { color: #003087; } .cm-pp i:last-child { color: #0070ba; }
.co-method .cm-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.co-method .cm-text b { font-size: 1.15rem; color: var(--ink); }
.co-method .cm-text span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.co-method > .ic:last-child { flex: none; color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .co-method { transition: none; } }
@media (max-width: 560px) { .co-method { padding: 14px; gap: 12px; min-height: 84px; } .co-method .cm-ic { width: 50px; height: 50px; } .co-method .cm-text b { font-size: 1.05rem; } }
.btn-paypal { background: #ffc439; color: #111827; font-weight: 700; }
.btn-paypal:hover { background: #f2b61f; color: #111827; }
.co-methods { padding: 18px 20px 22px; }
.co-recap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 2px; color: var(--muted); }
.co-recap b { color: var(--ink); font-size: 1.05rem; }
/* on a phone the choice comes first, the order's summary under it */
@media (max-width: 920px) { .co-grid.choose { grid-template-areas: "pay" "sum" "trust"; } .co-methods { padding: 14px 14px 18px; } }
/* (end of the pay page's choice) */
/* a free account's "Next page" (sale.js pageGate, pageWall): the small lock on the button; the window with how much
   of the search was seen and what the paid plans open */
.pg-gate { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.pg-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pg { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  color: var(--text); font: inherit; font-weight: 700; }
.pg.now { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.pg.lock { background: var(--bg-tint); color: var(--faint); cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.pg.lock .ic { width: 13px; height: 13px; color: var(--amber-600); }
.pg.lock:hover, .pg.lock:focus-visible { border-color: var(--amber-600); color: var(--text); }
.pg-dots { color: var(--faint); padding: 0 4px; }
.pg-note { margin: 0; color: var(--faint); font-size: .88rem; text-align: center; }
.page-wall .modal-body { gap: 12px; }
.pw-costs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pw-cost { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pw-cost .ic { color: var(--brand-700); }
.pw-cost b { color: var(--ink); font-size: 1.02rem; line-height: 1.35; }
.pw-cost span { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.pw-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pw-plan { padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.pw-plan b { display: block; color: var(--ink); font-size: 1.2rem; }
.pw-plan span { color: var(--muted); font-size: .82rem; }
.pw-plan.you { background: var(--bg-tint); } .pw-plan.you b { color: var(--faint); }
.pw-thanks { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--brand-50); color: var(--brand-800); font-weight: 600; }
.pw-thanks .ic { flex: none; margin-top: 3px; }
@media (prefers-reduced-motion: reduce) { .pg.lock { transition: none; } }
@media (max-width: 560px) { .pw-costs { grid-template-columns: minmax(0, 1fr); } .pw-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pg-row .pg:nth-child(4) { display: none; } }
/* on a phone each cost is one short row: its icon beside its words */
@media (max-width: 560px) { .pw-cost { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px; padding: 10px 12px; } .pw-cost .ic { grid-row: 1 / span 2; margin-top: 3px; } }
/* (end of the free account's pager) */
.modal .sale-hero { width: 100%; }
.plans-panel .sale-hero { margin-top: 14px; }
/* the day's limit reached (sale.js limitWall): in place of the results — what was used, when it comes back, the sale,
   the plans. No way around it. */
.limit-wall { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 36px 20px 32px; }
.limit-wall .lw-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--amber-100); color: var(--amber-600); }
.limit-wall > b { color: var(--ink); font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.3; }
.limit-wall .lw-sub { color: var(--muted); max-width: 560px; line-height: 1.6; }
.limit-wall .sale-hero { width: 100%; max-width: 760px; margin-top: 8px; }
.limit-wall .mini-plans { margin-top: 14px; }
.limit-wall .lw-all { margin-top: 10px; }
.mini-plan.sale { border-color: #09090b; }
.mini-plan.sale .mp-price b { color: #09090b; }
.mini-plan .mp-tag.sale { background: #09090b; color: #ffd60a; }
@media (max-width: 1240px) { .sale-band { grid-template-columns: minmax(0, 1fr) auto; } .sale-band .sb-prices { grid-column: 1 / -1; grid-row: 2; } .sale-band .sb-prices > a { flex: 1 1 0; } }
@media (max-width: 720px) { .sale-band { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px 16px 18px; padding-inline-start: 22px; } .sale-band .sb-prices { grid-row: auto; }
  .sb-prices > a { flex: 1 1 0; min-width: 0; padding: 9px 9px 8px; } .sb-prices b { font-size: 1.3rem; } .sb-prices em { padding-inline-end: 0; } .sb-off { top: auto; bottom: 9px; }
  .sb-count { align-items: stretch; } .sb-count-label { justify-content: center; } .sb-segs { display: grid; grid-template-columns: repeat(4, 1fr); } .sb-seg { min-width: 0; }
  .sale-hero .sb-count { align-self: stretch; } .limit-wall { padding: 26px 12px 22px; } }

/* ---------- account */
.account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.form.narrow { max-width: 460px; }
.field .label { font-size: .93rem; font-weight: 600; color: var(--ink); }
.cur-email { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.devices { display: flex; flex-direction: column; gap: 10px; }
.device { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.device.current { border-color: var(--brand-100); background: var(--brand-50); }
.device-ic { width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); flex: none; }
.device-text { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.device-text b { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; color: var(--ink); }
.device-text .muted { font-size: .86rem; overflow-wrap: anywhere; }
.panel.danger { grid-column: 1 / -1; border-color: #fecaca; }
.panel.danger h2 { color: var(--red-700); }

/* ---------- smaller screens */
@media (hover: none) {
  .snap-img .zoom, .cat-edit { opacity: 1; }
}
@media (max-width: 1240px) {
  .fg, .fg.w3 { grid-column: span 4; }
  .fg.w5 { grid-column: span 8; }
  .stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .usage-pill span { display: none; }
  .app-bar { gap: 12px; }
  .app-nav { gap: 2px; margin-inline-start: 4px; }
  .app-nav a { padding: 6px 10px; }
  .post.fv { grid-template-columns: 180px minmax(0, 1fr) 170px; }
}
/* 961-1320 px (small laptops, tablets on their side): six menu items, the searches pill, the plan and the language
   did not fit and the page scrolled sideways (2026-10-18). The three coloured searches keep their names; Saved, Billing
   and Account become icons (their name in the tooltip); the language button keeps its globe; the plan badge waits
   (Billing is one click away). */
@media (min-width: 961px) and (max-width: 1320px) {
  .app-nav a.nav-plain { padding: 6px 9px; }
  .app-nav a.nav-plain > span { display: none; }
  .app-bar .bar-btn span, .app-bar .plan-badge { display: none; }
  .app-bar .lang-btn { padding-inline: 8px; }
  .app-nav a { gap: 6px; }
}
@media (max-width: 960px) {
  .app-nav { display: none; }
  .app-bar { padding-inline: 14px; gap: 10px; min-height: 58px; }
  .app-main { padding: 16px 14px 104px; }
  .app-tabs { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: var(--z-header); display: flex; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .app-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; padding: 6px 4px; color: var(--faint); font-size: .74rem; font-weight: 600; }
  .app-tabs a:hover { text-decoration: none; }
  .app-tabs a.on { color: var(--brand-700); }
  #toasts { inset-block-end: 76px; inset-inline: 14px; align-items: center; }
  .bar-btn span { display: none; }
  .bar-btn, .icon-btn { width: 44px; height: 44px; justify-content: center; }
  .actions .icon-btn { width: 40px; height: 40px; }
  .icon-btn.sm { width: 40px; height: 40px; }
  .store-win, .pair, .account { grid-template-columns: minmax(0, 1fr); }
  .meters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-win .shot { max-height: 62vh; overflow-y: auto; overscroll-behavior: contain; }
  /* the filters fold behind their button */
  .page-top { align-items: center; }
  .page-top .filters-btn { display: inline-flex; }
  .lib-filters { display: none; padding: 14px; }
  .lib-filters.open { display: block; }
  .fg, .fg.w3 { grid-column: span 6; }
  .fg.w5, .fg.w6, .fg.w12 { grid-column: 1 / -1; }
  .lf-btns .btn { flex: 1; }
  .apply-hint { flex-basis: 100%; justify-content: center; margin: 0; }
  .ftag > button { width: 36px; height: 36px; }
  .post.fv { grid-template-columns: 150px minmax(0, 1fr); }
  .fv-store { grid-column: 1 / -1; }
  .fv-store .snap.tall .snap-img { height: 180px; }
  /* the categories become a row of chips above the ads */
  .saved-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cats { position: static; max-height: none; flex-direction: row; align-items: center; overflow-x: auto; overflow-y: hidden; padding: 6px; gap: 6px; scrollbar-width: thin; }
  .cats-head { display: none; }
  .cats-list { flex-direction: row; gap: 6px; }
  .cat-item { flex: none; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
  .cat-item.on { border-color: var(--brand-600); background: var(--brand-50); }
  .cat-go { min-height: 42px; padding: 4px 14px; border-radius: 999px; }
  .cat-go .cat-name { max-width: 170px; }
  .cat-edit { display: none; }
  .cat-item.on .cat-edit { display: inline-grid; opacity: 1; margin-inline-end: 2px; }
  .cats-add { flex: none; margin: 0; border-radius: 999px; }
  .cats-full { flex: none; white-space: nowrap; }
  .cats .skel-line { width: 110px; height: 40px; margin: 0; border-radius: 999px; }
}
@media (max-width: 640px) {
  .page-top h1 { font-size: 1.3rem; }
  .fg, .fg.w3, .fg.w5 { grid-column: 1 / -1; }
  .lib-bar { align-items: stretch; }
  .vtabs { width: 100%; margin-inline-start: 0; }
  .vtab { flex: 1; justify-content: center; min-height: 42px; }
  .vtab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .posts.store { grid-template-columns: minmax(0, 1fr); }
  .posts.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sv-top { grid-template-columns: minmax(0, 1fr) 118px; }
  .snap-img { height: 160px; }
  .tv-cap { padding: 32px 9px 9px; }
  .tv-title { font-size: .82rem; }
  .tv-side { display: none; }
  .tv-foot { padding-inline: 8px 2px; gap: 4px; }
  .smini-th { width: 30px; height: 40px; }
  .tv .more-bar { padding-inline: 9px; gap: 6px; }
  .tv .more-bar .more-lb, .tv .more-bar .go .ic { display: none; }
  .tv .note-strip { margin: 8px 8px 0; padding: 8px; }
  .tv .ns-date { display: none; }
  .post.fv { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .post.fv > .more-bar { margin: 0 -12px -12px; width: calc(100% + 24px); }
  .fv-foot .hl { flex-basis: 100%; }
  .saved-tools .q-box { flex-basis: 100%; }
  .saved-tools .select { flex: 1; }
  .saved-tools .vtabs { width: 100%; }
  .scrim { padding: 0; align-items: stretch; }
  .modal.lg, .modal.xl { max-width: none; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; }
  .modal.nested.lg, .modal.nested.xl { height: calc(100vh - 28px); height: calc(100dvh - 28px); margin-top: auto; border-radius: 16px 16px 0 0; }
  .modal-back { max-width: 40%; }
  .modal.sm, .modal.md { margin: auto 14px; height: auto; align-self: center; }
  .modal-body { padding: 14px; }
  .cat-name { max-width: 150px; }
  .modal-foot:has(.danger-text) .grow { display: none; }
  .modal-foot:has(.danger-text) .btn { flex: 1; }
  .modal-foot .danger-text { order: 3; flex-basis: 100%; }
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facet-label { width: auto; flex-basis: 100%; }
  .meters { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 16px; }
  .panel.current { flex-direction: column; align-items: stretch; }
  .device { flex-wrap: wrap; }
  .app-bar { gap: 6px; padding-inline: 12px; }
  .app-end { gap: 4px; }
  .app .logo { font-size: 1.2rem; gap: 7px; }
  .app .logo-mark { width: 30px; height: 30px; }
  .plan-badge { display: none; }
  .usage-pill { padding-inline: 10px; }
  .usage-pill .ic { display: none; }
  .up-btn { padding-inline: 10px; min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .ms.open .ms-dd, .ms-caret, .snap-img, .med > img { animation: none; transition: none; }
}

/* ---------- the ad status: one field like the others; bars like a phone's signal say how fresh (status.js) */
.st .ms-dd { min-width: 300px; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; flex: none; position: relative; }
.bars i { width: 4px; border-radius: 1.5px; background: #e2e8f0; }
.bars i:nth-child(1) { height: 6px; }
.bars i:nth-child(2) { height: 11px; }
.bars i:nth-child(3) { height: 16px; }
.bars.l24 i, .bars.l48 i:nth-child(-n+2) { background: var(--brand-500); }
.bars.l24 i:nth-child(3) { animation: bar-blink 1.6s infinite; }
.bars.lall i { background: #94a3b8; }
.bars.loff i { background: #cbd5e1; }
.bars.loff::after { content: ''; position: absolute; inset-inline-start: -2px; top: 7px; width: 20px; height: 2px; border-radius: 2px; background: #94a3b8; transform: rotate(-35deg); }
@keyframes bar-blink { 50% { opacity: .35; } }
.st-btn .ms-txt { font-weight: 600; color: var(--ink); }
.st-opt { min-height: 52px; }
.ms-opt .bars { overflow: visible; }
.ms-opt .st-tx { display: flex; flex-direction: column; flex: 1; line-height: 1.3; white-space: normal; }
.st-tx b { font-weight: 600; font-size: .92rem; color: var(--ink); }
.st-tx small { font-size: .78rem; color: var(--faint); font-weight: 400; }
.st-ok { color: var(--brand-700); visibility: hidden; flex: none; }
.st-opt.on .st-ok { visibility: visible; }
.live-dot.off { background: #94a3b8; animation: none; box-shadow: none; }

/* ---------- the ad start date: one field that opens quick ranges and a month calendar */
.dr-btn .dr-ic { color: var(--brand-700); flex: none; }
.dr .ms-dd.dr-dd { min-width: 0; width: min(560px, calc(100vw - 32px)); padding: 0; overflow: hidden; }
.dr.open .ms-dd.dr-dd { display: grid; grid-template-columns: 168px minmax(0, 1fr); }
.dr-presets { display: grid; align-content: start; gap: 2px; padding: 10px; background: var(--bg-soft); border-inline-end: 1px solid var(--line); }
.dr-preset { text-align: start; padding: 9px 11px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: .9rem; color: var(--text); cursor: pointer; transition: background .15s; }
.dr-preset:hover { background: #fff; }
.dr-preset.on { background: var(--brand-50); color: var(--brand-800); font-weight: 700; }
.dr-cal { padding: 12px 14px 14px; }
.dr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dr-title { font-weight: 700; color: var(--ink); }
.dr-nav { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.dr-nav:hover:not(:disabled) { border-color: var(--line-strong); color: var(--ink); }
.dr-nav:disabled { opacity: .35; cursor: default; }
.dr-week, .dr-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px 0; }
.dr-week span { text-align: center; font-size: .76rem; font-weight: 600; color: var(--faint); padding: 4px 0; }
.dr-day { height: 38px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: .9rem; color: var(--text); cursor: pointer; direction: ltr; transition: background .12s; }
.dr-day:not(:disabled):not(.on):not(.in):hover { background: var(--bg-tint); }
.dr-day.in:hover { background: var(--brand-100); }
.dr-day.in { background: var(--brand-50); color: var(--brand-800); border-radius: 0; }
.dr-day.on { background: var(--brand-700); color: #fff; font-weight: 700; }
.dr-day.today:not(.on) { box-shadow: inset 0 0 0 1.5px var(--brand-400); }
.dr-day:disabled { color: #cbd5e1; cursor: default; }
.dr-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.dr-note { margin: 0; flex: 1; font-size: .84rem; color: var(--muted); }
@media (max-width: 760px) {
  .dr.open .ms-dd.dr-dd { grid-template-columns: minmax(0, 1fr); }
  .dr-presets { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .dr-preset { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .bars.l24 i:nth-child(3) { animation: none; } }

/* ---------- the start date as two fields (daterange.js) */
.dr-two { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dr-two .dr-btn { flex: 1; min-width: 0; padding-inline: 10px; }
.dr-sep { color: var(--faint); flex: none; }
.ms.dr.open .ms-btn { box-shadow: none; border-color: var(--line-strong); }
.ms.dr.open .dr-btn.picking { border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); }
.dr-btn.set .ms-txt { color: var(--ink); font-weight: 600; }

/* ---------- saved filters (filtersave.js) and the report dialog (report.js) */
.sf-box { display: flex; gap: 8px; align-items: center; margin-inline-start: auto; flex-wrap: wrap; }
.sf .sf-btn { gap: 6px; }
.ms.sf .ms-dd.sf-dd { min-width: 260px; inset-inline: auto 0; }
.sf-list { padding: 4px; max-height: 300px; }
.sf-row { display: flex; align-items: center; gap: 4px; }
.sf-row .ms-opt { flex: 1; }
.rep-ad .mono { margin-inline: 8px; }
.sf-empty { margin: 0; padding: 12px 10px; color: var(--faint); font-size: .9rem; }
/* under the results: two quiet pills in the middle (feedback, and how to report an ad) */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 10px 12px; margin: 36px auto 16px; }
.foot-links .fb-link { margin: 0; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: .92rem; }
.foot-links .fb-link .ic { color: var(--brand-600); flex: none; }
.foot-links .rep-link b { font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 4px; }
.foot-links .rep-link b .ic { width: 15px; height: 15px; color: var(--text); }
/* under the text field, only when two words or more are typed: one word finds more */
.q-wrap { display: flex; flex-direction: column; gap: 6px; }
.q-hint { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .84rem; color: var(--amber-700, #b45309); }
.q-hint[hidden] { display: none; }
.q-hint .ic { width: 15px; height: 15px; flex: none; }
/* the notice before an English or a long search: the same words in Arabic and in English (owner, 2026-10-20) */
.q-notes { display: flex; flex-direction: column; gap: 12px; }
.q-lang { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--amber-100, #fef3c7); color: var(--amber-900, #78350f); }
.q-lang + .q-lang { background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); }
.q-note b { display: flex; align-items: center; gap: 7px; font-size: .95rem; }
.q-note b .ic { width: 16px; height: 16px; flex: none; }
.q-note p { margin: 4px 0 0; font-size: .9rem; line-height: 1.6; }
.q-off { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); cursor: pointer; min-height: 36px; }
.q-off input { width: 18px; height: 18px; accent-color: var(--brand-700); }
@media (max-width: 760px) { .foot-links { flex-direction: column; align-items: stretch; } .foot-links .fb-link { border-radius: 14px; text-align: center; } }
.rep-body { display: grid; gap: 12px; }
.rep-lead { margin: 0; }
.rep-ad { margin: 0; font-size: .92rem; }
.rep-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rep-opt { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-size: .92rem; }
.rep-opt:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); }
.rep-opt input { margin: 0; accent-color: var(--brand-600); }
.icon-btn.rep-btn:hover { color: var(--red-700); }
@media (max-width: 760px) { .sf-box { margin-inline-start: 0; width: 100%; } .ms.sf .ms-dd.sf-dd { inset-inline: 0 auto; min-width: min(260px, calc(100vw - 48px)); } .rep-opts { grid-template-columns: minmax(0, 1fr); } }

/* the checkout's line for a limited-time offer (billing.js) */
.co-offer { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: #fff7ed; border: 1px solid #fed7aa;
  color: #9a3412; font-size: .9rem; font-weight: 600; }
.co-offer .ic { color: #ea580c; flex: none; }

/* ---------- feedback (feedback.js): a card in the corner, never over the page's own controls; a link under results */
.fb-card { position: fixed; z-index: 70; inset-block-end: 20px; inset-inline-end: 20px; width: min(380px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-3); opacity: 0; transform: translateY(12px); transition: opacity .25s ease-out, transform .25s ease-out; }
.fb-card.in { opacity: 1; transform: none; }
.fb-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 0 16px; }
.fb-head h2 { margin: 0; flex: 1; font-size: 1rem; color: var(--ink); }
.fb-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); flex: none; }
.fb-x { margin-inline-start: auto; }
.fb-body { padding: 8px 16px 16px; }
.fb-lead { margin: 0 0 12px; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.fb-q { margin: 0 0 6px; font-weight: 700; font-size: .9rem; color: var(--ink); }
.fb-stars { display: flex; gap: 4px; }
.fb-star { width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: #cbd5e1; display: grid; place-items: center; cursor: pointer; transition: color .12s, background-color .12s; }
.fb-star .ic { width: 26px; height: 26px; }
.fb-star:hover { background: var(--bg-tint); }
.fb-star.on { color: #f59e0b; }
.fb-star.on .ic { fill: currentColor; }
.fb-say { min-height: 1.4em; margin: 2px 0 8px; font-size: .84rem; color: var(--faint); }
.fb-text { min-height: 76px; resize: vertical; font-size: .93rem; }
.fb-foot { display: flex; gap: 8px; margin-top: 12px; }
.fb-done { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 14px 0 6px; }
.fb-done p { margin: 0; color: var(--muted); font-size: .92rem; }
.fb-ok { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); }
.fb-link { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 28px 0 8px; color: var(--faint); font-size: .9rem; }
.fb-link .btn-link { font-weight: 700; }
@media (max-width: 960px) { .fb-card { inset-block-end: 84px; inset-inline-end: 16px; } }
@media (prefers-reduced-motion: reduce) { .fb-card { transition: none; } }

/* ---------- countries: any of them or all of them (match.js), at the bottom of the countries dropdown */
.ms-match { padding: 10px 12px 12px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.mm-q { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.mm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 10px; background: #fff; border: 1px solid var(--line-strong); }
.mm-opt { min-height: 38px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background-color .15s, color .15s; }
.mm-opt:hover { background: var(--bg-tint); color: var(--ink); }
.mm-opt[aria-checked="true"] { background: var(--brand-700); color: #fff; }
.mm-say { margin: 8px 2px 0; font-size: .84rem; line-height: 1.6; color: var(--brand-800); }
.ftag-join { font-size: .8rem; font-weight: 700; color: var(--faint); }
/* the filter grid without the platforms: countries, website type, ad type · four small · start date and text */

/* ---------- "+N more ads from this advertiser" on top of the card (cards.js); a busy advertiser (more than 20 ads)
   in warm colours, with a flickering flame and a light passing over it */
.more-bar { margin-top: 0; border-top: 0; border-bottom: 1px solid var(--brand-100); background: var(--brand-50); color: var(--brand-900); animation: gx-in .35s ease-out both; }
.more-bar:hover { background: var(--brand-100); color: var(--brand-900); }
.more-bar .more-ic { color: var(--brand-700); flex: none; }
.more-bar.hot { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(90deg, #fff7ed, #ffedd5); color: #9a3412; border-bottom-color: #fed7aa; }
.more-bar.hot:hover { background: linear-gradient(90deg, #ffedd5, #fed7aa); }
.more-bar.hot .more-ic { color: #ea580c; transform-origin: 50% 85%; animation: gx-flame 1.3s ease-in-out infinite; }
.more-bar.hot .more-n { padding: 1px 9px; border-radius: 999px; background: linear-gradient(90deg, #ea580c, #f59e0b); color: #fff; }
.more-bar.hot .go { color: #c2410c; }
.more-bar.hot::after { content: ''; position: absolute; z-index: -1; inset-block: 0; left: 0; width: 30%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); transform: translateX(-120%) skewX(-20deg); animation: gx-shine 4s ease-in-out infinite; }
.post.fv > .more-bar { margin: -14px -14px 0; }
@keyframes gx-flame { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.18) rotate(4deg); } }
@keyframes gx-shine { 0% { transform: translateX(-120%) skewX(-20deg); } 45%, 100% { transform: translateX(380%) skewX(-20deg); } }
@keyframes gx-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .post.fv > .more-bar { margin: -12px -12px 0; } }
@media (prefers-reduced-motion: reduce) { .more-bar, .more-bar.hot .more-ic, .more-bar.hot::after { animation: none; } .more-bar.hot::after { display: none; } }
.more-bar.one { cursor: default; background: var(--bg-soft); color: var(--faint); border-bottom-color: var(--line); }
.more-bar.one:hover { background: var(--bg-soft); color: var(--faint); }
.more-bar.one .more-ic { color: var(--faint); }
/* the website type list shows more of its platforms at once (the owner's request, 2026-10-12) */
.ms.single .ms-list { max-height: min(600px, 70vh); }
/* a page that ended on its time budget (partial results) */
.cap-note.part-note { background: var(--amber-100); color: var(--amber-900); border: 1px solid #fde68a; }
.cap-note.part-note .ic { color: var(--amber-600); }

/* ---------- the cookie notice (public/js/visits.js): a small card in the bottom corner, easy to close, two choices */
.ck-note { position: fixed; inset-inline-start: 16px; inset-block-end: calc(16px + var(--ck-lift, 0px)); z-index: 65; width: min(360px, calc(100vw - 32px)); padding: 14px 16px; background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 23, 42, .16); font-size: .9rem; line-height: 1.5; color: var(--text, #0f172a); }
.ck-note p { margin: 0 0 10px; padding-inline-end: 26px; }
.ck-note a { color: var(--brand-700, #047857); font-weight: 700; }
.ck-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ck-btns button { min-height: 38px; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--line, #e5e7eb); background: #fff; color: inherit; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.ck-btns button:hover { background: var(--bg-soft, #f1f5f9); }
.ck-btns .ck-yes { background: var(--brand-600, #059669); border-color: var(--brand-600, #059669); color: #fff; }
.ck-btns .ck-yes:hover { background: var(--brand-700, #047857); }
.ck-x { position: absolute; inset-inline-end: 8px; inset-block-start: 8px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted, #475569); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px; }
.ck-x:hover { background: var(--bg-soft, #f1f5f9); color: var(--text, #0f172a); }
@media (max-width: 760px) { .ck-note { inset-inline: 12px; width: auto; inset-block-end: calc(12px + var(--ck-lift, 0px)); } }
@media (prefers-reduced-motion: no-preference) { .ck-note { animation: ck-in .25s ease-out; } @keyframes ck-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } }
/* in the app on a phone the card sits above the bottom tabs */
@media (max-width: 760px) { .ck-note { --ck-lift: 66px; } }

/* ---------- landing pages (landing.js): the store pages the ads lead to, each a tall card of the page's top.
   The thumbnail is the top of the page (360 px wide, up to 1,100 px tall): the card shows a 3:5 window of it, a
   little taller than the admin panel's 4:5, and slides down to its end under the pointer. */
.page-top .page-lead { order: 3; flex-basis: 100%; margin: 0; color: var(--muted); font-size: .95rem; }
/* 25 cards a page (src/landing.js LANDING_SIZE): five a line, so every row is full and the last one never looks like the
   end of the results (the owner, 2026-10-18: not six, they get small). The width of the results box decides (a container
   query: the page, the domain window and the saved pages alike); narrow boxes fall back to fewer columns. */
.lp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: start; }
/* a card stays about 220 px wide or more, so its facts and buttons are never cut (1100 px screens cut them, 2026-10-18) */
@container (max-width: 1189px) { .lp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@container (max-width: 899px) { .lp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@container (max-width: 639px) { .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.skel-lp { aspect-ratio: 3 / 6; border-radius: 16px; }
.lp-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s; }
.lp-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
/* the picture in a frame of its own, clear of the text and the buttons (the owner, 2026-10-18: two different clicks) */
.lp-frame { padding: 10px 10px 0; }
.lp-shot { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4.6; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-tint);
  overflow: hidden; cursor: pointer; color: var(--faint); font: inherit; transition: border-color .2s, box-shadow .2s; }
.lp-shot:hover { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-50); }
.lp-shot > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 3.2s ease-in-out; }
.lp-shot:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; }
.lp-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: .84rem; }
.lp-badges { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; display: flex; gap: 5px; flex-wrap: wrap; }
.lp-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(11, 18, 32, .74); color: #fff;
  font-size: .74rem; font-weight: 600; line-height: 1.3; }
.lp-badge .ic { width: 13px; height: 13px; }
.lp-zoom { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; width: 32px; height: 32px; border-radius: 9px; background: rgba(11, 18, 32, .72); color: #fff;
  display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.lp-shot:hover .lp-zoom, .lp-shot:focus-visible .lp-zoom { opacity: 1; }
/* the facts: the domain and its title, four cells in a quiet box (ads, platform, capture, countries and pixels), two buttons */
.lp-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 10px; min-width: 0; }
.lp-head { display: flex; align-items: center; gap: 0; min-width: 0; margin-inline-end: -8px; }
.lp-host { flex: 1; min-width: 0; font-weight: 700; color: var(--ink); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[dir="rtl"] .lp-host { text-align: right; }
.lp-head .icon-btn.sm { width: 32px; height: 32px; }
.lp-title { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-soft); }
.lp-fact { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.lp-fact > .ic { width: 14px; height: 14px; flex: none; color: var(--faint); }
.lp-fact > .bico { width: 14px; height: 14px; flex: none; }
.lp-fact .lb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-count .lb { font-weight: 700; color: var(--text); }
.lp-count.on .lb { color: var(--brand-800); }
.lp-marks { gap: 8px; }
.lp-marks .flags { display: inline-flex; gap: 2px; flex: none; }
.lp-px { display: inline-flex; gap: 4px; align-items: center; }
.lp-acts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: #fff; }
.lp-acts .btn { min-height: 38px; min-width: 0; padding-inline: 8px; gap: 6px; }
.lp-acts .btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-acts .btn .ic { flex: none; }
.lp-open { background: var(--brand-50); color: var(--brand-800); border-color: var(--brand-100); }
.lp-open:hover { background: var(--brand-100); border-color: var(--brand-500); color: var(--brand-900); }
.btn.save.on { color: var(--brand-800); border-color: var(--brand-100); background: var(--brand-50); }
.btn.save.on .ic { fill: currentColor; }
.lp-head .icon-btn.flag:hover { color: var(--red-700, #b91c1c); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lp-shot:hover > img { object-position: bottom; }
}
@media (hover: none) { .lp-zoom { opacity: 1; } }
@media (max-width: 640px) {
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lp-frame { padding: 7px 7px 0; }
  .lp-shot { border-radius: 10px; }
  .lp-body { padding: 8px 9px 8px; gap: 6px; }
  .lp-host { font-size: .86rem; }
  .lp-title { font-size: .78rem; }
  .lp-facts { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 6px 8px; }
  .lp-acts { padding: 8px 9px 9px; gap: 6px; }
  .lp-acts .btn { font-size: .86rem; padding-inline: 6px; min-height: 36px; }
  .lp-acts .btn .ic { display: none; }
  .page-top .page-lead { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) { .lp-shot > img { transition: none; } }
/* five tabs on a phone: a long name ("صفحات الهبوط") folds onto two short lines, centred */
@media (max-width: 960px) { .app-tabs a span { text-align: center; line-height: 1.15; } }
/* the domain field of the landing filters: empty (its example) it reads from the right in Arabic, clear of the "paid" tag */
html[dir="rtl"] .lp-domain:placeholder-shown { text-align: right; }

/* ---------- an account not confirmed yet (verify.js): the line under the top bar, the dialog */
.verify-banner { display: flex; align-items: center; justify-content: center; gap: 8px 12px; flex-wrap: wrap; padding: 8px 16px; background: var(--brand-50); color: var(--brand-900);
  font-size: .9rem; border-bottom: 1px solid var(--brand-100); text-align: center; }
.verify-banner .ic { color: var(--brand-700); flex: none; }
.verify-banner .verify-left { color: var(--muted); }
.verify-banner .btn { min-height: 34px; }
.verify-dlg { display: flex; flex-direction: column; gap: 10px; }
.verify-dlg p { margin: 0; }
.verify-dlg .strong { font-weight: 600; color: var(--ink); }
.verify-dev { font-size: .8rem; overflow-wrap: anywhere; padding: 8px 10px; border-radius: 8px; background: var(--amber-100); color: var(--amber-900); }
.verify-change { display: flex; gap: 8px; flex-wrap: wrap; }
.verify-change .input { flex: 1; min-width: 200px; }
@media (max-width: 640px) { .verify-change .btn { width: 100%; } .verify-banner { font-size: .84rem; } }
/* one card per domain: the strip on top (the library's "more ads" strip) */
.lp-card > .more-bar { border-radius: 0; }
.lp-card > .more-bar.one { background: var(--bg-soft); color: var(--faint); border-bottom-color: var(--line); animation: none; cursor: default; }
.lp-card > .more-bar.one .more-ic { color: var(--faint); }
/* (the domain window's grid follows the same container steps as the page: .modal-body is a container too) */
/* saved pages (2026-10-17): the Ads | Landing pages switch on the Saved screen, the note strip under a landing card */
.saved-kinds { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--line); }
.saved-kinds .tog { min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; }
.saved-kinds .tog.on { background: #fff; color: var(--brand-800); box-shadow: var(--shadow-1); }
.lp-card > .note-strip { border-top: 1px solid var(--line); }
/* the two searches in the menu: a coloured badge around the icon (the owner, 2026-10-17: users must notice them) */
.nav-ic { width: 28px; height: 28px; border-radius: 9px; display: inline-grid; place-items: center; color: #fff; flex: none; box-shadow: 0 2px 6px rgba(11, 18, 32, .18); }
.nav-ic.fire { background: linear-gradient(135deg, #f97316, #e11d48); }
.nav-ic.sky { background: linear-gradient(135deg, #0ea5e9, #7c3aed); }
.app-nav a .nav-ic .ic, .app-tabs a .nav-ic .ic { width: 16px; height: 16px; color: #fff; }
.app-nav a.on .nav-ic { box-shadow: 0 0 0 3px rgba(16, 185, 129, .25); }
/* the store page window: pixels summed up and scrolled, pictures and videos with their downloads, the ads' window */
.px-sum { margin-bottom: 8px; }
.px-sum .chip { text-transform: capitalize; }
.px-sum .chip b.num { color: var(--muted); font-weight: 600; }
.pixels.scroll { max-height: 180px; overflow: auto; padding-inline-end: 4px; }
.box h3 .btn { margin-inline-start: auto; }
.gallery figure { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--bg-tint); border: 1px solid var(--line); }
.gallery figure a, .gallery figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery .dl, .vid .dl { position: absolute; inset-block-end: 4px; inset-inline-end: 4px; width: 28px; height: 28px; border-radius: 7px; background: rgba(11, 18, 32, .72); color: #fff; }
.gallery .dl:hover, .vid .dl:hover { background: var(--brand-700); color: #fff; }
.gallery .dl .ic, .vid .dl .ic { width: 14px; height: 14px; }
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.vid { position: relative; border-radius: 8px; overflow: hidden; background: #000; }
.vid video { display: block; width: 100%; max-height: 260px; background: #000; }
.store-all { margin-top: 10px; }
/* the ads pointing to a store page: the facts line, and a creative run as many ads */
.page-facts { margin: -4px 0 10px; font-size: .84rem; }
.copies-note { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg-soft); }
.copies-note .ic { color: var(--brand-700); flex: none; }
/* the page window: its own Save / Report buttons; the strip over it (the platform, the ads, the countries, the capture,
   the domain's other pages); the switch beside Apply (one card per domain / every page) */
.store-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.store-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.store-head .lp-fact { font-size: .9rem; }
.store-head .chip { font-size: .9rem; padding: 4px 11px; }
.store-head .chip .bico, .store-head .chip .ic { width: 16px; height: 16px; }
.store-more { margin-inline-start: auto; }
.store-only { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: .86rem; }
.lf-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-inline-end: auto; padding: 4px 8px; border: 0; border-radius: 10px; background: transparent;
  color: inherit; font: inherit; text-align: start; cursor: pointer; min-width: 0; }
.lf-switch:hover { background: var(--bg-soft); }
.lf-switch:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; }
.sw-track { position: relative; width: 44px; height: 26px; flex: none; border-radius: 999px; background: #cbd5e1; transition: background-color .2s; }
.sw-track::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11, 18, 32, .3);
  transition: transform .2s; }
.lf-switch[aria-checked="true"] .sw-track { background: var(--brand-600); }
.lf-switch[aria-checked="true"] .sw-track::after { transform: translateX(18px); }
html[dir="rtl"] .lf-switch[aria-checked="true"] .sw-track::after { transform: translateX(-18px); }
.sw-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sw-lb { font-weight: 700; font-size: .9rem; color: var(--ink); }
.sw-sub { font-size: .8rem; color: var(--muted); }
.lf-switch.changed .sw-lb { color: var(--brand-800); }
@media (max-width: 640px) { .lf-switch { width: 100%; } .store-more, .store-only { margin-inline-start: 0; width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .sw-track, .sw-track::after { transition: none; } }

/* ---------- domains library (2026-10-18): a table of store domains, a card per row on the phone; its own badge in the menu */
.nav-ic.grape { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.nav-ic.rose { background: linear-gradient(135deg, #f43f5e, #be123c); }
/* the advertisers (2026-10-20): one card per Facebook page — who it is, four facts, its ads per country as small bars,
   where its ads lead, the media mix; the whole card opens its window */
.av-list { display: flex; flex-direction: column; gap: 12px; }
.skel-av { height: 150px; border-radius: 16px; }
.av-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "who facts" "countries countries" "foot foot"; gap: 10px 18px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.av-row:hover, .av-row:focus-visible { border-color: var(--line-strong); box-shadow: var(--shadow-2); outline: none; }
.av-who { grid-area: who; display: flex; align-items: center; gap: 12px; min-width: 0; }
/* the page's picture: big, in a frame (a white logo on the white card was invisible, the owner 2026-10-20) */
.app .avatar.av-pic { width: 76px; height: 76px; border-radius: 18px; flex: none; object-fit: cover; background: var(--bg-soft); border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 3px var(--bg-soft), 0 2px 8px rgba(11, 18, 32, .12); }
.app .avatar.av-pic.letter { display: inline-grid; place-items: center; font-size: 1.8rem; font-weight: 800; }
.pg-top .avatar.xl { border: 1px solid var(--line-strong); box-shadow: 0 0 0 3px var(--bg-soft); background: var(--bg-soft); }
.av-names { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.av-name { font-size: 1.05rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: .84rem; }
.av-likes { display: inline-flex; align-items: center; gap: 4px; color: var(--amber-900, #78350f); }
.av-likes .ic { width: 14px; height: 14px; color: var(--amber-700, #b45309); }
.av-facts { grid-area: facts; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-content: center; }
.av-fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--bg-soft); color: var(--muted); font-size: .78rem; line-height: 1.3; }
.av-fact b { font-size: .98rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-fact .ic { width: 14px; height: 14px; color: var(--faint); }
.av-fact .live-dot { width: 8px; height: 8px; }
.av-fact.on { background: var(--brand-50); color: var(--brand-800); }
.av-fact.on b { color: var(--brand-800); }
.av-fact .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-countries { grid-area: countries; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.av-cc { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 8px 10px; border-radius: 9px; background: var(--bg-soft); font-size: .84rem; font-weight: 600; color: var(--text); overflow: hidden; }
.av-cc.dim { color: var(--faint); font-weight: 500; }
.av-cc .flag { width: 18px; height: 13px; border-radius: 2px; flex: none; }
.av-bar { position: absolute; inset-inline-start: 0; inset-block-end: 0; height: 4px; width: var(--w, 0%); background: linear-gradient(90deg, var(--brand-500), var(--brand-700)); border-radius: 0 3px 3px 0; }
.av-cc.dim .av-bar { display: none; }
.av-foot { grid-area: foot; display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.av-hosts { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.av-host { max-width: 260px; } .av-host span { overflow: hidden; text-overflow: ellipsis; }
.av-host .bico { width: 14px; height: 14px; }
.av-mix { display: inline-flex; gap: 10px; color: var(--muted); font-size: .84rem; }
.av-m { display: inline-flex; align-items: center; gap: 4px; } .av-m .ic { width: 14px; height: 14px; color: var(--faint); }
.av-acts { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 960px) {
  .av-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "who" "facts" "countries" "foot"; gap: 10px; padding: 12px; }
  .av-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .av-countries { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .av-cc { font-size: .8rem; }
  .av-acts { width: 100%; margin-inline-start: 0; } .av-acts .av-open { flex: 1; justify-content: center; }
}
.dm-note { color: var(--faint); font-weight: 400; }
.dm-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); overflow: auto; }
.skel-dm { height: 64px; border-radius: 12px; margin: 10px; }
.dm-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.dm-table th { position: sticky; top: 0; background: var(--bg-soft); color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; text-align: start; white-space: nowrap; border-bottom: 1px solid var(--line); z-index: 1; }
html[lang="ar"] .dm-table th { text-transform: none; letter-spacing: 0; font-size: .84rem; }
.dm-table th.dm-n, .dm-table td.dm-n { text-align: end; font-variant-numeric: tabular-nums; }
.dm-table th.on { color: var(--brand-700); }
.th-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.dm-table th { vertical-align: middle; }
.th-btn:hover { color: var(--ink); }
.dm-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.dm-row { cursor: pointer; transition: background-color .15s; }
.dm-row:hover, .dm-row:focus-visible { background: var(--brand-50, #ecfdf5); outline: none; }
.dm-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dm-mark { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; object-position: top; flex: none; border: 1px solid var(--line); background: var(--bg-soft); }
.dm-mark.icon { object-fit: contain; padding: 6px; background: #fff; }
.dm-mark.letter { display: inline-grid; place-items: center; font-weight: 800; color: var(--brand-700); background: var(--brand-50, #ecfdf5); }
.dm-names { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.dm-host { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.dm-sub { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.dm-sub .bico { width: 14px; height: 14px; }
.dm-adv { color: var(--faint); overflow: hidden; text-overflow: ellipsis; }
.dm-ads b { font-size: 1rem; color: var(--ink); }
.dm-run { white-space: nowrap; }
.dm-run .live-dot { margin-inline-end: 6px; vertical-align: middle; }
.dm-cc { padding-inline: 6px; white-space: nowrap; }
.dm-cc .dm-flag { width: 16px; height: 11px; margin-inline-end: 4px; vertical-align: -1px; opacity: .85; }
.dm-cc.dim .dm-flag { opacity: .35; }
.dm-cc-head { text-align: center !important; }
.dim { color: var(--faint); }
.dm-px .lp-px { display: inline-flex; gap: 4px; }
.dm-lock { all: unset; cursor: pointer; display: inline-flex; color: var(--amber-600); }
.dm-last { white-space: nowrap; color: var(--muted); }
.dm-act .btn { white-space: nowrap; }
/* the window */
.dm-h3 { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 1rem; }
.dm-h3 .dm-hint { font-size: .82rem; color: var(--faint); font-weight: 400; margin-inline-start: 6px; }
.dm-advs { display: flex; flex-direction: column; gap: 6px; }
.dm-adv-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, background-color .15s; }
.dm-adv-row:hover { border-color: var(--brand-500); background: #fff; }
.dm-adv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; unicode-bidi: isolate; }
.dm-adv-row .flags { display: inline-flex; gap: 3px; }
.dm-adv-row .flags .flag { width: 16px; height: 11px; }
@media (max-width: 1240px) {
  .dm-table th, .dm-table td { padding: 10px 8px; }
  .dm-cc { padding-inline: 4px; }
  .dm-host { max-width: 200px; }
  .dm-sub { max-width: 200px; }
  .dm-act .btn { padding-inline: 10px; }
  .dm-act .btn .lb { display: none; }
}
@media (max-width: 960px) {
  .dm-table thead { display: none; }
  .dm-table, .dm-table tbody, .dm-table tr, .dm-table td { display: block; }
  .dm-row { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .dm-table td { padding: 0; border: 0; }
  .dm-table td.dm-domain { grid-column: 1 / -1; margin-bottom: 4px; }
  .dm-table td[data-l]::before { content: attr(data-l); display: block; font-size: .72rem; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
  html[lang="ar"] .dm-table td[data-l]::before { text-transform: none; }
  .dm-table td.dm-n { text-align: start; }
  .dm-cc { display: inline-flex !important; align-items: baseline; gap: 2px; padding: 0 8px 0 0; }
  .dm-cc[data-l]::before { display: none; }
  .dm-table td.dm-act { grid-column: 1 / -1; }
  .dm-table td.dm-act .btn { width: 100%; justify-content: center; }
  .dm-host, .dm-sub { max-width: none; }
}
/* the paid plans under a limit message and in the upgrade window (miniPlans in core.js, owner 2026-10-20) */
.mini-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; width: 100%; max-width: 760px; margin-top: 18px; text-align: start; }
.mini-plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s; }
.mini-plan:hover { border-color: var(--brand-500); box-shadow: var(--shadow-2); text-decoration: none; }
.mini-plan.popular { border: 2px solid var(--brand-600); padding: 15px; }
.mini-plan .mp-tag { position: absolute; inset-block-start: -11px; inset-inline-end: 12px; padding: 2px 10px; border-radius: 999px; background: var(--brand-700); color: #fff; font-size: .74rem; font-weight: 700; }
.mini-plan .mp-name { font-size: 1rem; color: var(--ink); }
.mini-plan .mp-price { display: flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: .86rem; }
.mini-plan .mp-price b { font-size: 1.5rem; color: var(--ink); }
.mini-plan .mp-price s { color: var(--faint); }
.mini-plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .84rem; color: var(--muted); }
.mini-plan li { display: flex; align-items: flex-start; gap: 7px; line-height: 1.45; }
.mini-plan li .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--brand-700); }
.mini-plan .mp-go { margin-top: auto; justify-content: center; }
.modal .mini-plans { max-width: none; }
@media (max-width: 640px) { .mini-plans { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the AI helper (assistant.js, 2026-10-27) */
.nav-ic.mint { background: linear-gradient(135deg, #10b981, #0e7490); }
/* under 1400 px the top bar is full (six menu items, the searches pill, the plan, the language): the helper's button
   steps out; its menu item and the "nothing found" buttons stay (the walk measures the bar from 961 to 1366 px) */
@media (max-width: 1480px) { .app-nav a[href='/app/assistant'] > span, .app-nav a[href='/app/home'] > span { display: none; } .app-nav a[href='/app/assistant'], .app-nav a[href='/app/home'] { padding: 6px 9px; } }
.modal-foot .btn-ghost.ai-ask-btn { color: var(--brand-800); background: var(--brand-50); gap: 8px; }
.modal-foot .btn-ghost.ai-ask-btn .ic { color: var(--brand-600); }
/* the chat bubble in the corner (main.js aiFab): a ring breathes three times, then rests; above the phone's tab bar */
.ai-fab { position: fixed; inset-inline-end: 22px; inset-block-end: 22px; z-index: calc(var(--z-header) + 1); width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #10b981, #0e7490); box-shadow: 0 10px 26px rgba(14, 116, 108, .38); transition: transform .2s, box-shadow .2s; }
.ai-fab .ic { width: 28px; height: 28px; }
.ai-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14, 116, 108, .45); }
.ai-fab:focus-visible { outline: 3px solid #a7f3d0; outline-offset: 3px; }
.ai-fab::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #10b981; opacity: 0; animation: ai-ring 2.6s ease-out 3; pointer-events: none; }
.ai-fab.used::after { animation: none; }
@keyframes ai-ring { 0% { transform: scale(.92); opacity: .75; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ai-fab::after { animation: none; } .ai-fab { transition: none; } .ai-fab:hover { transform: none; } }
@media (max-width: 960px) { .ai-fab { inset-block-end: 78px; inset-inline-end: 16px; width: 54px; height: 54px; } }
/* the question box of the empty states (askhelper.js) */
.ai-askbox { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 580px; margin-top: 8px; }
.ai-ask { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px; border: 1px solid var(--brand-100); border-radius: 16px; background: #fff; box-shadow: var(--shadow-1); text-align: start; }
.ai-ask:focus-within { border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-50); }
.ai-ask-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--brand-50); color: var(--brand-700); }
.ai-ask-input.input { flex: 1; min-width: 0; border: 0; box-shadow: none; background: transparent; min-height: 40px; padding-inline: 4px; }
.ai-ask-input.input:focus { outline: none; box-shadow: none; border: 0; }
.ai-ask-go { flex: none; min-height: 42px; gap: 6px; }
@media (max-width: 640px) { .ai-ask-go span { display: none; } .ai-ask-go { width: 44px; justify-content: center; padding-inline: 0; } }
.ai-page { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.ai-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; }
.ai-side-title { font-size: .86rem; color: var(--faint); font-weight: 600; margin-top: 6px; }
.ai-new { justify-content: center; }
.ai-list { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.ai-item { display: flex; align-items: center; gap: 4px; border-radius: 10px; }
.ai-item.on { background: var(--brand-50); }
.ai-item-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; color: var(--text); text-align: start; font-size: .92rem; }
.ai-item-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-item-btn:hover { background: var(--bg-tint); }
.ai-item .ic { color: var(--faint); flex: none; }
.ai-main .page-head h1 { display: flex; align-items: center; gap: 10px; }
.ai-main .page-head h1 .ic { color: var(--brand-600); }
.ai-chat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); min-height: 560px; height: calc(100vh - 200px); height: calc(100dvh - 200px); max-height: 820px; }
.ai-chat.compact { height: auto; min-height: 420px; max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); border: 0; }
.ai-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.ai-welcome { margin: auto; max-width: 620px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 0; }
.ai-hello { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-50), #fff); color: var(--brand-700); border: 1px solid var(--brand-100); }
.ai-hello .ic { width: 28px; height: 28px; }
.ai-welcome b { font-size: 1.15rem; color: var(--ink); }
.ai-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.ai-chips .chip { cursor: pointer; padding: 8px 12px; font-size: .9rem; border: 1px solid var(--line); background: var(--bg-soft); border-radius: 999px; transition: background-color .15s, border-color .15s; }
.ai-chips .chip:hover { background: var(--brand-50); border-color: var(--brand-100); }
.ai-msg { display: flex; gap: 10px; align-items: flex-start; max-width: 100%; }
.ai-msg.user { flex-direction: row-reverse; }
.ai-who { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--bg-tint); color: var(--faint); }
.ai-msg.assistant .ai-who { background: var(--brand-50); color: var(--brand-700); }
.ai-body { min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 10px; }
.ai-msg.user .ai-body { background: var(--brand-600); color: #fff; border-radius: 16px 4px 16px 16px; padding: 10px 14px; max-width: 70%; }
[dir="ltr"] .ai-msg.user .ai-body { border-radius: 4px 16px 16px 16px; }
.ai-msg.user .ai-body p { color: #fff; margin: 0; }
.ai-msg.assistant .ai-body { flex: 1; }
.ai-msg.assistant .ai-body > p { margin: 0; line-height: 1.7; }
.ai-msg.assistant .ai-body > ul { margin: 0; padding-inline-start: 20px; line-height: 1.7; }
.ai-typing { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-size: .9rem; }
.ai-block { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 10px; }
.ai-bhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .92rem; }
.ai-bhead .ic { color: var(--brand-700); }
.ai-bhead .ai-open { margin-inline-start: auto; }
.ai-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ai-chat.compact .ai-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-rows { display: flex; flex-direction: column; gap: 6px; }
.ai-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
.ai-name { font-weight: 600; color: var(--ink); min-width: 160px; flex: 1; text-align: start; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.ai-name.link:hover, a.ai-name:hover { color: var(--brand-700); text-decoration: underline; }
.ai-cell { color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.ai-cell.on { color: var(--brand-700); }
.ai-stats { flex-direction: row; flex-wrap: wrap; gap: 16px; align-items: center; }
.ai-stat { display: flex; flex-direction: column; gap: 2px; min-width: 110px; }
.ai-stat b { font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.ai-stat span { color: var(--faint); font-size: .84rem; }
.ai-notice { flex-direction: row; align-items: flex-start; gap: 10px; background: var(--amber-100); border-color: #fde68a; }
.ai-notice .ic { color: var(--amber-900); flex: none; margin-top: 2px; }
.ai-notice p { margin: 4px 0 8px; }
.ai-foot { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.ai-compose { display: flex; gap: 10px; align-items: flex-end; }
.ai-input { flex: 1; resize: none; min-height: 46px; max-height: 160px; line-height: 1.5; }
.ai-send { flex: none; height: 46px; }
.ai-foot-line { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .82rem; }
.ai-modal { display: flex; flex-direction: column; gap: 8px; }
.ai-modal .ai-full { align-self: flex-end; }
.ai-mcp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ai-mcp code, .ai-key-val code { padding: 6px 10px; background: var(--bg-tint); border-radius: 8px; font-size: .86rem; word-break: break-all; }
.ai-keys { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.ai-key { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ai-key-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ai-key-new { margin: 10px 0; padding: 12px; border-radius: 10px; background: var(--brand-50); border: 1px solid var(--brand-100); display: flex; flex-direction: column; gap: 8px; }
.ai-key-val { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-how summary { cursor: pointer; font-weight: 600; color: var(--brand-700); margin-top: 10px; }
@media (max-width: 1100px) { .ai-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ai-page { grid-template-columns: 1fr; } .ai-side { position: static; } .ai-list { max-height: 200px; } }
@media (max-width: 640px) { .ai-tiles, .ai-chat.compact .ai-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ai-msg.user .ai-body { max-width: 88%; } .ai-chat.compact { height: calc(100dvh - 150px); } .ai-send span { display: none; } }

/* ---------- the start page after sign-in (home.js, 2026-10-28): the agent first, the live numbers, the screens, the plan */
.hm { display: grid; gap: 22px; }
.hm-hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: stretch; }
.hm-hero-main { padding: 28px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #ecfdf5, #f0fdfa 55%, #fff); border: 1px solid var(--brand-100); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hm-hi { margin: 0; color: var(--brand-700); font-weight: 600; }
.hm-hero-main h1 { margin: 0; font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.35; }
.hm-lead { margin: 0; color: var(--muted); max-width: 62ch; line-height: 1.7; }
.hm-ask { display: flex; gap: 8px; align-items: center; padding: 6px; border: 1px solid var(--brand-100); border-radius: 16px; background: #fff; box-shadow: var(--shadow-1); }
.hm-ask:focus-within { border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-50); }
.hm-ask-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--brand-50); color: var(--brand-700); }
.hm-ask-input.input { flex: 1; min-width: 0; border: 0; box-shadow: none; background: transparent; min-height: 46px; font-size: 1.02rem; padding-inline: 4px; }
.hm-ask-input.input:focus { outline: none; box-shadow: none; border: 0; }
.hm-ask-go { flex: none; min-height: 44px; gap: 6px; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-chips .chip { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: .88rem; transition: border-color .2s, background .2s; }
.hm-chips .chip:hover { border-color: var(--brand-600); background: var(--brand-50); }
.hm-chips .chip .ic { color: var(--brand-600); }
.hm-agent { padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; box-shadow: var(--shadow-1); }
.hm-avatar { position: relative; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #10b981, #0e7490); box-shadow: 0 10px 24px rgba(14, 116, 108, .3); }
.hm-avatar .ic { width: 36px; height: 36px; }
.hm-pulse { position: absolute; inset: -5px; border-radius: 26px; border: 2px solid #10b981; opacity: 0; animation: ai-ring 2.6s ease-out 3; }
.hm-can { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; width: 100%; text-align: start; }
.hm-can li { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--ink); line-height: 1.5; }
.hm-can-ic { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); }
.hm-sec { display: grid; gap: 12px; }
.hm-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hm-sec-head h2 { margin: 0; font-size: 1.15rem; }
.hm-sec-head .muted { font-size: .9rem; }
.hm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hm-tile { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-tile b { font-size: 1.45rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.hm-tile span { color: var(--muted); font-size: .84rem; }
.hm-tile.live b { color: var(--brand-700); }
.hm-charts { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.hm-card { padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hm-card h3 { margin: 0; font-size: .92rem; color: var(--muted); font-weight: 600; }
.hm-bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; direction: ltr; }
.hm-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.hm-bar i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #10b981, #0e7490); min-height: 3px; transition: height .4s; }
.hm-bar:last-child i { background: linear-gradient(180deg, #6ee7b7, #10b981); }
.hm-bar-labels { display: flex; gap: 4px; font-size: .7rem; color: var(--faint); direction: ltr; }
.hm-bar-labels span { flex: 1; text-align: center; min-width: 0; }
.hm-rows { display: grid; gap: 8px; }
.hm-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 60px; gap: 8px; align-items: center; font-size: .88rem; }
.hm-row-k { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-row-k img { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; }
.hm-row-bar { height: 10px; border-radius: 6px; background: var(--bg-tint); overflow: hidden; }
.hm-row-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #10b981, #0e7490); }
.hm-row b { text-align: end; font-variant-numeric: tabular-nums; }
.hm-tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hm-tool { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; transition: box-shadow .2s, border-color .2s; min-width: 0; }
.hm-tool:hover { text-decoration: none; border-color: var(--brand-100); box-shadow: var(--shadow-2); }
.hm-tool .nav-ic { width: 42px; height: 42px; border-radius: 12px; }
.hm-tool .nav-ic .ic { width: 22px; height: 22px; }
.hm-tool b { font-size: 1.05rem; }
.hm-tool p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; flex: 1; }
.hm-tool-n { color: var(--brand-700); font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; }
.hm-tool-go { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-700); font-size: .9rem; font-weight: 600; }
.hm-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hm-feat { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; min-width: 0; }
.hm-feat-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); }
.hm-feat b { display: block; }
.hm-feat p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.hm-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hm-plan-name { margin: 0; display: flex; align-items: center; gap: 6px; }
.hm-plan-name .ic { color: var(--brand-700); }
.hm-use { display: grid; gap: 8px; flex: 1; }
.hm-use-row { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; }
.hm-use-row b { font-variant-numeric: tabular-nums; }
.hm-chat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; }
.hm-chat-list a { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: .9rem; min-width: 0; }
.hm-chat-list a span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hm-chat-list .ic { flex: none; color: var(--brand-600); }
.hm-card .btn { align-self: flex-start; }
.hm-loading { display: grid; gap: 12px; }
@media (max-width: 1240px) { .hm-charts { grid-template-columns: 1fr 1fr; } .hm-charts .hm-card:first-child { grid-column: 1 / -1; } .hm-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .hm-hero { grid-template-columns: 1fr; } .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hm-feats, .hm-bottom { grid-template-columns: 1fr 1fr; } .hm-tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .hm-hero-main { padding: 20px 16px; } .hm-tools, .hm-feats, .hm-bottom, .hm-charts { grid-template-columns: 1fr; } .hm-charts .hm-card:first-child { grid-column: auto; }
  .hm-ask-go span { display: none; } .hm-ask-go { width: 44px; padding-inline: 0; justify-content: center; } .hm-row { grid-template-columns: 84px 1fr 56px; } .hm-tile b { font-size: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { .hm-pulse { animation: none; } .hm-bar i { transition: none; } }

/* ---------- the helper as an agent (2026-10-28): the mode switch, the question chips, the comparison bars, the report */
.ai-mode { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-tint); }
.ai-mode-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 4px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .82rem; cursor: pointer; transition: background .2s, color .2s; }
.ai-mode-btn[aria-pressed="true"] { background: #fff; color: var(--brand-800); box-shadow: var(--shadow-1); }
.ai-mode-btn .ic { width: 14px; height: 14px; }
.ai-foot-line { align-items: center; }
.ai-h { display: block; margin: 10px 0 4px; font-size: 1rem; color: var(--ink); }
.ai-body > .ai-h:first-child { margin-top: 0; }
.ai-question .ai-chips { justify-content: flex-start; }
.ai-question .chip { cursor: pointer; background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-800); }
.ai-question .chip:hover { border-color: var(--brand-600); }
.ai-bars { display: grid; gap: 7px; }
.ai-bar-row { display: grid; grid-template-columns: minmax(80px, 150px) minmax(0, 1fr) 64px; gap: 8px; align-items: center; font-size: .88rem; }
.ai-bar-k { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
a.ai-bar-k:hover { color: var(--brand-700); }
.ai-bar { height: 10px; border-radius: 6px; background: var(--bg-tint); overflow: hidden; }
.ai-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #10b981, #0e7490); }
.ai-bar-row b { text-align: end; font-variant-numeric: tabular-nums; }
.ai-report { display: grid; gap: 14px; }
.ai-report .ai-bhead { flex-wrap: wrap; }
.ai-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.ai-kpis .ai-stat { padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); display: flex; flex-direction: column; gap: 2px; }
.ai-kpis .ai-stat b { font-size: 1.25rem; color: var(--brand-700); }
.ai-kpis .ai-stat span { color: var(--muted); font-size: .82rem; }
.ai-rsplits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ai-rsec { display: grid; gap: 8px; }
.ai-rsec h4 { margin: 0; font-size: .92rem; color: var(--muted); font-weight: 600; }
.ai-rsec .ai-block { padding: 0; border: 0; background: transparent; }
.ai-rsec .ai-bhead > b { display: none; }
@media (max-width: 640px) { .ai-mode-btn span { display: none; } .ai-mode-btn { padding: 4px 9px; } .ai-bar-row { grid-template-columns: 84px 1fr 56px; } }

/* the page's chat grows with the conversation, like a normal page (the owner, 2026-10-28: "do not make the messages
   scroll, make it normal"): no inner scroll; the box stays at the bottom of the window; the window (compact) keeps its own */
.ai-chat:not(.compact) { height: auto; max-height: none; min-height: 320px; }
.ai-chat:not(.compact) .ai-msgs { overflow: visible; flex: none; }
.ai-chat:not(.compact) .ai-foot { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -10px 24px rgba(11, 18, 32, .06); }
.ai-msg { scroll-margin-top: 96px; }
@media (max-width: 960px) { .ai-chat:not(.compact) .ai-foot { bottom: 58px; } }

/* ---------- the top bar (the owner, 2026-10-29): the whole width of the window, every menu name on one line, and in
   Arabic the same order as in English (logo at the left, the user's menu at the far right, where users look for it);
   each item keeps its own right-to-left text */
.app-bar { max-width: none; }
.app-nav { min-width: 0; }
.app-nav a { white-space: nowrap; flex: none; }
.app-end > * { flex: none; white-space: nowrap; }
html[dir="rtl"] .app-bar, html[dir="rtl"] .app-nav, html[dir="rtl"] .app-end { direction: ltr; }
html[dir="rtl"] .app-bar a, html[dir="rtl"] .app-bar button, html[dir="rtl"] .app-bar .user-menu { direction: rtl; }
html[dir="rtl"] .app-bar .logo { direction: ltr; }
/* the user's button stands out (the owner, 2026-10-29: "big, so users notice it"): a bigger initial, a brand ring and a
   soft shadow; in Arabic it reads like the English one (initial first, the arrow after) */
.user-btn { min-height: 50px; gap: 4px; padding: 4px 8px 4px 4px; border: 1.5px solid var(--brand-100); box-shadow: var(--shadow-1); }
html[dir="rtl"] .app-bar .user-btn { direction: ltr; padding: 4px 8px 4px 4px; }
.user-btn:hover, .user-btn[aria-expanded="true"] { border-color: var(--brand-500); }
.user-ini { width: 40px; height: 40px; font-size: 18px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-100); }
.um-caret { width: 18px; height: 18px; color: var(--muted); }
@media (max-width: 960px) { .user-btn { min-height: 44px; padding: 3px 6px 3px 3px; } html[dir="rtl"] .app-bar .user-btn { padding: 3px 6px 3px 3px; } .user-ini { width: 36px; height: 36px; font-size: 16px; } }
/* Home and the AI helper show their icon only below 1600 px (the full bar needs about 1,570 px with every name); the
   icon is a span too, so only the name is hidden (at 1440 px the helper's icon had gone with its name) */
@media (max-width: 1600px) { .app-nav a[href='/app/assistant'] > span:not(.nav-ic), .app-nav a[href='/app/home'] > span:not(.nav-ic) { display: none; }
  .app-nav a[href='/app/assistant'], .app-nav a[href='/app/home'] { padding: 6px 9px; } }
@media (max-width: 1480px) { .app-nav a[href='/app/assistant'] > .nav-ic, .app-nav a[href='/app/home'] > .nav-ic { display: grid; } }

/* ---------- the helper, clearer for everyone (the owner, 2026-10-29) */
/* the chat bubble sits at the right in both languages (where chat bubbles live on every site) */
.ai-fab { inset-inline-end: auto; inset-inline-start: auto; right: 22px; left: auto; }
@media (max-width: 960px) { .ai-fab { right: 16px; left: auto; } }
/* the helper's menu icon (and its phone tab) breathes softly: a ring that grows and fades, every few seconds */
.app-nav a[href='/app/assistant'] .nav-ic, .app-tabs a[href='/app/assistant'] .nav-ic { position: relative; }
.app-nav a[href='/app/assistant'] .nav-ic::after, .app-tabs a[href='/app/assistant'] .nav-ic::after { content: ''; position: absolute; inset: -3px; border-radius: 11px;
  border: 2px solid #10b981; opacity: 0; animation: ai-nav-ring 3.2s ease-out infinite; pointer-events: none; }
.app-nav a[href='/app/assistant'] .nav-ic .ic, .app-tabs a[href='/app/assistant'] .nav-ic .ic { animation: ai-nav-nod 3.2s ease-in-out infinite; }
@keyframes ai-nav-ring { 0% { transform: scale(.9); opacity: .7; } 60%, 100% { transform: scale(1.35); opacity: 0; } }
@keyframes ai-nav-nod { 0%, 70%, 100% { transform: translateY(0); } 78% { transform: translateY(-2px); } 86% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .app-nav a[href='/app/assistant'] .nav-ic::after, .app-tabs a[href='/app/assistant'] .nav-ic::after,
  .app-nav a[href='/app/assistant'] .nav-ic .ic, .app-tabs a[href='/app/assistant'] .nav-ic .ic { animation: none; } }
/* the foot: the mode with what it does, the allowance with what counts */
.ai-foot-line { align-items: flex-start; }
.ai-mode-wrap, .ai-usage-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ai-usage-wrap { align-items: flex-end; text-align: end; max-width: 360px; }
.ai-mode-hint, .ai-usage-what { font-size: .78rem; line-height: 1.5; }
.ai-usage { font-weight: 700; color: var(--brand-800); font-size: .86rem; }
.ai-usage.low { color: #b45309; }
/* the welcome's three steps */
.ai-how-steps { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 8px; text-align: start; width: 100%; max-width: 460px; }
.ai-how-steps li { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--ink); }
.ai-step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); font-weight: 700; font-size: .82rem; }
@media (max-width: 640px) { .ai-foot-line { flex-direction: column; align-items: stretch; gap: 8px; } .ai-usage-wrap { align-items: flex-start; text-align: start; max-width: none; }
  .ai-mode-btn span { display: inline; } .ai-how-steps li { font-size: .88rem; } }
/* the user menu in Arabic: the bar is laid out left to right but the menu itself is right to left, so "the end" would be its
   left edge and it would open past the screen's right side (the owner, 2026-10-29); it hangs from the button's right edge */
html[dir="rtl"] .app-bar .user-menu { right: 0; left: auto; }
@media (max-width: 640px) { html[dir="rtl"] .app-bar .user-menu { right: 12px; left: 12px; } }
/* the suggested questions wrap on a narrow screen: a chip never nowrap (the base .chip is) and wider than the screen
   (2026-10-29: in English the phone zoomed out, the Home and helper pages slid sideways, the bubble half off) */
.ai-chips .chip, .hm-chips .chip { white-space: normal; max-width: 100%; text-align: start; line-height: 1.45; }
.ai-page > * { min-width: 0; }
