/* ============================================================
   Abizvo Marketplace — tokens and shared components.
   Editorial commerce: warm paper, near-black ink, one decisive
   accent, a serif for display type. Deliberately unlike the
   portal (tools) and the marketing site (glass): this is a shop.
   Every class is .mkt- prefixed so nothing leaks into the rest
   of the site that loads this file.
   ============================================================ */

:root,
.mkt {
  --mkt-paper: #faf8f4;
  --mkt-paper-2: #f2eee6;
  --mkt-card: #ffffff;
  --mkt-ink: #16140f;
  --mkt-ink-2: #3a362e;
  --mkt-muted: #6c675c;
  --mkt-line: #e5dfd3;
  --mkt-line-strong: #cfc7b7;
  --mkt-accent: #2446d8;
  --mkt-accent-ink: #ffffff;
  --mkt-accent-soft: #e9edff;
  --mkt-gold: #d69a1c;
  --mkt-success: #0f795c; /* 4.65:1 on --mkt-success-soft, 5.06:1 on paper (was 4.41 on soft) */
  --mkt-success-soft: #dff3ec;
  --mkt-warning: #9a6200;
  --mkt-warning-soft: #fbf0d9;
  --mkt-danger: #b3261e;
  --mkt-danger-soft: #fbe5e3;
  --mkt-info: #2446d8;
  --mkt-info-soft: #e9edff;
  --mkt-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --mkt-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mkt-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  --mkt-radius: 14px;
  --mkt-radius-sm: 8px;
  --mkt-shadow: 0 1px 2px rgb(22 20 15 / 0.05), 0 8px 24px rgb(22 20 15 / 0.06);
  /* A theme's preset cards, with the physics measured on the Shopify Theme
     Store's theme page (see .sf-presets): resting and lifted shadows, the
     standard ease, the duration, the card radius and the current card's scrim. */
  --mkt-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --mkt-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --mkt-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --mkt-dur-base: 300ms;
  --mkt-radius-card: 16px;
  --mkt-scrim-current: rgb(0 0 0 / 0.3);
  /* The inline padding of .mkt-container, named so a full-bleed row can match it. */
  --mkt-gutter: clamp(1rem, 3vw, 2rem);
  --mkt-focus: 0 0 0 3px rgb(36 70 216 / 0.35);

  background: var(--mkt-paper);
  color: var(--mkt-ink);
  font-family: var(--mkt-sans);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"],
[data-theme="dark"] .mkt {
  --mkt-paper: #12110e;
  --mkt-paper-2: #1b1915;
  --mkt-card: #1d1b17;
  --mkt-ink: #f3efe6;
  --mkt-ink-2: #d9d3c5;
  --mkt-muted: #a49d8e;
  --mkt-line: #2f2c25;
  --mkt-line-strong: #454034;
  --mkt-accent: #8ea2ff;
  --mkt-accent-ink: #10131f;
  --mkt-accent-soft: #1f2640;
  --mkt-success-soft: #12302a;
  --mkt-warning-soft: #33280f;
  --mkt-danger-soft: #3a1714;
  --mkt-info-soft: #1f2640;
}

.mkt *:focus-visible { outline: none; box-shadow: var(--mkt-focus); border-radius: 4px; }
.mkt a { color: inherit; text-decoration-color: var(--mkt-line-strong); text-underline-offset: 3px; }
.mkt a:hover { color: var(--mkt-accent); }
/* A link dressed as a filled control keeps the control's own ink: the plain-link
   rule above and its hover would otherwise paint dark text on the dark pill. */
/* A link that is a button keeps the button's colours: `.mkt a` (0,1,1) outranks
   `.mkt-btn--primary` (0,1,0), and painted a primary link ink on ink. The plain
   button first, so the variants after it win at the same specificity. */
.mkt a.mkt-btn, .mkt a.mkt-btn:hover, .mkt a.mkt-chip:hover { color: var(--mkt-ink); }
.mkt a.mkt-btn--primary, .mkt a.mkt-btn--primary:hover,
.mkt a.mkt-btn--accent, .mkt a.mkt-btn--accent:hover { color: var(--mkt-accent-ink); }
.mkt a.mkt-btn--primary { color: var(--mkt-paper); }
.mkt a.mkt-btn--danger, .mkt a.mkt-btn--danger:hover { color: #fff; }
.mkt a.mkt-chip--active, .mkt a.mkt-chip--active:hover { color: var(--mkt-paper); }
.mkt a.mkt-btn { text-decoration: none; }
.mkt img { max-width: 100%; height: auto; display: block; }
.mkt code { font-family: var(--mkt-mono); font-size: 0.9em; background: var(--mkt-paper-2); padding: 0.1em 0.35em; border-radius: 4px; }

/* ---- Layout ------------------------------------------------ */
.mkt-container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--mkt-gutter); }
.mkt-container--narrow { max-width: 820px; }
.mkt-main { flex: 1; padding-bottom: 4rem; }
.mkt-section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.mkt-section--tight { padding-block: 1.5rem; }
.mkt-section--paper { background: var(--mkt-paper-2); }
.mkt-section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.mkt-section__head h2 { margin: 0; }
.mkt-section__link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.mkt-stack { display: flex; flex-direction: column; gap: 1rem; }
.mkt-stack--sm { gap: 0.5rem; }
.mkt-stack--lg { gap: 2rem; }
.mkt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.mkt-row--between { justify-content: space-between; }
.mkt-spacer { flex: 1; }
.mkt-divider { border: 0; border-top: 1px solid var(--mkt-line); margin: 2rem 0; }

