/* Seller AI assistant — ChatGPT-style, on white. See public/seller-ai.js. */
.portal-content:has(> .sai-page) { background: #fff; }
.sai-page { position: relative; display: flex; flex-direction: column; min-height: calc(100vh - 180px); max-width: 820px; margin: 0 auto; padding: 8px 0 0; background: #fff; }
.sai-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); }
.sai-head h1 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 22px; }
.sai-head h1 .icon { width: 20px; height: 20px; color: var(--violet); }
.sai-head p { margin: 4px 0 0; color: var(--gray); font-size: 14px; }
.sai-head [data-sai-count] { color: var(--violet); font-weight: 600; }
.sai-reset { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer; min-height: 40px; }
.sai-thread { flex: 1; display: flex; flex-direction: column; gap: 22px; padding: 22px 4px 150px; }
.sai-msg { display: flex; gap: 12px; }
.sai-user { flex-direction: column; align-items: flex-end; gap: 6px; }
.sai-bubble { max-width: 78%; background: #f1f1f4; border-radius: 20px; padding: 10px 16px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.sai-files { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.sai-files span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 13px; background: #fff; }
.sai-files .icon { width: 16px; height: 16px; color: var(--violet); }
.sai-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; }
.sai-avatar img { width: 18px; height: 18px; }
.sai-body { flex: 1; min-width: 0; }
.sai-text { font-size: 15px; line-height: 1.6; color: var(--ink); padding-top: 3px; }
.sai-q-img { display: block; margin-top: 10px; width: 180px; height: 180px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.sai-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; color: var(--violet); }
.sai-link .icon { width: 16px; height: 16px; }
.sai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sai-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; min-height: 40px; color: var(--ink); }
.sai-chips button:hover { border-color: var(--violet); color: var(--violet); }
.sai-drafts { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-height: 420px; overflow-y: auto; }
.sai-draft { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.sai-draft + .sai-draft { border-top: 1px solid var(--line); }
.sai-draft-shot { flex: none; width: 44px; height: 44px; border-radius: 8px; background: #f4f4f6; display: grid; place-items: center; overflow: hidden; color: #b0b3c2; }
.sai-draft-shot img { width: 100%; height: 100%; object-fit: cover; }
.sai-draft-shot .icon { width: 18px; height: 18px; }
.sai-draft-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sai-draft-body b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sai-draft-body small { font-size: 12.5px; color: var(--gray); }
.sai-draft-body em { font-style: normal; font-size: 12px; color: #b54708; }
.sai-more { margin: 0; padding: 8px 12px; font-size: 13px; color: var(--gray); border-top: 1px solid var(--line); }
.sai-dots { display: inline-flex; gap: 4px; padding: 10px 0; }
.sai-dots i { width: 7px; height: 7px; border-radius: 50%; background: #c4c6d3; animation: saiDot 1.2s infinite ease-in-out; }
.sai-dots i:nth-child(2) { animation-delay: .15s; } .sai-dots i:nth-child(3) { animation-delay: .3s; }
.sai-typing small { display: block; color: var(--gray); font-size: 13px; }
@keyframes saiDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.sai-composer { position: sticky; bottom: 34px; display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 10px; margin: 0 4px; background: #fff; border: 1px solid #d9dae3; border-radius: 26px; box-shadow: 0 6px 24px rgba(20, 20, 40, .08); }
.sai-composer textarea { flex: 1; border: 0; outline: 0; resize: none; font: inherit; font-size: 15px; line-height: 1.5; padding: 8px 4px; max-height: 180px; background: transparent; }
.sai-attach, .sai-send { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.sai-attach { color: var(--ink); } .sai-attach:hover { background: #f1f1f4; }
.sai-send { border: 0; background: var(--ink); color: #fff; }
.sai-attach .icon, .sai-send .icon { width: 20px; height: 20px; }
.sai-composer.is-busy .sai-send { opacity: .4; pointer-events: none; }
.sai-foot { position: sticky; bottom: 8px; margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--gray); background: #fff; }
.sai-dropzone { display: none; }
.sai-page.is-drag .sai-dropzone { display: grid; place-items: center; position: absolute; inset: 0; border: 2px dashed var(--violet); border-radius: 18px; background: rgba(238, 237, 254, .92); color: var(--violet); font-weight: 700; font-size: 18px; z-index: 5; }
.btn.ai-cta .icon { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .portal-shell:has(.sai-page) > .portal-nav { display: none; }
  .sai-page { min-height: calc(100vh - 120px); }
  .sai-head h1 { font-size: 19px; }
  .sai-bubble { max-width: 88%; }
  .sai-composer { bottom: calc(62px + env(safe-area-inset-bottom)); margin: 0; }
  .sai-foot { bottom: calc(40px + env(safe-area-inset-bottom)); }
  .sai-thread { padding-bottom: 190px; }
}
.signup-linked { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 4px 0 16px; border-radius: 12px; background: #ecfdf3; color: #05603a; font-size: 14px; line-height: 1.45; }
.signup-linked .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }

/* AI Mode model picker (public/ai.js) — an Alibaba-style "Select model" sheet:
   a bottom sheet on phones, a right-hand drawer on desktop. Lists only the two
   tiers AJAW Trade actually runs (Fast / Premium), with a check mark on the
   selected one; Premium is disabled until the server has a paid model. */
.ai-mode-wrap { position: relative; }
.ai-mode-pick { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.ai-mode-pick .icon { width: 14px; height: 14px; }
.ai-mode-pick .icon:first-child { color: var(--violet); }
.ai-mode-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(9, 9, 20, .38); }
.ai-mode-backdrop[hidden] { display: none; }
.ai-mode-sheet { position: fixed; z-index: 91; background: #fff; box-shadow: 0 -8px 32px rgba(20,20,40,.18); display: flex; flex-direction: column; }
.ai-mode-sheet[hidden] { display: none; }
.ai-mode-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.ai-mode-sheet-head b { font-size: 16px; }
.ai-mode-close { width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; background: #f4f3ff; display: grid; place-items: center; cursor: pointer; }
.ai-mode-close .icon { width: 15px; height: 15px; }
.ai-mode-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; }
.ai-mode-opt:hover:not(:disabled) { background: #f4f3ff; }
.ai-mode-opt[aria-checked="true"] { background: #eeedfe; }
.ai-mode-opt:disabled { opacity: .55; cursor: default; }
.ai-mode-opt-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ai-mode-opt-body b { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.ai-mode-opt-body b .icon { width: 13px; height: 13px; color: #f2a93b; }
.ai-mode-opt-body small { font-size: 12px; color: var(--gray); }
.ai-mode-opt > .icon { flex: none; width: 18px; height: 18px; color: var(--violet); }
.ai-composer-foot .ai-spacer { flex: 1; }
@media (min-width: 761px) {
  .ai-mode-sheet { top: 0; right: 0; bottom: 0; width: 380px; max-width: 88vw; padding: 18px 14px; border-left: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .ai-mode-sheet { left: 0; right: 0; bottom: 0; max-height: 78vh; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; overflow-y: auto; }
  .ai-mode-sheet::before { content: ''; display: block; width: 36px; height: 4px; margin: 2px auto 12px; border-radius: 99px; background: var(--line); }
}

/* "Explore what you can do" — tabbed prompt cards on the empty AI Mode screen
   (public/ai.js: aiExplore()). Tapping a card sends the prompt through the
   normal composer path. */
.ai-explore { margin-top: 26px; }
.ai-explore h2 { font-size: 15px; font-weight: 650; margin: 0 0 12px; color: var(--ink); }
.ai-explore-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.ai-explore-tabs::-webkit-scrollbar { display: none; }
.ai-explore-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: #4c4a5c; cursor: pointer; white-space: nowrap; }
.ai-explore-tab:hover { border-color: var(--violet); color: var(--violet); }
.ai-explore-tab.on { border-color: var(--violet); background: var(--tint); color: var(--violet); }
.ai-explore-tab .icon { width: 12px; height: 12px; }
.ai-explore-cards { display: flex; flex-direction: column; margin-top: 6px; border-top: 1px solid var(--line); }
.ai-explore-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font-size: 12.5px; line-height: 1.5; color: #4c4a5c; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; }
.ai-explore-card:hover { color: var(--violet); }
.ai-explore-card .icon { width: 14px; height: 14px; margin-left: auto; flex-shrink: 0; transform: rotate(45deg); opacity: .5; }
@media (max-width: 760px) {
  .ai-explore { margin-top: 20px; }
}

/* The assistant is an app screen: it fills the window, the conversation scrolls
   inside it, the composer stays put, and the site footer is not part of it. */
/* footer stays; only the conversation box scrolls, so sending never moves the page */
body:has(.sai-page) .side-dock { display: none; }
.portal-shell:has(.sai-page) { min-height: 0; }
.sai-page { height: calc(100vh - 150px); height: calc(100dvh - 150px); min-height: 420px; }
.sai-thread { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 16px; overscroll-behavior: contain; }
.sai-composer { position: static; flex: none; margin-top: 8px; }
.sai-foot { position: static; flex: none; }
@media (max-width: 760px) {
  .sai-page { height: calc(100dvh - 190px); }
  .sai-thread { padding-bottom: 12px; }
  .sai-composer, .sai-foot { position: static; bottom: auto; }
  body:has(.sai-page) .tabbar { display: none; }
  .sai-page { height: calc(100dvh - 130px); }
}
@media (max-width: 760px) {
  #app:has(.sai-page) > header .search-box, #app:has(.sai-page) > .campaign-strip { display: none; }
  #app:has(.sai-page) > header > .head-main { min-height: 40px; padding-bottom: 0; }
}
.sai-head-actions { position: relative; display: flex; gap: 8px; flex: none; }
.sai-head-actions .sai-reset { display: inline-flex; align-items: center; gap: 6px; }
.sai-head-actions .icon { width: 15px; height: 15px; }
.sai-hist { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 300px; max-height: 360px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(20,20,40,.14); }
.sai-hist[hidden] { display: none; }
.sai-hist button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; text-align: left; cursor: pointer; }
.sai-hist button:hover { background: #f4f3ff; }
.sai-hist b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sai-hist small, .sai-hist p { font-size: 12.5px; color: var(--gray); margin: 0; }
.sai-hist p { padding: 10px; }
.sai-composer .sai-attach { width: auto; padding: 0 12px 0 10px; gap: 6px; border-radius: 999px; background: #f1f1f4; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; }
.sai-composer .sai-attach:hover { background: #e8e7f3; }
@media (max-width: 760px) { .sai-composer .sai-attach span { display: none; } .sai-composer .sai-attach { padding: 0; width: 40px; justify-content: center; } .sai-hist { width: 260px; } }

/* Voice notes + inline "new conversation" bar (2026-09-18: never a browser popup). */
.sai-mic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.sai-mic:hover { background: #f1f1f4; }
.sai-mic .icon { width: 20px; height: 20px; }
.sai-mic.is-rec { background: #e5484d; color: #fff; animation: sai-rec 1.2s ease-in-out infinite; }
.sai-mic.is-rec .icon { display: none; }
.sai-mic.is-rec::before { content: ''; width: 12px; height: 12px; border-radius: 2px; background: #fff; }
@keyframes sai-rec { 50% { box-shadow: 0 0 0 7px rgba(229, 72, 77, .18); } }
.sai-rec { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 4px; font-size: 15px; color: var(--ink); }
.sai-rec[hidden] { display: none; }
.sai-rec i { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; animation: sai-blink 1s steps(2) infinite; }
.sai-rec b { font-variant-numeric: tabular-nums; }
@keyframes sai-blink { 50% { opacity: 0; } }
.sai-voice-tag { display: block; font-size: 12px; color: var(--gray); margin-bottom: 2px; }
.sai-newbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.sai-newbar[hidden] { display: none; }
.sai-newbar span { flex: 1; min-width: 220px; }
.sai-reset.is-primary { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------------------------------------------- manufacturer workspace (2026-09-18)
   Giuliano: empty states sat in grey boxes ("a square inside a square"), the AI button
   floated in the middle of the heading, and "Agregar producto" was a cramped modal.
   Plain white, buttons grouped on the right, full pages. */
.portal-content .empty, .portal-content .work-empty { background: none; border: 0; border-radius: 0; box-shadow: none; margin: 8px 0; padding: 56px 16px; }
.portal-content .work-panel .empty { margin: 0; padding: 36px 12px 16px; }
.portal-content .empty > .icon, .portal-content .work-empty .icon { color: #b9b3d6; }
.page-heading .head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.portal-content .work-panel .head-actions { justify-content: flex-start; margin: 12px 0 0; }
.ai-cta-soft { display: inline-flex; align-items: center; gap: 7px; color: var(--violet) !important; border-color: #d9d4fb !important; background: #fff !important; }
.ai-cta-soft .icon { width: 16px; height: 16px; }
.ai-cta-soft:hover { background: #f6f4ff !important; }

/* Agregar producto + Perfil: one white page, numbered sections, thin rules - no cards. */
.pf-head { align-items: flex-start; }
.pf-head-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pf { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; margin-top: 8px; }
.pf.pr { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.pf-sec { padding: 28px 0; border-top: 1px solid var(--line); }
.pf-sec:first-child { border-top: 0; padding-top: 8px; }
.pf-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 18px; }
.pf-sec h2 i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; display: grid; place-items: center; font-family: inherit; }
.pf-field { display: block; margin: 0 0 16px; }
.pf-field > span, .pf-tiers-head span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.pf-field b { color: #e5484d; font-weight: 600; }
.pf-field input, .pf-field select, .pf-field textarea, .pf-tier input { width: 100%; border: 1px solid #d9dae3; border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); outline: 0; }
.pf-field textarea { resize: vertical; line-height: 1.5; }
.pf-field input:focus, .pf-field select:focus, .pf-field textarea:focus, .pf-tier input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(62, 52, 249, .12); }
.pf-field small, .pf-tiers-head small, .pf-hint { display: block; font-size: 12px; color: var(--gray); margin-top: 6px; line-height: 1.5; }
.pf-hint { margin: -8px 0 14px; }
.pf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.pf-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 26px 16px; border: 1.5px dashed #cfcbe8; border-radius: 12px; cursor: pointer; margin-bottom: 16px; transition: .15s; }
.pf-drop:hover, .pf-drop.is-drag { border-color: var(--violet); background: #faf9ff; }
.pf-drop .icon { width: 26px; height: 26px; color: var(--violet); }
.pf-drop b { font-size: 15px; } .pf-drop small { font-size: 12px; color: var(--gray); max-width: 440px; }
.pf-media { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-media:not(:empty) { margin-bottom: 12px; }
.pf-thumb { position: relative; width: 104px; height: 104px; margin: 0; border-radius: 10px; overflow: hidden; background: #f3f3f6; display: grid; place-items: center; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pf-thumb > span { position: absolute; left: 6px; bottom: 6px; background: rgba(9, 9, 11, .72); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 99px; }
.pf-thumb.is-loading > span { position: static; background: none; }
.pf-thumb button { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); cursor: pointer; font-size: 16px; line-height: 1; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.pf-tiers-head { margin: 4px 0 10px; }
.pf-tiers { display: grid; gap: 10px; }
.pf-tiers.is-off { opacity: .4; pointer-events: none; }
.pf-tier { display: grid; grid-template-columns: 1fr 1.3fr 32px; gap: 12px; align-items: end; }
.pf-tier label > span { display: block; font-size: 12px; color: var(--gray); margin-bottom: 4px; }
.pf-tier label:first-child { position: relative; }
.pf-tier em { position: absolute; right: 12px; bottom: 12px; font-style: normal; font-size: 13px; color: var(--muted); pointer-events: none; }
.pf-money { position: relative; } .pf-money b { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray); font-weight: 500; font-size: 14px; }
.pf-money input { padding-left: 42px; }
.pf-x { width: 32px; height: 44px; border: 0; background: none; font-size: 22px; color: var(--gray); cursor: pointer; }
.pf-add { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 4px; border: 0; background: none; color: var(--violet); font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px 0; }
.pf-add .icon { width: 16px; height: 16px; }
.pf-check { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 12px 0 0; cursor: pointer; }
.pf-check input { width: 18px; height: 18px; accent-color: var(--violet); }
.pf-check-inline { margin-top: 30px; }
.pf-side { position: sticky; top: 24px; }
.pf-score { padding: 4px 0 0 28px; border-left: 1px solid var(--line); }
.pf-score h3 { font-size: 15px; margin: 0 0 12px; }
.pf-meter { height: 6px; border-radius: 99px; background: #eeeef3; overflow: hidden; }
.pf-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7871fb, #3e34f9); transition: width .3s; }
.pf-score p { font-size: 13px; color: var(--gray); margin: 10px 0 12px; }
.pf-score ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 7px; font-size: 13px; color: var(--muted); }
.pf-score li.is-ok { color: var(--green); }
.pf-score > small { display: block; font-size: 12px; color: var(--gray); margin-top: 10px; text-align: center; }
.pr-id { display: flex; gap: 20px; align-items: center; }
.pr-id h3 { font-size: 20px; margin: 0 0 4px; }
.pr-state { font-size: 13px; color: var(--gray); margin: 0 0 12px; }
.pr-logo { width: 96px; height: 96px; flex: none; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; background: #fff; }
.pr-logo img { width: 100%; height: 100%; object-fit: contain; }
.pr-logo b { font-size: 30px; color: var(--violet); }
.pr-logo-btn { cursor: pointer; margin-right: 10px; }
.pr-id small { font-size: 12px; color: var(--gray); }
.pr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pr-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pr-chip span { display: inline-block; padding: 8px 14px; border: 1px solid #d9dae3; border-radius: 99px; font-size: 14px; cursor: pointer; }
.pr-chip input:checked + span { border-color: var(--violet); background: #f4f2ff; color: var(--violet); font-weight: 600; }
.pr-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(62, 52, 249, .2); }
.pr-docs { display: flex; flex-direction: column; gap: 6px; }
.pr-docs a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.pr-docs .icon { width: 16px; height: 16px; }
.pr-caps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.pr-caps .pf-check { margin: 8px 0; }
.pr-save { padding: 24px 0 8px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .pf { grid-template-columns: 1fr; gap: 0; }
  .pf-side { position: static; }
  .pf-score { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
}
@media (max-width: 760px) {
  .pf-grid2, .pf-grid3, .pr-caps { grid-template-columns: 1fr; gap: 0; }
  .pf-check-inline { margin-top: 0; }
  .pf-tier { grid-template-columns: 1fr 1.2fr 28px; gap: 8px; }
  .page-heading .head-actions, .pf-head-actions { justify-content: flex-start; margin-left: 0; width: 100%; }
  .pr-id { flex-direction: column; align-items: flex-start; }
}
.pf-drop .pf-req { font-style: normal; font-size: 12px; color: var(--violet); font-weight: 600; }
.up-hint { margin: 4px 0 8px; font-size: 13px; }
.up-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.store-catalogs { padding: 28px 0 8px; }
.store-catalogs h2 { font-size: 20px; margin: 0 0 12px; }
.store-catalogs > div { display: flex; flex-wrap: wrap; gap: 12px; }
.store-catalogs a { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); min-width: 240px; }
.store-catalogs a:hover { border-color: var(--violet); }
.store-catalogs .icon { width: 22px; height: 22px; color: var(--violet); }
.store-catalogs span { display: flex; flex-direction: column; } .store-catalogs small { color: var(--gray); font-size: 12px; }
.pr-cert { padding: 14px 0; border-top: 1px solid var(--line); }
.pr-cert-head { display: flex; align-items: center; gap: 8px; }
.pr-cert-head .icon { width: 18px; height: 18px; color: var(--violet); }
.pr-cert-head .badge { margin-left: auto; }
.pr-cert small { display: block; color: var(--gray); font-size: 12px; margin: 4px 0 0 26px; }
.pr-cert ul { list-style: none; padding: 0; margin: 8px 0 6px 26px; font-size: 13px; color: var(--gray); display: grid; gap: 3px; }
.pr-cert li.is-ok { color: var(--green); }
.pr-cert a { margin-left: 26px; font-size: 13px; color: var(--violet); }
.badge.bad { background: #fdecec; color: #b42318; }
/* Shopify-style variant builder */
.pf-opts { display: grid; gap: 12px; }
.pf-opt { border-top: 1px solid var(--line); padding-top: 12px; }
.pf-opt:first-child { border-top: 0; padding-top: 0; }
.pf-opt-head { display: flex; gap: 8px; align-items: flex-end; }
.pf-opt-head .pf-field { flex: 1; margin-bottom: 8px; max-width: 320px; }
.pf-vals { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 1px solid #d9dae3; border-radius: 10px; padding: 8px; }
.pf-vals:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(62, 52, 249, .12); }
.pf-val { display: inline-flex; align-items: center; gap: 4px; background: #f4f2ff; color: var(--violet); border-radius: 99px; padding: 5px 6px 5px 12px; font-size: 14px; font-weight: 600; }
.pf-val button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; }
.pf-val-in { flex: 1; min-width: 160px; border: 0; outline: 0; font: inherit; font-size: 15px; padding: 6px 4px; }
.pf-vtable { margin-top: 16px; overflow-x: auto; }
.pf-vtable:empty { display: none; }
.pf-vhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pf-vbulk { display: flex; gap: 6px; align-items: center; }
.pf-vbulk input { border: 1px solid #d9dae3; border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 14px; width: 150px; }
.pf-vtable table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pf-vtable th { text-align: left; font-size: 12px; color: var(--gray); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.pf-vtable th small { font-weight: 400; }
.pf-vtable td { padding: 6px; border-bottom: 1px solid var(--line); }
.pf-vtable td:first-child { font-weight: 600; white-space: nowrap; }
.pf-vtable td input:not([type=checkbox]) { width: 100%; min-width: 110px; border: 1px solid #d9dae3; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; }
.pf-vtable td input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--violet); }
