/* Zinkly Shop — follows the Zinkly look (violet #7c5cff + cyan #22d3ee, dark first) with a light theme. */
:root {
  --bg: #f6f7fb; --bg-2: #eef0f7; --surface: #ffffff; --raised: #ffffff; --border: #e3e5ee; --border-strong: #cfd3e0;
  --text: #12131a; --text-2: #4a4f63; --muted: #6b7088; --violet: #6d4cff; --violet-2: #5a3be6; --cyan: #0ea5c6;
  --magenta: #e0368f; --success: #12955d; --warning: #b26b00; --danger: #d23b4a; --info: #2f6fdf;
  --success-bg: #e6f6ee; --warning-bg: #fdf3e2; --danger-bg: #fdebed; --info-bg: #e9f0fd; --violet-bg: #efebff;
  --grad: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --shadow: 0 1px 2px rgba(16, 18, 30, .06), 0 4px 16px rgba(16, 18, 30, .06);
  --shadow-lg: 0 12px 40px rgba(16, 18, 30, .14);
  --radius: 14px; --radius-sm: 10px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #06070a; --bg-2: #0a0b10; --surface: #0f1117; --raised: #14161f; --border: #22242f; --border-strong: #2e3140;
  --text: #f1f2f6; --text-2: #c3c6d4; --muted: #8b8fa3; --violet: #8b6dff; --violet-2: #7c5cff; --cyan: #22d3ee;
  --magenta: #ff5cad; --success: #34d399; --warning: #fbbf24; --danger: #fb7185; --info: #60a5fa;
  --success-bg: rgba(52, 211, 153, .12); --warning-bg: rgba(251, 191, 36, .12); --danger-bg: rgba(251, 113, 133, .12);
  --info-bg: rgba(96, 165, 250, .12); --violet-bg: rgba(124, 92, 255, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 16px 50px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--violet); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; } .icon-lg { width: 24px; height: 24px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .tiny { font-size: .75rem; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 40px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; } .center { text-align: center; }
.nowrap { white-space: nowrap; }
.prose { color: var(--text-2); overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); margin-top: 1.2em; }
.prose img { border-radius: 10px; margin: 12px 0; }
.prose pre { background: var(--bg-2); border: 1px solid var(--border); padding: 12px 14px; border-radius: 10px; overflow: auto; font-size: .88rem; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.prose table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.prose td, .prose th { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.prose blockquote { border-left: 3px solid var(--violet); margin: 12px 0; padding: 4px 14px; color: var(--muted); }
.prose a { color: var(--violet); text-decoration: underline; }

/* ---- header ---- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 20px rgba(124, 92, 255, .35); }
.brand img { height: 34px; width: auto; }
.search { flex: 1; max-width: 560px; position: relative; }
.search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); padding: 0 18px 0 42px; font: inherit; }
.search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-bg); background: var(--surface); }
.search .icon { position: absolute; left: 15px; top: 12px; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--bg-2); color: var(--text); }
.count-dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--magenta); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 999px; object-fit: cover; background: var(--grad); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.avatar-lg { width: 88px; height: 88px; font-size: 1.6rem; border: 4px solid var(--surface); }
.subnav { border-top: 1px solid var(--border); }
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; height: 46px; align-items: center; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a, .subnav button { display: inline-flex; gap: 7px; align-items: center; padding: 7px 12px; border-radius: 10px; color: var(--text-2); white-space: nowrap; font-weight: 550; font-size: .92rem; background: none; border: 0; font-family: inherit; cursor: pointer; }
.subnav a:hover, .subnav button:hover { background: var(--bg-2); color: var(--text); }
.subnav a.active { color: var(--violet); background: var(--violet-bg); }
.menu { position: relative; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60; }
.menu-panel.left { left: 0; right: auto; }
.menu.open > .menu-panel { display: block; animation: pop .14s ease-out; }
.menu-panel a, .menu-panel button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; color: var(--text-2); font: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--bg-2); color: var(--text); }
.menu-panel hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.menu-head { padding: 10px 11px 8px; }
.mega { min-width: min(640px, 92vw); display: none; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px; }
.menu.open > .mega { display: grid; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: none } }
.only-mobile { display: none !important; }
@media (max-width: 860px) {
  .search.desktop { display: none; } .only-mobile { display: inline-grid !important; } .hide-mobile { display: none !important; }
  .topbar-inner { gap: 8px; } .brand span.brand-name { display: none; }
}
.mobile-search { padding: 0 0 12px; display: none; }
.mobile-search.open { display: block; }

/* ---- buttons, forms ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 .92rem/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; }
.btn:hover { border-color: var(--border-strong); background: var(--bg-2); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.btn-primary { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 6px 18px rgba(124, 92, 255, .28); }
.btn-primary:hover { background: var(--violet-2); border-color: var(--violet-2); color: #fff; }
.btn-grad { background: var(--grad); border: 0; color: #fff; }
.btn-grad:hover { filter: brightness(1.06); color: #fff; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { height: 32px; padding: 0 11px; font-size: .84rem; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 1rem; border-radius: 13px; }
.btn-block { width: 100%; }
.btn.on { background: var(--violet-bg); border-color: var(--violet); color: var(--violet); }
label.lbl, .lbl { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: .8rem; margin-top: 5px; }
.input, select.input, textarea.input { width: 100%; min-height: 42px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text); padding: 9px 12px; font: inherit; }
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-bg); }
.field { margin-bottom: 16px; }
.field-error { color: var(--danger); font-size: .82rem; margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--violet); margin-top: 2px; flex: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked { background: var(--violet); }
.switch input:checked::after { transform: translateX(18px); }
.input-group { display: flex; align-items: stretch; }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border); border-right: 0; border-radius: 11px 0 0 11px; background: var(--bg-2); color: var(--muted); font-weight: 600; }
.input-group .input { border-radius: 0 11px 11px 0; }

/* ---- cards, badges ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card-body { padding: 20px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; background: var(--bg-2); color: var(--text-2); white-space: nowrap; }
.badge .icon { width: 12px; height: 12px; stroke-width: 2.4; }
.badge-trending { background: linear-gradient(135deg, #ff5cad, #ff9f43); color: #fff; }
.badge-watching { background: var(--info-bg); color: var(--info); }
.badge-new { background: var(--success-bg); color: var(--success); }
.badge-sale { background: var(--danger); color: #fff; }
.badge-featured { background: var(--grad); color: #fff; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-violet { background: var(--violet-bg); color: var(--violet); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .86rem; color: var(--text-2); font-weight: 550; }
.pill:hover, .pill.active { border-color: var(--violet); color: var(--violet); background: var(--violet-bg); }
.stars { display: inline-flex; gap: 1px; color: #f5a524; vertical-align: -2px; }
.stars .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.stars .off { color: var(--border-strong); }
.alert { display: flex; gap: 12px; padding: 13px 15px; border-radius: 12px; border: 1px solid transparent; margin-bottom: 16px; }
.alert-info { background: var(--info-bg); color: var(--info); }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-warning { background: var(--warning-bg); color: var(--warning); }
.alert-danger { background: var(--danger-bg); color: var(--danger); }
.alert .prose, .alert p { color: inherit; }

/* ---- product grid ---- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; position: relative; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.pcard-media { aspect-ratio: 16 / 10; background: var(--bg-2); position: relative; overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-media .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); background: var(--grad); opacity: .25; }
.pcard-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-title { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-title a::after { content: ""; position: absolute; inset: 0; }
.pcard-meta { color: var(--muted); font-size: .82rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pcard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-weight: 800; font-size: 1.1rem; }
.price-old { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: .85rem; margin-left: 6px; }
.price-free { color: var(--success); }
.countdown { display: inline-flex; gap: 6px; align-items: center; color: var(--danger); font-weight: 650; font-size: .82rem; }
.countdown.ended { color: var(--muted); }

/* ---- page sections ---- */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 46px 40px; margin: 24px 0; background: radial-gradient(1200px 400px at 0% 0%, rgba(124, 92, 255, .35), transparent 60%), radial-gradient(900px 400px at 100% 100%, rgba(34, 211, 238, .28), transparent 60%), var(--surface); border: 1px solid var(--border); }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 720px; letter-spacing: -.02em; }
.hero p { color: var(--text-2); font-size: 1.08rem; max-width: 620px; }
.hero-search { display: flex; gap: 10px; max-width: 620px; margin-top: 20px; }
.hero-search .input { height: 52px; border-radius: 14px; font-size: 1rem; }
.hero-stats { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 1.5rem; }
.section { margin: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; display: flex; gap: 10px; align-items: center; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.cat-tile { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-weight: 650; transition: border-color .15s, transform .15s; }
.cat-tile:hover { border-color: var(--violet); transform: translateY(-2px); color: var(--text); }
.cat-tile .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--violet-bg); color: var(--violet); flex: none; }
.layout-side { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; margin: 24px 0; }
@media (max-width: 960px) { .layout-side { grid-template-columns: 1fr; } }
.side-nav { position: sticky; top: 130px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-weight: 550; }
.side-nav a:hover { background: var(--bg-2); color: var(--text); }
.side-nav a.active { background: var(--violet-bg); color: var(--violet); }
.side-nav .group { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 12px 6px; font-weight: 700; }
.side-nav .count { margin-left: auto; background: var(--magenta); color: #fff; font-size: .7rem; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
@media (max-width: 960px) {
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 6px !important; }
  .side-nav .group { display: none; } .side-nav a { white-space: nowrap; }
}
.filters .fgroup { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.filters .fgroup:last-child { border: 0; }
.filters h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.cat-list a { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 8px; color: var(--text-2); font-size: .92rem; }
.cat-list a.active { color: var(--violet); background: var(--violet-bg); font-weight: 650; }
.cat-list .sub { padding-left: 12px; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .ico { width: 64px; height: 64px; border-radius: 18px; background: var(--violet-bg); color: var(--violet); display: grid; place-items: center; margin: 0 auto 14px; }
.empty .ico .icon { width: 28px; height: 28px; }
.empty h3 { color: var(--text); }

/* ---- product page ---- */
.p-head { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; margin: 24px 0; align-items: start; }
@media (max-width: 1000px) { .p-head { grid-template-columns: minmax(0, 1fr); } }
.p-head > * { min-width: 0; }
.crumbs { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .86rem; flex-wrap: wrap; margin-top: 18px; }
.gallery-main { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); position: relative; }
.gallery-main img, .gallery-main video, .gallery-main iframe { width: 100%; height: 100%; object-fit: contain; border: 0; background: #000; }
.gallery-main img { object-fit: cover; background: var(--bg-2); cursor: zoom-in; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { width: 92px; aspect-ratio: 16/10; flex: none; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--bg-2); position: relative; }
.thumbs button.active { border-color: var(--violet); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .35); }
.buybox { position: sticky; top: 130px; }
.buybox .card-body { display: flex; flex-direction: column; gap: 14px; }
.license-opt { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; align-items: flex-start; }
.license-opt:has(input:checked) { border-color: var(--violet); background: var(--violet-bg); }
.license-opt input { accent-color: var(--violet); margin-top: 4px; }
.big-price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .9rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 550; text-align: right; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { padding: 12px 14px; border: 0; background: none; color: var(--muted); font: 600 .95rem inherit; font-family: inherit; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button[aria-selected="true"], .tabs a.active { color: var(--text); border-bottom-color: var(--violet); }
.tab-panel[hidden] { display: none; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 20px; }
.feature-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); }
.feature-list .icon { color: var(--success); margin-top: 3px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 650; }
.review { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border: 0; }
.vendor-reply { margin-top: 10px; padding: 10px 14px; background: var(--bg-2); border-radius: 10px; border-left: 3px solid var(--violet); }
.comment { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.comment .replies { margin-top: 10px; }
.comment .comment { border: 0; padding: 10px 0 0; }
.rating-bars .bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; flex: 1; }
.rating-bars .bar span { display: block; height: 100%; background: #f5a524; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { display: none; }
.star-input label { cursor: pointer; color: var(--border-strong); }
.star-input label .icon { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a524; }
.timeline { border-left: 2px solid var(--border); margin-left: 8px; padding-left: 22px; }
.timeline .ver { position: relative; padding-bottom: 22px; }
.timeline .ver::before { content: ""; position: absolute; left: -29px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px var(--violet-bg); }

/* ---- tables, stats ---- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.thumb-sm { width: 52px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--bg-2); flex: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.stat { padding: 16px 18px; }
.stat .k { color: var(--muted); font-size: .8rem; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.stat .v { font-size: 1.55rem; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
.stat .s { color: var(--muted); font-size: .78rem; }
.chart svg { width: 100%; height: 220px; display: block; }
.chart .bar { fill: var(--violet); opacity: .85; }
.chart .bar:hover { opacity: 1; }
.chart .line { fill: none; stroke: var(--cyan); stroke-width: 2; }
.chart .axis { stroke: var(--border); }
.chart text { fill: var(--muted); font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .85rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-published::before, .status-paid::before, .status-active::before, .status-approved::before, .status-completed::before { background: var(--success); }
.status-pending::before, .status-processing::before, .status-grace::before, .status-changes_requested::before { background: var(--warning); }
.status-rejected::before, .status-failed::before, .status-suspended::before, .status-refunded::before, .status-expired::before { background: var(--danger); }

/* ---- media manager, editor ---- */
.dropzone { border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone.drag { border-color: var(--violet); background: var(--violet-bg); color: var(--violet); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.media-item { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid var(--border); background: var(--bg-2); aspect-ratio: 16 / 10; cursor: grab; }
.media-item.featured { border-color: var(--violet); }
.media-item.dragging { opacity: .4; }
.media-item.over { outline: 3px dashed var(--violet); outline-offset: 2px; }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.media-item .tools { position: absolute; inset: auto 6px 6px 6px; display: flex; gap: 4px; justify-content: flex-end; }
.media-item .tools button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(10, 11, 16, .72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.media-item .tools button:hover { background: rgba(10, 11, 16, .92); }
.media-item .tag { position: absolute; top: 6px; left: 6px; }
.media-item .progress { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--violet); transition: width .1s; }
.media-item .pos { position: absolute; left: 6px; bottom: 8px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; background: rgba(10, 11, 16, .72); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.media-item .move { position: absolute; top: 50%; width: 30px; height: 38px; margin-top: -19px; border: 0; border-radius: 8px; background: rgba(10, 11, 16, .72); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .12s; }
.media-item .move.prev { left: 6px; }
.media-item .move.next { right: 6px; }
.media-item .move.prev .icon, .mv-nav.prev .icon, .mv-flip .icon { transform: rotate(180deg); }
.media-item .move:hover { background: rgba(10, 11, 16, .92); }
.media-item:hover .move, .media-item:focus-within .move { opacity: 1; }
@media (hover: none) { .media-item .move { opacity: 1; } }

/* media viewer (vendor media manager): zoom, pan and reposition */
.media-viewer { padding: 0; display: flex; flex-direction: column; place-items: stretch; background: rgba(6, 7, 10, .92); color: #fff; }
.media-viewer .mv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; flex-wrap: wrap; }
.media-viewer .mv-bar .muted { color: rgba(255, 255, 255, .6); }
.media-viewer .icon-btn { color: #fff; }
.media-viewer .mv-foot { justify-content: center; gap: 10px 22px; border-top: 1px solid rgba(255, 255, 255, .12); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.media-viewer .mv-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.media-viewer .mv-group[hidden], .media-viewer [hidden] { display: none; }
.media-viewer .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .22); }
.media-viewer .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.media-viewer .btn:disabled { opacity: .35; cursor: default; }
.media-viewer .mv-pct { min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; font-size: 13px; }
.media-viewer .mv-pos { display: flex; align-items: center; gap: 6px; margin: 0; }
.media-viewer .mv-pos select { width: auto; padding-top: 4px; padding-bottom: 4px; }
.media-viewer .mv-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; user-select: none; }
.media-viewer .mv-stage img { max-width: calc(100% - 32px); max-height: calc(100% - 32px); transform-origin: center; cursor: zoom-in; will-change: transform; }
.media-viewer .mv-stage.zoomed img { cursor: grab; }
.media-viewer .mv-stage.zoomed img:active { cursor: grabbing; }
.media-viewer .mv-stage video { max-width: calc(100% - 32px); max-height: calc(100% - 32px); }
.media-viewer .mv-nav { position: absolute; top: 50%; width: 44px; height: 64px; margin-top: -32px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.media-viewer .mv-nav:hover { background: rgba(255, 255, 255, .22); }
.media-viewer .mv-nav.prev { left: 12px; }
.media-viewer .mv-nav.next { right: 12px; }
@media (max-width: 560px) { .media-viewer .mv-nav { width: 36px; height: 52px; margin-top: -26px; } .media-viewer .mv-foot { gap: 8px; } }
.rte { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.rte:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-bg); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.rte-bar button { height: 32px; min-width: 32px; padding: 0 7px; border: 0; border-radius: 8px; background: none; color: var(--text-2); cursor: pointer; font: 700 .82rem inherit; font-family: inherit; display: inline-grid; place-items: center; }
.rte-bar button:hover { background: var(--surface); color: var(--text); }
.rte-bar .sep { width: 1px; background: var(--border); margin: 4px 4px; }
.rte-area { min-height: 220px; padding: 14px 16px; outline: none; }
.rte-area:empty::before { content: attr(data-placeholder); color: var(--muted); }
.rte-bar button:disabled { opacity: .35; cursor: default; background: none; }
.rte-bar button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.rte-src { display: block; width: 100%; min-height: 260px; padding: 14px 16px; border: 0; outline: none; resize: vertical; background: var(--surface); color: var(--text); font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; white-space: pre-wrap; }
.rte-src[hidden], .rte-src-hint[hidden] { display: none; }
.rte-src-hint { margin: 0; padding: 8px 16px 10px; border-top: 1px solid var(--border); background: var(--bg-2); color: var(--muted); font-size: 12px; }
.rte-src-hint code { font-size: 11px; }
.rte-sm .rte-area { min-height: 110px; }
.rte-sm .rte-src { min-height: 150px; }
.repeater-row { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--bg-2); position: relative; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; }
.steps span, .steps a { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); }
.steps span.ok, .steps a.ok { color: var(--success); }
.steps a:not(.ok) { color: var(--warning); text-decoration: underline; text-underline-offset: 3px; }

/* ---- vendor ---- */
.vendor-hero { border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); margin: 24px 0; }
.vendor-banner { height: 200px; background: var(--grad); background-size: cover; background-position: center; }
.vendor-info { padding: 0 24px 22px; display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; margin-top: -44px; }

/* ---- dialog, toast ---- */
.dialog-backdrop { position: fixed; inset: 0; background: rgba(6, 7, 10, .55); backdrop-filter: blur(3px); z-index: 90; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.dialog { background: var(--raised); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); width: min(520px, 100%); max-height: 90vh; overflow: auto; animation: pop .16s ease-out; }
.dialog-head { padding: 18px 20px 6px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dialog-body { padding: 8px 20px 18px; }
.dialog-foot { padding: 14px 20px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--border); }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.toasts { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 13px; background: var(--raised); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: pop .2s ease-out; }
.toast.success .icon { color: var(--success); } .toast.error .icon { color: var(--danger); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; }

/* ---- skeleton, pagination, footer ---- */
.skeleton { background: linear-gradient(90deg, var(--bg-2) 25%, var(--border) 37%, var(--bg-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 28px 0 8px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .9rem; }
.pagination .current { background: var(--violet); border-color: var(--violet); color: #fff; }
.pagination .disabled { opacity: .45; }
.footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 34px 0; color: var(--muted); font-size: .9rem; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 24px; }
.footer a { color: var(--text-2); display: block; padding: 3px 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer .panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: var(--surface); padding: 16px; overflow-y: auto; animation: slide .2s ease-out; }
.drawer .shade { position: absolute; inset: 0; background: rgba(6, 7, 10, .5); }
.drawer a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 550; }
.drawer a:hover { background: var(--bg-2); }
@keyframes slide { from { transform: translateX(-100%) } to { transform: none } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- AI assistant ---- */
.ai-fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: 700 .95rem inherit; font-family: inherit; cursor: pointer; box-shadow: 0 12px 34px rgba(124, 92, 255, .45); transition: transform .15s; }
.ai-fab:hover { transform: translateY(-2px); }
.ai-widget.open .ai-fab { display: none; }
.ai-widget .ai-panel { position: fixed; right: 20px; bottom: 20px; z-index: 75; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 100px)); display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .18s ease-out; }
.ai-widget .ai-panel[hidden] { display: none; }
.ai-page .ai-panel { display: flex; flex-direction: column; height: min(78vh, 820px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--border); }
.ai-avatar { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.ai-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; line-height: 1.5; font-size: .93rem; overflow-wrap: anywhere; }
.ai-msg a { color: var(--violet); text-decoration: underline; }
.ai-assistant { align-self: flex-start; background: var(--bg-2); border-bottom-left-radius: 6px; }
.ai-user { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-right-radius: 6px; }
.ai-error { background: var(--danger-bg); color: var(--danger); }
.ai-meta { background: none; padding: 0 4px; }
.ai-typing { display: inline-flex; gap: 4px; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: aiDot 1s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: .15s; } .ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0) } 40% { opacity: 1; transform: translateY(-3px) } }
.ai-cards { display: grid; gap: 8px; margin-top: 10px; }
.ai-card { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); text-decoration: none !important; color: var(--text) !important; }
.ai-card:hover { border-color: var(--violet); }
.ai-card img, .ai-card-ph { width: 64px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg-2); display: grid; place-items: center; color: var(--muted); }
.ai-card-body { display: flex; flex-direction: column; min-width: 0; font-size: .85rem; }
.ai-card-body strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-card-body s { color: var(--muted); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; }
.ai-chips .pill { cursor: pointer; font-family: inherit; }
.ai-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--border); }
.ai-form textarea { flex: 1; resize: none; min-height: 42px; max-height: 140px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); padding: 10px 12px; font: inherit; }
.ai-form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-bg); }
.ai-form .btn { height: 42px; width: 46px; padding: 0; }
.ai-note { margin: 0; padding: 0 14px 10px; font-size: .72rem; color: var(--muted); }
.ai-writer { border: 1px dashed var(--violet); background: var(--violet-bg); border-radius: var(--radius); padding: 16px; }
.ai-writer .ai-result { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; max-height: 320px; overflow: auto; margin: 10px 0; }
@media (max-width: 560px) { .ai-widget .ai-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; } .ai-fab-label { display: none; } .ai-fab { padding: 0; width: 54px; justify-content: center; } }