/* ---- Typography -------------------------------------------- */
.mkt h1, .mkt h2, .mkt h3, .mkt h4 { color: var(--mkt-ink); line-height: 1.2; margin: 0 0 0.5em; }
.mkt-display { font-family: var(--mkt-display); font-weight: 600; font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 0.4em; }
.mkt-h1 { font-family: var(--mkt-display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.015em; }
.mkt-h2 { font-family: var(--mkt-display); font-weight: 600; font-size: clamp(1.45rem, 3vw, 2rem); }
.mkt-h3 { font-size: 1.15rem; font-weight: 650; }
.mkt-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 700; color: var(--mkt-muted); margin: 0 0 0.6rem; }
.mkt-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--mkt-ink-2); max-width: 62ch; }
.mkt-muted { color: var(--mkt-muted); }
.mkt-small { font-size: 0.875rem; }
.mkt-tiny { font-size: 0.78rem; }
.mkt-mono { font-family: var(--mkt-mono); }
.mkt-nowrap { white-space: nowrap; }

/* ---- Header ------------------------------------------------- */
.mkt-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--mkt-paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--mkt-line); }
.mkt-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.mkt-brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--mkt-ink); flex-shrink: 0; }
/* The Abizvo part is the site's own wordmark (brand/abizvo-logo.svg, the same
   image and height as .site-logo on abizvo.com), so the two never drift; only
   "Marketplace" is set in type. White in dark mode, keyed to the chosen theme
   exactly as the site's logo is. */
/* Scoped under .mkt: `.mkt img { height: auto }` (0,1,1) outranks a bare
   class and rendered the wordmark at its 2172px source size. */
.mkt .mkt-brand__logo { height: 40px; width: auto; display: block; }
[data-theme="dark"] .mkt .mkt-brand__logo { filter: brightness(0) invert(1); }
.mkt-brand__word { font-family: var(--mkt-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.mkt-brand__word em { font-style: italic; font-weight: 500; color: var(--mkt-muted); }
.mkt-search { flex: 1; max-width: 480px; display: flex; align-items: center; background: var(--mkt-card); border: 1px solid var(--mkt-line); border-radius: 999px; padding-inline: 1rem 0.25rem; }
.mkt-search input { flex: 1; border: 0; background: transparent; padding: 0.6rem 0; font: inherit; color: inherit; min-width: 0; }
.mkt-search input:focus { outline: none; }
.mkt-search:focus-within { box-shadow: var(--mkt-focus); }
.mkt-search__button { border: 0; background: var(--mkt-ink); color: var(--mkt-paper); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.mkt-nav { display: flex; align-items: center; gap: 1.2rem; margin-left: auto; }
.mkt-nav > a { text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.mkt-nav__signout { margin: 0; }
.mkt-linkbutton { background: none; border: 0; padding: 0; font: inherit; color: var(--mkt-muted); cursor: pointer; font-weight: 550; font-size: 0.95rem; }
.mkt-linkbutton:hover { color: var(--mkt-accent); }
.mkt-nav-toggle { display: none; background: none; border: 1px solid var(--mkt-line); border-radius: 10px; width: 42px; height: 42px; color: var(--mkt-ink); cursor: pointer; }

/* The light/dark button, on abizvo.site's header (the marketplace's chrome,
   worn by the public site for Abizvo Sites). site.js drives every
   [data-theme-toggle] and sets aria-pressed; the two shapes are switched on
   that, and both rules are two classes deep so neither loses to `.mkt-theme-icon
   svg` (0,1,1) — the specificity trap that once showed sun and moon at once. */
.mkt-theme { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--mkt-line); background: transparent; color: var(--mkt-ink-2); cursor: pointer; padding: 0; }
.mkt-theme:hover { color: var(--mkt-ink); border-color: var(--mkt-ink); }
.mkt-theme-icon { display: block; width: 18px; height: 18px; }
.mkt-theme-icon svg { width: 18px; height: 18px; }
.mkt-theme-icon .mkt-theme-sun { display: none; }
.mkt-theme-icon .mkt-theme-moon { display: block; }
.mkt-theme[aria-pressed="true"] .mkt-theme-sun { display: block; }
.mkt-theme[aria-pressed="true"] .mkt-theme-moon { display: none; }
.mkt-theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The header either fits on one line or collapses to its disclosure — a nav
   squeezed between the two widens the page, and a browser does not clip that:
   it widens the layout viewport and zooms the page out.

   Measured by bisection (a flex row inside a header that flex-shrinks is not a
   sum of parts), the widest each signed-in shape needs:
     signed out 901 · buyer 1030 · seller 1046 · seller + admin 1112.
   So 1140, with 28px for font-rendering variance. At 980 this was already too
   low for anyone holding both seller and admin. */
@media (max-width: 1140px) {
  .mkt-header__inner { flex-wrap: wrap; padding-block: 0.6rem; gap: 0.75rem; }
  .mkt-search { order: 3; flex-basis: 100%; max-width: none; }
  .mkt-nav-toggle { display: grid; place-items: center; margin-left: auto; }
  .mkt-nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding-bottom: 0.5rem; }
  .mkt-nav.is-open { display: flex; }
  .mkt-nav > a, .mkt-nav__signout { padding: 0.75rem 0.25rem; border-top: 1px solid var(--mkt-line); }
  .mkt-nav .mkt-btn { justify-content: center; margin-top: 0.5rem; }
  .mkt-nav .mkt-theme { margin-top: 0.5rem; }
}

/* ---- Footer ------------------------------------------------- */
.mkt-footer { border-top: 1px solid var(--mkt-line); background: var(--mkt-paper-2); padding-top: 3rem; }
.mkt-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 2rem; }
.mkt-footer__grid > div { display: flex; flex-direction: column; gap: 0.45rem; }
.mkt-footer__grid a { text-decoration: none; color: var(--mkt-ink-2); font-size: 0.95rem; }
.mkt-footer__brand p { color: var(--mkt-muted); max-width: 40ch; font-size: 0.95rem; }
.mkt-footer__heading { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mkt-muted); margin: 0 0 0.3rem; }
.mkt-footer__legal { border-top: 1px solid var(--mkt-line); margin-top: 2.5rem; padding-block: 1.25rem 2rem; }
.mkt-footer__legal p { font-size: 0.82rem; color: var(--mkt-muted); margin: 0; max-width: 110ch; }
@media (max-width: 760px) { .mkt-footer__grid { grid-template-columns: 1fr 1fr; } .mkt-footer__brand { grid-column: 1 / -1; } }

