/* Purplestone admin */
:root {
  --aubergine: #2B0838; --night: #1A0522; --brand: #7A129F; --orchid: #EBDDF3; --lilac: #F7F2F9;
  --line: #E4D6EC; --gold: #F2B43C; --ink: #1E1024; --muted: #5E4F66; --error: #A1123A; --ok: #13663B;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--lilac); color: var(--ink); font: 15px/1.45 'Figtree', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { background: var(--lilac); padding: 2px 6px; border-radius: 6px; font-size: 13px; word-break: break-all; }

.a-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.a-side { background: var(--night); color: #D9C8E2; padding: 20px 14px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; }
.a-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.03em; padding: 4px 8px; }
.a-brand:hover { text-decoration: none; }
.a-brand em { font-style: normal; font-family: 'Figtree', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.a-nav { display: flex; flex-direction: column; gap: 2px; }
.a-nav a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; color: #D9C8E2; font-weight: 600; }
.a-nav a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; color: #fff; }
.a-nav a.is-on { background: var(--brand); color: #fff; }
.a-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--aubergine); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.a-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 12px; font-size: 14px; }
.a-side-foot a { color: #D9C8E2; }
.a-link { border: 0; background: none; padding: 0; color: #D9C8E2; cursor: pointer; text-align: left; font-size: 14px; }
.a-link:hover { color: #fff; text-decoration: underline; }
.a-danger-text { color: var(--error); }

.a-main { padding: 28px clamp(16px, 3vw, 40px) 64px; min-width: 0; animation: aIn .35s ease-out both; }
@keyframes aIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.a-h1 { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -.03em; color: var(--aubergine); margin: 0 0 20px; }
.a-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.a-title-row .a-h1 { margin-bottom: 16px; }
.a-back { display: inline-block; margin-bottom: 12px; font-weight: 600; }
.a-muted { color: var(--muted); }
.a-ok { color: var(--ok); font-weight: 600; }
.a-hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.a-flash { background: var(--aubergine); color: #fff; padding: 12px 18px; border-radius: 12px; margin-bottom: 20px; animation: aIn .3s ease-out both; }
.a-callout { background: #FDF0D5; color: #5A3700; padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; }
.a-callout-error { background: #FBE3EA; color: var(--error); }

.a-card { background: #fff; border-radius: 18px; padding: 22px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(43, 8, 56, .04); }
.a-card h2 { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--aubergine); margin: 0 0 14px; }
.a-card h2:not(:first-child) { margin-top: 26px; }
.a-card-head { display: flex; justify-content: space-between; align-items: baseline; }
.a-card label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
.a-card label:first-of-type { margin-top: 0; }
.a-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .a-card select, .a-card textarea, .a-search input, .a-search select {
  width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #FBF8FC; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.a-card textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.a-card input:focus, .a-card select:focus, .a-card textarea:focus, .a-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(122, 18, 159, .12); background: #fff; }
.a-card input[type="file"] { padding: 10px; border: 1.5px dashed var(--line); border-radius: 10px; width: 100%; background: #FBF8FC; }
.a-card > .a-btn, .a-card form > .a-btn { margin-top: 18px; }
.a-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; margin: 10px 0 !important; cursor: pointer; }
.a-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.a-inline { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; }
.a-inline input { width: 80px !important; }
.a-field-err { display: block; color: var(--error); font-size: 13px; margin-top: 6px; }
.a-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.a-two label { margin-top: 14px; }
.a-grid-2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.a-col { display: flex; flex-direction: column; }
.a-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--aubergine); font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, transform .1s; }
.a-btn:hover { border-color: var(--aubergine); text-decoration: none; }
.a-btn:active { transform: scale(.97); }
.a-btn-primary { background: var(--aubergine); border-color: var(--aubergine); color: #fff; }
.a-btn-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.a-btn-danger { color: var(--error); border-color: #F0C4D0; }
.a-btn-lg { height: 50px; padding: 0 26px; }
.a-btn.is-busy { opacity: .6; pointer-events: none; }

.a-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.a-stat { background: #fff; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 14px; animation: aIn .4s ease-out both; transition: transform .2s, box-shadow .2s; }
.a-stat:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(43, 8, 56, .08); }
.a-stat strong { font-family: var(--display); font-size: 30px; color: var(--aubergine); letter-spacing: -.03em; }
.a-stat:nth-child(2) { animation-delay: .04s; } .a-stat:nth-child(3) { animation-delay: .08s; } .a-stat:nth-child(4) { animation-delay: .12s; } .a-stat:nth-child(5) { animation-delay: .16s; } .a-stat:nth-child(6) { animation-delay: .2s; }

.a-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.a-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.a-toolbar .a-tabs { margin-bottom: 0; }
.a-tabs a { height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--aubergine); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.a-tabs a:hover { text-decoration: none; background: var(--orchid); }
.a-tabs a.is-on { background: var(--aubergine); color: #fff; }
.a-tabs b { font-size: 12px; opacity: .7; }
.a-search { display: flex; gap: 8px; }
.a-search input { width: 260px; background: #fff; }
.a-search select { width: 190px; background: #fff; }

.a-table-wrap { overflow-x: auto; margin: -4px; }
.a-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.a-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.a-table td { padding: 12px 10px; border-bottom: 1px solid #F1E8F5; vertical-align: middle; }
.a-table tr:last-child td { border-bottom: 0; }
.a-table tbody tr { transition: background .15s; }
.a-table tbody tr:hover { background: #FCF9FD; }
.a-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--lilac); }
.a-pager { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.a-pager a, .a-pager span { min-width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; background: var(--lilac); }
.a-pager span { background: var(--aubergine); color: #fff; }

.status-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--orchid); color: var(--aubergine); white-space: nowrap; }
.status-pending_payment { background: #FDF0D5; color: #7A4B00; }
.status-processing { background: #E2E0F8; color: #2E2A7A; }
.status-shipped { background: #DCE9E3; color: #1E5B40; }
.status-completed { background: #D7F2E2; color: #13663B; }
.status-cancelled { background: #FBE3EA; color: var(--error); }

.a-switch { width: 44px; height: 26px; border-radius: 999px; border: 0; background: #DCCBE5; position: relative; cursor: pointer; transition: background .2s; }
.a-switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.a-switch.is-on { background: var(--brand); }
.a-switch.is-on span { transform: translateX(18px); }

.a-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F1E8F5; }
.a-line img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.a-line span { flex: 1; }
.a-dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 14px 0 0; }
.a-dl dt { color: var(--muted); }
.a-dl dd { margin: 0; }

.a-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-bottom: 8px; }
.a-image { background: var(--lilac); border-radius: 12px; padding: 8px; }
.a-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.a-image label { font-size: 12px !important; margin: 8px 0 0 !important; display: flex; align-items: center; gap: 6px; }
.a-image input[type="number"] { height: 32px !important; width: 64px !important; padding: 0 6px !important; }

.a-banner { display: grid; grid-template-columns: 320px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid #F1E8F5; transition: opacity .2s; }
.a-banner:first-of-type { padding-top: 0; }
.a-banner img { border-radius: 12px; aspect-ratio: 1600 / 476; object-fit: cover; }
.a-banner.is-off { opacity: .55; }
.a-banner-fields label { margin-top: 10px; }
.a-msg.is-new { box-shadow: inset 4px 0 0 var(--gold); }
.a-msg h2 { margin: 0; }
.a-msg p { margin: 8px 0 0; }
.a-quote { background: var(--lilac); padding: 12px 14px; border-radius: 12px; }

.a-login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--night); padding: 20px; }
.a-login { width: 100%; max-width: 380px; background: #fff; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; animation: aIn .45s ease-out both; }
.a-login .a-brand { color: var(--aubergine); padding: 0; margin-bottom: 20px; }
.a-login h1 { font-family: var(--display); font-size: 28px; margin: 0 0 12px; color: var(--aubergine); letter-spacing: -.03em; }
.a-login label { font-weight: 600; font-size: 14px; margin: 12px 0 6px; }
.a-login input { height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #FBF8FC; outline: 0; }
.a-login input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(122, 18, 159, .12); }
.a-login .a-btn { margin-top: 22px; height: 48px; }
.a-error { background: #FBE3EA; color: var(--error); padding: 10px 14px; border-radius: 10px; margin: 0 0 8px; }

@media (max-width: 900px) {
  .a-shell { grid-template-columns: 1fr; }
  .a-side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 12px; overflow-x: auto; }
  .a-brand em, .a-brand span { display: none; }
  .a-nav { flex-direction: row; }
  .a-nav a { height: 40px; padding: 0 10px; white-space: nowrap; }
  .a-nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .a-side-foot { display: none; }
  .a-grid-2, .a-two, .a-banner { grid-template-columns: 1fr; }
  .a-search { width: 100%; }
  .a-search input, .a-search select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Analytics, vendors, approvals ---------- */
.a-delta { font-size: 12px; font-weight: 700; }
.a-delta.up { color: var(--ok); }
.a-delta.down { color: var(--error); }
.a-chart { width: 100%; height: auto; display: block; }
.a-chart .grid { stroke: #F1E8F5; stroke-width: 1; }
.a-chart rect { fill: #DCCBE5; transform-origin: bottom; transform-box: fill-box; animation: grow .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 12ms); }
.a-chart rect:hover { fill: var(--brand); }
.a-chart .line { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 1.4s .3s ease-out forwards; }
.a-chart text { font-size: 12px; fill: var(--muted); }
.a-chart text.o { fill: #9A6A00; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.a-legend { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.a-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.a-legend i.v { background: #DCCBE5; } .a-legend i.o { background: var(--gold); }
.a-bar-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 56px; gap: 12px; align-items: center; padding: 7px 0; font-size: 14px; }
.a-bar-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-bar-row b { text-align: right; }
.a-bar { height: 10px; background: #F1E8F5; border-radius: 999px; overflow: hidden; display: block; }
.a-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transform-origin: left; animation: growX .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.a-bar-lg { height: 16px; }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.a-funnel-row { display: grid; grid-template-columns: 140px 1fr 60px; gap: 12px; align-items: center; padding: 8px 0; font-size: 14px; }
.a-funnel-row b { text-align: right; }
.a-funnel-row em { grid-column: 2 / 4; font-style: normal; font-size: 12px; color: var(--muted); margin-top: -6px; }
.a-questions { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.a-approve { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.a-empty { text-align: center; padding: 40px 22px; }
.a-ok-box { background: #D7F2E2; color: var(--ok); padding: 10px 14px; border-radius: 10px; margin: 0 0 8px; }
.a-center { text-align: center; margin: 14px 0 0; }
.a-login-wide { max-width: 440px; }
.a-login select { height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #FBF8FC; }
.a-login .a-check { margin: 14px 0 0 !important; font-size: 14px; }
.is-vendor .a-nav a.is-on { background: var(--gold); color: var(--aubergine); }
@media (max-width: 900px) { .a-funnel-row { grid-template-columns: 110px 1fr 50px; } }

/* Collections + home page rows */
.a-col-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--ink); }
.a-col-row:hover { background: var(--lilac); text-decoration: none; }
.a-col-row.is-on { background: var(--orchid); }
.a-swatch { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }
.a-line-row { padding: 14px 0; border-bottom: 1px solid #F1E8F5; transition: opacity .2s; }
.a-line-row.is-off { opacity: .55; }
.a-line-fields { display: grid; grid-template-columns: 1.4fr 1.4fr 1.2fr 80px 80px auto; gap: 12px; align-items: end; }
.a-line-fields label { margin: 0 0 6px !important; }
.a-line-fields .a-check { margin: 0 0 10px !important; white-space: nowrap; }
.a-line-fields [hidden] { display: none; }
.a-line-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; }
@media (max-width: 1100px) { .a-line-fields { grid-template-columns: 1fr 1fr; } }

/* Delivery fees by state, payment logos */
.a-states { margin-top: 14px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.a-states summary { cursor: pointer; font-weight: 700; color: var(--aubergine); }
.a-state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; margin-top: 12px; }
.a-state-grid label { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; margin: 0 !important; font-weight: 500 !important; }
.a-state-grid input { width: 110px !important; height: 38px !important; }
.a-logo-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.a-logo { display: flex !important; flex-direction: column; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin: 0 !important; }
.a-logo img { height: 30px; width: auto; }

/* Product options (update 12) */
.a-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.a-attr-table input:not([type=checkbox]):not([type=color]) { margin: 0; }
.a-card .a-attr-table input.a-num[name] { width: 80px; }
.a-sw-cell { white-space: nowrap; }
.a-sw-cell .a-check { display: inline-flex !important; margin: 0 8px 0 0 !important; vertical-align: middle; }
.a-card .a-sw-cell input[type=color][name] { width: 38px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; vertical-align: middle; background: #fff; }
.a-opts { display: grid; gap: 10px; margin-top: 12px; }
.a-opt { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; transition: border-color .2s, background .2s; }
.a-opt.is-on { border-color: var(--aubergine); background: #FBF7FD; }
.a-card .a-opt-head { margin: 0 0 10px !important; }
.a-opt-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.a-card .a-chip { display: inline-flex !important; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; background: #fff; margin: 0 !important; font-weight: 500; line-height: 1.2; }
.a-chip input { margin: 0; width: 16px; height: 16px; accent-color: var(--brand); }
.a-card .a-chip:has(input:checked) { border-color: var(--aubergine); background: #F3E9F8; }
.a-sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); display: inline-block; }
.a-var-wrap { margin-top: 18px; }
.a-var-wrap h3 { margin: 0 0 4px; font-size: 16px; }
.a-card .a-var-table input:not([type=checkbox])[name] { margin: 0; min-width: 0; width: 96px; height: 40px; padding: 0 10px; }
.a-card .a-var-table td { padding-left: 6px; padding-right: 6px; }
.a-var-table td:first-child { font-weight: 600; white-space: nowrap; }
.a-stock { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.a-stock.is-low { color: var(--error); font-weight: 700; }
.a-card .a-var-table input.a-qty[name] { width: 70px; }
.a-card .a-opt input.a-opt-new[name] { margin-top: 10px; height: 38px; font-size: 14px; background: #fff; }
.a-rem-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.a-rem-row label { margin-top: 6px; }
.a-unit { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.a-card .a-unit input[type="number"][name] { width: 90px; }
@media (max-width: 640px) { .a-rem-row { grid-template-columns: 1fr; } }
.a-inline-form { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.a-linkbtn { border: 0; background: none; color: var(--brand); font-weight: 600; font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; }

/* Store logo */
.a-brand .brand-logo { display: block; width: auto; max-width: 170px; }
.a-brand .brand-chip { display: inline-flex !important; align-items: center; background: #fff; border-radius: 10px; padding: 4px 10px; }
.a-brand-preview { background: #fff; border: 1px solid var(--line, #e4d6ec); border-radius: 12px; padding: 12px 16px; display: inline-block; margin-bottom: 8px; }
.a-brand-preview img { display: block; height: 48px; width: auto; }

/* Admin team and roles */
.a-whoami { font-size: 12px; color: #B9A6C4; }
.a-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 18px; }
.a-role { background: #fff; border-radius: 14px; padding: 14px 16px; border-left: 4px solid var(--brand); display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.a-role span { color: var(--muted); }
.a-role-manager { border-left-color: var(--gold); }
.a-role-catalog { border-left-color: #3BA776; }
.a-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--lilac); color: var(--brand); vertical-align: 1px; }
.a-pill-off { background: #FBE3EA; color: var(--error); }
.a-row-off td { opacity: .65; }
.a-inline-form input[type=text] { width: 150px; }
.a-narrow { max-width: 460px; }

/* Blog editor */
.a-blog-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.a-input-lg { font-size: 20px !important; font-weight: 700; }
.a-blog-body { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14.5px; line-height: 1.6; min-height: 420px; }
.a-help { margin-top: 10px; font-size: 13px; }
.a-help summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.a-help code { background: var(--lilac); padding: 1px 6px; border-radius: 6px; }
.a-blog-cover { width: 100%; border-radius: 12px; margin-bottom: 8px; display: block; aspect-ratio: 16/9; object-fit: cover; }
.a-blog-img { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #F1E8F5; }
.a-blog-img img { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; }
@media (max-width: 960px) { .a-blog-form { grid-template-columns: 1fr; } }
.a-stars-cell { color: var(--gold); letter-spacing: 1px; }
.a-line strong { color: var(--gold); letter-spacing: 1px; flex-shrink: 0; }

/* Push notifications */
.a-push-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.a-push-preview { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 8px; }
.a-pv-card { display: grid; grid-template-columns: 40px 1fr; gap: 12px; background: #F2F2F5; border-radius: 18px; padding: 14px; box-shadow: 0 8px 24px -14px rgba(0,0,0,.35); }
.a-pv-card img { width: 40px; height: 40px; border-radius: 10px; }
.a-pv-card div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.a-pv-card strong { font-size: 15px; }
.a-pv-card small { color: var(--muted); margin-top: 4px; }
.a-push-form [data-push-toggle].is-on { background: #DDF3E7; border-color: #9AD8B5; color: #1F5E3C; }
@media (max-width: 960px) { .a-push-grid { grid-template-columns: 1fr; } .a-push-preview { position: static; } }

/* Product photo slots */
.a-photo-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 120px)); gap: 12px; margin: 6px 0; }
.a-photo-slot { position: relative; display: grid !important; place-items: center; aspect-ratio: 1; border: 2px dashed var(--line-strong, #DCCBE5); border-radius: 14px; background: var(--lilac, #F7F2F9); cursor: pointer; overflow: hidden; margin: 0 !important; }
.a-photo-slot:hover { border-color: var(--brand); }
.a-photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.a-photo-add { font-size: 13px; font-weight: 700; color: var(--brand); text-align: center; padding: 6px; pointer-events: none; }
.a-photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.a-photo-slot.has-photo { border-style: solid; border-color: var(--brand); }