/* ---- product page: key features (grouped by bold bullets), requirements, installation steps ---- */
.features-head { margin-bottom: 14px; }
.feature-list li > span { min-width: 0; }
.feature-list strong { color: var(--text); }
.feature-list a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.feature-list code, .install-steps code, .spec-list code { font-size: .86em; padding: 1px 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--border); }
.features-grouped .feat-groups { columns: 2 320px; column-gap: 14px; }
.features-grouped .feat-group { break-inside: avoid; margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); }
.features-grouped .feature-list { grid-template-columns: 1fr; gap: 9px; }
.feat-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1rem; color: var(--text); }
.feat-title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--violet); flex: none; }
.feat-n { margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px; }
.features.is-long:not(.open) .feat-groups { max-height: 470px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.feat-toggle { margin-top: 12px; }
.spec-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); padding: 18px 20px; }
.spec-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.15rem; }
.tab-panel h2 > .icon { color: var(--violet); }
.spec-list > :first-child, .install-steps > :first-child { margin-top: 0; }
.spec-list > :last-child, .install-steps > :last-child { margin-bottom: 0; }
.spec-list ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 9px 24px; }
.spec-list ul li { position: relative; padding-left: 27px; }
.spec-list ul li::before { content: ""; position: absolute; left: 0; top: .22em; width: 17px; height: 17px; border-radius: 50%; background: var(--success-bg); box-shadow: inset 0 0 0 1px var(--success); }
.spec-list ul li::after { content: ""; position: absolute; left: 5px; top: calc(.22em + 5px); width: 7px; height: 4px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }
.install-steps > ol { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.install-steps > ol > li { counter-increment: step; position: relative; padding: 2px 0 16px 46px; }
.install-steps > ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff; background: var(--violet); }
.install-steps > ol > li::after { content: ""; position: absolute; left: 13px; top: 32px; bottom: 2px; width: 2px; border-radius: 1px; background: var(--border); }
.install-steps > ol > li:last-child { padding-bottom: 0; }
.install-steps > ol > li:last-child::after { display: none; }
.install-steps > ol > li > ul, .install-steps > ol > li > ol { margin: 8px 0 0; padding-left: 18px; }
.install-steps > ol > li > p { margin: 0 0 6px; }
@media (max-width: 560px) { .spec-card { padding: 14px 16px; } .install-steps > ol > li { padding-left: 40px; } }