/* ---- Buttons ------------------------------------------------ */
.mkt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.25rem; border-radius: 999px; border: 1px solid var(--mkt-line-strong); background: var(--mkt-card); color: var(--mkt-ink); font: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.mkt-btn:hover { border-color: var(--mkt-ink); color: var(--mkt-ink); }
.mkt-btn:active { transform: translateY(1px); }
.mkt-btn:disabled, .mkt-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.mkt-btn--primary { background: var(--mkt-ink); border-color: var(--mkt-ink); color: var(--mkt-paper); }
.mkt-btn--primary:hover { background: var(--mkt-accent); border-color: var(--mkt-accent); color: var(--mkt-accent-ink); }
.mkt-btn--accent { background: var(--mkt-accent); border-color: var(--mkt-accent); color: var(--mkt-accent-ink); }
.mkt-btn--accent:hover { filter: brightness(1.08); color: var(--mkt-accent-ink); }
.mkt-btn--ghost { background: transparent; }
.mkt-btn--quiet { background: transparent; border-color: transparent; padding-inline: 0.6rem; color: var(--mkt-ink-2); }
.mkt-btn--danger { background: var(--mkt-danger); border-color: var(--mkt-danger); color: #fff; }
.mkt-btn--danger:hover { color: #fff; filter: brightness(1.1); }
.mkt-btn--sm { padding: 0.45rem 0.9rem; font-size: 0.875rem; }
.mkt-btn--lg { padding: 0.95rem 1.6rem; font-size: 1.05rem; }
.mkt-btn--block { width: 100%; }

/* ---- Hero --------------------------------------------------- */
.mkt-hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--mkt-line); background:
  radial-gradient(1200px 400px at 90% -10%, var(--mkt-accent-soft), transparent 60%), var(--mkt-paper); }
.mkt-hero__search { display: flex; gap: 0.5rem; max-width: 640px; margin-top: 1.75rem; background: var(--mkt-card); border: 1px solid var(--mkt-line-strong); border-radius: 999px; padding: 0.35rem 0.35rem 0.35rem 1.25rem; box-shadow: var(--mkt-shadow); }
.mkt-hero__search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1.05rem; color: inherit; min-width: 0; }
.mkt-hero__search input:focus { outline: none; }
.mkt-hero__stats { display: flex; gap: 2rem; margin-top: 2rem; color: var(--mkt-muted); font-size: 0.95rem; flex-wrap: wrap; }
.mkt-hero__stats strong { color: var(--mkt-ink); font-family: var(--mkt-display); font-size: 1.4rem; display: block; }

/* ---- Grids and cards --------------------------------------- */
.mkt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1.5rem; }
.mkt-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.mkt-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.mkt-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.mkt-card { background: var(--mkt-card); border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s; }
.mkt-card:hover { transform: translateY(-3px); box-shadow: var(--mkt-shadow); border-color: var(--mkt-line-strong); }
.mkt-card__media { display: block; aspect-ratio: 16 / 10; background: var(--mkt-paper-2); overflow: hidden; }
.mkt-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.4s ease; }
.mkt-card:hover .mkt-card__media img { transform: scale(1.03); }
.mkt-card__placeholder { display: grid; place-items: center; height: 100%; font-family: var(--mkt-display); font-size: 3rem; color: var(--mkt-line-strong); }
.mkt-card__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.mkt-card__kicker { margin: 0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mkt-muted); font-weight: 700; }
.mkt-card__title { margin: 0; font-family: var(--mkt-display); font-size: 1.3rem; font-weight: 600; }
.mkt-card__title a { text-decoration: none; }
.mkt-card__title a::after { content: ""; position: absolute; inset: 0; }
.mkt-card { position: relative; }
.mkt-card__seller a, .mkt-card__meta a { position: relative; z-index: 1; }
.mkt-card__tagline { margin: 0; color: var(--mkt-ink-2); font-size: 0.93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mkt-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.6rem; }
.mkt-card__seller { margin: 0; font-size: 0.85rem; color: var(--mkt-muted); }
.mkt-card__icon { width: 28px; height: 28px; vertical-align: -6px; margin-right: 0.4rem; border-radius: 7px; padding: 3px; background: var(--mkt-paper-2); }
.mkt-card__seller--platform { color: var(--mkt-success); font-weight: 650; }
/* An app card's own action sits above the title's stretched link. */
.mkt-card__cta { position: relative; z-index: 1; align-self: flex-start; margin-top: 0.35rem; }

