/* X9 — x9-flows styles (design reference port). Loaded after ui/x9.css.
   Link preview (reference X9LinkPreview / X9PreviewFocus), the shared photo deck look, the product gallery (X9Gallery),
   the category page preview and picker, and the work windows' rows (alerts, review, template, more), the selection bars
   and the work notice. Numbers are the reference's: phone px for full-page layers, design px (× --k / --u) on the work canvas. */

/* ---------------------------------------------------------------- shared deck (reference .x9-shared-deck / .gallery-slide) */
.x9-shared-deck .x9-deck-slide::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, #e5ffff22, transparent 42%, #17372d42); pointer-events: none; opacity: 1; transition: opacity 110ms; }
.x9-shared-deck .x9-deck-slide.front::after { opacity: 0; }
.x9-shared-deck .x9-deck-photo { display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: linear-gradient(145deg, #687d7d55, #2b474650); border: 1px solid #c6e4e133; box-shadow: inset 0 1px 3px #d6f2ee24, 0 3px 6px #071a1766; transition: none; }
.x9-shared-deck .x9-deck-slide.front .x9-deck-photo { background: linear-gradient(140deg, #b7b7b4, #959999); border-color: #f3cfab77; box-shadow: inset 0 1px 2px #ebddca66, 0 3px 6px #231b1680; }
.x9-shared-deck .x9-deck-photo img { width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 0; opacity: .38; filter: none; transition: opacity 110ms;
    -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); }
.x9-shared-deck .x9-deck-slide.front .x9-deck-photo img { opacity: 1; }
.x9-shared-deck .x9-deck-slide.has-caption { align-items: stretch; }
@media (prefers-reduced-motion: reduce) { .x9-shared-deck .x9-deck-slide::after, .x9-shared-deck .x9-deck-photo img { transition: none; } }

/* ---------------------------------------------------------------- gallery (reference dialog#product-gallery) */
.x9-gallery { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #edf5e9; overflow: hidden;
    overscroll-behavior: contain; outline: none; opacity: 0; transition: opacity 240ms ease; touch-action: none; direction: rtl; font-family: var(--x9-font); }
.x9-gallery[open] { display: grid; place-items: center; }
.x9-gallery.visible { opacity: 1; }
.x9-gallery::backdrop { background: #092a235c; backdrop-filter: blur(16px) saturate(.75); -webkit-backdrop-filter: blur(16px) saturate(.75); }
.x9-gallery.closing::backdrop { background: rgba(7, 28, 23, .32); }
.x9-gallery-stage.x9-deck { --deck-w: min(69vw, 430px, 52dvh); --deck-step: min(6.4vw, 38px); --deck-h: calc(var(--deck-w) * 1.23); position: absolute; inset: 0; display: block; perspective: 1000px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.x9-gallery-stage.x9-deck:focus-visible { outline: none; }
.x9-gallery-stage .x9-deck-slide { left: calc(50% - var(--deck-step)); width: var(--deck-w); height: var(--deck-h); padding: 12px; border-radius: 17px; transition: transform 150ms cubic-bezier(.18, .78, .3, 1), opacity 100ms; backface-visibility: hidden; }
.x9-gallery-stage .x9-deck-photo { border-radius: 11px; }
.x9-gallery:not(.visible) .x9-gallery-stage .x9-deck-slide { transform: translate(-50%, -43%) rotateY(-18deg) rotateZ(3deg) scale(.8); opacity: 0; }
.x9-gallery-close { --deck-w: min(69vw, 430px, 52dvh); --deck-step: min(6.4vw, 38px); --deck-h: calc(var(--deck-w) * 1.23);
    position: absolute; top: calc(50% - var(--deck-h) / 2 - 66px); left: calc(50% + var(--deck-w) / 2 + var(--deck-step) / 2 - 22px); width: 48px; height: 48px; min-width: 44px; min-height: 44px; padding: 0;
    display: grid; place-items: center; z-index: 10; border: 0; border-radius: 0; background: none; box-shadow: none; color: #deefc6; cursor: pointer;
    transform: rotate(-90deg) scale(.7); opacity: 0; transition: transform 180ms cubic-bezier(.2, .8, .2, 1), opacity 130ms; }
.x9-gallery.visible .x9-gallery-close { transform: rotate(0) scale(1); opacity: 1; }
.x9-gallery-close:active { transform: scale(.92); }
.x9-gallery-close svg { width: 34px; height: 34px; overflow: visible; filter: drop-shadow(0 3px 3px #06231b99); transition: transform 260ms ease; pointer-events: none; }
.x9-gallery-close:hover svg { transform: rotate(90deg); }
.x9-gallery-close:focus-visible { outline: 2px solid #c6f532; outline-offset: 5px; }
.x9-gallery-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .x9-gallery, .x9-gallery-stage .x9-deck-slide, .x9-gallery-close, .x9-gallery-close svg { transition: none; } }

/* ---------------------------------------------------------------- the add box while a link is read (reference .add.preview-open + .link-preview) */
.x9w-add.x9-preview-open { z-index: 12; }
.x9w-add.x9-preview-open > .x9w-fetch, .x9w-add.x9-preview-open > .x9w-methods { visibility: hidden; }
.x9w-add.x9-preview-open > .x9w-status-line { display: none; }
.x9w-add > .x9-link-panel { position: absolute; left: calc(50% - 290 * var(--k)); width: calc(580 * var(--k)); top: calc(156 * var(--k)); height: calc(220 * var(--k)); min-height: 0; z-index: 15; border: 0; border-radius: calc(20 * var(--k));
    background: transparent; isolation: isolate; color: #d8e6dc; direction: rtl; animation: x9-preview-enter 170ms ease-out; box-sizing: border-box; }
.x9w-add > .x9-link-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; background: radial-gradient(ellipse at 55% 50%, #315149ee, #14392ee8 66%, #23463a9c);
    backdrop-filter: blur(18px) saturate(.8); -webkit-backdrop-filter: blur(18px) saturate(.8);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 87%, transparent); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 87%, transparent); mask-composite: intersect; }
@keyframes x9-preview-enter { from { opacity: 0; transform: translateY(calc(8 * var(--k))); } to { opacity: 1; transform: none; } }
.x9-preview-loading { height: 100%; display: flex; align-items: center; justify-content: center; gap: calc(18 * var(--k)); color: #d8e6dc; font-size: max(12px, calc(26.58 * var(--k))); direction: rtl; }
.x9-read-spinner { width: calc(28 * var(--k)); height: calc(28 * var(--k)); min-width: 12px; min-height: 12px; box-sizing: border-box; border: max(1.5px, calc(3 * var(--k))) solid #bad79533; border-top-color: #c4ff24; border-radius: 50%; animation: x9-read-spin 650ms linear infinite; }
@keyframes x9-read-spin { to { transform: rotate(360deg); } }
.x9w-add > .x9-link-panel .x9-preview-close { position: absolute; top: calc(18 * var(--k)); right: 0; width: calc(66 * var(--k)); height: calc(66 * var(--k)); display: grid; place-items: center; border: 0; background: none; z-index: 20; padding: 0; cursor: pointer; }
.x9w-add > .x9-link-panel .x9-preview-close::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
.x9w-add > .x9-link-panel .x9-preview-close svg { width: calc(36 * var(--k)); height: calc(36 * var(--k)); min-width: 15px; min-height: 15px; overflow: visible; filter: drop-shadow(0 3px 3px #06231b99); transition: transform 160ms ease; }
.x9-preview-close:hover svg { transform: rotate(90deg); }
.x9-preview-close:active svg { transform: scale(.9); }
/* the category page summary (reference .link-preview.is-category-summary + .x9-category-preview) */
.x9w-add > .x9-link-panel.is-category { left: calc(18 * var(--k)); right: calc(18 * var(--k)); width: auto; top: calc(178 * var(--k)); height: calc(250 * var(--k)); background: #193b32f5; box-shadow: 0 calc(12 * var(--k)) calc(22 * var(--k)) #001b1655; }
.x9-category-preview { position: absolute; inset: 0; padding: calc(14 * var(--k)) calc(78 * var(--k)) calc(14 * var(--k)) calc(220 * var(--k)); display: flex; flex-direction: column; justify-content: center; gap: calc(8 * var(--k)); direction: rtl; text-align: right; }
.x9-category-preview strong { font-size: 14px; line-height: 1.45; white-space: nowrap; color: #eef5e9; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.x9-category-preview small { font-size: 12px; color: #c1d8cc; text-align: right; }
.x9-category-preview button { width: max-content; min-height: 44px; font: 700 13px var(--x9-font); padding: calc(7 * var(--k)) calc(18 * var(--k)); border: 0; cursor: pointer; }
.x9-category-thumbs { position: absolute; left: calc(14 * var(--k)); top: calc(40 * var(--k)); width: calc(190 * var(--k)); height: calc(160 * var(--k)); }
.x9-category-thumbs img { position: absolute; left: 0; top: 0; width: calc(130 * var(--k)); height: calc(155 * var(--k)); object-fit: contain; background: #e4e7e5; border-radius: calc(16 * var(--k)); border: 1px solid #aecbb58c;
    transform: translateX(calc(var(--i) * 26 * var(--k))) rotate(calc((var(--i) - 1) * 7deg)); box-shadow: 0 calc(8 * var(--k)) calc(14 * var(--k)) #00190c70; }
.lime-button { line-height: 1.3; background: linear-gradient(165deg, #c1ff3e, #a6ef2c); box-shadow: inset 0 1px 2px #e2ff768c, 0 0 19px #afff2230; color: #142807; border-radius: 14px; font-weight: 700; }
.x9w-add > .x9-link-panel.is-category .lime-button { border-radius: calc(28 * var(--k)); }
@media (prefers-reduced-motion: reduce) { .x9w-add > .x9-link-panel, .x9-read-spinner { animation: none; } .x9-preview-close svg { transition: none; } }

/* ---------------------------------------------------------------- the link preview over the whole page (reference .x9-preview-focus) */
.x9-preview-focus { position: fixed; inset: 0; z-index: 100300; display: flex; align-items: center; justify-content: center; padding: 12px 0; overflow-x: hidden; overflow-y: auto; outline: none;
    background: rgba(17, 48, 40, .38); backdrop-filter: blur(18px) saturate(.78); -webkit-backdrop-filter: blur(18px) saturate(.78); isolation: isolate; overscroll-behavior: contain;
    --deck-w: min(69vw, 430px, 52dvh); --deck-step: min(6.4vw, 38px); --deck-h: calc(var(--deck-w) * 1.23); --x9-brand-unit: calc(min(42vw, 210px) / 174);
    direction: rtl; color: #f4f8f3; font-family: var(--x9-font); box-sizing: border-box; }
.x9-preview-watermark { position: absolute; z-index: 3; pointer-events: none; left: 50%; top: 50%; width: calc(174 * var(--x9-brand-unit)); height: calc(54 * var(--x9-brand-unit));
    background: url(img/brand.webp) center / contain no-repeat; mask: url(img/brand.webp) center / contain no-repeat luminance; mix-blend-mode: screen; opacity: .20; animation: x9-watermark-drift 30s cubic-bezier(.45, 0, .35, 1) infinite; will-change: transform, opacity; }
@keyframes x9-watermark-drift {
    0%, 100% { transform: translate(-50%, -50%) translate(-22vw, -40dvh) rotate(-12deg) scale(.9); opacity: .20; }
    16% { transform: translate(-50%, -50%) translate(20vw, -33dvh) rotate(10deg) scale(1.06); opacity: .23; }
    33% { transform: translate(-50%, -50%) translate(31vw, -4dvh) rotate(-9deg) scale(.70); opacity: .13; }
    50% { transform: translate(-50%, -50%) translate(18vw, 40dvh) rotate(8deg) scale(.96); opacity: .21; }
    67% { transform: translate(-50%, -50%) translate(-22vw, 33dvh) rotate(-11deg) scale(.88); opacity: .22; }
    83% { transform: translate(-50%, -50%) translate(-31vw, 0dvh) rotate(7deg) scale(.70); opacity: .13; } }
.x9-preview-focus-size { position: relative; z-index: 1; width: min(100%, 620px); height: auto; margin: auto; flex: none; }
.x9-preview-focus .x9-link-preview { position: relative; inset: auto; width: 100%; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; display: block; justify-items: normal; gap: 0; text-align: center; color: #f4f8f3; }
.x9-preview-body { height: auto; display: flex; flex-direction: column; align-items: center; padding: 52px 0 12px; gap: 12px; }
.x9-preview-stage.x9-deck { --deck-w: min(69vw, 430px, 52dvh); --deck-step: min(6.4vw, 38px); --deck-h: calc(var(--deck-w) * 1.23); position: relative; width: 100%; height: calc(var(--deck-h) + 32px); overflow: visible; contain: none; border-radius: 0; perspective: 1000px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; outline-offset: -4px; }
.x9-preview-stage .x9-deck-slide { left: calc(50% - var(--deck-step)); top: 50%; width: var(--deck-w); height: var(--deck-h); padding: 12px; border-radius: 17px; transition: transform 110ms cubic-bezier(.18, .78, .3, 1), opacity 100ms; }
.x9-preview-stage .x9-deck-photo { border-radius: 11px; }
.x9-preview-nophoto { width: 100%; height: 100%; display: grid; place-items: center; color: #1d3b31; font-size: 14px; }
.x9-preview-copy { position: static; width: calc(100% - 48px); max-width: 400px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; direction: rtl; }
.x9-preview-demo { display: block; font-size: 12px; line-height: 18px; color: #c8d7cd; }
.x9-preview-title { font-size: 22px; line-height: 30px; max-height: 60px; white-space: normal; margin: 0; max-width: 100%; font-weight: 800; color: #f4f8f3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.x9-preview-price { display: block; font: 700 22px/28px Arial, sans-serif; text-align: center; color: #eff5e8; }
.x9-preview-source { display: block; font: 500 14px/20px Arial, sans-serif; margin: 0; text-align: center; max-width: 100%; color: #bfd4df; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x9-preview-focus .x9-preview-close { position: absolute; top: 0; right: 18px; left: auto; width: 48px; height: 48px; min-width: 48px; min-height: 48px; display: grid; place-items: center; border: 0; background: none; padding: 0; z-index: 8; cursor: pointer; color: #deefc6; }
.x9-preview-focus .x9-preview-close svg { width: 34px; height: 34px; overflow: visible; filter: drop-shadow(0 3px 3px #06231b99); transition: transform 160ms ease; }
.x9-preview-focus .x9-preview-close:focus-visible { outline: 2px solid #8ce8ef; outline-offset: 3px; border-radius: 12px; }
.x9-preview-fetch { position: relative; inset: auto; width: calc(100% - 48px); max-width: 400px; min-height: 60px; height: 60px; flex: none; padding: 10px 24px; border: 0; border-radius: 18px; font: 800 21px/1.4 var(--x9-font); color: #102b26;
    isolation: isolate; overflow: hidden; background: #c6f532; box-shadow: 0 9px 28px #bce93a26, inset 0 1px 0 #e9ffd0a6; transition: transform 120ms ease, box-shadow 160ms ease; cursor: pointer; }
.x9-preview-fetch::before { content: ''; position: absolute; inset: -240%; z-index: -2; background: conic-gradient(from 0deg, transparent 0 68%, #d9ff9277 77%, #f5ffd3 81%, #79dbf5 85%, transparent 91%); animation: x9-fetch-orbit 5s linear infinite; }
.x9-preview-fetch::after { content: ''; position: absolute; inset: 2px; width: auto; height: auto; transform: none; border-radius: 16px; z-index: -1; background: linear-gradient(110deg, #c6f532 0%, #ddf994 23%, #bdd7d5 46%, #83cadd 60%, #c6f532 82%); background-size: 230% 100%; animation: x9-fetch-colors 7s ease-in-out infinite alternate; }
.x9-preview-fetch:active { transform: scale(.98); }
.x9-preview-fetch:disabled { font-size: 18px; box-shadow: none; opacity: .85; cursor: default; }
.x9-preview-fetch:disabled::before, .x9-preview-fetch:disabled::after { animation-play-state: paused; }
.x9-preview-fetch:focus-visible { outline: 2px solid #8ce8ef; outline-offset: 3px; }
@keyframes x9-fetch-orbit { to { transform: rotate(360deg); } }
@keyframes x9-fetch-colors { from { background-position: 0 50%; } to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) {
    .x9-preview-watermark, .x9-preview-fetch::before, .x9-preview-fetch::after { animation: none !important; }
    .x9-preview-watermark { transform: translate(-50%, -50%) translate(-22vw, -40dvh) rotate(-12deg) scale(.9); }
    .x9-preview-stage .x9-deck-slide { transition: none; } }

/* a product just fetched glows lime for 1.5 s (reference .product.x9-saved-card) */
.x9w-card.x9-saved-card { animation: x9-work-saved 1500ms ease-out; }
@keyframes x9-work-saved { 20%, 45% { box-shadow: inset 0 0 24px #c6f5323a, 0 0 20px #c6f53255; border-color: #c6f532b0; } 100% { box-shadow: inset 0 1px 2px #afc4bb59; } }
@media (prefers-reduced-motion: reduce) { .x9w-card.x9-saved-card { animation: none; outline: 2px solid #c6f53288; outline-offset: -2px; } }

/* ---------------------------------------------------------------- the operation confirmation and the progress (central, reference values) */
.x9-confirm-layer .x9-confirm-primary { font-weight: 800; }

/* ---------------------------------------------------------------- rows inside the work windows */
.x9n-layer .x9-subtle { color: #c7d7d1; font-size: 12px; margin: 3px 0 10px; }
.x9n-layer .x9-hint { color: #ffc17b; font-size: 12px; line-height: 1.7; margin: 6px 0; }
.x9n-layer .x9-center { text-align: center; }
.x9n-layer .x9-work-list-item .x9-secondary { flex: none; min-height: 36px; font-size: 12px; padding: 6px 8px; max-width: 85px; line-height: 1.4; }
.x9n-layer button.x9-work-list-item { min-height: 48px; gap: 9px; font-size: 15px; }
.x9n-layer button.x9-work-list-item.x9-work-danger { color: #ff938b !important; }
.x9n-layer button.x9-work-list-item .x9-work-paid { margin-inline-start: 6px; }
.x9n-layer .x9n-body .x9-work-empty > svg.x9-icon { width: 62px; height: 62px; display: block; margin: 0 auto 12px; color: #d4e5d8; }   /* reference: var(--lime) is not defined there, so the check takes the text colour under the metal */
/* the review stack in its window (reference .x9-work-deck.x9-shared-deck) */
.x9n-layer .x9-work-deck.x9-deck { --deck-w: min(69vw, 430px, 52dvh); --deck-step: min(6.4vw, 38px); --deck-h: calc(var(--deck-w) * 1.23); position: relative; width: 100%; height: calc(var(--deck-h) + 32px); min-height: 0; overflow: visible; perspective: 1000px; touch-action: pan-y; margin: 0 auto; }
.x9n-layer .x9-work-deck .x9-deck-slide { left: calc(50% - var(--deck-step)); width: var(--deck-w); height: var(--deck-h); padding: 12px; border-radius: 17px; }
.x9n-layer .x9-work-deck .x9-deck-photo { border-radius: 11px; }
.x9n-layer .x9-work-count { text-align: center; margin: 4px 0 0; font-size: 14px; color: #f5f8f5; }
.x9n-layer .x9-work-count + .x9-subtle { text-align: center; }
/* choose one (reference .x9-choose: the template list) */
.x9n-layer .x9-choose { width: 100%; display: flex; align-items: center; gap: 12px; text-align: right; padding: 11px 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; min-height: 48px; }
.x9n-layer .x9-choose > span { min-width: 0; flex: 1; }
.x9n-layer .x9-choose strong { display: block; font-size: 15px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x9n-layer .x9-choose small { display: block; color: #c7d7d1; font-size: 12px; line-height: 1.6; }
.x9n-layer .x9-choice-mark { width: 22px; height: 22px; min-width: 22px; border: 1px solid #96ac9e70; border-radius: 50%; display: grid; place-items: center; box-sizing: border-box; }
.x9n-layer .x9-choose[aria-checked="true"] .x9-choice-mark { background: #c6f532; border-color: #c6f532; color: #173014; }
.x9n-layer .x9-choice-mark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.x9n-layer .x9-choose[aria-checked="true"] strong { color: #c6f532; }
.x9n-layer .x9-choose:focus-visible { outline: 2px solid #c6f532; outline-offset: 2px; }
/* the category picker (reference .x9-category-grid) */
.x9n-layer .x9-category-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.x9n-layer .x9-category-toolbar span { font-size: 12px; color: #c9d7cf; }
.x9n-layer .x9-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.x9n-layer .x9-category-item { padding: 0 !important; display: flex; flex-direction: column; text-align: right; background: none; border: 0; min-width: 0 !important; min-height: 0; position: relative; color: #e8f1e8; cursor: pointer; font: inherit; }
.x9n-layer .x9-category-item:disabled { opacity: .45; cursor: default; }
.x9n-layer .x9-category-item img, .x9n-layer .x9-category-item .x9-category-nophoto { display: block; width: 100%; height: 118px; object-fit: contain; background: #e4e8e5; border-radius: 14px; }
.x9n-layer .x9-category-item strong { font-size: 14px; line-height: 1.7; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; font-weight: 700; }
.x9n-layer .x9-category-item small { font-size: 15px; line-height: 1.6; font-weight: 650; min-height: 1.6em; }
.x9n-layer .x9-category-circle { position: absolute; top: 7px; right: 7px; width: 25px; height: 25px; border-radius: 50%; border: 1px solid #a5c1b5; background: #163c2cbf; display: grid; place-items: center; color: #193118; box-sizing: border-box; }
.x9n-layer .x9-category-circle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.x9n-layer .x9-category-item[aria-pressed="true"] .x9-category-circle { background: #c4ff24; }
.x9n-layer .x9-category-existing { position: absolute; top: 7px; left: 7px; font-size: 12px; background: #153b2ee0; padding: 2px 6px; border-radius: 8px; color: #e8f1e8; }
.x9n-layer .x9-category-item:focus-visible { outline: 2px solid #c6f532; outline-offset: 2px; border-radius: 14px; }

/* ---------------------------------------------------------------- selection mode (reference .x9-selection-header / .x9-bulk-bar) */
.x9w-selbar { min-height: calc(68px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 12px 0; background: #183b30f5; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 0; border-radius: 0 0 14px 14px; gap: 8px; color: #eef7ec; font: 14px var(--x9-font); }
.x9w-selbar button { font: 14px var(--x9-font); padding: 5px 8px; }
.x9w-selbar .x9w-sel-cancel { font-size: 14px; gap: 4px; }
.x9w-selbar .x9w-sel-cancel .x9-icon { width: 17px; height: 17px; }
.x9w-selbar .x9w-sel-count { flex: 1; text-align: center; font-size: 15px; font-weight: 700; }
.x9w-selbar .x9w-sel-all { font-size: 14px; color: inherit; padding: 5px 8px; }
.x9w-opsbar { padding: 5px 6px calc(10px + env(safe-area-inset-bottom, 0px)); background: #173b30eb; border-top: 0; }
.x9w-opsbar .x9w-ops { gap: 3px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.x9w-opsbar .x9w-op { padding: 4px 3px; font: 400 12px/1.35 var(--x9-font); color: #eff5e8; min-height: 44px; gap: 3px; border-radius: 12px; }
.x9w-opsbar .x9w-op .x9-icon { width: 20px; height: 20px; }
.x9w-opsbar .x9w-op small { display: block; font-size: 12px; line-height: 1.35; color: #ffca98; }
.x9w-opsbar .x9w-op .x9-work-paid { font-size: 12px; line-height: 1.5; }
.x9w-opsbar .x9w-op[aria-disabled="true"], .x9w-opsbar .x9w-op.is-dim { opacity: .48; }
.x9w-opsbar .x9w-op:disabled { opacity: .4; cursor: default; }
.x9w-opsbar .x9w-ops-note { font-size: 12px; line-height: 20px; color: #c9dcd0; min-height: 0; margin: 0 0 4px; }
.x9w-opsbar .x9w-ops-note:empty { display: none; }
.x9w.is-selecting .x9w-card.is-picked { box-shadow: inset 0 0 0 2px #c6f53288, inset 0 0 14px #b4eb2524; background: var(--x9w-card-bg); }
.x9w.is-selecting .x9w-more { display: grid; }
.x9w.is-selecting .x9w-action { display: flex; visibility: hidden; pointer-events: none; }

/* the work windows' footer (reference .x9-footer): a single «تم» / «إغلاق» sits small at the start, two buttons share the row */
.x9n-window[data-kind^="work-"] .x9n-foot { justify-content: flex-start; }
.x9n-window[data-kind^="work-"] .x9n-foot > .x9-secondary:only-child, .x9n-window[data-kind^="work-"] .x9n-foot > .x9-link:only-child { flex: 0 0 auto; width: auto; background: #45675650; }
.x9n-window[data-kind^="work-"] .x9n-foot > .x9-link:only-child { background: none; color: #f5f8f5; font-size: 14px; font-weight: 500; }   /* reference review «إغلاق»: x9-link in the work footer reads white 14/500 */
.x9n-window[data-kind="work-delete"] .x9n-foot > .x9-secondary, .x9n-window[data-kind="work-result"] .x9n-foot > .x9-secondary { flex: 0 0 auto; }
.x9n-window[data-kind="work-delete"] .x9n-foot > .x9-work-delete { flex: 0 0 auto; min-height: 44px; }

/* ---------------------------------------------------------------- the add card's one-line note under the link field (owner 2026-10-10)
   «تعذّرت المعاينة — جرّب الجلب» and the other short notes: a small single line, not a big red box */
.x9w-status-line { top: calc(232 * var(--k)); left: calc(34 * var(--k)); right: calc(34 * var(--k)); font-size: 13px; line-height: 20px; }
.x9w-status-line .xa-note { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #cfe0d6; font-size: 13px; line-height: 20px; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; direction: rtl; }
.x9w-status-line .xa-note.err { color: #ffb8a6; }
.x9w-status-line .xa-note.ok { color: #d6efb4; }