/* ---- versions: past releases, inline notes editing, changelog ---- */
.past-release > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; cursor: pointer; list-style: none; }
.past-release > summary::-webkit-details-marker { display: none; }
.past-release > summary > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.past-release[open] > summary { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.ver-edit > td { background: var(--bg-2); padding: 16px; }
.timeline .ver-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.timeline .ver.is-latest::before { box-shadow: 0 0 0 4px var(--violet-bg); }
.timeline .ver.is-past::before { background: var(--surface); box-shadow: inset 0 0 0 2px var(--border); }
.timeline .ver .prose > :first-child { margin-top: 0; }

/* ---- product buy box ---- */
.buybox .price-block { display: grid; gap: 6px; }
.buybox .price-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .82rem; color: var(--muted); }
.buybox .coin-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 7px; border-radius: 999px; background: var(--warning-bg); color: var(--text-2); font-weight: 600; }
.buybox .coin-pill .icon { color: var(--warning); }
.buybox .owner-box { display: grid; gap: 10px; padding: 12px; border: 1px dashed color-mix(in srgb, var(--violet) 55%, var(--border)); border-radius: var(--radius-sm); background: var(--violet-bg); }
.buybox .owner-box .badge { justify-self: start; }
.buybox .owner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buybox .owner-actions .btn:only-child { grid-column: 1 / -1; }
.buybox .btn-preview { gap: 8px; }
.buybox .btn-preview .icon-sm { opacity: .6; }
.buybox .follow-note { display: flex; align-items: center; gap: 6px; margin-top: -6px; }
.buybox .perks { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); }
.buybox .facts { padding-top: 14px; border-top: 1px solid var(--border); align-items: center; }
.buybox .facts dd { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.buybox .facts .wide { grid-column: 1 / -1; text-align: left; justify-content: flex-start; }
.buybox .facts dd.wide { margin-top: -2px; font-weight: 500; }
.buybox .ver-pill { padding: 1px 9px; border-radius: 999px; background: var(--violet-bg); color: var(--violet); font-weight: 700; font-variant-numeric: tabular-nums; }
.buybox .facts-link { color: var(--violet); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.compat-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.compat-pills li { padding: 3px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); font-size: .8rem; line-height: 1.4; overflow-wrap: anywhere; }

/* ---- public changelog: collapsible releases, colour-coded sections ---- */
.timeline details.ver { padding-bottom: 18px; }
.timeline details.ver::before { top: 7px; }
.timeline .ver-sum { display: grid; gap: 4px; cursor: pointer; list-style: none; padding: 2px 0 6px; border-radius: 8px; }
.timeline .ver-sum::-webkit-details-marker { display: none; }
.timeline .ver-sum:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
.timeline .ver-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.timeline .ver-head h2, .timeline .ver-head h3 { font-size: 1.12rem; }
.timeline .ver-caret { margin-left: auto; color: var(--muted); transition: transform .15s; }
.timeline details[open] > .ver-sum .ver-caret { transform: rotate(180deg); }
.timeline .ver-meta { display: flex; flex-wrap: wrap; gap: 4px 0; }
.timeline .ver-meta > * + *::before { content: "·"; margin: 0 7px; }
.ver-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chg { font-size: .74rem; font-weight: 650; padding: 2px 9px; border-radius: 999px; text-transform: capitalize; }
.chg-added, .cl-body .cl-added { --cl: var(--success); --cl-bg: var(--success-bg); }
.chg-fixed, .cl-body .cl-fixed { --cl: var(--cyan); --cl-bg: color-mix(in srgb, var(--cyan) 13%, transparent); }
.chg-changed, .cl-body .cl-changed { --cl: var(--violet); --cl-bg: var(--violet-bg); }
.chg-removed, .cl-body .cl-removed { --cl: var(--danger, #e5484d); --cl-bg: var(--danger-bg); }
.chg { color: var(--cl, var(--muted)); background: var(--cl-bg, var(--bg-2)); }
.cl-body { margin-top: 8px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); }
.cl-body > :first-child { margin-top: 0; }
.cl-body > :last-child { margin-bottom: 0; }
.cl-body .cl-h { display: inline-flex; align-items: center; gap: 7px; margin: 18px 0 8px; padding: 3px 11px 3px 9px; border-radius: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--cl, var(--text)); background: var(--cl-bg, var(--surface)); }
.cl-body .cl-h::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cl-body .cl-h:first-child { margin-top: 0; }
.cl-body ul { margin: 0 0 6px; padding-left: 0; list-style: none; display: grid; gap: 7px; }
.cl-body ul li { position: relative; padding-left: 18px; line-height: 1.55; }
.cl-body ul li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--border); }
.cl-body ul ul { margin-top: 6px; }
.cl-body li strong { color: var(--text); }
.cl-body code { font-size: .84em; padding: 1px 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); overflow-wrap: anywhere; }
.cl-body p > strong:only-child { color: var(--text); }
.cl-body .cl-note { margin: 14px 0 0; padding: 12px 14px; border: 0; border-left: 3px solid var(--warning); border-radius: 0 10px 10px 0; background: var(--warning-bg); color: var(--text-2); }
.cl-body .cl-note.cl-thanks { border-left-color: var(--violet); background: var(--violet-bg); }
.cl-body .cl-note p { margin: 0; }
.cl-body .cl-note strong { color: var(--text); }
@media (max-width: 560px) { .cl-body { padding: 12px 14px; } }