.mkt-tile { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.4rem; border-radius: var(--mkt-radius); background: var(--mkt-card); border: 1px solid var(--mkt-line); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.mkt-tile:hover { border-color: var(--mkt-ink); box-shadow: var(--mkt-shadow); color: inherit; }
.mkt-tile__title { font-family: var(--mkt-display); font-size: 1.35rem; font-weight: 600; margin: 0; }
.mkt-tile__meta { color: var(--mkt-muted); font-size: 0.9rem; margin: 0; }
.mkt-tile--soon { opacity: 0.65; border-style: dashed; }

.mkt-panel { background: var(--mkt-card); border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius); padding: clamp(1rem, 2.5vw, 1.5rem); }
.mkt-panel--flat { background: var(--mkt-paper-2); border-color: transparent; }
.mkt-panel__title { margin: 0 0 0.75rem; font-size: 1.05rem; font-weight: 650; }

/* ---- Chips and badges -------------------------------------- */
.mkt-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mkt-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--mkt-line-strong); background: var(--mkt-card); text-decoration: none; font-size: 0.875rem; font-weight: 550; color: var(--mkt-ink-2); }
.mkt-chip:hover { border-color: var(--mkt-ink); color: var(--mkt-ink); }
.mkt-chip--active { background: var(--mkt-ink); border-color: var(--mkt-ink); color: var(--mkt-paper); }
.mkt-chip--active:hover { color: var(--mkt-paper); }
.mkt-chip__count { color: var(--mkt-muted); font-weight: 500; }
.mkt-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.16rem 0.6rem; border-radius: 999px; font-size: 0.76rem; font-weight: 650; white-space: nowrap; border: 1px solid transparent; }
.mkt-badge--success { background: var(--mkt-success-soft); color: var(--mkt-success); }
.mkt-badge--warning { background: var(--mkt-warning-soft); color: var(--mkt-warning); }
.mkt-badge--danger { background: var(--mkt-danger-soft); color: var(--mkt-danger); }
.mkt-badge--info { background: var(--mkt-info-soft); color: var(--mkt-info); }
.mkt-badge--neutral { background: var(--mkt-paper-2); color: var(--mkt-ink-2); border-color: var(--mkt-line); }
.mkt-badge--verified { background: var(--mkt-success-soft); color: var(--mkt-success); }
.mkt-reviewed { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 650; color: var(--mkt-success); }

/* ---- Stars and ratings ------------------------------------- */
.mkt-stars { position: relative; display: inline-block; font-size: 0.95rem; line-height: 1; letter-spacing: 0.08em; vertical-align: -0.1em; }
.mkt-stars--lg { font-size: 1.4rem; }
.mkt-stars__track { color: var(--mkt-line-strong); }
.mkt-stars__fill { position: absolute; inset: 0; overflow: hidden; color: var(--mkt-gold); width: calc(var(--rating, 0) / 5 * 100%); white-space: nowrap; }
.mkt-stars__number { font-weight: 700; margin-left: 0.3rem; }
.mkt-stars__count { color: var(--mkt-muted); font-size: 0.85rem; margin-left: 0.2rem; }
.mkt-rating-summary { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.mkt-rating-summary__big { font-family: var(--mkt-display); font-size: 3.4rem; font-weight: 600; line-height: 1; }
.mkt-rating-bars { display: grid; gap: 0.35rem; min-width: 0; }
.mkt-rating-bar { display: grid; grid-template-columns: 2.6rem 1fr 3rem; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: var(--mkt-ink-2); text-decoration: none; }
.mkt-rating-bar__track { height: 8px; border-radius: 999px; background: var(--mkt-paper-2); overflow: hidden; }
.mkt-rating-bar__fill { height: 100%; background: var(--mkt-gold); border-radius: inherit; }
@media (max-width: 560px) { .mkt-rating-summary { grid-template-columns: 1fr; gap: 1rem; } }

.mkt-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.mkt-price__code { font-weight: 500; color: var(--mkt-muted); font-size: 0.8em; }

/* ---- Forms -------------------------------------------------- */
.mkt-form { display: grid; gap: 1.1rem; }
.mkt-field { display: grid; gap: 0.35rem; }
.mkt-field--inline { grid-template-columns: auto 1fr; align-items: center; }
.mkt-label { font-weight: 600; font-size: 0.92rem; }
.mkt-label__optional { font-weight: 400; color: var(--mkt-muted); }
.mkt-input, .mkt-select, .mkt-textarea { width: 100%; font: inherit; color: var(--mkt-ink); background: var(--mkt-card); border: 1px solid var(--mkt-line-strong); border-radius: var(--mkt-radius-sm); padding: 0.62rem 0.8rem; }
.mkt-textarea { min-height: 7rem; resize: vertical; line-height: 1.55; }
.mkt-textarea--code { font-family: var(--mkt-mono); font-size: 0.9rem; min-height: 22rem; }
.mkt-input:focus, .mkt-select:focus, .mkt-textarea:focus { outline: none; border-color: var(--mkt-accent); box-shadow: var(--mkt-focus); }
.mkt-input[aria-invalid="true"], .mkt-textarea[aria-invalid="true"] { border-color: var(--mkt-danger); }
.mkt-help { font-size: 0.84rem; color: var(--mkt-muted); margin: 0; }
.mkt-error { font-size: 0.84rem; color: var(--mkt-danger); margin: 0; }
.mkt-check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; }
.mkt-check input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--mkt-accent); }
.mkt-fieldset { border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius); padding: 1rem 1.25rem 1.25rem; margin: 0; display: grid; gap: 1rem; }
.mkt-fieldset legend { font-weight: 700; padding-inline: 0.4rem; }
.mkt-form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; padding-top: 0.5rem; }
.mkt-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.mkt-file { display: grid; gap: 0.4rem; padding: 1.25rem; border: 1.5px dashed var(--mkt-line-strong); border-radius: var(--mkt-radius); background: var(--mkt-paper-2); }

