/* V7.8 — comprehensive theme compatibility, compact catalog results, publishing UX, commerce settlement */
:root,[data-bs-theme="light"]{
  --v78-text:#080d12;
  --v78-muted:#43525d;
  --v78-surface:#ffffff;
  --v78-surface-2:#f5f8fa;
  --v78-surface-3:#edf3f6;
  --v78-line:#d7e0e6;
  --v78-ink:#0b263d;
  --v78-gold:#d5a021;
  --v78-success:#198754;
  --v78-danger:#b42339;
  --v78-shadow:0 16px 38px rgba(10,31,45,.08);
}
[data-bs-theme="dark"]{
  --v78-text:#f6f9fb;
  --v78-muted:#c3ced5;
  --v78-surface:#0e202b;
  --v78-surface-2:#122936;
  --v78-surface-3:#193442;
  --v78-line:#35505f;
  --v78-ink:#f6f9fb;
  --v78-gold:#e6bf52;
  --v78-success:#51c28c;
  --v78-danger:#ff8797;
  --v78-shadow:0 16px 42px rgba(0,0,0,.28);
}

/* ---- Theme compatibility layer ------------------------------------------------ */
.v78-ui{color:var(--v78-text)}
.v78-ui .panel,
.v78-ui .modal-content,
.v78-ui .dropdown-menu,
.v78-ui .offcanvas,
.v78-ui .stat-card,
.v78-ui .feature-card,
.v78-ui .metadata-item,
.v78-ui .customer-order-card,
.v78-ui .seller-fulfillment,
.v78-ui .bank-review-card,
.v78-ui .proof-upload-card,
.v78-ui .product-choice-card,
.v78-ui .publication-card{
  background:var(--v78-surface)!important;
  color:var(--v78-text)!important;
  border-color:var(--v78-line)!important;
}
.v78-ui .panel h1,.v78-ui .panel h2,.v78-ui .panel h3,.v78-ui .panel h4,.v78-ui .panel h5,.v78-ui .panel h6,
.v78-ui .panel strong,.v78-ui .panel b,.v78-ui .panel label,
.v78-ui .modal-content h1,.v78-ui .modal-content h2,.v78-ui .modal-content h3,.v78-ui .modal-content strong,
.v78-ui .customer-order-card h2,.v78-ui .customer-order-card strong,.v78-ui .customer-order-card b,
.v78-ui .seller-fulfillment strong,.v78-ui .seller-fulfillment b{color:var(--v78-text)!important}
.v78-ui .text-muted,.v78-ui .form-text,.v78-ui .panel small,.v78-ui .panel p,
.v78-ui .customer-order-card small,.v78-ui .seller-fulfillment small{color:var(--v78-muted)!important}