/* ---- catalog filter panel ---- */
.filters, .layout-side > .filters { position: static; max-height: none; overflow: visible; padding: 0; }
.filters fieldset.fgroup { border: 0; border-bottom: 1px solid var(--border); margin: 0; min-width: 0; }
.filters fieldset.fgroup legend { padding: 0; float: left; width: 100%; }
.filters fieldset.fgroup legend + * { clear: both; }
.filters .fgroup { padding: 16px 18px; }
.filters h4 { margin: 0 0 10px; font-size: .74rem; letter-spacing: .08em; }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.filters-head strong { display: inline-flex; align-items: center; gap: 7px; }
.filters-head a { color: var(--violet); font-weight: 600; }
.filters-toggle { display: none; }
.cat-list { display: grid; gap: 2px; }
.cat-list a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--text-2); font-size: .9rem; line-height: 1.3; }
.cat-list a:hover { background: var(--bg-2); color: var(--text); }
.cat-list a.active { background: var(--violet-bg); color: var(--violet); font-weight: 650; }
.cat-list .cat-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--bg-2); color: var(--muted); }
.cat-list a:hover .cat-ico { color: var(--text-2); }
.cat-list a.active .cat-ico { background: var(--violet); color: #fff; }
.cat-list .cat-name { flex: 1; min-width: 0; }
.cat-list .cat-n { flex: none; min-width: 24px; padding: 1px 7px; border-radius: 999px; text-align: center; font-size: .74rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--muted); background: var(--bg-2); }
.cat-list a.active .cat-n { background: var(--surface); color: var(--violet); }
.cat-list .sub { margin: 2px 0 4px 22px; padding-left: 12px; border-left: 2px solid var(--border); display: grid; gap: 1px; }
.cat-list .sub a { padding: 5px 8px; font-size: .86rem; }
.cat-list a.is-empty { opacity: .62; }
.cat-more > summary { display: flex; align-items: center; gap: 6px; padding: 8px 8px 4px; cursor: pointer; list-style: none; font-size: .82rem; font-weight: 600; color: var(--text-2); }
.cat-more > summary::-webkit-details-marker { display: none; }
.cat-more > summary .icon { transition: transform .15s; }
.cat-more[open] > summary .icon { transform: rotate(180deg); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 7px 6px; border-radius: 9px; text-align: center; font-size: .86rem; font-weight: 600; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.seg input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 1px; }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.input-addon { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; min-width: 0; }
.input-addon:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-bg); }
.input-addon > span { padding: 0 0 0 10px; font-size: .74rem; font-weight: 700; color: var(--muted); }
.input-addon .input { border: 0; box-shadow: none; background: transparent; min-width: 0; padding-left: 6px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .8rem; font-weight: 600; cursor: pointer; }
.fchip:hover { border-color: var(--violet); color: var(--violet); }
.fchip.on { border-color: var(--violet); background: var(--violet-bg); color: var(--violet); }
.fchip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.fchip:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.rating-opts { display: grid; gap: 4px; }
.rating-opt { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-size: .86rem; color: var(--text-2); }
.rating-opt:hover { background: var(--bg-2); }
.rating-opt.on { border-color: color-mix(in srgb, var(--violet) 45%, var(--border)); background: var(--violet-bg); color: var(--text); }
.rating-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rating-opt:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 1px; }
.input-icon { position: relative; display: block; }
.input-icon > .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 34px; }
.filters-foot { display: flex; gap: 8px; padding: 14px 18px 18px; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 16px; }
.afchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 10px; border-radius: 999px; background: var(--violet-bg); color: var(--violet); font-size: .8rem; font-weight: 600; max-width: 100%; }
.afchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.afchip .icon:last-child { opacity: .7; }
.afchip:hover .icon:last-child { opacity: 1; }
.afclear { color: var(--muted); margin-left: 4px; text-decoration: underline; text-underline-offset: 3px; }
.count-dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--violet); color: #fff; font-size: .72rem; font-weight: 700; }
@media (max-width: 960px) {
  .filters-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 13px 16px; border: 0; background: none; color: var(--text); font: 650 .95rem inherit; font-family: inherit; cursor: pointer; }
  .filters-toggle .filters-caret { margin-left: auto; color: var(--muted); transition: transform .15s; }
  .filters.open .filters-toggle .filters-caret { transform: rotate(180deg); }
  .filters .filters-body { display: none; border-top: 1px solid var(--border); }
  .filters.open .filters-body { display: block; }
  .filters .filters-head { display: none; }
  .filters-foot { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); border-radius: 0 0 20px 20px; }
}