/* ---- Alerts ------------------------------------------------- */
.mkt-alert { padding: 0.85rem 1.1rem; border-radius: var(--mkt-radius-sm); border: 1px solid transparent; margin-bottom: 1rem; font-size: 0.95rem; }
.mkt-alert--success { background: var(--mkt-success-soft); color: var(--mkt-success); border-color: color-mix(in srgb, var(--mkt-success) 25%, transparent); }
.mkt-alert--error { background: var(--mkt-danger-soft); color: var(--mkt-danger); border-color: color-mix(in srgb, var(--mkt-danger) 25%, transparent); }
.mkt-alert--warning { background: var(--mkt-warning-soft); color: var(--mkt-warning); border-color: color-mix(in srgb, var(--mkt-warning) 25%, transparent); }
.mkt-alert--info { background: var(--mkt-info-soft); color: var(--mkt-info); border-color: color-mix(in srgb, var(--mkt-info) 25%, transparent); }
.mkt-alert > :last-child { margin-bottom: 0; }

/* ---- Tables ------------------------------------------------- */
.mkt-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius); background: var(--mkt-card); }
.mkt-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.mkt-table th, .mkt-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--mkt-line); vertical-align: top; }
.mkt-table th { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mkt-muted); font-weight: 700; background: var(--mkt-paper-2); white-space: nowrap; }
.mkt-table tr:last-child td { border-bottom: 0; }
.mkt-table td.num, .mkt-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Tabs and breadcrumbs ---------------------------------- */
.mkt-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--mkt-line); margin-bottom: 1.5rem; overflow-x: auto; }
.mkt-tabs a { padding: 0.7rem 0.95rem; text-decoration: none; font-weight: 600; font-size: 0.93rem; color: var(--mkt-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.mkt-tabs a.is-active, .mkt-tabs a[aria-current="page"] { color: var(--mkt-ink); border-bottom-color: var(--mkt-ink); }
.mkt-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0 0 1rem; font-size: 0.875rem; color: var(--mkt-muted); }
.mkt-breadcrumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--mkt-line-strong); }
.mkt-breadcrumbs a { text-decoration: none; }

/* ---- Portal (seller and admin) ----------------------------- */
.mkt-portal { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 2rem; padding-top: 2rem; align-items: start; }
.mkt-portal__main { min-width: 0; }
/* Every sideways scroller is a containing block: screen-reader text inside one
   is absolutely positioned, and with no positioned ancestor it sat ~1400px along
   a step row, outside the row's clipping, and scrolled a 375px page to 1435. */
.mkt :is(.mkt-table-wrap, .mkt-tabs, .mkt-steps) { position: relative; }
.mkt-portal__side { position: sticky; top: 88px; }
.mkt-portal__nav { display: flex; flex-direction: column; gap: 0.1rem; }
.mkt-portal__title { font-family: var(--mkt-display); font-size: 1.25rem; font-weight: 600; margin: 0 0 0.75rem; }
.mkt-portal__group { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mkt-muted); font-weight: 700; margin: 1rem 0 0.3rem; }
.mkt-portal__nav a { padding: 0.45rem 0.7rem; border-radius: 8px; text-decoration: none; font-size: 0.93rem; color: var(--mkt-ink-2); }
.mkt-portal__nav a:hover { background: var(--mkt-paper-2); color: var(--mkt-ink); }
.mkt-portal__nav a.is-active { background: var(--mkt-ink); color: var(--mkt-paper); }
.mkt-portal__toggle { display: none; }
.mkt-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.mkt-page-head h1 { font-family: var(--mkt-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.mkt-page-head p { margin: 0.35rem 0 0; color: var(--mkt-muted); }
@media (max-width: 900px) {
  /* minmax(0, …), never 1fr: a 1fr track's minimum is its widest unbreakable
     row (tabs, step pills), which set the column to ~1480px on a phone. */
  .mkt-portal { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-top: 1rem; }
  .mkt-portal__side { position: static; }
  .mkt-portal__toggle { display: block; width: 100%; text-align: left; padding: 0.7rem 1rem; border: 1px solid var(--mkt-line); border-radius: 10px; background: var(--mkt-card); font: inherit; font-weight: 600; color: var(--mkt-ink); cursor: pointer; }
  .mkt-portal__nav { display: none; padding-top: 0.5rem; }
  .mkt-portal__nav.is-open { display: flex; }
}

.mkt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.mkt-stat { background: var(--mkt-card); border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius); padding: 1rem 1.1rem; text-decoration: none; }
.mkt-stat__label { font-size: 0.8rem; color: var(--mkt-muted); margin: 0; }
.mkt-stat__value { font-family: var(--mkt-display); font-size: 1.75rem; font-weight: 600; margin: 0.2rem 0 0; font-variant-numeric: tabular-nums; }
.mkt-stat__note { font-size: 0.8rem; color: var(--mkt-muted); margin: 0.2rem 0 0; }
a.mkt-stat:hover { border-color: var(--mkt-ink); color: inherit; }

.mkt-steps { list-style: none; display: flex; gap: 0.35rem; padding: 0; margin: 0 0 1.5rem; overflow-x: auto; counter-reset: step; }
.mkt-steps li { counter-increment: step; flex: 0 0 auto; }
.mkt-steps a, .mkt-steps span { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.8rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--mkt-muted); border: 1px solid var(--mkt-line); background: var(--mkt-card); white-space: nowrap; }
.mkt-steps a::before, .mkt-steps span::before { content: counter(step); display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--mkt-paper-2); font-size: 0.75rem; }
.mkt-steps .is-active a, .mkt-steps .is-active span { background: var(--mkt-ink); color: var(--mkt-paper); border-color: var(--mkt-ink); }
.mkt-steps .is-active a::before, .mkt-steps .is-active span::before { background: var(--mkt-paper); color: var(--mkt-ink); }
.mkt-steps .is-done a::before, .mkt-steps .is-done span::before { content: "✓"; background: var(--mkt-success-soft); color: var(--mkt-success); }