.v78-ui .form-control,.v78-ui .form-select,.v78-ui textarea,.v78-ui input[type="text"],.v78-ui input[type="number"],.v78-ui input[type="date"],.v78-ui input[type="email"],.v78-ui input[type="tel"]{
  background-color:var(--v78-surface)!important;
  color:var(--v78-text)!important;
  border-color:var(--v78-line)!important;
  caret-color:var(--v78-gold)!important;
}
.v78-ui .form-control::placeholder,.v78-ui textarea::placeholder{color:var(--v78-muted)!important;opacity:.82}
.v78-ui .form-control:focus,.v78-ui .form-select:focus,.v78-ui textarea:focus{
  border-color:var(--v78-gold)!important;
  box-shadow:0 0 0 .2rem color-mix(in srgb,var(--v78-gold) 17%,transparent)!important;
}
.v78-ui .table{--bs-table-bg:transparent;--bs-table-color:var(--v78-text);--bs-table-border-color:var(--v78-line);color:var(--v78-text)!important}
.v78-ui .table>thead{--bs-table-bg:var(--v78-surface-2);--bs-table-color:var(--v78-text)}
.v78-ui .table>tbody>tr:hover>*{--bs-table-accent-bg:var(--v78-surface-2);color:var(--v78-text)}
.v78-ui .btn-outline-dark{--bs-btn-color:var(--v78-text);--bs-btn-border-color:var(--v78-line);--bs-btn-hover-bg:var(--v78-surface-3);--bs-btn-hover-color:var(--v78-text);--bs-btn-hover-border-color:var(--v78-gold)}
[data-bs-theme="dark"] .v78-ui .btn-close{filter:invert(1) grayscale(100%)}
[data-bs-theme="dark"] .v78-ui .badge.text-bg-light{background:#1a3544!important;color:#f5f9fb!important;border-color:#35505f!important}
[data-bs-theme="dark"] .v78-ui .alert-light{background:#142c39!important;color:#edf5f8!important;border-color:#35505f!important}

/* ---- About page --------------------------------------------------------------- */
.about-page-v63{background:var(--v78-surface)!important;color:var(--v78-text)!important;min-height:65vh}
.about-hero-v63{background:linear-gradient(135deg,var(--v78-surface-2),var(--v78-surface))!important;border-bottom:1px solid var(--v78-line)}
.about-hero-v63 h1,.about-content-v63 h1,.about-content-v63 h2,.about-content-v63 h3,.about-content-v63 h4,.about-content-v63 strong{color:var(--v78-text)!important}
.about-hero-v63 p,.about-content-v63,.about-content-v63 p,.about-content-v63 li,.about-values-v63 span{color:var(--v78-muted)!important}
.about-content-v63 a{color:var(--v78-gold)!important}
.about-values-v63>div{background:var(--v78-surface-2)!important;border:1px solid var(--v78-line)!important;box-shadow:var(--v78-shadow)}
.about-values-v63 i{background:var(--v78-surface-3)!important;color:var(--v78-gold)!important}
.about-values-v63 strong{color:var(--v78-text)!important}
.about-symbol-v63{background:linear-gradient(145deg,#0b263d,#123f59)!important;color:#fff!important;border:1px solid rgba(255,255,255,.12)}
.about-symbol-v63 span{color:#fff!important}.about-symbol-v63 i{color:#e6bf52!important}
[data-bs-theme="dark"] .about-hero-v63{background:linear-gradient(135deg,#122b38,#0d1e29)!important}

/* ---- Publish page: editor + conditional metadata ------------------------------ */
.summary-word-editor{background:var(--v78-surface)!important;border-color:var(--v78-line)!important;color:var(--v78-text)!important}
.summary-word-toolbar{background:var(--v78-surface-2)!important;border-color:var(--v78-line)!important}
.summary-word-toolbar button{color:var(--v78-text)!important}
.summary-word-toolbar button:hover{background:var(--v78-surface-3)!important;color:var(--v78-gold)!important}
.summary-word-toolbar>span{background:var(--v78-line)!important}
.summary-word-page{background:var(--v78-surface)!important;color:var(--v78-text)!important;border:0!important}
.summary-word-page:empty:before{color:var(--v78-muted)!important}
.summary-word-page *{color:inherit!important}
.summary-word-status{background:var(--v78-surface-2)!important;border-color:var(--v78-line)!important;color:var(--v78-muted)!important}
.conditional-fields{background:var(--v78-surface-2)!important;border-color:var(--v78-line)!important;color:var(--v78-text)!important}
.conditional-fields h3{color:var(--v78-text)!important}
.taxonomy-chip{background:var(--v78-surface-3)!important;color:var(--v78-text)!important;border:1px solid var(--v78-line)!important}
.taxonomy-chip:hover{border-color:var(--v78-gold)!important;color:var(--v78-text)!important}

/* Professional keyword tags */
.keyword-tags-shell-v78{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;min-height:52px;padding:.55rem .65rem;background:var(--v78-surface);border:1px solid var(--v78-line);border-radius:.75rem;cursor:text}
.keyword-tags-shell-v78:focus-within{border-color:var(--v78-gold);box-shadow:0 0 0 .2rem color-mix(in srgb,var(--v78-gold) 17%,transparent)}
.keyword-tags-shell-v78 input{flex:1;min-width:160px;border:0!important;background:transparent!important;box-shadow:none!important;padding:.25rem!important;color:var(--v78-text)!important;outline:0}
.keyword-tag-v78{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .65rem;border-radius:999px;background:color-mix(in srgb,var(--v78-gold) 14%,var(--v78-surface-2));border:1px solid color-mix(in srgb,var(--v78-gold) 42%,var(--v78-line));color:var(--v78-text);font-weight:700;font-size:.78rem}
.keyword-tag-v78 button{width:20px;height:20px;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:var(--v78-muted);padding:0}
.keyword-tag-v78 button:hover{background:var(--v78-danger);color:#fff}
.keyword-tags-help-v78{display:block;margin-top:.35rem;color:var(--v78-muted);font-size:.72rem}

/* ---- Search/catalog: compact horizontal list (homepage cards stay unchanged) -- */
.catalog-list-v78{display:grid;grid-template-columns:1fr;gap:.85rem}
.catalog-list-item-v78{min-width:0}
.catalog-list-v78 .publication-card{height:auto!important;display:grid;grid-template-columns:118px minmax(0,1fr);position:relative;border-radius:18px!important;overflow:hidden!important;box-shadow:0 8px 24px rgba(11,38,61,.05)!important;transition:.18s ease}
.catalog-list-v78 .publication-card:hover{transform:translateY(-2px)!important;border-color:color-mix(in srgb,var(--v78-gold) 45%,var(--v78-line))!important;box-shadow:var(--v78-shadow)!important}
.catalog-list-v78 .publication-cover{height:150px!important;min-height:150px!important;border-radius:0!important}
.catalog-list-v78 .publication-cover img{width:100%;height:100%;object-fit:cover}
.catalog-list-v78 .cover-placeholder{height:100%;min-height:150px}
.catalog-list-v78 .publication-body{padding:1rem 1.1rem!important;display:flex;flex-direction:column;min-width:0}
.catalog-list-v78 .publication-body h3{min-height:0!important;margin:.15rem 0 .45rem!important;font-size:1.02rem!important;line-height:1.65!important}
.catalog-list-v78 .publication-body h3 a{color:var(--v78-text)!important}
.catalog-list-v78 .publication-teaser-v67{min-height:0!important;margin:0 0 .5rem!important;-webkit-line-clamp:2!important;color:var(--v78-muted)!important}
.catalog-list-v78 .publication-teaser-cue-v67{margin:0 0 .5rem!important}
.catalog-list-v78 .publication-meta{margin-top:auto;display:flex;gap:1rem;flex-wrap:wrap;color:var(--v78-muted)!important}
.catalog-list-v78 .card-favorite{top:.6rem;left:.6rem}
.catalog-list-empty-v78,.catalog-list-ad-v78{grid-column:1/-1}
.sponsored-results-v74 .catalog-list-v78{margin-top:.75rem}
@media(min-width:992px){.catalog-list-v78{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-list-ad-v78{grid-column:1/-1}}
@media(max-width:575.98px){
  .catalog-list-v78 .publication-card{grid-template-columns:92px minmax(0,1fr);border-radius:15px!important}
  .catalog-list-v78 .publication-cover,.catalog-list-v78 .cover-placeholder{height:128px!important;min-height:128px!important}
  .catalog-list-v78 .publication-body{padding:.75rem!important}
  .catalog-list-v78 .publication-body h3{font-size:.88rem!important;line-height:1.55!important}
  .catalog-list-v78 .publication-teaser-v67{font-size:.7rem!important;-webkit-line-clamp:1!important}
  .catalog-list-v78 .publication-teaser-cue-v67{display:none!important}
  .catalog-list-v78 .publication-meta{font-size:.62rem!important;gap:.55rem}
  .catalog-list-v78 .type-chip{font-size:.56rem!important;padding:.2rem .35rem!important}
}

/* ---- Orders / store theme safety --------------------------------------------- */
.customer-order-card,.seller-fulfillment,.admin-order-card{background:var(--v78-surface)!important;border-color:var(--v78-line)!important;color:var(--v78-text)!important}
.customer-order-card header,.seller-fulfillment-head,.admin-order-card header{border-color:var(--v78-line)!important}
.order-status-track{background:var(--v78-surface-2)!important;border-color:var(--v78-line)!important}
.order-status-track span{color:var(--v78-muted)!important}.order-status-track span.is-done{color:var(--v78-text)!important}
.order-meta-grid>div,.tracking-panel,.fulfillment-address,.checkout-payment-rule,.checkout-seller-group,.order-mini{background:var(--v78-surface-2)!important;border-color:var(--v78-line)!important;color:var(--v78-text)!important}
.tracking-panel code,.copy-data-row code{background:var(--v78-surface-3)!important;color:var(--v78-text)!important;border:1px solid var(--v78-line)!important}

/* ---- Purchase choices under publisher card ----------------------------------- */
.product-choice-panel-v78{border-color:color-mix(in srgb,var(--v78-gold) 38%,var(--v78-line))!important}
.product-choice-grid-v78{display:grid!important;grid-template-columns:1fr!important;gap:.65rem!important}
.product-choice-card-v78{grid-template-columns:46px minmax(0,1fr) auto!important;padding:.85rem!important;background:var(--v78-surface-2)!important}
.product-choice-card-v78>i{background:var(--v78-surface-3)!important;color:var(--v78-gold)!important}
.product-choice-card-v78 strong{color:var(--v78-text)!important}.product-choice-card-v78 span{color:var(--v78-muted)!important}
.product-choice-card-v78 em{display:flex;align-items:center;gap:.3rem;margin-top:.3rem;color:var(--v78-muted);font-size:.67rem;font-style:normal}
.product-buy-cta-v78{display:grid;justify-items:end;gap:.35rem;white-space:nowrap}.product-buy-cta-v78 b{color:var(--v78-text)!important}.product-buy-cta-v78 span{display:inline-flex!important;align-items:center;gap:.3rem;padding:.35rem .6rem;border-radius:999px;background:linear-gradient(135deg,#f0cf6b,var(--v78-gold));color:#122938!important;font-weight:900;font-size:.7rem}
@media(max-width:575.98px){.product-choice-card-v78{grid-template-columns:40px minmax(0,1fr)!important}.product-buy-cta-v78{grid-column:2;justify-items:start;grid-template-columns:auto auto;align-items:center;gap:.6rem}.product-choice-card-v78>i{width:40px!important;height:40px!important}}

/* ---- Bank settlement / payouts ------------------------------------------------ */
.platform-bank-card-v78,.payout-card-v78,.wallet-summary-v78{background:var(--v78-surface)!important;border:1px solid var(--v78-line);border-radius:18px;color:var(--v78-text);box-shadow:0 8px 22px rgba(11,38,61,.045)}
.platform-bank-card-v78{padding:1rem}.platform-bank-card-v78 small,.payout-card-v78 small,.wallet-summary-v78 small{color:var(--v78-muted)}
.wallet-grid-v78{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.wallet-summary-v78{padding:1rem}.wallet-summary-v78 strong{display:block;font-size:1.35rem;margin-top:.25rem;color:var(--v78-text)}
.payout-fee-preview-v78{display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem;margin-top:.8rem}.payout-fee-preview-v78>div{padding:.7rem;border:1px solid var(--v78-line);border-radius:12px;background:var(--v78-surface-2)}.payout-fee-preview-v78 span,.payout-fee-preview-v78 strong{display:block}.payout-fee-preview-v78 span{font-size:.68rem;color:var(--v78-muted)}.payout-fee-preview-v78 strong{margin-top:.15rem;color:var(--v78-text)}
@media(max-width:767.98px){.wallet-grid-v78,.payout-fee-preview-v78{grid-template-columns:1fr}.platform-bank-admin-grid-v78{grid-template-columns:1fr!important}}

/* ---- Accessibility / text contrast cleanup ----------------------------------- */
[data-bs-theme="dark"] .v78-ui a:not(.btn):not(.nav-link):not(.dropdown-item){text-decoration-color:color-mix(in srgb,currentColor 35%,transparent)}
[data-bs-theme="dark"] .v78-ui .bg-white,[data-bs-theme="dark"] .v78-ui .bg-light{background:var(--v78-surface)!important;color:var(--v78-text)!important}
[data-bs-theme="dark"] .v78-ui .border{border-color:var(--v78-line)!important}
[data-bs-theme="dark"] .v78-ui code{color:#f6d574}

/* =============================================================================
   V7.8.1 — full legacy surface/theme audit
   Keep old PHP templates intact; normalize their visual surfaces through tokens.
   ============================================================================= */
:root,[data-bs-theme="light"]{
  color-scheme:light;
  --bs-body-bg:var(--v78-surface-2);
  --bs-body-color:var(--v78-text);
  --bs-emphasis-color:var(--v78-text);
  --bs-secondary-color:var(--v78-muted);
  --bs-border-color:var(--v78-line);
  --bs-tertiary-bg:var(--v78-surface-2);
  --bs-secondary-bg:var(--v78-surface-3);
}
[data-bs-theme="dark"]{
  color-scheme:dark;
  --bs-body-bg:#09161f;
  --bs-body-color:var(--v78-text);
  --bs-emphasis-color:var(--v78-text);
  --bs-secondary-color:var(--v78-muted);
  --bs-border-color:var(--v78-line);
  --bs-tertiary-bg:var(--v78-surface-2);
  --bs-secondary-bg:var(--v78-surface-3);
}
body.v78-ui{background:var(--bs-body-bg)!important;color:var(--v78-text)!important}
body.v78-ui :where(h1,h2,h3,h4,h5,h6,strong,b,label,legend,th){color:var(--v78-text)}
body.v78-ui :where(.text-muted,.text-secondary,.form-text){color:var(--v78-muted)!important}
body.v78-ui :where(.form-control,.form-select,.input-group-text,textarea,input[type="password"],input[type="search"],input[type="url"]){
  background:var(--v78-surface)!important;color:var(--v78-text)!important;border-color:var(--v78-line)!important;
  -webkit-text-fill-color:var(--v78-text)!important;caret-color:var(--v78-gold)!important
}
body.v78-ui :where(.form-control,.form-select,textarea,input)::placeholder{color:var(--v78-muted)!important;-webkit-text-fill-color:var(--v78-muted)!important;opacity:.86}
body.v78-ui select option{background:var(--v78-surface);color:var(--v78-text)}

/* Account settings: privacy/notification switches were hard-coded light in app.css. */
body.v78-ui .settings-card{background:var(--v78-surface)!important;color:var(--v78-text)!important;border-color:var(--v78-line)!important}
body.v78-ui .settings-switches .form-check,
body.v78-ui .social-connection,
body.v78-ui .settings-section,
body.v78-ui .account-settings-grid>section{
  color:var(--v78-text)!important;border-color:var(--v78-line)!important
}
body.v78-ui .settings-switches .form-check{background:var(--v78-surface-2)!important}
body.v78-ui .settings-switches .form-check:hover{background:var(--v78-surface-3)!important;border-color:color-mix(in srgb,var(--v78-gold) 45%,var(--v78-line))!important}
body.v78-ui .settings-switches .form-check span{color:var(--v78-text)!important;font-weight:750}
body.v78-ui .settings-switches .form-check.is-disabled span{color:var(--v78-muted)!important}
body.v78-ui .avatar-editor>span{background:var(--v78-surface-3)!important;color:var(--v78-text)!important}

/* About: page body must remain full-contrast; only descriptive secondary copy is muted. */
body.v78-ui .about-content-v63,
body.v78-ui .about-content-v63 :where(p,li,span,div,blockquote,td,th,dd,dt){color:var(--v78-text)!important}
body.v78-ui .about-content-v63 :where([style*="color"],[color]){color:var(--v78-text)!important;-webkit-text-fill-color:var(--v78-text)!important}
body.v78-ui .about-values-v63 span{color:var(--v78-muted)!important}
body.v78-ui .about-hero-v63 p{color:var(--v78-muted)!important}

/* Publishing wizard and editors. */
body.v78-ui :where(.wizard-steps,.wizard-pane,.wizard-footer,.review-summary,.wizard-subsection-v72,.conditional-fields,.summary-word-editor,.rich-editor-shell){
  background:var(--v78-surface)!important;color:var(--v78-text)!important;border-color:var(--v78-line)!important
}
body.v78-ui .wizard-steps button{color:var(--v78-muted)!important}
body.v78-ui .wizard-steps button span{background:var(--v78-surface-3)!important;color:var(--v78-text)!important}
body.v78-ui .wizard-steps button.active{background:color-mix(in srgb,var(--v78-gold) 13%,var(--v78-surface))!important;color:var(--v78-text)!important}
body.v78-ui .wizard-steps button.active span{background:var(--v78-gold)!important;color:#102735!important}
body.v78-ui .wizard-footer{background:color-mix(in srgb,var(--v78-surface) 94%,transparent)!important}
body.v78-ui .review-summary,.v78-ui .wizard-subsection-v72,.v78-ui .conditional-fields{background:var(--v78-surface-2)!important}
body.v78-ui .summary-word-page,
body.v78-ui .summary-word-page :where(p,div,span,li,strong,b,em,i,u,h1,h2,h3,h4,h5,h6){
  color:var(--v78-text)!important;-webkit-text-fill-color:var(--v78-text)!important
}
body.v78-ui .summary-word-page{min-height:150px;background:var(--v78-surface)!important}
body.v78-ui .summary-word-page::selection{background:color-mix(in srgb,var(--v78-gold) 40%,transparent);color:var(--v78-text)}
body.v78-ui .summary-word-toolbar button:focus-visible{background:var(--v78-surface-3)!important;color:var(--v78-gold)!important}
body.v78-ui .taxonomy-chip{background:var(--v78-surface-3)!important;color:var(--v78-text)!important;border-color:var(--v78-line)!important}

/* Common legacy cards from store/admin/account pages. */
body.v78-ui :where(
  .admin-stat,.module-card,.period-filter,.product-card,.book-meta>div,.purchase-box,
  .variant-option,.cart-summary,.payment-summary,.account-order,.ticket-row,
  .bank-account-card,.bank-editor,.seller-bank-card,.bank-review-card,.proof-upload-card,
  .checkout-seller-group,.checkout-payment-rule,.order-mini,.tracking-panel,.fulfillment-address,
  .customer-order-card,.seller-fulfillment,.admin-order-card
){background-color:var(--v78-surface)!important;color:var(--v78-text)!important;border-color:var(--v78-line)!important}
body.v78-ui :where(.product-cover,.cart-cover,.module-card>i:first-child,.admin-stat>i){background:var(--v78-surface-3)!important;color:var(--v78-text)!important}
body.v78-ui :where(.shop-filters a,.variant-option,.order-meta-grid>div,.order-parties>div){background:var(--v78-surface-2)!important;color:var(--v78-text)!important;border-color:var(--v78-line)!important}
body.v78-ui .variant-option:has(input:checked){background:color-mix(in srgb,var(--v78-gold) 12%,var(--v78-surface))!important;border-color:var(--v78-gold)!important}
body.v78-ui :where(.author-line,.rich-summary,.purchase-trust,.product-card-body>p:not(.author-line)){color:var(--v78-muted)!important}
body.v78-ui .product-card-body h2 a{color:var(--v78-text)!important}
body.v78-ui .product-types span{background:var(--v78-surface-3)!important;color:var(--v78-text)!important}
body.v78-ui .admin-shell,body.v78-ui .shop-shell{background:var(--bs-body-bg)!important}
body.v78-ui .period-filter button{color:var(--v78-text)!important}
body.v78-ui .period-filter button.active{background:#0b3149!important;color:#fff!important}
[data-bs-theme="dark"] body.v78-ui .period-filter button.active{background:#e7f1f7!important;color:#0a1a24!important}

/* Orders are long-lived operational pages; force readable metadata/status copy. */
body.v78-ui :where(.customer-order-card,.seller-fulfillment,.admin-order-card) :where(h1,h2,h3,strong,b,label){color:var(--v78-text)!important}
body.v78-ui :where(.customer-order-card,.seller-fulfillment,.admin-order-card) :where(p,small,.order-parties span,.order-meta-grid span){color:var(--v78-muted)!important}
body.v78-ui .shipping-update-form{background:var(--v78-surface-2)!important;border:1px solid var(--v78-line);border-radius:14px;padding:.8rem}

/* Catalog: one compact landscape result per row, optimized for large result sets. */
.catalog-list-v78{grid-template-columns:minmax(0,1fr)!important;gap:.72rem!important}
.catalog-list-v78 .publication-card{grid-template-columns:104px minmax(0,1fr)!important;min-height:132px!important}
.catalog-list-v78 .publication-cover,.catalog-list-v78 .cover-placeholder{height:132px!important;min-height:132px!important}
.catalog-list-v78 .publication-body{padding:.82rem 1rem!important}
.catalog-list-v78 .publication-body h3{font-size:.98rem!important;margin:.05rem 0 .32rem!important;line-height:1.55!important}
.catalog-list-v78 .publication-teaser-v67{margin-bottom:.35rem!important;-webkit-line-clamp:1!important}
@media(min-width:992px){.catalog-list-v78{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:575.98px){
  .catalog-list-v78 .publication-card{grid-template-columns:82px minmax(0,1fr)!important;min-height:108px!important}
  .catalog-list-v78 .publication-cover,.catalog-list-v78 .cover-placeholder{height:108px!important;min-height:108px!important}
  .catalog-list-v78 .publication-body{padding:.62rem .7rem!important}
  .catalog-list-v78 .publication-body h3{font-size:.83rem!important;line-height:1.48!important;margin:0 0 .25rem!important}
}

/* Dark theme must never inherit browser/legacy black text in these surfaces. */
[data-bs-theme="dark"] body.v78-ui :where(.panel,.settings-card,.modal-content,.offcanvas,.dropdown-menu,.publication-card,.product-card,.customer-order-card,.seller-fulfillment,.admin-order-card) :where(input,textarea,select,option){color:var(--v78-text)!important;-webkit-text-fill-color:var(--v78-text)!important}
[data-bs-theme="dark"] body.v78-ui :where(.bg-white,.bg-light){background:var(--v78-surface)!important;color:var(--v78-text)!important}

/* Central platform settlement note used by seller publishing forms. */
body.v78-ui .store-settlement-note-v78{display:flex;align-items:flex-start;gap:.55rem;padding:.7rem .8rem;border:1px solid color-mix(in srgb,var(--v78-gold) 38%,var(--v78-line));border-radius:12px;background:color-mix(in srgb,var(--v78-gold) 8%,var(--v78-surface-2));color:var(--v78-text);font-size:.72rem;line-height:1.7}
body.v78-ui .store-settlement-note-v78 i{color:var(--v78-gold);font-size:1rem;margin-top:.12rem}

/* Rich/Word editor — V7.5 intentionally forced a white paper; V7.8 makes the editing surface theme-aware. */
body.v78-ui .word-editor{background:var(--v78-surface-2)!important;border-color:var(--v78-line)!important;color:var(--v78-text)!important}
body.v78-ui .word-editor-toolbar,body.v78-ui .word-editor-status{background:var(--v78-surface)!important;border-color:var(--v78-line)!important;color:var(--v78-muted)!important}
body.v78-ui .word-editor-toolbar button,body.v78-ui .word-editor-toolbar select{background:var(--v78-surface)!important;color:var(--v78-text)!important;border-color:var(--v78-line)!important;-webkit-text-fill-color:var(--v78-text)!important}
body.v78-ui .word-editor-toolbar button:hover,body.v78-ui .word-editor-toolbar select:hover{background:var(--v78-surface-3)!important;border-color:var(--v78-gold)!important}
body.v78-ui .word-editor-page{background:var(--v78-surface)!important;color:var(--v78-text)!important;-webkit-text-fill-color:var(--v78-text)!important;box-shadow:0 5px 24px color-mix(in srgb,#000 18%,transparent)!important}
body.v78-ui .word-editor-page :where(p,span,strong,b,em,i,u,h1,h2,h3,h4,h5,h6,li,td,th,blockquote,div){color:inherit!important;-webkit-text-fill-color:inherit!important}
body.v78-ui .word-editor-page:empty:before{color:var(--v78-muted)!important;-webkit-text-fill-color:var(--v78-muted)!important}
body.v78-ui .word-editor-page blockquote{background:color-mix(in srgb,var(--v78-gold) 8%,var(--v78-surface-2))!important;border-color:var(--v78-gold)!important}
body.v78-ui .word-editor-page td,body.v78-ui .word-editor-page th{border-color:var(--v78-line)!important}
body.v78-ui .word-editor-page th{background:var(--v78-surface-3)!important;color:var(--v78-text)!important}
body.v78-ui .publish-wizard .panel-soft{background:var(--v78-surface-2)!important;color:var(--v78-text)!important;border-color:var(--v78-line)!important}

/* Generic readable surfaces found during the V7.8 cross-page theme audit. */
body.v78-ui :where(.card,.list-group-item,.accordion-item,.accordion-button,.toast,.popover,.pagination .page-link){background-color:var(--v78-surface)!important;color:var(--v78-text)!important;border-color:var(--v78-line)!important}
body.v78-ui .accordion-button:not(.collapsed){background:color-mix(in srgb,var(--v78-gold) 9%,var(--v78-surface-2))!important;color:var(--v78-text)!important;box-shadow:inset 0 calc(-1 * var(--bs-border-width,1px)) 0 var(--v78-line)!important}
body.v78-ui .pagination .page-item.active .page-link{background:var(--v78-ink)!important;color:var(--v78-surface)!important;border-color:var(--v78-ink)!important}
[data-bs-theme="dark"] body.v78-ui .pagination .page-item.active .page-link{background:var(--v78-gold)!important;color:#0b202c!important;border-color:var(--v78-gold)!important}
body.v78-ui :where(.list-group-item,.accordion-body,.modal-body,.offcanvas-body,.dropdown-item) :where(p,li,dd,dt){color:inherit}
body.v78-ui .dropdown-item:hover,body.v78-ui .dropdown-item:focus{background:var(--v78-surface-3)!important;color:var(--v78-text)!important}

/* User-authored rich text: keep imported/legacy inline colors from becoming invisible after theme changes. */
body.v78-ui .rich-content{background:var(--v78-surface)!important;color:var(--v78-text)!important;border-color:var(--v78-line)!important}
body.v78-ui .rich-content :where(p,li,div,span,blockquote,td,th,strong,b,em,i,u,h1,h2,h3,h4,h5,h6){color:inherit}
[data-bs-theme="dark"] body.v78-ui .rich-content :where([style*="color"],[color]){color:var(--v78-text)!important;-webkit-text-fill-color:var(--v78-text)!important}
[data-bs-theme="dark"] body.v78-ui .rich-content [style*="background"]{background-color:transparent!important}
[data-bs-theme="dark"] body.v78-ui .word-editor-page :where([style*="color"],[color]){color:var(--v78-text)!important;-webkit-text-fill-color:var(--v78-text)!important}
[data-bs-theme="dark"] body.v78-ui .word-editor-page [style*="background"]{background-color:transparent!important}
body.v78-ui .about-content-v63 [style*="background"]{background-color:transparent!important}
