@media (max-width: 768px) {

  .np-canvas-wrap {
    position: relative;
    transition: transform .32s cubic-bezier(.32,.72,0,1);
  }

  .np-canvas.np-canvas-locked {
    pointer-events: none;
  }

  .np-canvas {
    border: 0;
    box-shadow: 0 2px 14px rgba(0,0,0,.12);
  }

  .np-canvas-placeholder {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: conic-gradient(#e6e6ea 25%, #fff 0 50%, #e6e6ea 0 75%, #fff 0) 0 0 / 22px 22px;
    pointer-events: none;
    z-index: 10;
    transition: opacity .3s;
  }

  /* ---- Floating tool bar ---- */

  .np-mobile-toolbar {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(22,18,40,.55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    z-index: 50;
    transition: opacity .2s, transform .2s;
  }

  .np-mobile-toolbar.np-toolbar-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px);
  }

  .np-mobile-toolbar-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 13px;
    padding: 9px 14px;
    border-radius: 999px;
    cursor: pointer;
  }

  .np-mobile-toolbar.np-toolbar-nudge::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    pointer-events: none;
    padding: 2px;
    background: linear-gradient(90deg, #6630d1, #2bb3a3);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: npPulse 1.6s ease-out infinite;
  }

  @keyframes npPulse {
    0%   { opacity: .9; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.08, 1.3); }
  }

  /* ---- Next button, in #mobile-header ---- */

  .np-mobile-next-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #6630d1;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 16px;
    cursor: pointer;
  }

  /* Install 27: gray but still tappable — a tap shows what's missing. */
  .np-mobile-next-btn.np-mobile-next-disabled {
    background: #cfc8e6;
  }

  .np-mobile-next-bubble {
    position: fixed;
    z-index: 10000;
    max-width: 240px;
    background: #18181b;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.35;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,.22);
    pointer-events: none;
  }

  .np-mobile-next-bubble::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 22px;
    width: 10px;
    height: 10px;
    background: #18181b;
    transform: rotate(45deg);
  }

  /* Edit button in the floating tool bar (only while a sticker is selected) */
  .np-mobile-toolbar-btn.np-mobile-toolbar-edit {
    background: #6D28D9;
    font-weight: 600;
  }

  .np-mobile-toolbar-btn[hidden] {
    display: none;
  }

  /* ---- Bottom panel ---- */

  .np-mobile-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--sb-vvh, 100dvh) * 0.5);
    height: calc(var(--sb-vvh, 100dvh) * 0.5);
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 24px rgba(0,0,0,.14);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 60;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.32,.72,0,1);
  }

  .np-mobile-panel.open {
    transform: translateY(0);
  }

  .np-mobile-panel-handle-row {
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
    flex-shrink: 0;
    cursor: pointer;
  }

  .np-mobile-panel-handle {
    width: 38px;
    height: 5px;
    border-radius: 3px;
    background: #d6d6de;
  }

  /* Install 27: header for the Edit and post views (they have no tabs) */
  .np-mobile-panel-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 14px 10px;
    flex-shrink: 0;
  }

  .np-mobile-panel-head-title {
    flex: 1;
    min-width: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #18181b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .np-mobile-panel-head-back,
  .np-mobile-panel-head-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f1f5;
    color: #18181b;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
  }

  /* Edit view: close on the right. Post view: back arrow on the left. */
  .np-mobile-panel-head .np-mobile-panel-head-back { display: none; }
  .np-mobile-panel-head--back .np-mobile-panel-head-back { display: flex; }
  .np-mobile-panel-head--back .np-mobile-panel-head-close { display: none; }

  .np-mobile-panel-tabbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px 10px;
    flex-shrink: 0;
  }

  .np-mobile-tips-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .np-mobile-panel-seg {
    display: flex;
    gap: 2px;
    background: #f1f1f5;
    border-radius: 999px;
    padding: 3px;
  }

  .np-mobile-panel-seg-btn {
    border: none;
    background: transparent;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #52525b;
    padding: 7px 14px;
    cursor: pointer;
  }

  .np-mobile-panel-seg-btn.active {
    background: #ffffff;
    color: #18181b;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
  }

  .np-mobile-panel-divider {
    height: 1px;
    background: rgba(0,0,0,.08);
    flex-shrink: 0;
  }

  .np-mobile-panel-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ---- Backgrounds tab: sub-tabs ---- */

  .npmb-subtabs {
    display: flex;
    width: fit-content;
    gap: 2px;
    background: #f1f1f5;
    border-radius: 999px;
    padding: 3px;
    margin: 14px auto 0;
  }

  .npmb-subtab-btn {
    border: none;
    background: transparent;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #52525b;
    padding: 7px 14px;
    cursor: pointer;
  }

  .npmb-subtab-btn.active {
    background: #ffffff;
    color: #18181b;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
  }

  .npmb-body {
    padding-bottom: 12px;
  }

  .npmb-loading {
    padding: 24px 10px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #6b7280;
  }

  /* ---- Build Your Own: horizontal scrolling rows ---- */

  .npmb-scroll-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .npmb-scroll-row::-webkit-scrollbar {
    display: none;
  }

  .npmb-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #ececf2;
    background: #ffffff;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #1c1c24;
    padding: 7px 14px;
    cursor: pointer;
    white-space: nowrap;
  }

  .npmb-chip.active {
    background: #6630d1;
    border-color: #6630d1;
    color: #ffffff;
  }

  .npmb-color-pill {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ececf2;
    background: #ffffff;
    border-radius: 50%;
    padding: 4px;
    cursor: pointer;
  }

  .npmb-color-pill.active {
    border-color: #6630d1;
    background: #F1ECFD;
  }

  .npmb-color-pill-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .npmb-divider-v {
    flex-shrink: 0;
    width: 1px;
    height: 24px;
    background: #ececf2;
  }

  .npmb-dir-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ececf2;
    border-radius: 50%;
    background: #ffffff;
    padding: 0;
    cursor: pointer;
  }

  .npmb-size-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 66%;
    margin: 12px auto 0;
  }

  .npmb-size-label {
    flex-shrink: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #6b6b78;
  }

  .npmb-size-slider {
    flex: 1;
    accent-color: #6630d1;
  }

  /* ---- Build Your Own: color grid — 10 columns, one family per column,
     darkest on top (rows are emitted darkest-shade-first in JS, so grid's
     default row-major auto-placement already yields this without extra CSS) ---- */

  .npmb-color-grid-wrap {
    position: relative;
  }

  .npmb-color-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0,1fr));
    gap: 6px;
    padding: 12px 10px 4px;
  }

  .npmb-color-grid-blocker {
    position: absolute;
    inset: 0;
    z-index: 5;
  }

  .npmb-color-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    cursor: pointer;
  }

  .npmb-color-swatch--white {
    border: 1.5px solid rgba(0,0,0,0.15);
  }

  .npmb-color-swatch.active {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #6630d1;
  }

  /* ---- My Backgrounds ---- */

  .npmb-mine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 10px 4px;
  }

  .npmb-mine-tile {
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
  }

  .npmb-mine-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .npmb-mine-empty {
    padding: 24px 10px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* ---- Press-and-hold drag of a sticker tile out of the panel ---- */

  .np-sticker-tile img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .np-sticker-tile.np-sticker-tile-dimmed {
    opacity: .4;
  }

  .np-mobile-sticker-ghost {
    position: fixed;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    pointer-events: none;
    z-index: 1000;
  }

  .np-mobile-sticker-ghost img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  /* ---- Tips layer (inside the panel) ---- */

  .np-mobile-tips {
    position: absolute;
    inset: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    z-index: 5;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.32,.72,0,1);
  }

  .np-mobile-tips.open {
    transform: translateY(0);
  }

  .np-mobile-tips-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    flex-shrink: 0;
  }

  .np-mobile-tips-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #18181b;
  }

  .np-mobile-tips-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f1f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: #18181b;
    padding: 0;
    cursor: pointer;
  }

  .np-mobile-tips-divider {
    height: 1px;
    background: #ececf2;
    flex-shrink: 0;
  }

  .npmt-chips-row {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
  }

  .npmt-chips-row::-webkit-scrollbar {
    display: none;
  }

  .npmt-chip {
    flex-shrink: 0;
    border: 1.5px solid #ececf2;
    background: #ffffff;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #1c1c24;
    padding: 7px 14px;
    cursor: pointer;
    white-space: nowrap;
  }

  .npmt-chip.active {
    background: #6630d1;
    border-color: #6630d1;
    color: #ffffff;
  }

  .npmt-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 14px 16px;
  }

  .npmt-item {
    padding: 12px 0;
  }

  .npmt-item-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #18181b;
    margin-bottom: 4px;
  }

  .npmt-item-body {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #4b4b57;
    line-height: 1.4;
  }

  .npmt-item-divider {
    height: 1px;
    background: #f3f3f7;
  }

  /* ---- Edit view (mobile-edit.js, install 27) ---- */

  .npme {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 14px 18px;
    font-family: 'Poppins', sans-serif;
  }

  .npme-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .npme-row--rot {
    padding-bottom: 8px; /* room for the tick marks */
  }

  .npme-label {
    width: 62px;
    flex-shrink: 0;
    font-size: 13px;
    color: #52525b;
  }

  .npme-slider {
    flex: 1;
    min-width: 0;
    accent-color: #6D28D9;
  }

  .npme-rotwrap {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
  }

  .npme-ticks {
    position: absolute;
    left: 9px;
    right: 9px;
    top: 100%;
    height: 8px;
    pointer-events: none;
  }

  .npme-tick {
    position: absolute;
    top: 1px;
    width: 2px;
    height: 6px;
    margin-left: -1px;
    border-radius: 1px;
    background: #d4d4dc;
  }

  .npme-tick.on {
    background: #6D28D9;
    animation: npmeTick .45s ease-out;
  }

  @keyframes npmeTick {
    0% { transform: scale(1.8); }
    100% { transform: none; }
  }

  /* 16px so iPhone doesn't zoom the page when the box is tapped */
  .npme-num {
    width: 64px;
    flex-shrink: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    border: 1px solid #e4e4ec;
    border-radius: 8px;
    padding: 5px 6px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #18181b;
    background: #ffffff;
    -moz-appearance: textfield;
  }

  .npme-num::-webkit-outer-spin-button,
  .npme-num::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .npme-reset {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f1f5;
    color: #18181b;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
  }

  .npme-sec {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8b8b98;
    margin-top: 2px;
  }

  .npme-layers {
    list-style: none;
    margin: -6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .npme-layer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px 6px 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #ffffff;
  }

  .npme-layer.on {
    border-color: #6D28D9;
    background: #f3eefe;
  }

  .npme-layer.lift {
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
  }

  .npme-layer.mark-a { border-top: 2px solid #6D28D9; }
  .npme-layer.mark-b { border-bottom: 2px solid #6D28D9; }

  .npme-layer img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    pointer-events: none;
    flex-shrink: 0;
  }

  .npme-layer-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #18181b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .npme-grip {
    color: #a1a1aa;
    font-size: 18px;
    letter-spacing: -3px;
    padding: 8px 10px;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .npme-remove {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    border: 1px solid #f3d0d0;
    background: #ffffff;
    color: #dc2626;
    border-radius: 10px;
    padding: 11px 6px;
    cursor: pointer;
  }

  @media (prefers-reduced-motion: reduce) {
    .npme-tick.on { animation: none; }
  }

  /* ---- Post view (install 27): caption, hashtags, Publish ---- */

  .np-mpost {
    display: flex;
    flex-direction: column;
    gap: 14px;
    /* Room at the bottom so the hashtags can scroll clear of Safari's
       floating address bar. */
    padding: 12px 14px 96px;
    font-family: 'Poppins', sans-serif;
  }

  .np-mpost-label {
    display: block;
    font-size: 13px;
    color: #52525b;
    margin-bottom: 6px;
  }

  .np-mpost-faint {
    color: #a1a1aa;
  }

  .np-mpost-caption {
    width: 100%;
    height: 90px;
    box-sizing: border-box;
    border: 1px solid #e4e4ec;
    border-radius: 10px;
    padding: 9px 11px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #18181b;
    resize: none;
  }

  .np-mpost-counter {
    font-size: 11px;
    color: #a1a1aa;
    text-align: right;
    margin-top: 3px;
  }

  .np-mpost-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid #e4e4ec;
    border-radius: 10px;
    padding: 6px 8px;
  }

  .np-mpost-tags input {
    flex: 1;
    min-width: 110px;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #18181b;
    background: transparent;
  }

  .np-mpost-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F1ECFD;
    color: #5B2FC4;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
  }

  .np-mpost-chip button {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    color: #5B2FC4;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
  }

  /* Publish, top right of the post view's header. Hidden in the Edit view,
     which shares the header. */
  .np-mobile-panel-head .np-mpost-head-btn { display: none; }
  .np-mobile-panel-head--back .np-mpost-head-btn {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(to top right, #6D28D9, #14B8A6);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 0 18px;
    cursor: pointer;
  }

  .np-mpost-btn {
    height: 46px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(to top right, #6D28D9, #14B8A6);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .06em;
    cursor: pointer;
  }

  /* Smart guide lines while dragging (desktop-guides.js). They exist only
     during a drag, so they never end up in a saved post. */
  #np-canvas .np-guides {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 100000;
  }

  /* ---- Zoom (mobile-zoom.js, install 28) ---- */

  /* The page area handles its own pinch and pan, so the browser must not
     scroll or zoom the whole site from here. */
  .np-canvas-area {
    position: relative;
    touch-action: none;
  }

  .np-mzoom-pill {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 4px 4px 12px;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 1px 8px rgba(0,0,0,.15);
    z-index: 55;
    font-family: 'Poppins', sans-serif;
  }

  .np-mzoom-pill[hidden] {
    display: none;
  }

  .np-mzoom-pct {
    min-width: 42px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #3f3f46;
    font-variant-numeric: tabular-nums;
  }

  .np-mzoom-div {
    width: 1px;
    height: 20px;
    background: #ececf2;
    margin: 0 4px;
  }

  .np-mzoom-fit {
    height: 32px;
    padding: 0 14px;
    border: none;
    border-radius: 999px;
    background: #F1ECFD;
    color: #5B2FC4;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }

  /* ---- Bottom bar: undo / redo, and S and B while a sticker is selected ----
     The arrows sit at the right end, after Edit. Selecting a sticker shrinks
     Stickers and Backgrounds to S and B so Edit and the arrows fit; they
     open back up when nothing is selected. */

  .np-mobile-toolbar {
    align-items: center;
    gap: 4px;
    white-space: nowrap;
  }

  .np-mobile-toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: padding .25s, max-width .25s, opacity .2s, margin .25s;
  }

  .np-mtb-full,
  .np-mtb-short {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width .25s, opacity .2s;
  }

  .np-mtb-full { max-width: 120px; }
  .np-mtb-short { max-width: 0; opacity: 0; font-weight: 700; font-size: 14px; }

  .np-toolbar-sel .np-mtb-full { max-width: 0; opacity: 0; }
  .np-toolbar-sel .np-mtb-short { max-width: 24px; opacity: 1; }
  .np-toolbar-sel .np-mtb-tab { padding: 9px 12px; min-width: 38px; }

  /* Edit is always in the bar; it opens up only while a sticker is selected. */
  .np-mobile-toolbar-btn.np-mobile-toolbar-edit {
    max-width: 0;
    padding: 9px 0;
    margin-left: -4px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .np-toolbar-sel .np-mobile-toolbar-btn.np-mobile-toolbar-edit {
    max-width: 80px;
    padding: 9px 14px;
    margin-left: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .np-mtb-div {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,.28);
    margin: 0 2px;
    flex-shrink: 0;
  }

  .np-mobile-toolbar-btn.np-mtb-icon {
    padding: 8px 9px;
  }

  .np-mobile-toolbar-btn.np-mtb-icon:disabled {
    opacity: .35;
    cursor: default;
  }

  /* ---- Stickers tab: search + Recently used strip ---- */

  .np-mob-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 8px 2px;
    padding: 0 10px;
    height: 40px;
    border: 1px solid #e4e4ec;
    border-radius: 10px;
    color: #8b8b98;
  }

  .np-mob-search:focus-within {
    border-color: #6D28D9;
    box-shadow: 0 0 0 2px rgba(109,40,217,.15);
  }

  /* 16px so iPhone doesn't zoom the page when the box is tapped */
  .np-mob-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #18181b;
  }

  .np-mob-recent-label {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8b8b98;
    padding: 10px 10px 6px;
  }

  .np-mob-recent-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 8px 10px;
    border-bottom: 1px solid #f0eff5;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .np-mob-recent-row::-webkit-scrollbar {
    display: none;
  }

  .np-mob-recent-row .np-sticker-tile {
    width: 56px;
    flex-shrink: 0;
  }

  .np-mob-empty {
    grid-column: 1 / -1;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #8b8b98;
    text-align: center;
    padding: 18px 0;
  }

  @media (prefers-reduced-motion: reduce) {
    .np-mobile-toolbar-btn,
    .np-mtb-full,
    .np-mtb-short { transition: none; }
  }
}