.mkt-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.mkt-checklist li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; }
.mkt-checklist li::before { content: "○"; color: var(--mkt-warning); font-weight: 700; }
.mkt-checklist li.is-done::before { content: "✓"; color: var(--mkt-success); }

.mkt-empty { text-align: center; padding: 3rem 1.5rem; border: 1.5px dashed var(--mkt-line-strong); border-radius: var(--mkt-radius); background: var(--mkt-card); }
.mkt-empty__title { font-family: var(--mkt-display); font-size: 1.35rem; font-weight: 600; margin: 0 0 0.35rem; }
.mkt-empty__body { color: var(--mkt-muted); max-width: 52ch; margin: 0 auto 1rem; }

.mkt-kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; margin: 0; font-size: 0.93rem; }
.mkt-kv dt { color: var(--mkt-muted); }
.mkt-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---- Prose (listings, documentation, release notes) -------- */
.mkt-prose { font-size: 1.02rem; line-height: 1.75; color: var(--mkt-ink-2); max-width: 74ch; overflow-wrap: anywhere; }
.mkt-prose > :first-child { margin-top: 0; }
.mkt-prose h1, .mkt-prose h2, .mkt-prose h3, .mkt-prose h4 { font-family: var(--mkt-display); color: var(--mkt-ink); margin: 2em 0 0.6em; scroll-margin-top: var(--mkt-anchor-offset, 90px); }
/* An in-page jump focuses its target (marketplace.js); no ring unless the keyboard put it there. */
.mkt-main [tabindex="-1"]:focus:not(:focus-visible), #main-content:focus:not(:focus-visible) { outline: none; }
.mkt-prose h2 { font-size: 1.6rem; }
.mkt-prose h3 { font-size: 1.25rem; }
.mkt-prose a { color: var(--mkt-accent); }
.mkt-prose img { border-radius: var(--mkt-radius-sm); border: 1px solid var(--mkt-line); margin: 1.25rem 0; }
.mkt-prose pre { background: #16140f; color: #f3efe6; padding: 1rem 1.2rem; border-radius: var(--mkt-radius-sm); overflow-x: auto; font-size: 0.88rem; line-height: 1.6; }
.mkt-prose pre code { background: none; padding: 0; color: inherit; }
.mkt-prose table { width: 100%; border-collapse: collapse; font-size: 0.93rem; display: block; overflow-x: auto; }
.mkt-prose th, .mkt-prose td { border: 1px solid var(--mkt-line); padding: 0.5rem 0.7rem; text-align: left; }
.mkt-prose th { background: var(--mkt-paper-2); }
.mkt-prose blockquote { border-left: 3px solid var(--mkt-line-strong); margin: 1.25rem 0; padding: 0.2rem 0 0.2rem 1rem; color: var(--mkt-muted); }
.mkt-prose ul, .mkt-prose ol { padding-left: 1.4rem; }

/* Components the documentation renderer emits (MarketplaceMarkdown). */
.doc-callout { border: 1px solid var(--mkt-line); border-left-width: 4px; border-radius: var(--mkt-radius-sm); padding: 0.9rem 1.1rem; margin: 1.25rem 0; background: var(--mkt-card); }
.doc-callout__title { margin: 0 0 0.3rem; font-weight: 700; color: var(--mkt-ink); }
.doc-callout__body > :last-child { margin-bottom: 0; }
.doc-callout--note, .doc-callout--info { border-left-color: var(--mkt-info); background: var(--mkt-info-soft); }
.doc-callout--tip { border-left-color: var(--mkt-success); background: var(--mkt-success-soft); }
.doc-callout--warning, .doc-callout--caution { border-left-color: var(--mkt-warning); background: var(--mkt-warning-soft); }
.doc-callout--danger { border-left-color: var(--mkt-danger); background: var(--mkt-danger-soft); }
.doc-details { border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius-sm); margin: 1rem 0; background: var(--mkt-card); }
.doc-details summary { cursor: pointer; padding: 0.75rem 1rem; font-weight: 650; color: var(--mkt-ink); }
.doc-details__body { padding: 0 1rem 1rem; }
.doc-tabs { border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius-sm); margin: 1.25rem 0; background: var(--mkt-card); }
.doc-tabs__list { display: flex; gap: 0.2rem; border-bottom: 1px solid var(--mkt-line); padding: 0.35rem 0.35rem 0; overflow-x: auto; }
.doc-tabs__tab { border: 0; background: none; padding: 0.55rem 0.9rem; font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--mkt-muted); cursor: pointer; border-bottom: 2px solid transparent; }
.doc-tabs__tab[aria-selected="true"] { color: var(--mkt-ink); border-bottom-color: var(--mkt-ink); }
.doc-tab { padding: 0.25rem 1rem 1rem; }
.doc-tab__label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mkt-muted); }
.doc-embed, .doc-media { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--mkt-radius-sm); margin: 1.25rem 0; }