/* ---- author subscriptions ---- */
.unlock-card .unlock-ico, .asub-promo-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--violet-bg); color: var(--violet); }
.goal { margin-top: 14px; display: grid; gap: 6px; }
.goal-l { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.goal-done { color: var(--success); display: inline-flex; align-items: center; gap: 4px; }
.meter { height: 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.aplan-list { display: grid; gap: 10px; }
.aplan-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.aplan-row.is-archived { opacity: .7; }
.aplan-name { font-size: 1.02rem; }
.aplan-actions { gap: 6px; }
.aplan-actions form { display: inline; }
.aplan-products { display: grid; gap: 6px; max-height: 420px; overflow: auto; padding: 2px; }
.aplan-product { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.aplan-product:hover { border-color: color-mix(in srgb, var(--violet) 45%, var(--border)); }
.aplan-product:has(input:checked) { border-color: var(--violet); background: var(--violet-bg); }
.aplan-product input { width: 18px; height: 18px; accent-color: var(--violet); flex: none; }
.asub-howto > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.asub-howto > summary::-webkit-details-marker { display: none; }
.asub-howto ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: .9rem; }
.asub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; align-items: stretch; }
.asub-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; border-radius: 20px; }
.asub-card.is-featured, .asub-card.is-mine { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), var(--shadow-lg, 0 10px 30px rgba(0, 0, 0, .2)); }
.asub-card .btn-block { margin-top: auto; }
.asub-flag { position: absolute; top: -11px; left: 18px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--violet); color: #fff; font-size: .74rem; font-weight: 700; }
.asub-name { margin: 0; font-size: 1.1rem; }
.asub-price { display: flex; align-items: baseline; gap: 6px; }
.asub-price strong { font-size: 1.9rem; letter-spacing: -.03em; }
.asub-price span { color: var(--muted); font-weight: 600; }
.asub-price-lg strong { font-size: 2.4rem; }
.asub-worth { font-size: .8rem; font-weight: 600; color: var(--success); }
.asub-desc { margin: 0; }
.asub-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .88rem; color: var(--text-2); }
.asub-benefits li { display: flex; align-items: flex-start; gap: 8px; }
.asub-benefits .icon { color: var(--success); flex: none; margin-top: 2px; }
.asub-benefits-lg { font-size: .95rem; gap: 10px; }
.asub-hero { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.asub-buy { position: sticky; top: 130px; border-radius: 22px; }
.asub-items { display: grid; gap: 8px; }
.asub-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }
.asub-item:hover { border-color: var(--violet); }
.asub-item-img { width: 64px; height: 40px; border-radius: 8px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--bg-2); color: var(--muted); }
.asub-item-img img { width: 100%; height: 100%; object-fit: cover; }
.btn-paypal { gap: 8px; }
.asub-promo { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); border: 1px dashed color-mix(in srgb, var(--violet) 55%, var(--border)); background: var(--violet-bg); color: var(--text); }
.asub-promo:hover { border-style: solid; }
.asub-promo-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--violet); color: #fff; }
.my-asub.is-off { opacity: .75; }
.my-asub-items { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.my-asub-item { padding: 4px 0; }
@media (max-width: 900px) { .asub-hero { grid-template-columns: 1fr; } .asub-buy { position: static; } }

/* ---- review cards (store page) ---- */
.rcard-list { display: grid; gap: 12px; align-content: start; }
.rcard { display: grid; gap: 12px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.rcard-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rcard-avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; object-fit: cover; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; color: #fff; background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.rcard-who { display: grid; gap: 3px; min-width: 0; flex: 1; }
.rcard-name { font-size: .98rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcard-meta { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.rcard-meta .stars, .rcard-meta .stars .icon { line-height: 1; }
.rcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.rchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.rchip .icon { width: 13px; height: 13px; }
.rchip-ok { color: var(--success); background: var(--success-bg); }
.rchip-zinkly { color: var(--violet); background: var(--violet-bg); }
.rcard-title { margin: 0; font-size: 1rem; }
.rcard-body { margin: 0; color: var(--text-2); line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.rcard-quiet { color: var(--muted); font-style: italic; font-size: .9rem; }
.rcard-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); font-size: .86rem; max-width: 100%; justify-self: start; }
.rcard-item:hover { border-color: var(--violet); color: var(--text); }
.rcard-thumb { width: 44px; height: 28px; border-radius: 6px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.rcard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rcard-item-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rcard-item > .icon:last-child { flex: none; opacity: .5; }
.rcard-reply { padding: 12px 14px; border-left: 3px solid var(--violet); border-radius: 0 12px 12px 0; background: var(--violet-bg); font-size: .88rem; }
.rcard-reply strong { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.rcard-reply p { margin: 4px 0 0; color: var(--text-2); white-space: pre-line; }
@media (max-width: 600px) { .rcard { padding: 14px 16px; } .rcard-tags { margin-left: 54px; width: 100%; } }

/* ---- buy box: no dead space above the price ---- */
.buybox .card-body { padding-top: 18px; }
.buybox form.stack > .price-block { margin-top: 0; }
.buybox [data-price-display], .buybox [data-price-display] .price { line-height: 1.05; }
.buybox .price-block { gap: 8px; }
.buybox fieldset > legend.lbl { padding: 0; margin: 4px 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.buybox fieldset > legend + * { margin-top: 0; }

/* ---- review cards: product page footer ---- */
.rcard + .rcard { margin-top: 12px; }
.rcard-list .rcard + .rcard { margin-top: 0; }
.rcard-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--border); }
.rcard-foot form { display: inline; }
.rcard-act { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-2); font: 600 .82rem inherit; font-family: inherit; cursor: pointer; }
.rcard-act:hover { border-color: var(--violet); color: var(--text); }
.rcard-act.on { border-color: var(--violet); background: var(--violet-bg); color: var(--violet); }
.rcard-act [data-count] { font-variant-numeric: tabular-nums; color: var(--muted); }
.rcard-act.on [data-count] { color: inherit; }
.rcard-danger:hover { border-color: var(--danger); color: var(--danger); }
.rcard-replyform { display: flex; gap: 8px; }
.rcard-replyform .input { flex: 1; min-width: 0; }

/* Author plan form: perk rows + "what buyers see" preview */
.perk-list { display: grid; gap: 8px; margin-top: 8px; }
.perk-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.perk-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--violet-bg); color: var(--violet); }
.perk-row.is-hidden .perk-ico { background: var(--bg-2); color: var(--muted); }
.perk-row.is-hidden .input { color: var(--muted); }
.perk-note { grid-column: 2 / -1; font-size: .78rem; color: var(--warning, #d9a400); margin-top: -2px; }
.perk-del { color: var(--muted); }
.perk-del:hover { color: var(--danger, #e5484d); }
.perk-suggest { font-size: .8rem; cursor: pointer; }
.perk-preview { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--border); border-radius: 14px; background: var(--bg-2); }
.perk-preview .asub-benefits { margin-bottom: 8px; }
.perk-row .input-group { min-width: 0; }
.perk-off { display: none; grid-column: 2 / -1; font-size: .86rem; color: var(--muted); padding: 8px 0; }
.perk-off button { background: none; border: 0; padding: 0; color: var(--violet); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.perk-row.is-off .perk-ico { background: var(--bg-2); color: var(--muted); }
.perk-row.is-off > .input, .perk-row.is-off > .input-group, .perk-row.is-off > .perk-del { display: none; }
.perk-row.is-off .perk-off { display: block; }
.input-group .addon.perk-pct { display: inline-flex; flex-direction: row; align-items: center; white-space: nowrap; gap: 2px; padding-right: 10px; }
.perk-pct input { width: 3.2ch; border-bottom: 1px dashed var(--muted) !important; cursor: text; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700; text-align: right; padding: 0; -moz-appearance: textfield; }
.perk-pct input::-webkit-inner-spin-button, .perk-pct input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.perk-pct:focus-within { color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }

/* Creator dashboard: warnings (3 strikes) and updates due */
.upkeep-card.is-strike { border-color: var(--danger); }
.upkeep-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.upkeep-list > li { padding: 10px 0; border-top: 1px solid var(--border); gap: 10px; flex-wrap: wrap; }
.strike-meter { display: inline-flex; align-items: center; gap: 5px; }
.strike-meter i { width: 22px; height: 6px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--border); }
.strike-meter i.on { background: var(--danger); border-color: var(--danger); }
.strike-meter b { margin-left: 6px; font-size: .82rem; color: var(--danger); }
.unmaintained-note { display: flex; gap: 10px; align-items: flex-start; }
.buybox .owner-dl { gap: 8px; } .buybox .owner-dl-size { font-weight: 500; opacity: .75; font-size: .85em; }
