/* ── 20-friends.css — Friends slide-in panel (.friends-panel) ── */
  /* ═══════════════════════════════════════════════════════════════════
     Friends panel — full UI/UX redesign
     ═══════════════════════════════════════════════════════════════════ */
  /* Doubled class: .detail-panel { width: 300px } (70-detail-misc.css, loaded
     later) otherwise wins and squeezes the card. */
  .friends-panel.friends-panel { width: min(420px, 92vw); }
  /* Companion friends-list card — tucks to the LEFT of the Friends panel (JS
     pins its `right` to the Friends panel width), so it sits BEHIND it (z 100). */
  #friendsListPanel { z-index: 100; width: min(360px, 88vw); }
  #friendsListCloseTab { z-index: 100; }
  /* The app stays fully visible behind the Friends cards: their overlay only
     catches the click outside that closes them, it no longer darkens. */
  #friendsOverlay { background: transparent; }
  #friendsListPanel .panel-header { gap: 8px; }
  #friendsListPanel .fp-list-count {
    margin-left: 0; font-size: 12px; font-weight: 700;
    min-width: 22px; height: 20px; padding: 0 7px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary); color: var(--on-accent); border-radius: 10px;
  }
  #friendsListPanel .friends-body { padding: 14px 16px 16px; gap: 10px; }
  #friendsListPanel .fp-list {
    overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
    scrollbar-width: none;   /* hide the scrollbar (still scrolls) */
  }
  #friendsListPanel .fp-list::-webkit-scrollbar { width: 0; height: 0; }
  .friends-body {
    padding: 0;
    display: flex; flex-direction: column;
    height: calc(100% - 50px);   /* leave room for header */
    overflow: hidden;
  }
  /* On a short window the Friends card scrolls as one column: its blocks keep
     their height instead of shrinking (the code card cut its QR and buttons). */
  #friendsPanel .friends-body { overflow-y: auto; scrollbar-width: none; padding-bottom: 16px; }
  #friendsPanel .friends-body::-webkit-scrollbar { width: 0; height: 0; }
  #friendsPanel .friends-body > * { flex-shrink: 0; }

  /* HERO — share-your-code card */
  /* QR on the left, label + code on the right, the two share buttons as one
     bar under them; the code's size follows the card's width (cqw). */
  .fp-hero {
    margin: 16px 16px 0;
    padding: 16px;
    container-type: inline-size;
    background: linear-gradient(135deg, var(--primary) 0%, #ff5e3a 100%);
    border-radius: 18px;
    color: var(--on-accent);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 25%, transparent);
    position: relative;
    overflow: hidden;
  }
  .fp-hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 0%, var(--ink-15), transparent 60%);
    pointer-events: none;
  }
  .fp-hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; position: relative; }
  .fp-hero-id { flex: 1; min-width: 0; padding-right: 30px; }   /* clear of the New code icon */
  .fp-hero-label {
    font-size: 10px; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; opacity: .8; margin-bottom: 6px;
    position: relative;
  }
  .fp-hero-code {
    font-family: var(--mono);
    font-size: clamp(18px, 9.5cqw, 32px); font-weight: 800;
    letter-spacing: .08em; white-space: nowrap;
    text-shadow: 0 2px 12px rgba(0,0,0,.18);
    position: relative;
    user-select: all;
  }
  /* QR of the shareable invite link — white rounded tile on the card's left. */
  .fp-hero-qr.fp-hero-qr {   /* a button: click = enlarge */
    flex-shrink: 0; display: block; height: auto; padding: 0; border: 0; background: none;
    border-radius: 13px; cursor: zoom-in;
  }
  .fp-hero-qr img {
    width: clamp(84px, 32cqw, 116px); aspect-ratio: 1; padding: 6px; box-sizing: border-box;
    background: var(--qr-frame); border-radius: 13px;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    display: block;
  }
  .fp-hero-qr img:not([src]) { display: none; }
  .fp-hero-code.pkey-loading { color: var(--ink-30); }
  .fp-hero-code.pkey-loading::after {
    content: "• • •";
    font-family: var(--mono); font-size: inherit; font-weight: 800;
    color: var(--on-accent); letter-spacing: .18em;
    animation: pkey-pulse .9s ease-in-out infinite;
  }
  @keyframes pkey-pulse { 0%,100% { opacity:1 } 50% { opacity:.3 } }
  /* "Share link" and "Invite friends": two equal buttons side by side, one
     line each; stacked when the card is too narrow for both labels. */
  .fp-hero-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: relative;
  }
  @container (max-width: 300px) { .fp-hero-actions { grid-template-columns: 1fr; } }
  .fp-hero-btn {
    min-width: 0; white-space: nowrap;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 38px; padding: 0 12px; border-radius: 10px;
    background: var(--ink-15); border: 1px solid var(--ink-25);
    color: var(--on-accent); font-size: 12.5px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    transition: background .15s, border-color .15s, transform .1s;
  }
  .fp-hero-btn > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .fp-hero-btn:hover  { background: var(--ink-25); border-color: var(--ink-40); }
  .fp-hero-btn:active { transform: scale(.97); }
  .fp-hero-btn .icon  { background: var(--on-accent); }
  .fp-hero-btn--copied { background: color-mix(in srgb, var(--success) 45%, transparent); }
  .fp-hero-btn:disabled { opacity: .5; cursor: not-allowed; }
  .fp-hero-btn .icon { flex-shrink: 0; }
  /* The empty friends list reuses the button on its own, outside the bar. */
  .fp-empty-invite.fp-hero-btn { margin-top: 12px; background: var(--primary); border-color: transparent; }
  .fp-empty-invite.fp-hero-btn:hover { filter: brightness(1.08); background: var(--primary); }
  /* "New code": an icon in the card's top-right corner, turns once on hover. */
  .fp-hero-regen {
    position: absolute; top: 10px; right: 10px; z-index: 1;
    width: 30px; height: 30px; padding: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink-20); border: 1px solid var(--ink-25);
    cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
  }
  .fp-hero-regen .icon { background: var(--on-accent); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
  .fp-hero-regen:hover { background: var(--ink-30); border-color: var(--ink-40); }
  .fp-hero-regen:hover .icon { transform: rotate(180deg); }
  .fp-hero-regen:active { transform: scale(.92); }
  .fp-hero-regen:disabled { opacity: .5; cursor: not-allowed; }
  @media (prefers-reduced-motion: reduce) { .fp-hero-regen .icon { transition: none; } }

  /* Toggle row card */
  .fp-toggle-card {
    display: flex; align-items: center; gap: 12px;
    margin: 14px 16px 0; padding: 12px 14px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 14px; cursor: pointer;
    transition: background .15s, border-color .15s;
  }
  .fp-toggle-card:hover { background: var(--surface); border-color: var(--primary-soft); }
  /* Just the icon, no tile behind it — larger. */
  .fp-toggle-icon {
    width: 28px; height: 28px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .fp-toggle-icon .icon { width: 22px; height: 22px; background: var(--primary); }
  .fp-toggle-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
  .fp-toggle-title { font-size: 13px; font-weight: 600; color: var(--text); }
  .fp-toggle-sub   { font-size: 11px; color: var(--muted); }

  /* Friends list block */
  .fp-list-block {
    flex: 1; min-height: 0;
    margin: 18px 16px 0;
    display: flex; flex-direction: column;
    overflow: hidden;
  }
  .fp-list-head {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  }
  .fp-list-title {
    font-size: 11px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted);
  }
  .fp-list-count {
    background: var(--surface-2); color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px; padding: 1px 8px;
    font-size: 11px; font-weight: 700;
  }

  /* Search input — magnifier sits inside the field on the right */
  .fp-search {
    position: relative;
    margin-bottom: 8px;
  }
  .fp-search .icon {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: var(--muted); pointer-events: none;
  }
  .fp-search input {
    width: 100%; padding: 8px 32px 8px 12px;   /* room for icon on the right */
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 9px; color: var(--text); font-size: 12px;
    font-family: inherit;
    transition: border-color .15s, background .15s;
  }
  .fp-search input:focus {
    outline: none; border-color: var(--primary);
    background: var(--surface);
  }
  .fp-search input:focus + .icon { background: var(--primary); }
  .fp-search input::placeholder { color: var(--muted); }

  /* Scrollable friends list */
  .fp-list {
    flex: 1; min-height: 0;
    display: flex; flex-direction: column; gap: 4px;
    overflow-y: auto;
    padding-right: 2px;
  }
  .fp-list::-webkit-scrollbar { width: 4px; }
  .fp-list::-webkit-scrollbar-track { background: transparent; }
  .fp-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

  .fp-friend {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px; border-radius: 12px;
    background: var(--surface-2); border: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .1s;
  }
  .fp-friend:hover {
    background: var(--surface); border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
  }
  .fp-friend:active { transform: translateY(0); }
  /* Drag-to-reorder — grip handle + drop cues. */
  .fp-grip { flex: 0 0 auto; display: inline-flex; align-items: center; margin: 0 -5px 0 -3px;
    cursor: grab; opacity: .3; transition: opacity .12s; }
  .fp-friend:hover .fp-grip { opacity: .7; }
  .fp-grip .icon { background-color: var(--muted); }
  /* Drag-to-reorder — rows slide (translateY) to open the drop gap; the dragged
     row is hidden (the OS drag image follows the cursor). Slide transition is set
     inline in JS. */
  .fp-friend--dragging { opacity: 0; }
  .fp-reordering .fp-friend { will-change: transform; }
  .fp-reordering .fp-friend:hover { transform: none; box-shadow: none; background: var(--surface-2); }
  body.is-dragging-order .fp-friend { cursor: grabbing; }
  .fp-friend-avatar {
    position: relative;       /* anchor for the .sb-avatar-photo overlay */
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--on-accent);
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    overflow: hidden;
  }
  .fp-friend-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .fp-friend-name {
    font-size: 13px; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .fp-friend-date {
    font-size: 11px; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* The friend's bonus streak-freeze slots; an empty one I can fill is a button ("+" on hover). */
  .fp-freeze { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; }
  .fp-freeze img { width: 18px; aspect-ratio: 1; object-fit: contain; display: block; }
  .fp-freeze-slot { position: relative; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; transition: transform .15s; }
  .fp-freeze-slot .icon { position: absolute; background: #8fd3ff; opacity: 0; transition: opacity .15s; }
  .fp-freeze-slot:hover, .fp-freeze-slot:focus-visible { transform: translateY(-2px); }
  .fp-freeze-slot:hover img, .fp-freeze-slot:focus-visible img { opacity: .55; filter: drop-shadow(0 0 5px rgba(143, 211, 255, .7)); }
  .fp-freeze-slot:hover .icon, .fp-freeze-slot:focus-visible .icon { opacity: 1; }
  @media (prefers-reduced-motion: reduce) { .fp-freeze-slot { transition: none; } }
  .fp-friend-actions {
    display: flex; gap: 4px; flex-shrink: 0;
    opacity: 0; transition: opacity .15s;
  }
  .fp-friend:hover .fp-friend-actions { opacity: 1; }
  .fp-friend-btn {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; border-radius: 8px;
    cursor: pointer; transition: background .15s;
  }
  .fp-friend-remove:hover { background: var(--danger-soft); }
  .fp-friend-remove .icon { background: var(--muted); }
  /* Always-visible chevron — the "view this friend's inventory" affordance.
     pointer-events:none so a click falls through to the row (which navigates). */
  .fp-friend-chevron { display: flex; align-items: center; flex-shrink: 0; pointer-events: none; }
  .fp-friend-chevron .icon { background: var(--muted); transition: background .15s, transform .15s; }
  .fp-friend:hover .fp-friend-chevron .icon { background: var(--primary); transform: scale(1.1); }   /* the eye: "see their stock" */
  .fp-friend-remove:hover .icon { background: var(--danger); }

  /* ── Pending requests section ──────────────────────────────────────── */
  .fp-reqs-block { flex: 0 0 auto; }
  .fp-reqs-block.hidden { display: none; }
  .fp-list-count--accent {
    background: var(--primary-soft);
    color: var(--primary-text); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  }
  .fp-req {
    display: flex; flex-direction: column; gap: 10px;
    padding: 10px 12px; border-radius: 12px;
    background: var(--surface-2); border: 1px solid var(--border);
  }
  .fp-req-head { display: flex; align-items: center; gap: 11px; }
  .fp-req-actions { display: flex; gap: 8px; }
  .fp-req-actions .fp-req-block  { flex: 1; color: var(--danger-text) !important; font-size: 11px; }
  .fp-req-actions .fp-req-refuse { flex: 1; }
  .fp-req-actions .fp-req-accept { flex: 2; }

  /* ── Notification center ───────────────────────────────────────────── */
  /* Breathing room: the list is the panel's only block, so it carries the
     padding itself (the Friends panel's children each have their own margins). */
  .notif-list { gap: 8px; padding: 16px; }
  /* "Mark all read" — subtle accent link in the panel header (before the ✕). */
  .notif-markall {
    margin-left: auto; margin-right: 8px;
    background: none; border: none; padding: 4px 8px; border-radius: 7px; cursor: pointer;
    font-family: inherit; font-size: 12px; font-weight: 600; color: var(--primary-text);
    transition: background .12s;
  }
  .notif-markall:hover { background: var(--surface-2); }
  .notif-markall.hidden { display: none; }
  /* The notification centre is wider than the other side panels (300 px):
     the sentences fit on fewer lines. Doubled class to beat `.detail-panel`. */
  .detail-panel.notif-panel.notif-panel { width: min(520px, 92vw); }
  .notif-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px; border-radius: 12px;
    background: var(--surface-2); border: 1px solid var(--border);
  }
  .notif-item--unread { border-color: var(--primary); background: var(--primary-soft); }
  /* All notifications wrap their text instead of truncating with an ellipsis. */
  .notif-text {
    font-size: 13px; color: var(--text);
    line-height: 1.35; overflow-wrap: anywhere;
  }
  /* Local (app) notifications read as a title + muted baseline; the whole row is
     the call-to-action (no separate CTA button). */
  .notif-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.25; }
  .notif-title + .notif-text { font-size: 12px; color: var(--muted); line-height: 1.35; }
  .notif-item--clickable { cursor: pointer; transition: background .12s, border-color .12s; }
  .notif-item--clickable:hover { border-color: var(--primary); background: var(--primary-soft); }
  .notif-item--clickable:active { transform: scale(.99); }
  /* ── Notification centre redesign (renderNotifCenter): tabs, day headers,
     cards tinted by kind (--nc), an inline action, the low-stock card, the
     unread dot. */
  /* The list has no top padding: the tabs bar sits right under the header and
     sticks there, nothing showing above it. */
  #notifList.notif-list { padding-top: 0; }
  /* The tabs belong to the header: the header's line moves under them. */
  #notifPanel .panel-header { border-bottom: 0; padding-bottom: 6px; }
  .nc-tabs { position: sticky; top: 0; z-index: 2; flex-shrink: 0; display: flex; gap: 4px; margin: 0 -16px 10px; padding: 0 16px 10px;
    border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none;
    background: var(--surface); }
  .nc-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 32px; padding: 0 6px; border-radius: 10px; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 11.5px; font-weight: 600; transition: background .15s, border-color .15s; }
  /* Six tabs (the team's extra "Requests") do not fit one row: two rows of three. */
  .nc-tabs.nc-tabs--grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .nc-tab:hover { border-color: var(--primary); }
  .nc-tab.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-accent); }
  .nc-tab .icon { background: currentColor; }
  .nc-tab img { width: 15px; height: 15px; object-fit: contain; }
  .nc-tab b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 11px;
    color: #fff; background: #e5484d; }
  .nc-day { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 8px 2px 2px; }
  .nc-day b { font-size: 15px; font-weight: 800; color: var(--text); }
  .nc-day span { font-size: 12px; color: var(--muted); }
  .nc-none { margin: 24px 0; text-align: center; font-size: 13px; color: var(--muted); }
  .notif-item.nc-card { position: relative; align-items: center; gap: 12px; padding: 10px 12px 10px 10px;
    border-left: 3px solid var(--nc); background: linear-gradient(90deg, color-mix(in srgb, var(--nc) 12%, transparent), transparent 55%), var(--surface-2); }
  .notif-item.nc-card.notif-item--clickable:hover { border-color: color-mix(in srgb, var(--nc) 60%, var(--border)); border-left-color: var(--nc); }
  .nc-art { position: relative; width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; }
  .nc-art > img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .35)); }   /* a % height does not hold in the grid cell */
  .nc-art .notif-ic { width: 40px; height: 40px; }
  .nc-art .fp-friend-avatar { width: 42px; height: 42px; }
  .nc-art-av { position: absolute; right: -6px; bottom: -4px; }
  .nc-art-logo img { width: 22px; height: 22px; object-fit: contain; }   /* the tiger alone, no frame */
  .nc-art-av .fp-friend-avatar { width: 22px; height: 22px; font-size: 9px; box-shadow: 0 0 0 2px var(--surface-2); }
  .nc-main { flex: 1; min-width: 0; }
  /* The card is its action: on its right, the icon of where it goes (the cart,
     an envelope, the XP chart…), in the card's colour; it nudges on hover. */
  .nc-go { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    background: color-mix(in srgb, var(--nc) 14%, transparent); transition: transform .15s, background .15s; }
  .nc-go .icon { background: var(--nc); }
  .nc-card:hover .nc-go { transform: translateX(2px); background: color-mix(in srgb, var(--nc) 26%, transparent); }
  .nc-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #e5484d;
    box-shadow: 0 0 0 3px var(--surface-2); }
  .nc-stock { flex-wrap: wrap; }
  .nc-fold { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
  .nc-fold .icon { background: currentColor; transform: rotate(-90deg); transition: transform .2s; }
  .nc-stock.is-folded .nc-fold .icon { transform: rotate(90deg); }
  .nc-stock-grid { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 10px; }
  .nc-stock.is-folded .nc-stock-grid { display: none; }
  /* A spool: no tile behind it — its thumbnail (photo in its material colour
     frame, thumbHTML) and its name. */
  .nc-tile { display: flex; align-items: center; gap: 9px; min-width: 0; height: auto; padding: 3px; border: 0; border-radius: 10px; cursor: pointer; text-align: left;
    background: none; color: var(--text); transition: background .15s; }
  .nc-tile:hover { background: color-mix(in srgb, #e5484d 10%, transparent); }
  .nc-tile > img, .nc-tile-ph { width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; object-fit: contain; background: #fff; }
  .nc-tile .thumb-wrap { flex-shrink: 0; width: 40px; height: 40px; }
  .nc-tile .thumb-wrap .thumb { width: 100%; height: 100%; }
  .nc-tile { justify-content: flex-start; }
  .nc-tile > span:last-child { flex: 1; min-width: 0; }   /* the text takes the rest: every thumb lines up on the left */
  /* One line, ellipsised; a name too long scrolls on hover (the grid's marquee). */
  .nc-tile b { display: block; font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nc-tile small { display: block; font-size: 11px; font-weight: 700; line-height: 1.25; color: #ff8a80; }
  :root:not([data-theme="dark"]) .nc-tile small { color: var(--danger-text); }
  .notif-empty .nc-empty-tiger { width: 130px; height: auto; margin: 0 auto 6px; display: block; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)); }
  .notif-dismiss { flex-shrink: 0; }
  .notif-dismiss:hover { background: var(--border); }
  .notif-dismiss .icon { background: var(--muted); }
  .notif-empty { margin-top: 20px; }
  /* Leading icon for local (app-update) notifications, in place of an avatar. */
  .notif-ic {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--border);
  }
  .notif-ic .icon { background: var(--primary); }
  /* "My requests" status change — the chip takes the status colour. */
  .notif-ic--req-done        { background: color-mix(in srgb, #2f9e44 18%, transparent); }
  .notif-ic--req-done .icon  { background: #2f9e44; }
  .notif-ic--req-in_progress .icon { background: #f08c00; }
  .notif-ic--req-declined .icon, .notif-ic--req-cancelled .icon { background: var(--muted); }
  /* Low-stock alert — amber circle, white box icon. */
  .notif-ic--lowstock { background: var(--warning); border-color: var(--warning); }
  .notif-ic--lowstock .icon { background: var(--on-accent); }
  /* Product illustration in a notification (fills the circular chip). */
  /* Material/product illustration → rounded SQUARE (like the cart's .pv-thumb),
     not the circular chip the other notif icons use. */
  .notif-ic--img { padding: 0; overflow: hidden; background: var(--surface-2); border-radius: 9px; }
  .notif-ic--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  /* Printer-brand notice — the machine "speaking": white chip + tinted brand
     logo, matching the printer list's brand badge. The logo's colour + mask
     come from .pt-thumb-logo[data-brand] (40-printers.css). */
  /* Brand-logo notifs (printer brands + Shopify): show the RAW brand SVG in the
     brand colour, no chip/circle around it, a touch larger for presence. */
  .notif-ic--bare { background: transparent; border: none; }
  .notif-ic--bare .pt-thumb-logo { width: 30px; height: 28px; }   /* tinted via [data-brand] */
  .notif-item--local .notif-restart { flex-shrink: 0; }
  /* "Remind me later" — the app's standard primary button (orange, white text
     via .primary .sm). Layout only here: sits BELOW the title + text (inside
     .fp-friend-main), left-aligned, so it never squeezes the copy into a narrow
     column; the bell icon aligns via inline-flex + gap. */
  .notif-later {
    align-self: flex-start; margin-top: 8px;
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
  }
  /* ✕ close on the paxx notice — pinned top-right of the (tall) card. */
  .notif-dismiss-paxx { align-self: flex-start; }

  /* ── Blacklist section ─────────────────────────────────────────────── */
  .fp-blacklist-block { margin-top: 10px; flex: 0 0 auto; }
  .fp-blacklist-block.hidden { display: none; }
  .fp-list-count--danger { background: var(--danger-soft); color: var(--danger-text); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); }
  .fp-blocked {
    background: var(--danger-soft) !important;
    border-color: color-mix(in srgb, var(--danger) 20%, transparent) !important;
    cursor: default !important;
  }
  .fp-blocked:hover { transform: none !important; box-shadow: none !important; }
  .fp-blocked .fp-friend-actions { opacity: 1; }
  .fp-friend-unblock {
    width: auto !important; height: auto !important;
    padding: 5px 10px;
    background: transparent; border: 1px solid var(--danger);
    color: var(--danger-text); border-radius: 7px;
    font-size: 11px; font-weight: 600; font-family: inherit;
    cursor: pointer;
    transition: background .15s, color .15s;
  }
  .fp-friend-unblock:hover { background: var(--danger); color: var(--on-accent); }
  .fp-friend-unblock:disabled { opacity: .5; cursor: not-allowed; }

  /* Empty state */
  .fp-empty {
    text-align: center;
    padding: 32px 16px;
    border: 1.5px dashed var(--border);
    border-radius: 14px;
    background: var(--surface-2);
  }
  .fp-empty-icon {
    width: 48px; height: 48px; margin: 0 auto 12px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  .fp-empty-icon .icon { background: var(--primary); }
  .fp-empty-title {
    font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px;
  }
  .fp-empty-sub {
    font-size: 12px; color: var(--muted); line-height: 1.4;
  }
  .fp-empty--mini {
    padding: 14px; border: none; background: transparent;
    font-size: 12px; color: var(--muted);
  }

  /* CTA — sticky bottom */
  .fp-cta-wrap {
    padding: 14px 16px 18px;
    background: linear-gradient(to top, var(--surface) 80%, transparent);
    flex-shrink: 0;
  }
  .fp-cta {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px;
    background: var(--primary);
    border: none; border-radius: 12px;
    color: var(--on-accent); font-size: 14px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: background .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 25%, transparent);
  }
  .fp-cta:hover  { background: var(--primary-hover); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); }
  .fp-cta:active { transform: scale(.98); }
  .fp-cta .icon  { background: var(--on-accent); }

  /* Support button → official goodies shop. Secondary (soft) so it supports the
     primary "Add a friend" CTA without competing with it. Opens in the browser.
     (Also mirrored as a Shop button in the sidebar community footer.) */
  .fp-shop {
    width: 100%;
    display: flex; align-items: center; gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border); border-radius: 12px;
    color: var(--text); cursor: pointer; font-family: inherit; text-align: left;
    transition: background .15s, border-color .15s, transform .1s;
  }
  .fp-shop:hover  { background: var(--primary-soft); border-color: var(--primary); }
  .fp-shop:active { transform: scale(.98); }
  .fp-shop .icon.icon-shopify { background: #5e8e3e; flex-shrink: 0; } /* Shopify green */
  .fp-give-ic { width: 18px; height: 22px; flex-shrink: 0; object-fit: contain; }   /* the red envelope art, in the goodies row's place */
  /* Taller rows, bigger art: the Shopify bag and the envelope fill a 36 px slot. */
  .fp-shop.fp-shop { height: auto; min-height: 58px; gap: 12px; padding: 10px 14px; }
  .fp-shop .icon.icon-shopify { width: 30px; height: 30px; }
  .fp-shop .fp-give-ic { width: 30px; height: 36px; }
  .fp-shop-text  { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .fp-shop-title { font-size: 14px; font-weight: 600; line-height: 1.2; }
  .fp-shop-sub   { font-size: 11.5px; color: var(--muted); line-height: 1.2; }
  .fp-shop-arrow { margin-left: auto; background: var(--muted); flex-shrink: 0; transition: background .15s, transform .15s; }
  .fp-shop:hover .fp-shop-arrow { background: var(--primary); transform: translateX(2px); }