/* ---- Dialog (gallery zoom) ---------------------------------- */
.mkt-dialog { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 94vh; }
.mkt-dialog::backdrop { background: rgb(10 9 7 / 0.82); }
.mkt-dialog img { max-height: 90vh; width: auto; border-radius: var(--mkt-radius-sm); }
.mkt-dialog__close { position: fixed; top: 1rem; right: 1rem; border: 0; background: var(--mkt-card); color: var(--mkt-ink); width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
/* Previous and next in the enlarged view. position: fixed, like the close
   button, so they sit against the viewport rather than against an image whose
   width is whatever its own shape makes it — a phone screenshot is a narrow
   column in the middle of the backdrop, and buttons pinned to it would be a
   thumb's width apart. The binder disables them at the ends. */
.mkt-dialog__step { position: fixed; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--mkt-card); color: var(--mkt-ink); cursor: pointer; }
.mkt-dialog__step--prev { left: 1rem; }
.mkt-dialog__step--next { right: 1rem; }
.mkt-dialog__step[disabled] { opacity: 0.35; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .mkt *, .mkt *::before, .mkt *::after { transition: none !important; animation: none !important; }
}

/* Listing preview (RevisionPreviewFrame): the real product page for one
   revision in a same-origin frame. The frame keeps its chosen width and the
   stage scrolls, so a 1440 preview never widens the page around it. */
.mkt-pv { display: grid; gap: .75rem; min-width: 0; }
.mkt-pv__sizes { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.mkt-pv__legend { float: left; margin: 0 .25rem 0 0; padding: 0; font-weight: 600; font-size: .875rem; }
.mkt-pv__size { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border: 1px solid var(--mkt-line); border-radius: 999px; font-size: .875rem; cursor: pointer; background: var(--mkt-card); }
.mkt-pv__size:has(input:checked) { border-color: var(--mkt-accent); box-shadow: inset 0 0 0 1px var(--mkt-accent); }
.mkt-pv__size:has(input:focus-visible) { outline: 2px solid var(--mkt-accent); outline-offset: 2px; }
.mkt-pv__open { margin-left: auto; }
.mkt-pv__stage { max-width: 100%; max-height: 82vh; overflow: auto; padding: 12px; border: 1px solid var(--mkt-line); border-radius: 12px; background: var(--mkt-paper-2); }
.mkt-pv__frame { display: block; margin: 0 auto; width: 1440px; height: 900px; border: 0; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); transition: width .2s ease, height .2s ease; }
.mkt-pv:has(.mkt-pv__radio--375:checked) .mkt-pv__frame { width: 375px; height: 812px; }
.mkt-pv:has(.mkt-pv__radio--768:checked) .mkt-pv__frame { width: 768px; height: 1024px; }
@media (prefers-reduced-motion: reduce) { .mkt-pv__frame { transition: none; } }

/* The browser paints its canvas — the overscroll area, the space beyond a
   short page, the scrollbars — from <html>, not from .mkt. With the ground on
   a child div, <html> stayed white and a warm paper page rubber-banded onto
   pure white. The tokens are declared on :root above so this can use them. */
html {
  background: var(--mkt-paper);
}


/* ---------- Support (hub, tickets, seller queue) ----------
   The same markup as the theme support pages on abizvo.com (.sup / .tkt),
   drawn with the marketplace's own tokens, because a shop page is sent none
   of themes.css. Kept in shape with themes.css by hand; the components are
   shared, the sheets are not. */
