/* Shared UI skin. Product images and meaningful color swatches keep their colors. */
:root { color-scheme:dark; --accent:#f2f2f2; --accent-dark:#111; }
html:has(.pc-shell),
html:has(.pc-shell) body,
html:has(.pc-shell) uni-page-body,
html:has(.pc-shell) .pc-shell,
html:has(.pc-shell) .pc-shell-main,
html:has(.pc-shell) .pc-main-scroll,
html:has(.pc-shell) .pc-page-root { background:#090909 !important; color:#f2f2f2 !important; }
html:has(.pc-shell) .pc-shell * { color:#eaeaea; }
html:has(.pc-shell) .pc-topbar .pc-logo-img { filter:brightness(0) invert(1); background:transparent !important; }
html:has(.pc-shell) .pc-feature-page .tool-icon { filter:grayscale(1); }
html:has(.pc-shell) .pc-feature-page { background:#111 !important; }
html:has(.pc-shell) .pc-feature-page :is(.param-card,.card,.item,.setting-card,.help-item) { background:#181818 !important; border-color:#333 !important; color:#eee !important; }
html:has(.pc-shell) .pc-feature-page :is(.param-card,.card,.item,.setting-card,.help-item) :is(.title,.label,.name,.value,.item-title,.item-name) { color:#eee !important; }
html:has(.pc-shell) .pc-feature-page :is(.param-card,.card,.item,.setting-card,.help-item) :is(.desc,.hint,.sub,.item-desc) { color:#999 !important; }
html:has(.pc-shell) .pc-feature-page :is(.block,.tips-card,.kw-input,.tips-box,.notice-card) { background:#181818 !important; border-color:#444 !important; color:#eee !important; }
html:has(.pc-shell) .pc-feature-page :is(.block,.tips-card,.kw-input,.tips-box,.notice-card) :is(h1,h2,h3,strong,.title,.label,.name,.value,.block-title) { color:#eee !important; }
html:has(.pc-shell) .pc-feature-page :is(.block,.tips-card,.kw-input,.tips-box,.notice-card) :is(p,small,.desc,.hint,.sub,.note,.help,.block-help) { color:#999 !important; }
html:has(.pc-shell) .pc-feature-page :is(.pick,.pick-area,.drop,.side-card,.fee-box,.form-card,.upload-card,.upload-panel,.upload-box,.upload-area,.result-card,.result-panel) { background:#181818 !important; border-color:#444 !important; color:#eee !important; }
html:has(.pc-shell) .pc-feature-page :is(.pick,.pick-area,.drop,.side-card,.fee-box,.form-card,.upload-card,.upload-panel,.upload-box,.upload-area,.result-card,.result-panel) :is(h1,h2,h3,strong,.title,.label,.name,.value,.pick-title) { color:#eee !important; }
html:has(.pc-shell) .pc-feature-page :is(.pick,.pick-area,.drop,.side-card,.fee-box,.form-card,.upload-card,.upload-panel,.upload-box,.upload-area,.result-card,.result-panel) :is(p,small,.desc,.hint,.sub,.note,.help,.pick-help) { color:#999 !important; }
html:has(.pc-shell) .pc-feature-page :is(.pick,.pick-area,.drop,.upload-box,.upload-area):hover { background:#222 !important; border-color:#aaa !important; }
html:has(.pc-shell) .pc-feature-page .preset { background:#1d1d1d !important; border-color:#444 !important; color:#ddd !important; }
html:has(.pc-shell) .pc-feature-page .preset.on { background:#f2f2f2 !important; border-color:#f2f2f2 !important; color:#111 !important; }
html:has(.pc-shell) .pc-feature-page .preset.on * { color:#111 !important; }
html:has(.pc-shell) .pc-feature-page .side-btn.ghost { background:#202020 !important; border-color:#555 !important; color:#eee !important; }
html:has(.pc-shell) :is(.child-item,.tool-card) { background:#181818 !important; border-color:#333 !important; color:#eee !important; }
html:has(.pc-shell) :is(.child-item,.tool-card):hover { background:#222 !important; border-color:#777 !important; }
html:has(.pc-shell) :is(.child-main,.tool-body,.child-name,.tool-name,.chev) { color:#eee !important; }
html:has(.pc-shell) :is(.child-desc,.child-count,.tool-desc) { color:#999 !important; }
html:has(.pc-shell) :is(.module-cover,.child-cover,.module-cover.placeholder) { background:#252525 !important; }
html:has(.pc-shell) .global-function-nav__hint { color:#888 !important; }
html:has(.pc-shell) .pc-nav-link.on { background:#242424 !important; color:#fff !important; }
html:has(.pc-shell) .pc-feature-page :is(.active,.selected,.is-active,.checked,.chip.on),
html:has(.pc-shell) .pc-feature-page :is(.active,.selected,.is-active,.checked,.chip.on) * { color:#111 !important; }
html:has(.pc-shell) .pc-feature-page :is(.active,.selected,.is-active,.checked,.chip.on) { background-color:#f2f2f2 !important; border-color:#f2f2f2 !important; }
html:has(.pc-shell) .pc-feature-page .chip.on::after { color:#f2f2f2 !important; background:#111 !important; }
html:has(.pc-shell) .pc-feature-page :is(.cta.primary,.generate,.submit,.pc-generate-btn),
html:has(.pc-shell) .pc-feature-page :is(.cta.primary,.generate,.submit,.pc-generate-btn) * { color:#111 !important; }
html:has(.pc-shell) .pc-feature-page :is(.cta.primary,.generate,.submit,.pc-generate-btn) { background:#f2f2f2 !important; border-color:#f2f2f2 !important; }
html:has(.pc-shell) .pc-feature-page :is(input,textarea,select)::placeholder { color:#999 !important; }
html:has(.pc-shell) .pc-feature-page :is(input,textarea,select):focus { border-color:#ddd !important; box-shadow:0 0 0 2px rgba(255,255,255,.12) !important; }
html:has(.pc-shell) .pc-feature-page :is(.global-function-nav__hint,.fit-hero-sub,.column-note,.block-hint) { color:#888 !important; }
html:has(.pc-shell) .pc-feature-page .module-flag-dot.on { background:#eee !important; box-shadow:0 0 0 2px rgba(255,255,255,.14) !important; }
html:has(.pc-shell) .pc-feature-page .ai-float-dot { background:#444 !important; background-image:none !important; color:#fff !important; }
html:has(.pc-shell) .pc-feature-page .merged-module-switcher { box-shadow:0 4px 14px rgba(0,0,0,.24) !important; }
html:has(.pc-shell) .pc-feature-page .card.danger { border-color:rgba(255,255,255,.16) !important; }
body:has(.site-nav) a.brand { color:#eee !important; outline-color:#eee !important; }
body:has(.site-nav) .ready-dot { background:#eee !important; box-shadow:0 0 0 4px rgba(255,255,255,.08) !important; }

body:has(.site-nav) :is(.dot,.ready-dot) { background:#eee; box-shadow:0 0 0 4px rgba(255,255,255,.08); }
body:has(.site-nav) :is(.status,.ready,#workspaceStatus,.empty,.slot-empty) { color:#aaa !important; }
body:has(.site-nav) :is(.empty strong,.color-task-summary strong) { color:#eee; }
body:has(.site-nav) :is(.tag.active,.area.active,.model-option.active,.color-choice.active,.choice.active) { background:#f2f2f2; color:#111; border-color:#f2f2f2; }
body:has(.site-nav) :is(.tag.active,.area.active,.model-option.active,.color-choice.active,.choice.active) :is(strong,small,span):not(.surface) { color:#111; }
body:has(.site-nav) :is(.mode-option.active,.fixed-option-button.active) :is(strong,span) { color:#111; }
body:has(.site-nav) .color-choice.active::after { background:#111; color:#fff; }
body:has(.site-nav) .color-task-summary { color:#aaa; }
body:has(.site-nav) .color-detail-label { color:#ddd; }
body:has(.site-nav) .constraint-list li::before { color:#ddd; }
body:has(.site-nav) .field :is(input,textarea)::placeholder { color:#999; }
body:has(.site-nav) .slot-plus { color:#bbb; }
body:has(.site-nav) .upload-slot:hover,
body:has(.site-nav) .upload-slot.dragging { border-color:#ddd; }
body:has(.site-nav) :is(.ww-guide-trigger,.cw-guide-close,.cw-guide-trigger) { background:#1c1c1c !important; color:#eee !important; border-color:#555 !important; }

#sct-order-dock { background:#111 !important; color:#eee !important; border-color:#333 !important; }
#sct-order-dock .sct-order-head { background:#111 !important; border-color:#333 !important; }
#sct-order-dock .sct-order-item { background:#1a1a1a !important; border-color:#333 !important; }
#sct-order-dock .sct-order-item:hover { background:#242424 !important; border-color:#777 !important; }
#sct-order-dock .sct-order-status { background:#333 !important; color:#eee !important; }
#sct-order-dock .sct-order-status.ok { background:#ddd !important; color:#111 !important; }
#sct-order-dock .sct-order-status.run { background:#444 !important; color:#fff !important; }
#sct-order-dock .sct-order-status.bad { background:#222 !important; color:#eee !important; border:1px solid #777; }
#sct-order-dock .sct-order-status.batch { background:#333 !important; color:#eee !important; }
#sct-order-dock .sct-order-all { background:#f2f2f2 !important; border-color:#f2f2f2 !important; color:#111 !important; }
#sct-order-dock .sct-order-all * { color:#111 !important; }
#sct-order-dock .sct-order-toggle:focus-visible { outline:2px solid #ddd; }

#sct-home-login-layer .sct-home-login-dialog { background:#141414; color:#eee; border-color:#444; }
#sct-home-login-layer :is(h2,.sct-home-login-field label,.sct-home-login-agreement) { color:#eee; }
#sct-home-login-layer :is(.sct-home-login-eyebrow,.sct-home-login-subtitle,.sct-home-login-close,.sct-home-login-message) { color:#aaa; }
#sct-home-login-layer .sct-home-login-switch { background:#222; }
#sct-home-login-layer .sct-home-login-switch-button { color:#aaa; }
#sct-home-login-layer .sct-home-login-switch-button.sct-active { color:#111; background:#eee; }
#sct-home-login-layer :is(input,.sct-home-login-send-code) { background:#222; border-color:#555; color:#eee; }
#sct-home-login-layer input:focus { border-color:#eee; box-shadow:0 0 0 2px rgba(255,255,255,.1); }
#sct-home-login-layer :is(.sct-home-login-send-code,.sct-home-login-close):hover { background:#333; color:#fff; }
#sct-home-login-layer .sct-home-login-submit { background:#eee; border-color:#eee; color:#111; }
#sct-home-login-layer input { accent-color:#eee; }
/* Do not restyle QR pixels, images, canvases or the palette's --swatch data. */

/* The personal center has its own lazy-loaded white card styles. */
uni-page[data-page="pages/pc/biz/mine/mine"] :is(.profile-card,.stat-card,.menu-neo,.menu-item) {
  background:#181818 !important;
  border-color:#333 !important;
  color:#eee !important;
  box-shadow:none !important;
}
uni-page[data-page="pages/pc/biz/mine/mine"] :is(.nickname,.stat-num,.stat-numx,.stat-numb,.menu-title,.menu-titlex,.menu-icon,.member-badge),
uni-page[data-page="pages/pc/biz/mine/mine"] :is(.nickname,.stat-num,.stat-numx,.stat-numb,.menu-title,.menu-titlex,.menu-icon,.member-badge) * {
  color:#eee !important;
  letter-spacing:0;
}
uni-page[data-page="pages/pc/biz/mine/mine"] :is(.grade-end-strip,.grade-end-pill,.menu-extra,.menu-icon-wrap,.member-badge,.asset-chip,.uid,.quota-label,.quota-value) {
  background:#242424 !important;
  border-color:#444 !important;
  box-shadow:none !important;
}
uni-page[data-page="pages/pc/biz/mine/mine"] :is(.grade-end-strip,.grade-end-pill,.menu-extra,.stat-label,.menu-chev,.asset-name,.uid,.quota-label,.hint),
uni-page[data-page="pages/pc/biz/mine/mine"] :is(.grade-end-strip,.grade-end-pill,.menu-extra,.stat-label,.menu-chev,.asset-name,.uid,.quota-label,.hint) * {
  color:#b5b5b5 !important;
  border-color:#444 !important;
}
uni-page[data-page="pages/pc/biz/mine/mine"] :is(.asset-val,.quota-value),
uni-page[data-page="pages/pc/biz/mine/mine"] :is(.asset-val,.quota-value) * { color:#eee !important; }
uni-page[data-page="pages/pc/biz/mine/mine"] .quota-polygon { background:#181818 !important; }
uni-page[data-page="pages/pc/biz/mine/mine"] .share-mini-btn.ghost,
uni-page[data-page="pages/pc/biz/mine/mine"] .share-mini-btn.ghost * { background:#242424 !important; color:#eee !important; }
uni-page[data-page="pages/pc/biz/mine/mine"] .avatar { background:#242424 !important; }
uni-page[data-page="pages/pc/biz/mine/mine"] .bg-shape,
uni-page[data-page="pages/pc/biz/mine/mine"] .menu-neo::before,
uni-page[data-page="pages/pc/biz/mine/mine"] .menu-item::after { background:#222 !important; color:#999 !important; }
uni-page[data-page="pages/pc/biz/mine/mine"] .stat-card::before { border-right-color:#333 !important; }
uni-page[data-page="pages/pc/biz/mine/mine"] .menu-item:hover,
uni-page[data-page="pages/pc/biz/mine/mine"] .menu-item:active,
uni-page[data-page="pages/pc/biz/mine/mine"] .stat-card:active {
  background:#222 !important;
}
uni-page[data-page="pages/pc/biz/mine/mine"] .menu-left { min-width:max-content; }
uni-page[data-page="pages/pc/biz/mine/mine"] .menu-extra {
  min-width:0;
  max-width:50%;
  line-height:1.5;
  overflow-wrap:anywhere;
}

/* Center in the viewport remaining beside the order dock, including when
   collapsed. Container queries use that actual space, not the screen width. */
body.white-workbench-page { --white-workbench-rail:0px; }
body.white-workbench-page .white-workbench-nav { display:none !important; }
body.white-workbench-page .shell,
body.white-workbench-page.sct-order-dock-enabled .shell {
  width:min(1240px, calc(100% - var(--white-workbench-rail))) !important;
  margin-left:max(0px, calc((100% - var(--white-workbench-rail) - 1240px) / 2)) !important;
  margin-right:calc(var(--white-workbench-rail) + max(0px, (100% - var(--white-workbench-rail) - 1240px) / 2)) !important;
  padding-left:24px;
  padding-right:24px;
  container-type:inline-size;
  container-name:white-workbench;
}
@media (min-width:901px) {
  body.white-workbench-page.sct-order-dock-enabled { --white-workbench-rail:var(--sct-order-dock-width); }
}
@media (max-width:780px) {
  body.white-workbench-page .shell,
  body.white-workbench-page.sct-order-dock-enabled .shell {
    padding-left:12px;
    padding-right:12px;
  }
}
body.white-workbench-page .workspace {
  grid-template-columns:minmax(200px,.8fr) minmax(0,1.75fr) minmax(220px,.92fr) !important;
}
body.white-workbench-page .params-panel { grid-column:auto !important; }
body.white-workbench-page .params-body { display:block !important; }
body.white-workbench-page .form-section + .form-section { margin-top:22px !important; padding-top:22px !important; border-top:1px solid var(--line) !important; }
@container white-workbench (max-width:1100px) {
  body.white-workbench-page .workspace { grid-template-columns:minmax(220px,.8fr) minmax(0,1.6fr) !important; }
  body.white-workbench-page .params-panel { grid-column:1 / -1 !important; min-height:auto; }
  body.white-workbench-page .params-body { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:20px; }
  body.white-workbench-page .form-section + .form-section { margin:0 !important; padding:0 !important; border:0 !important; }
  body.white-workbench-page .cost-area { grid-column:1 / -1 !important; }
}
@container white-workbench (max-width:700px) {
  body.white-workbench-page .workspace { grid-template-columns:minmax(0,1fr) !important; }
  body.white-workbench-page .panel { min-height:auto; }
  body.white-workbench-page .page-head { align-items:flex-start; flex-wrap:wrap; gap:12px; }
  body.white-workbench-page .ready { display:none; }
  body.white-workbench-page .mode-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.white-workbench-page .params-body { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@container white-workbench (max-width:480px) {
  body.white-workbench-page .mode-list,
  body.white-workbench-page .params-body { grid-template-columns:minmax(0,1fr) !important; }
  body.white-workbench-page .result-head { align-items:flex-start; flex-wrap:wrap; gap:6px; }
}

/* Model picker controls: the generated fit page marks the selected option
   with `.on`, rather than the shared `.active` convention. */
html:has(.pc-shell) .pc-feature-page :is(.frontend-model-option,.model-option) {
  background:#1d1d1d !important;
  border:1px solid rgba(236,236,236,.2) !important;
  color:#d6d6d6 !important;
}
html:has(.pc-shell) .pc-feature-page :is(.frontend-model-option,.model-option):hover {
  background:#292929 !important;
  border-color:rgba(236,236,236,.55) !important;
  color:#fff !important;
}
html:has(.pc-shell) .pc-feature-page :is(.frontend-model-option.on,.model-option.active,.model-option.selected) {
  background:#f2f2f2 !important;
  border-color:#f2f2f2 !important;
  color:#111 !important;
  box-shadow:inset 0 0 0 1px rgba(17,17,17,.16) !important;
}
html:has(.pc-shell) .pc-feature-page :is(.frontend-model-option.on,.model-option.active,.model-option.selected) * {
  color:#111 !important;
}
html:has(.pc-shell) .pc-feature-page .frontend-model-option .recommended-model-badge {
  background:#111 !important;
  color:#fff !important;
}
body:has(.site-nav) .model-option { background:#1d1d1d !important; border-color:#444 !important; color:#d6d6d6 !important; }
body:has(.site-nav) .model-option :is(strong,span) { color:inherit !important; }
body:has(.site-nav) .model-option:hover { background:#292929 !important; border-color:#aaa !important; }
body:has(.site-nav) .model-option.active { background:#f2f2f2 !important; border-color:#f2f2f2 !important; color:#111 !important; }

/* Result pages load their own light component stylesheet after the shared
   functional skin. Keep the UI chrome dark while leaving product pixels
   untouched. */
html:has(.pc-shell) .pc-feature-page :is(.status-banner,.wait-card,.gallery,.gallery-item,.gallery .cell,.recommend,.gravity-row,.stack-item,.action,.compare-modal,.gravity-modal,.loading-box) {
  background:#181818 !important;
  border-color:rgba(236,236,236,.16) !important;
  color:#eee !important;
  box-shadow:none !important;
}
html:has(.pc-shell) .pc-feature-page :is(.status-label,.status-meta-item,.waiting-tip,.wait-desc,.recommend-intro,.recommend-tip,.gravity-tip,.gravity-modal-sub,.gravity-label,.modal-sub,.modal-label,.product-preset-create-tip,.product-preset-note,.group-picker-sub) {
  color:#aaa !important;
}
html:has(.pc-shell) .pc-feature-page :is(.status-mini,.status-text,.wait-title,.block-title,.recommend-name,.stack-title,.gravity-modal-title,.modal-title,.product-preset-create-title,.group-picker-name,.action-label) {
  color:#eee !important;
}
html:has(.pc-shell) .pc-feature-page :is(.gallery-img,.stack-img,.recommend-cover,.group-picker-cover,.group-picker-thumb) {
  background:#292929 !important;
}
html:has(.pc-shell) .pc-feature-page .gallery .img-actions { background:#181818 !important; }
html:has(.pc-shell) .pc-feature-page :is(.ai-notice,.ai-badge) { background:#242424 !important; border-color:#555 !important; box-shadow:none !important; }
html:has(.pc-shell) .pc-feature-page .ai-notice-icon { background:#eee !important; color:#111 !important; }
html:has(.pc-shell) .pc-feature-page :is(.ai-notice-title,.ai-badge-text),
html:has(.pc-shell) .pc-feature-page :is(.ai-notice-title,.ai-badge-text) * { color:#eee !important; }
html:has(.pc-shell) .pc-feature-page .ai-notice-desc,
html:has(.pc-shell) .pc-feature-page .ai-notice-desc * { color:#aaa !important; }
html:has(.pc-shell) .pc-feature-page :is(.img-btn,.img-btn.dark,.action,.action.dark,.action.outline,.wait-btn,.gravity-btn,.gravity-modal-btn,.modal-actions .btn) {
  background:#242424 !important;
  border-color:rgba(236,236,236,.22) !important;
  color:#eee !important;
}
html:has(.pc-shell) .pc-feature-page :is(.img-btn.dark,.action.dark,.gravity-btn,.gravity-modal-btn.confirm,.modal-actions .btn:not(.ghost)) {
  background:#f2f2f2 !important;
  border-color:#f2f2f2 !important;
  color:#111 !important;
}
html:has(.pc-shell) .pc-feature-page :is(.img-btn,.img-btn.dark,.action,.action.dark,.action.outline,.wait-btn,.gravity-btn,.gravity-modal-btn,.modal-actions .btn) * {
  color:inherit !important;
}

/* Product preset / grouped-upload dialogs on fitTagGenerate and moduleGenerate. */
html:has(.pc-shell) .pc-feature-page :is(.modal,.product-preset-create,.group-picker-item,.media-picker-modal) {
  background:#181818 !important;
  border-color:rgba(236,236,236,.18) !important;
  color:#eee !important;
  box-shadow:0 14px 36px rgba(0,0,0,.34) !important;
}
html:has(.pc-shell) .pc-feature-page :is(.modal-head,.modal-body,.modal-actions,.product-preset-divider) {
  background:#181818 !important;
  border-color:rgba(236,236,236,.14) !important;
  color:#aaa !important;
}
html:has(.pc-shell) .pc-feature-page :is(.modal-title,.modal-label,.product-preset-create-title,.group-picker-name) {
  color:#eee !important;
}
html:has(.pc-shell) .pc-feature-page :is(.modal-input,.product-preset-name-input) {
  background:#242424 !important;
  border-color:rgba(236,236,236,.24) !important;
  color:#eee !important;
}
html:has(.pc-shell) .pc-feature-page :is(.modal-input,.product-preset-name-input)::placeholder { color:#888 !important; }
html:has(.pc-shell) .pc-feature-page :is(.modal-close,.modal-mask .btn.ghost,.product-preset-create-actions .btn.ghost) {
  color:#aaa !important;
}
html:has(.pc-shell) .pc-feature-page :is(.group-picker-item):hover {
  background:#242424 !important;
  border-color:rgba(236,236,236,.45) !important;
}

/* Give the fit-generation workspace a little more breathing room on desktop.
   This stays scoped to the outfit pages so the other feature workbenches keep
   their established density and mobile layouts. */
@media (min-width: 901px) {
  html:has(.pc-shell) .pc-page-root:has(.pc-fit-tag-page) {
    padding-left:12px !important;
    padding-right:12px !important;
  }
}

@media (min-width: 1101px) {
  /* The fit workspace needs a little more usable width than the other
     feature pages. Narrow only its order dock; the dock remains collapsible. */
  body:has(.pc-fit-tag-page) {
    --sct-order-dock-width:276px !important;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  html:has(.pc-shell) .pc-fit-tag-page .pc-fit-layout {
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
}

@media (max-width: 900px) {
  html:has(.pc-shell) .pc-fit-tag-page .pc-fit-layout {
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
}

@media (min-width: 1101px) {
  html:has(.pc-shell) .pc-fit-tag-page .pc-fit-layout {
    grid-template-columns:minmax(320px,1fr) minmax(0,1.35fr) minmax(320px,1fr) !important;
    gap:12px !important;
  }
}

html:has(.pc-shell) .pc-fit-tag-page .block-title,
html:has(.pc-shell) .pc-fit-tag-page .col-title,
html:has(.pc-shell) .pc-fit-tag-page .col-title-large {
  font-size:18px !important;
}
html:has(.pc-shell) .pc-fit-tag-page .column-emphasis { font-size:15px !important; }
html:has(.pc-shell) .pc-fit-tag-page .column-note,
html:has(.pc-shell) .pc-fit-tag-page .block-hint,
html:has(.pc-shell) .pc-fit-tag-page .background-batch-tip { font-size:14px !important; }
html:has(.pc-shell) .pc-fit-tag-page .fit-card-name,
html:has(.pc-shell) .pc-fit-tag-page .param-title { font-size:15px !important; }
html:has(.pc-shell) .pc-fit-tag-page .chip,
html:has(.pc-shell) .pc-fit-tag-page .btn,
html:has(.pc-shell) .pc-fit-tag-page .summary-k,
html:has(.pc-shell) .pc-fit-tag-page .summary-v { font-size:14px !important; }
html:has(.pc-shell) .pc-fit-tag-page .frontend-model-label { font-size:17px !important; }

@media (max-width: 900px) {
  /* Keep mobile readable without making the narrow cards feel oversized. */
  html:has(.pc-shell) .pc-fit-tag-page .block-title,
  html:has(.pc-shell) .pc-fit-tag-page .col-title,
  html:has(.pc-shell) .pc-fit-tag-page .col-title-large { font-size:17px !important; }
  html:has(.pc-shell) .pc-fit-tag-page .frontend-model-label { font-size:16px !important; }
}

html:has(.pc-shell) .pc-fit-tag-page .ai-match-toggle {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:66px;
  margin:10px 0 12px;
  padding:10px 12px;
  border:1px solid #777;
  border-radius:6px;
  box-sizing:border-box;
  background:#242424 !important;
  color:#f2f2f2 !important;
  cursor:pointer;
}
html:has(.pc-shell) .pc-fit-tag-page .ai-match-toggle.on {
  background:#f2f2f2 !important;
  border-color:#f2f2f2;
  color:#111 !important;
}
html:has(.pc-shell) .pc-fit-tag-page .ai-match-toggle :is(uni-text,span) { color:inherit !important; }
html:has(.pc-shell) .pc-fit-tag-page .ai-match-toggle:focus-visible { outline:2px solid #fff; outline-offset:3px; }
html:has(.pc-shell) .pc-fit-tag-page .ai-match-emblem {
  width:32px;
  height:32px;
  flex:none;
  display:grid;
  place-items:center;
  border:1px solid currentColor;
  border-radius:4px;
  font-size:15px;
  font-weight:800;
}
html:has(.pc-shell) .pc-fit-tag-page .ai-match-copy { flex:1; min-width:0; }
html:has(.pc-shell) .pc-fit-tag-page .ai-match-title { display:block; font-size:17px; line-height:1.4; font-weight:700; }
html:has(.pc-shell) .pc-fit-tag-page .ai-match-status { display:block; margin-top:2px; font-size:13px; line-height:1.4; }
html:has(.pc-shell) .pc-fit-tag-page .ai-match-switch {
  width:36px;
  height:22px;
  flex:none;
  position:relative;
  border-radius:11px;
  background:#666;
}
html:has(.pc-shell) .pc-fit-tag-page .ai-match-switch::after {
  content:"";
  position:absolute;
  width:16px;
  height:16px;
  top:3px;
  left:3px;
  border-radius:50%;
  background:#fff;
}
html:has(.pc-shell) .pc-fit-tag-page .ai-match-toggle.on .ai-match-switch { background:#111; }
html:has(.pc-shell) .pc-fit-tag-page .ai-match-toggle.on .ai-match-switch::after { left:17px; }
html:has(.pc-shell) .pc-fit-tag-page .manual-match-options.disabled { opacity:.4; cursor:not-allowed; }
html:has(.pc-shell) .pc-fit-tag-page .manual-match-options.disabled :is(.chip,.fit-card) { pointer-events:none; }

/* The shared user interface uses the selected modern, clear Chinese typeface. */
@font-face {
  font-family: 'Rabbit Noto Sans SC';
  src: url('/assets/fonts/NotoSansSC-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rabbit Noto Sans SC';
  src: url('/assets/fonts/NotoSansSC-Medium.woff2') format('woff2');
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}
:root { --rabbit-ui-font: 'Rabbit Noto Sans SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif; }
html, body,
body :is(div, p, a, label, input, textarea, select, option, button, h1, h2, h3, h4, h5, h6, strong, small, summary, li, td, th, dt, dd, legend, output, section, header, nav, footer, aside, article, main, uni-view, uni-text, uni-button, uni-input, uni-textarea, uni-page-body):not([class*="icon"]):not([class^="fa-"]):not(.fa):not(.fas):not(.far):not(.fab),
body span:not([class*="icon"]):not([class^="fa-"]):not(.fa):not(.fas):not(.far):not(.fab) {
  font-family: var(--rabbit-ui-font) !important;
  font-synthesis: none;
}
/* Use medium faces for emphasis without the heavy small-letter strokes. */
body :is(h1,h2,h3,h4,h5,h6,strong,label,button,uni-button,.title,.label,.name,.panel-title,.block-title,.card-title,.site-nav-link.active) {
  font-weight: 500 !important;
}
body :is(.cost strong,.range-val,.sct-order-id,.sct-order-time,.price,.balance) { font-variant-numeric: tabular-nums; }
