/* Static demo feedback */
.veak-toast {
  position: fixed;
  left: 50%;
  top: 86px;
  bottom: auto;
  transform: translateX(-50%) translateY(-8px);
  z-index: 9999;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  background: rgba(26, 26, 26, .92);
  color: #fff;
  font: 500 13px/1.5 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  border-left: 1px solid #d04d1d;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
}
.veak-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 900px) { .veak-toast { top: 70px; } }
.veak-toast--wide { white-space: normal; }

/* Make all demo controls feel clickable */
.part-item.disabled { cursor: pointer !important; }
.part-item.active { background: #f2f2f2 !important; opacity: 1 !important; color: #111 !important; box-shadow: none !important; }
.follow-btn.following { background: #8a8a8a !important; }
.color-item:focus-visible,
.part-item:focus-visible,
.view-btn:focus-visible { outline: 2px solid #d04d1d; outline-offset: 2px; }
/* 选中/聚焦描边统一 1px，与选中态一致 */
.color-item:focus-visible { outline: 1px solid #d04d1d !important; outline-offset: 1px !important; }

/* ============================================================================
   Global UI polish — loaded last on every page.
   ========================================================================== */

/* ---------- one top bar on every page ---------- */
.topbar { flex: 0 0 70px; height: 70px; padding: 0 108px; }
.logo { height: 30px; width: auto; }
.topbar-left, .topbar-right { flex: 1 1 0; min-width: 0; }
.topbar-nav { width: auto; flex: 0 0 auto; justify-content: center; gap: clamp(24px, 4vw, 56px); }
.nav-link { font-size: 16px; line-height: 56px; }
.nav-link.active::after { left: 50%; right: auto; width: 32px; height: 1px; transform: translateX(-50%); }
.login-btn {
  width: auto; min-width: 7rem; height: 38px; padding: 0 18px; font-size: 14px; line-height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
}
.lang-btn {
  min-width: 64px; height: 38px; padding: 0 10px; font-size: 14px; line-height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
}

@media (min-width: 1201px) {
  .topbar-left, .topbar-right { flex: 1 1 0 !important; min-width: 0 !important; }
  .topbar-nav { position: absolute; left: 50%; transform: translateX(-50%); }
}

/* ---------- one border weight for every control ---------- */
:root { --veak-border: 1px; }
button, .el-button, input, select, textarea { border-width: var(--veak-border) !important; }
.view-btn.active { box-shadow: inset 0 0 0 1px var(--veak-orange) !important; }
.color-item.active { box-shadow: inset 0 0 0 1px var(--veak-orange) !important; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline-width: 1px !important;
}

/* ---------- English layout adjustments (longer labels) ---------- */
html[lang="en"] .nav-link { letter-spacing: 0; }
html[lang="en"] .topbar-nav { gap: clamp(20px, 3.2vw, 48px); }
html[lang="en"] .side-toggle { font-size: .78rem; }
html[lang="en"] .toolbar-btn {
  font-size: .76rem; padding-left: 6px !important; padding-right: 6px !important;
}
/* all category tabs share one width */
.toolbar-btn { flex: 0 0 8.5rem !important; width: 8.5rem !important; padding-left: 6px; padding-right: 6px; }
html[lang="en"] .df-title { min-width: 0; font-size: 1.1rem; }
html[lang="en"] .part-item--single { font-size: 10px; }
html[lang="en"] .menu-footer__title { font-size: 1.22rem; }
html[lang="en"] .size-pro__input { font-size: 11px; }
html[lang="en"] .hud-row > span:first-child { flex-basis: 72px; font-size: 11px; }
html[lang="en"] .hud-note { font-size: 10px; }
html[lang="en"] .price-value { letter-spacing: 0; }
html[lang="en"] .el-table__row .el-table__cell:last-child .at-link { font-size: 12px; padding: 3px 2px; }
html[lang="en"] .el-table__row .el-table__cell:last-child .ui-ico { width: 11px !important; height: 11px !important; margin-right: 2px !important; }
html[lang="en"] .el-tag { white-space: nowrap; }

/* ============================================================================
   Homepage overrides (loaded last so they beat responsive.css)
   ========================================================================== */
@media (max-width: 900px) {
  .toolbar-left {
    right: auto !important; width: auto !important; height: auto !important;
    overflow: visible !important; overflow-x: visible !important; overflow-y: visible !important;
    z-index: 30 !important;
  }
  .toolbar-left .view-group .view-btn,
  .toolbar-left > .view-btn { width: 36px !important; height: 36px !important; background: #fff !important; }
  .toolbar-left .view-group .view-btn img,
  .toolbar-left > .view-btn img { width: 20px !important; height: 20px !important; }
  .toolbar-left .view-btn.active { background: var(--veak-orange) !important; }
  .toolbar-left .view-btn.active img { filter: invert(1); }
  .toolbar-left .view-sub { z-index: 31 !important; }
  .design-footer .part-grid { align-items: flex-start !important; }
  .part-item { justify-content: center !important; padding-top: 0 !important; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .toolbar-left .view-sub { top: auto !important; bottom: calc(100% + 4px) !important; }
  .toolbar-left .gap-pop { top: auto !important; bottom: calc(100% + 118px) !important; }
  .controls { padding-bottom: 6px !important; }
  .size-content { padding-bottom: 4px !important; }
  .slider-label-content { border-bottom: 0 !important; }
  .pro-pad-dock__head { border-bottom: 1px solid #000 !important; }
  .pro-pad-dock__row { flex-direction: row !important; align-items: flex-start !important; gap: 10px !important; }
  .pro-pad-dock__modes { flex: 0 0 44% !important; flex-direction: column !important; }
  .pro-pad-dock__modes .size-btn { width: 100% !important; }
  .pro-dpad { flex: 1 1 auto; }

  .design-footer.is-color {
    flex-direction: column !important; align-items: stretch !important;
    height: 164px !important; flex-basis: 164px !important; min-height: 0 !important;
    padding: 8px 10px !important; gap: 6px !important;
  }
  .design-footer.is-color .color-cats {
    display: grid !important; grid-template-columns: repeat(4, 1fr) !important;
    grid-template-rows: none !important; grid-auto-flow: row !important;
    flex: 0 0 auto !important; width: 100% !important; gap: 6px !important; overflow: visible !important;
  }
  .design-footer.is-color .color-cat {
    width: 100% !important; padding: 4px 2px !important; text-align: center !important;
    border: 1px solid #ddd !important; font-size: 9.5px !important; line-height: 1.25 !important;
    white-space: nowrap !important;
  }
  .design-footer.is-color .color-cat.is-active { border-color: #000 !important; font-size: 10px !important; }
  .design-footer.is-color .color-grid.active,
  .design-footer.is-color .color-grid--acc.active,
  .design-footer.is-color .color-grid--tex.active {
    width: 100% !important; flex: 1 1 auto !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(2, 30px) !important;
    grid-auto-rows: 30px !important; gap: 6px !important; overflow: hidden !important;
  }
  .design-footer.is-color .color-item { font-size: 9px !important; padding-right: 5px !important; }
  .design-footer.is-color .color-pager {
    display: flex !important; align-items: center; justify-content: center; gap: 12px;
    width: 100%; flex: 0 0 auto; font-size: 10px; color: #666;
  }
  .design-footer.is-color .color-pager[hidden] { display: none !important; }
  .color-pager button {
    width: 26px; height: 20px; padding: 0; border: 1px solid #000 !important; background: #fff;
    color: #111; font-size: 13px; line-height: 1; cursor: pointer;
  }
}
@media (min-width: 901px) {
  .design-footer .part-grid { flex: 1; justify-content: center; }
}
@media (max-width: 600px) and (orientation: portrait) {
  /* exploded sub buttons: smaller + thinner */
  .toolbar-left .view-sub .view-btn { width: 36px !important; height: 36px !important; }
  .toolbar-left .view-sub .view-btn img { width: 22px !important;height: 22px !important; }

  /* colour pager: swipe only, no buttons */
  .color-pager, .design-footer.is-color .color-pager { display: none !important; }

  /* depth face: mode buttons and D-pad share the same total height */
  .pro-pad-dock__modes { gap: 10px !important; }
  .pro-pad-dock__modes .size-btn { height: 40px !important; line-height: 40px !important; }
  .pro-dpad { grid-template-rows: repeat(3, 30px) !important; }
  .pro-dpad__btn svg { width: 14px !important; height: 14px !important; }
  .pro-dpad__center b { font-size: 12px !important; }
}

@media (max-width: 640px) {
  .moment-head__copy h2 { font-size: 26px !important; letter-spacing: -.03em !important; }
  .moment-head__copy p { font-size: 11px !important; letter-spacing: .12em !important; }
}
@keyframes colorPageNext { from { opacity: .2; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes colorPagePrev { from { opacity: .2; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) and (orientation: portrait) {
  .color-grid.active, .color-grid--acc.active, .color-grid--tex.active { animation: none !important; }
  .color-grid.page-slide-next { animation: colorPageNext .24s ease both !important; }
  .color-grid.page-slide-prev { animation: colorPagePrev .24s ease both !important; }
}

/* ============================================================================
   Mobile: cart & orders cards
   ========================================================================== */
@media (max-width: 900px) {
  .ud .card.cart { padding: 14px 12px 12px !important; }
  .ud .cart-table { display: block !important; width: 100% !important; font-size: 12px; }
  .ud .cart-table thead { display: none !important; }
  .ud .cart-table tbody { display: block !important; }
  .ud .cart-table tr {
    display: grid !important; grid-template-columns: 20px 58px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto; column-gap: 10px; row-gap: 6px;
    padding: 16px 0 !important; border-bottom: 1px solid #ececec;
  }
  .ud .cart-table tr:last-child { border-bottom: 0; }
  .ud .cart-table td { display: block !important; padding: 0 !important; border: 0 !important; text-align: left !important; }
  .ud .cart-table td.col-check { grid-column: 1; grid-row: 1; align-self: start; margin-top: 2px; }
  .ud .cart-table td.col-goods { grid-column: 2 / 5; grid-row: 1; min-width: 0; }
  .ud .cart-table td:nth-child(3) { grid-column: 2 / 5; grid-row: 2; color: #8a8a8a; font-size: 11px; line-height: 1.5; }
  .ud .cart-table td:nth-child(4) { display: none !important; }
  .ud .cart-table td:nth-child(5) { grid-column: 2 / 4; grid-row: 3; align-self: center; }
  .ud .cart-table td:nth-child(6) { grid-column: 4; grid-row: 1; justify-self: end; font-weight: 700; font-size: 14px; }
  .ud .cart-table td:nth-child(7) { grid-column: 4; grid-row: 3; justify-self: end; align-self: center; }
  .ud .cart-table .goods { display: flex !important; gap: 10px; align-items: flex-start; }
  .ud .cart-table .goods-img { flex: 0 0 56px; }
  .ud .cart-table .goods-pic { width: 56px !important; height: 56px !important; }
  .ud .cart-table .goods-name { font-size: 13px; line-height: 1.4; font-weight: 600; }
  .ud .cart-table .goods-meta { margin-top: 3px; font-size: 11px; line-height: 1.5; color: #8f8f8f; }
  .ud .cart-table .acc-qty { height: 30px; }
  .ud .cart-footer {
    display: flex !important; flex-wrap: wrap !important; gap: 10px 12px !important;
    padding-top: 14px !important; margin-top: 2px !important;
  }
  .ud .cart-footer .footer-right { flex: 1 1 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .ud .cart-footer .sum { font-size: 19px; }
  .ud .cart-footer .nb-primary { height: 40px; padding: 0 16px; }

  .ud .card.od { padding: 14px 12px 12px !important; }
  .ud .od-head { margin-bottom: 14px !important; }
  .ud .od-stats { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .ud .od-stat { width: auto !important; flex: none !important; padding: 10px !important; }
  .ud .od-stat .stat-box { width: 100% !important; height: auto !important; aspect-ratio: 1.5 / 1; }
  .ud .od-stat .stat-label { font-size: 11px !important; margin-top: 5px !important; }
  .ud .od-detail { padding-top: 16px !important; }
  .ud .od-table { display: block !important; width: 100% !important; }
  .ud .od-table thead { display: none !important; }
  .ud .od-table tbody { display: block !important; }
  .ud .od-table tr {
    display: grid !important; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto; gap: 3px 12px;
    padding: 14px 0 !important; border-bottom: 1px solid #ececec;
  }
  .ud .od-table tr:last-child { border-bottom: 0; }
  .ud .od-table td { display: block !important; padding: 0 !important; border: 0 !important; text-align: left !important; }
  .ud .od-table .od-col-id { grid-column: 1 / 3; grid-row: 1; font-size: 10px !important; color: #9a9a9a !important; letter-spacing: .02em; }
  .ud .od-table td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 13px; font-weight: 600; }
  .ud .od-table td:nth-child(3) { grid-column: 1; grid-row: 3; font-size: 11px; color: #888; }
  .ud .od-table td:nth-child(4) { grid-column: 2; grid-row: 2; justify-self: end; font-size: 14px; font-weight: 700; }
  .ud .od-table td:nth-child(5) { grid-column: 2; grid-row: 3; justify-self: end; font-size: 11px; }
  .ud .od-table td:nth-child(6) { grid-column: 2; grid-row: 4; justify-self: end; font-size: 12px; }
}

/* keep the view toolbar pinned at the top-left on tablet/desktop (no vertical stretch) */
.toolbar-left { top: 10px !important; bottom: auto !important; left: 10px !important; height: auto !important; }
@media (max-width: 600px) and (orientation: portrait) {
  .toolbar-left { top: auto !important; bottom: 8px !important; left: 8px !important; height: auto !important; }
}

/* login / register proportions */
.login-card, .regist-card { width: 460px !important; padding: 32px 40px 28px !important; }
.login-title { font-size: 26px !important; margin-bottom: 24px !important; }
.regist-title { font-size: 24px !important; margin-bottom: 24px !important; }
.login-card .submit-btn .ui-ico, .regist-card .submit-btn .ui-ico, .regist-card .captcha-btn .ui-ico { display: none !important; }

@media (max-width: 700px) {
  .login-page, .regist-page { align-items: center !important; padding: 16px 14px 24px !important; }
  .login-card, .regist-card { width: 100% !important; max-width: 100% !important; padding: 22px 16px 20px !important; }
  .login-title { font-size: 21px !important; margin-bottom: 16px !important; }
  .regist-title { font-size: 20px !important; margin-bottom: 16px !important; }
  .form-row { margin-bottom: 13px !important; }
  .form-label { flex: 0 0 58px !important; margin-right: 10px !important; font-size: 12.5px !important; }
  .form-input { height: 34px !important; font-size: 13px !important; padding: 0 7px !important; }
  .area-code { flex: 0 0 48px !important; height: 34px !important; line-height: 32px !important; font-size: 12.5px !important; }
  .area-dash { margin: 0 6px !important; }
  .captcha-btn { height: 32px !important; padding: 0 8px !important; font-size: 12px !important; margin-left: 8px !important; }
  .submit-row { margin: 10px 0 12px !important; }
  .submit-btn { width: 100% !important; max-width: 200px !important; height: 38px !important; font-size: 14px !important; }
  .link-row { gap: 22px !important; }
  .login-card .link, .regist-card .link { font-size: 12px !important; }
}

/* cases filter: no cut corners, smaller on phones */
.moment-filter, .moment-filter__row > span, .moment-filter .chip, .moment-filter-btn { clip-path: none !important; }
@media (max-width: 640px) {
  .moment-filter { width: calc(100vw - 24px) !important; max-width: none !important; left: 12px !important; right: 12px !important; padding: 12px !important; gap: 8px !important; }
  .moment-filter__row { gap: 6px !important; }
  .moment-filter__row > span { flex: 0 0 40px !important; font-size: 10.5px !important; white-space: nowrap !important; }
  .moment-filter .chip { height: 30px !important; padding: 0 10px !important; font-size: 11px !important; }
  .moment-card__title { font-size: 12px !important; margin-bottom: 8px !important; }
  .moment-card__body { padding: 12px 12px 13px !important; }
}
.moment-filter__row > span { flex: 0 0 52px !important; white-space: nowrap !important; }

/* controls width: no sudden shrink around 900 / 1200 */
@media (min-width: 901px) { .controls { width: 280px !important; flex: 0 0 280px !important; } }
@media (min-width: 1400px) { .controls { width: 300px !important; flex: 0 0 300px !important; } }
@media (max-width: 900px) and (min-width: 601px) { .controls { width: 240px !important; flex: 0 0 240px !important; } }
@media (max-width: 600px) { .controls { width: 100% !important; flex: 0 0 auto !important; } }

/* filter panel centred, lighter type */
@media (max-width: 900px) {
  .moment-filter {
    left: 50% !important; right: auto !important; transform: translateX(-50%);
    width: calc(100vw - 24px) !important; max-width: 420px !important;
  }
}
.moment-filter__row > span { font-weight: 500 !important; color: #8a8a8a !important; }
.moment-filter .chip { font-weight: 500 !important; border-color: #cfcfcf !important; }
.moment-filter .chip.is-on { border-color: var(--orange) !important; }
.logo-link { cursor: pointer; }

/* homepage: only main scrolls; topbar stays put */
body.home { height: 100dvh !important; overflow: hidden !important; }
body.home .layout { height: 100dvh !important; }
body.home .layout-main {
  overflow-y: auto !important; overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
}
body.home .topbar { position: relative !important; top: auto !important; }

/* mobile part tiles: tighter top gap, larger icons, one-line labels with horizontal scroll */
@media (max-width: 900px) {
  .design-footer { min-height: 84px !important; height: auto !important; padding-top: 0 !important; }
  .design-footer .part-grid { align-items: flex-start !important; padding-top: 2px !important; }
  .part-item {
    width: auto !important; min-width: 74px !important; height: 64px !important;
    flex: 0 0 auto !important; padding: 4px 8px 0 !important; justify-content: flex-start !important;
  }
  .part-item .part-ico { width: 40px !important; height: 40px !important; margin-bottom: 2px !important; }
  .part-item--single { font-size: 11px !important; white-space: nowrap !important; }
  .design-footer .part-grid { overflow-x: auto !important; overflow-y: hidden !important; }
}

/* mobile order / BOM sheet: A4-ish ratio, rail below the sheet, no overlap */
@media (max-width: 640px) {
  .quote-modal { padding: 10px 10px 12px !important; gap: 10px !important; justify-content: center !important; }
  .quote-sheet.qs {
    width: min(92vw, 460px) !important;
    height: auto !important;
    aspect-ratio: 21 / 29.7;
    max-height: calc(100dvh - 132px) !important;
    margin: 0 !important;
    padding: 16px 14px 14px !important;
    overflow: auto !important;
  }
  .quote-sheet .qs-title span { display: none !important; }
  .quote-sheet .qs-title b { font-size: 20px !important; }
  .quote-sheet .qs-logo { width: 140px !important; }
  .quote-sheet .qs-info { gap: 6px 10px !important; margin: 12px 0 !important; }
  .quote-sheet .qs-info .k { flex-basis: 48px !important; font-size: 9px !important; }
  .quote-sheet .qs-info b { font-size: 10px !important; }
  .quote-sheet .qs-table { font-size: 9.5px !important; }
  .quote-sheet .qs-table th, .quote-sheet .qs-table td { padding: 6px 3px !important; }
  .quote-sheet .qs-colors { font-size: 9.5px !important; line-height: 1.6 !important; }
  .quote-sheet .qs-total { margin-top: 10px !important; padding-top: 8px !important; }
  .quote-sheet .qs-foot { font-size: 9px !important; line-height: 1.5 !important; }

  .quote-modal .qs-side {
    position: static !important; left: auto !important; right: auto !important;
    bottom: auto !important; transform: none !important;
    flex-direction: row !important; justify-content: center !important;
    gap: 8px !important; z-index: 5 !important;
  }
  .quote-modal .qs-side button { width: 40px !important; height: 40px !important; }
}

/* order / BOM: hide micro English labels */
.qs-info .k em, .qs-table th em, .bom-detail th em, .qs-title span, .qs-total em { display: none !important; }

/* lightbox mobile */
#lbMeta { display: none !important; }
.lb__bar { flex-wrap: nowrap; }
.lb__bar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes lbImgIn { from { opacity: 0; transform: scale(.99); } to { opacity: 1; transform: none; } }
#lbImg.lb-anim { animation: lbImgIn .28s ease both; }
@media (max-width: 640px) {
  .lb__bar { padding: 12px 12px calc(12px + env(safe-area-inset-top)); gap: 10px; }
  .lb__bar b { font-size: 12px !important; max-width: 62vw; }
  .lb__close { height: 32px !important; padding: 0 12px !important; font-size: 12px !important; flex: 0 0 auto; }
  .lb__thumbs { padding: 20px 12px calc(14px + env(safe-area-inset-bottom)); }
  .lb__stage img { max-height: calc(100dvh - 116px); }
}

/* order / BOM mobile typography */
@media (max-width: 640px) {
  .quote-sheet .qs-title b { font-size: 18px !important; font-weight: 700 !important; letter-spacing: -.02em; }
  .quote-sheet .qs-info .k { font-size: 8.5px !important; }
  .quote-sheet .qs-info b { font-size: 9px !important; font-weight: 500 !important; line-height: 1.5; }
  .quote-sheet .qs-table th, .quote-sheet .bom-detail th { font-size: 8px !important; font-weight: 600 !important; }
  .quote-sheet .qs-table td, .quote-sheet .bom-detail td { font-size: 8.5px !important; padding: 5px 3px !important; }
  .quote-sheet .bom-detail { font-size: 8.5px !important; }
  .quote-sheet .qs-total b { font-size: 16px !important; }
  .quote-sheet .qs-total span { font-size: 9px !important; }
  .quote-sheet .qs-table { font-size: 8.5px !important; }
}

/* reserve space for the pinned price dock on phones */
@media (max-width: 600px) and (orientation: portrait) {
  .design-footer.is-color { height: auto !important; min-height: 0 !important; }
}

/* auth pages: one dynamic viewport, no page scroll, topbar fixed in place */
body.page-auth, body.page-auth .layout { height: 100dvh !important; overflow: hidden !important; }
body.page-auth .topbar { position: relative !important; top: auto !important; flex: 0 0 auto !important; }
body.page-auth .layout-main { flex: 1 1 auto !important; min-height: 0 !important; overflow: hidden !important; }
body.page-auth .login-page, body.page-auth .regist-page { height: 100% !important; overflow: hidden !important; }
body.page-auth .login-card, body.page-auth .regist-card {
  max-height: 100% !important; overflow-y: auto !important;
}
@media (max-width: 900px) {
  body.page-auth .login-page, body.page-auth .regist-page { padding: 14px 14px 18px !important; }
}

/* BOM warning block */
.bom-warn { display: flex; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e5e5e5; }
.bom-warn__ico { flex: 0 0 auto; color: #111; }
.bom-warn__ico svg { width: 26px; height: 26px; display: block; }
.bom-warn__body b { display: block; font-size: 11px; margin-bottom: 4px; }
.bom-warn__body p { margin: 5px 0 0; font-size: 9px; line-height: 1.55; color: #666; }
.bom-warn__body .bom-warn__small { font-size: 8px; color: #9a9a9a; }

/* Depth face: PRO entry beside 705 (desktop), skeuomorphic D-pad */
.depth-pro-entry { display: none; }
@media (min-width: 901px) {
  .depth-pro-entry {
    display: inline-flex; align-items: center; justify-content: center;
    height: 25px; padding: 0 6px; border: 1px solid #000; background: #fff;
    font-size: 10px; font-weight: 600; letter-spacing: .02em; cursor: pointer;
    white-space: nowrap;
  }
  .depth-pro-entry[aria-pressed="true"] { background: #000; color: #fff; }
  .pro-pad-dock__head { display: none !important; }
  .pro-pad-dock { margin-top: 8px !important; }
}
@media (max-width: 900px) {
  .depth-pro-entry { display: none !important; }
}

.pro-dpad {
  position: relative !important; width: 168px !important; height: 168px !important;
  margin: 6px auto 2px !important; padding: 0 !important; border-radius: 50% !important;
  display: block !important; flex: 0 0 auto !important; align-self: center !important;
  grid-template-columns: none !important; grid-template-rows: none !important;
  background: radial-gradient(circle at 50% 30%, #5c5c5c 0%, #2e2e2e 58%, #141414 100%) !important;
  border: 1px solid #0b0b0b !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.55), inset 0 -1px 2px rgba(255,255,255,.10) !important;
}
.pro-dpad__cross {
  position: absolute; left: 50%; top: 50%; width: 118px; height: 118px;
  transform: translate(-50%, -50%); z-index: 1; pointer-events: none;
  background: linear-gradient(145deg, #dedede 0%, #b7b7b7 42%, #8a8a8a 100%);
  clip-path: polygon(34% 0, 66% 0, 66% 34%, 100% 34%, 100% 66%, 66% 66%, 66% 100%, 34% 100%, 34% 66%, 0 66%, 0 34%, 34% 34%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.75), inset 0 -3px 6px rgba(0,0,0,.5);
}
.pro-dpad__btn {
  position: absolute !important; z-index: 2; width: 40px !important; height: 40px !important;
  border: 0 !important; background: transparent !important; color: transparent !important;
  cursor: pointer; padding: 0 !important;
}
.pro-dpad__btn--up { top: 16px; left: 64px; }
.pro-dpad__btn--down { bottom: 16px; left: 64px; }
.pro-dpad__btn--left { left: 16px; top: 64px; }
.pro-dpad__btn--right { right: 16px; top: 64px; }
.pro-dpad__btn:hover { background: rgba(255,255,255,.06) !important; }
.pro-dpad__center {
  position: absolute !important; left: 50%; top: 50%; width: 40px !important; height: 40px !important;
  transform: translate(-50%, -50%); border: 0 !important; background: transparent !important;
  z-index: 3; cursor: pointer; padding: 0 !important;
}
.part-item--lock .ui-ico { width: 40px !important; height: 40px !important; stroke-width: 1.5 !important; }
@media (max-width: 600px) { .part-item--lock .ui-ico { width: 32px !important; height: 32px !important; } }

/* desktop property bar: match the top bar black */
@media (min-width: 901px) {
  .design-footer {
    background-color: #eeeeee !important;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E"),
      linear-gradient(180deg, #ffffff 0%, #f1f1f1 48%, #e2e2e2 100%) !important;
    background-blend-mode: multiply, normal !important;
    color: #222 !important;
  }
  .design-footer .df-title { color: #111 !important; }
  .design-footer .part-item.disabled { color: #444 !important; }
  .design-footer .part-item.active { background: #e4e4e4 !important; color: #111 !important; }
  .design-footer .part-sep { background: #cfcfcf !important; }
  .design-footer .color-cat { color: #666 !important; }
  .design-footer .color-cat:hover, .design-footer .color-cat.is-active { color: #111 !important; }
}

/* width/height: PRO input sits in the 705 row */
.size-grid > .size-pro {
  height: 25px !important; margin: 0 !important; width: 100% !important;
  border: 1px solid #000 !important; background: #fff !important;
}
.size-grid > .size-pro .size-pro__input {
  height: 100% !important; padding: 0 20px 0 6px !important; font-size: 10px !important;
}
.size-grid > .size-pro .size-pro__unit { right: 4px !important; font-size: 8px !important; }
.size-grid > .size-pro .size-pro__badge { top: -6px !important; height: 9px !important; line-height: 9px !important; font-size: 6px !important; }

/* depth face: pad is always visible, no opener */
.pro-pad-dock { margin-top: 8px !important; }
.pro-pad-dock__head { display: none !important; }
.pro-pad-dock__row { display: flex !important; }
.depth-pro-entry { display: none !important; }