.mkt-support .sup { max-width: 46rem; }
.mkt-support .sup__intro { margin-block-end: 1.75rem; }
.mkt-support .sup__intro h1 { font-family: var(--mkt-display); font-size: clamp(2rem, 4.5vw, 2.6rem); letter-spacing: -0.02em; margin: 0.4rem 0 0.8rem; }
.mkt-support .eyebrow { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mkt-muted); }
.mkt-support .section-lead, .mkt-support .hint, .mkt-support .sup__privacy { color: var(--mkt-muted); font-size: 0.93rem; }
.mkt-support .sup-hub__picker { margin-block-end: 1.5rem; }
.mkt-support .sup-hub__who a { margin-inline-start: 0.35rem; }
.mkt-support .sup-hub__policy h2 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.mkt-support .thm-policy { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; color: var(--mkt-ink-2); }
.mkt-support .thm-policy li { padding-inline-start: 1rem; position: relative; }
.mkt-support .thm-policy li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--mkt-accent); }
.mkt-support .sup__form, .mkt-support .tkt__reply { display: grid; gap: 1.1rem; }
.mkt-support .sup__form > .btn, .mkt-support .tkt__reply > .btn { justify-self: start; }
.mkt-support .field label, .mkt-support .tkt__reply label { display: block; font-weight: 600; margin-block-end: 0.3rem; }
.mkt-support .field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.1rem; }
.mkt-support .field__optional { font-size: 0.72rem; font-weight: 400; color: var(--mkt-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-inline-start: 0.4rem; }
.mkt-support .form-control { display: block; width: 100%; font: inherit; padding: 0.6rem 0.75rem; border: 1px solid var(--mkt-line-strong); border-radius: var(--mkt-radius-sm); background: var(--mkt-card); color: var(--mkt-ink); }
.mkt-support .form-control:focus-visible { outline: none; border-color: var(--mkt-accent); box-shadow: var(--mkt-focus); }
.mkt-support input[type="file"] { display: block; width: 100%; font: inherit; font-size: 0.9rem; padding: 0.75rem; border: 1px dashed var(--mkt-line-strong); border-radius: var(--mkt-radius-sm); background: var(--mkt-paper-2); color: var(--mkt-muted); }
.mkt-support .sup__file { font-size: 0.9rem; margin: 0.5rem 0 0; color: var(--mkt-muted); }
.mkt-support .sup__file--bad { color: var(--mkt-danger); }
.mkt-support .sup__answerer { padding: 0.9rem 1rem; border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius-sm); background: var(--mkt-paper-2); margin: 0; }
.mkt-support .sup__answerer-scope { display: block; margin-block-start: 0.35rem; color: var(--mkt-ink-2); font-size: 0.93rem; white-space: pre-wrap; }
.mkt-support .btn { display: inline-block; font: inherit; font-weight: 600; padding: 0.6rem 1.1rem; border-radius: 999px; border: 1px solid var(--mkt-line-strong); background: var(--mkt-card); color: var(--mkt-ink); cursor: pointer; text-decoration: none; margin-inline-end: 0.5rem; }
.mkt-support .btn-primary { background: var(--mkt-accent); color: var(--mkt-accent-ink); border-color: var(--mkt-accent); }
.mkt-support .btn-link { border: 0; background: none; padding: 0; color: var(--mkt-accent); text-decoration: underline; }
.mkt-support .btn[disabled] { opacity: 0.6; cursor: default; }
.mkt-support .alert { padding: 0.9rem 1rem; border-radius: var(--mkt-radius-sm); border: 1px solid var(--mkt-line); margin: 0 0 1rem; }
.mkt-support .alert-danger { border-color: var(--mkt-danger); background: var(--mkt-danger-soft); }
.mkt-support .alert-warning { border-color: var(--mkt-warning); background: var(--mkt-warning-soft); }
.mkt-support .alert-info { border-color: var(--mkt-info); background: var(--mkt-info-soft); }
.mkt-support .sup__done { padding: 1.5rem; border: 1px solid var(--mkt-success); background: var(--mkt-success-soft); border-radius: var(--mkt-radius); }
.mkt-support .sup__done h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.mkt-support .tkt__head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; justify-content: space-between; margin-block-end: 1.5rem; }
.mkt-support .tkt__head h1 { font-family: var(--mkt-display); font-size: clamp(1.5rem, 4vw, 2rem); margin: 0.3rem 0; }
.mkt-support .tkt__meta { color: var(--mkt-muted); font-size: 0.93rem; margin: 0; }
.mkt-support .tkt__status { padding: 6px 0.9rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; border: 1px solid var(--mkt-line-strong); white-space: nowrap; }
.mkt-support .tkt__status--new, .mkt-support .tkt__status--open { border-color: var(--mkt-accent); color: var(--mkt-accent); }
.mkt-support .tkt__status--waitingoncustomer { border-color: var(--mkt-warning); color: var(--mkt-warning); }
.mkt-support .tkt__status--resolved { border-color: var(--mkt-success); color: var(--mkt-success); }
.mkt-support .tkt__status--closed { color: var(--mkt-muted); }
.mkt-support .tkt__resolution { padding: 1.1rem; border: 1px solid var(--mkt-success); background: var(--mkt-success-soft); border-radius: var(--mkt-radius); margin-block-end: 1.5rem; }
.mkt-support .tkt__resolution h2 { font-size: 1rem; margin: 0 0 0.4rem; }
.mkt-support .tkt__resolution p { margin: 0; white-space: pre-wrap; }
.mkt-support .tkt__thread { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.9rem; }
.mkt-support .tkt__msg { padding: 1.1rem; border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius); background: var(--mkt-card); }
.mkt-support .tkt__msg--support { border-inline-start: 3px solid var(--mkt-accent); }
.mkt-support .tkt__msg--customer { border-inline-start: 3px solid var(--mkt-line-strong); }
.mkt-support .tkt__msg--note { border-inline-start: 3px solid var(--mkt-warning); background: var(--mkt-warning-soft); }
.mkt-support .tkt__msg-head { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: baseline; font-size: 0.93rem; margin: 0 0 0.6rem; }
.mkt-support .tkt__msg-head span { color: var(--mkt-muted); font-size: 0.8rem; }
.mkt-support .tkt__note-flag { text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; color: var(--mkt-warning) !important; }
.mkt-support .tkt__msg-body { margin: 0; white-space: pre-wrap; line-height: 1.55; }
.mkt-support .tkt__attach { margin-block-start: 0.7rem; display: grid; gap: 0.4rem; justify-items: start; }
.mkt-support .tkt__img { display: block; max-width: 100%; max-height: 400px; }
.mkt-support .tkt__card { margin-block-end: 1.25rem; padding: 1.25rem; border: 1px solid var(--mkt-line); border-radius: var(--mkt-radius); background: var(--mkt-card); }
.mkt-support .tkt__card h2 { font-size: 1.1rem; margin: 0 0 0.9rem; }
.mkt-portal .mkt-support { padding: 0; }
.sf-support__commitment { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0 0 1rem; }
.sf-support__scope { white-space: pre-wrap; }
.sf-docs__support { margin-inline-start: auto; }
.sp-counts { gap: 0.6rem; flex-wrap: wrap; }
