/* Loaded after legacy utilities. Scope the workspace refresh to the cabinet. */
html:has(body.silent-cabinet) {
  background: #eceef0 !important;
  padding: 14px !important;
  min-height: 100%;
}
body.silent-cabinet {
  --ss-sidebar: 224px;
  --ss-bg: #fafafb;
  --ss-paper: #fff;
  --ss-text: #292c33;
  --ss-muted: #81858e;
  --ss-line: #eaecf0;
  --ss-selected: #eceefe;
  background: var(--ss-bg) !important;
  color: var(--ss-text) !important;
  border: 6px solid #fff;
  border-radius: 23px;
  min-height: calc(100dvh - 28px) !important;
  overflow-x: clip !important;
  box-shadow: 0 10px 40px #00000007;
  font-size: 13px !important;
}
body.silent-cabinet,
body.silent-cabinet button,
body.silent-cabinet input,
body.silent-cabinet select,
body.silent-cabinet textarea,
body.silent-cabinet .font-sans,
body.silent-cabinet .font-display {
  font-family:
    Manrope,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif !important;
  letter-spacing: -0.15px;
}
body.silent-cabinet > .pointer-events-none {
  display: none !important;
}
body.silent-cabinet #appSidebar {
  width: var(--ss-sidebar) !important;
  top: 20px !important;
  bottom: 20px !important;
  left: 20px !important;
  height: calc(100dvh - 40px) !important;
  max-height: none !important;
  background: var(--ss-paper) !important;
  border: 0 !important;
  border-right: 1px solid var(--ss-line) !important;
  box-shadow: none !important;
  border-radius: 15px 0 0 15px !important;
  padding: 0 !important;
}
body.silent-cabinet #appSidebar > div:first-child {
  padding: 17px 15px !important;
  margin: 0 9px 8px !important;
  border-bottom: 1px solid var(--ss-line) !important;
}
body.silent-cabinet #appSidebar > div:first-child > a {
  gap: 9px;
}
body.silent-cabinet #appSidebar h1 {
  font-size: 16px !important;
  font-weight: 750 !important;
  color: var(--ss-text) !important;
  letter-spacing: -0.7px !important;
}
body.silent-cabinet #appSidebar h1 span {
  color: inherit !important;
}
body.silent-cabinet #appSidebar > div:first-child p {
  font-size: 9px !important;
  color: #969ba5 !important;
}
body.silent-cabinet #appSidebar > div:first-child a > div:first-child {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  border: 0;
  box-shadow: none;
}
body.silent-cabinet #appSidebar > .flex-1 {
  padding: 0 12px 14px !important;
}
body.silent-cabinet #appSidebar .uppercase {
  font-size: 9px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  color: #92959f !important;
  padding-top: 12px !important;
  padding-bottom: 5px !important;
}
body.silent-cabinet #appSidebar .sidebar-link {
  border: 0 !important;
  border-radius: 6px !important;
  min-height: 34px !important;
  height: auto !important;
  padding: 8px 10px !important;
  gap: 9px !important;
  box-shadow: none !important;
  color: #6d727c !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  background: transparent !important;
  transform: none !important;
  margin: 1px 0 !important;
}
body.silent-cabinet #appSidebar .sidebar-link span {
  color: inherit !important;
  font-weight: 500 !important;
  font-size: 11px !important;
}
body.silent-cabinet #appSidebar .sidebar-link svg,
body.silent-cabinet #appSidebar .sidebar-link i {
  width: 15px !important;
  height: 15px !important;
  color: #8a909a !important;
  stroke-width: 1.5 !important;
}
body.silent-cabinet #appSidebar .sidebar-link:hover {
  background: #f5f6f9 !important;
  color: #343a48 !important;
}
body.silent-cabinet #appSidebar .sidebar-link.active {
  background: var(--ss-selected) !important;
  color: #5260af !important;
}
body.silent-cabinet #appSidebar .sidebar-link.active svg {
  color: #6c79c7 !important;
}
body.silent-cabinet #appSidebar .sidebar-link:focus-visible {
  outline: 2px solid #8c98ef !important;
  outline-offset: 1px !important;
}
body.silent-cabinet #appSidebar .sidebar-link > span:last-child.border {
  display: none;
}
body.silent-cabinet #appSidebar > div:last-child {
  border-color: var(--ss-line) !important;
  padding: 11px !important;
}
body.silent-cabinet #appSidebar > div:last-child > .glass-card {
  padding: 8px !important;
  border-radius: 8px !important;
  background: #f8f9fb !important;
  border: 1px solid var(--ss-line) !important;
}
body.silent-cabinet #userAvatar {
  background: #e4e8f1 !important;
  color: #747f9b !important;
  border: 0 !important;
  box-shadow: none !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 11px !important;
  border-radius: 8px !important;
}
body.silent-cabinet #userName {
  font-size: 10px !important;
  color: var(--ss-text) !important;
}
body.silent-cabinet #userBalance {
  font-size: 10px !important;
  color: #9297a3 !important;
}
body.silent-cabinet #appSidebar #themeToggleBtn,
body.silent-cabinet #appSidebar #authActionButton {
  width: 25px;
  height: 27px;
}
body.silent-cabinet > main {
  margin-left: var(--ss-sidebar) !important;
  min-height: calc(100dvh - 40px) !important;
  padding-bottom: 30px !important;
  background: var(--ss-bg) !important;
  border-radius: 0 16px 16px 0;
}
.cabinet-topbar {
  height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ss-line);
  padding: 0 25px;
  background: var(--ss-paper);
  gap: 18px;
  border-radius: 0 16px 0 0;
}
.cabinet-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #a0a4ad;
  min-width: 0;
}
.cabinet-breadcrumb #headerTitle {
  font-weight: 500;
  color: var(--ss-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cabinet-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cabinet-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 205px;
  padding: 8px 10px;
  background: #f5f6f8;
  border: 1px solid #eeeff3;
  border-radius: 6px;
  font-size: 10px;
  color: #a0a5b0;
}
.cabinet-search kbd {
  margin-left: auto;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 3px;
  min-width: 17px;
  text-align: center;
  font-family: inherit;
  font-size: 9px;
}
.cabinet-help.ss-btn {
  min-height: 30px;
  width: 30px;
  padding: 5px;
  background: #f6f7f9;
  border-color: #eeeff2;
  color: #9ba0aa;
  border-radius: 6px;
}
.cabinet-avatar {
  width: 30px;
  height: 30px;
  background: #eceef5;
  border: 1px solid #e0e3ed;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #79839c;
}
.cabinet-menu {
  display: none !important;
}
body.silent-cabinet .h1-container {
  width: 100% !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 27px 25px !important;
}
.cabinet-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.cabinet-page-heading h2 {
  font-size: 21px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.7px;
  margin: 0 0 7px;
}
.cabinet-page-heading p {
  font-size: 11px;
  color: #969aa5;
  margin: 0;
}
body.silent-cabinet .ss-btn {
  font-size: 10px;
  min-height: 33px;
  padding: 7px 12px;
  border-radius: 6px;
  font-weight: 550;
  letter-spacing: -0.1px;
}
.cabinet-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.cabinet-stat {
  display: flex;
  flex-direction: column;
  align-items: start;
  border: 1px solid #e7eaf0;
  border-radius: 9px;
  padding: 17px 18px 14px;
  min-height: 137px;
  text-align: left;
  color: #343944;
  box-shadow: 0 2px 3px #2e374603;
}
.cabinet-stat > .ss-icon {
  width: 18px;
  height: 18px;
  margin-bottom: 17px;
  color: #5c6777;
}
body.silent-cabinet #dashBalance,
body.silent-cabinet #dashPurchasesCount,
body.silent-cabinet #dashStockCount {
  display: block;
  font-family: Manrope, sans-serif !important;
  font-size: 23px !important;
  font-weight: 600 !important;
  color: #292e37 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.6px !important;
  margin: 0 0 8px !important;
}
.cabinet-stat__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font-size: 10px;
  color: #858b96;
  font-weight: 400;
}
.cabinet-stat__bottom > button {
  background: transparent;
  border: 0;
  color: #53617a;
  font-size: 10px;
  padding: 0;
}
.cabinet-products {
  border: 1px solid var(--ss-line);
  background: var(--ss-paper);
  border-radius: 9px;
  overflow: hidden;
  margin-top: 22px !important;
}
.cabinet-panel-heading {
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ss-line);
}
.cabinet-panel-heading h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}
.cabinet-panel-heading .ss-btn {
  min-height: 27px;
  padding: 4px 9px;
  font-size: 9px;
}
.cabinet-table-scroll {
  overflow-x: auto;
}
.cabinet-products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  min-width: 610px;
  text-align: left;
}
.cabinet-products-table th {
  font-size: 9px;
  font-weight: 450;
  color: #9b9fa8;
  background: #fcfcfd;
  padding: 12px 18px;
}
.cabinet-products-table td {
  padding: 16px 18px;
  border-top: 1px solid #f0f1f4;
  color: #9499a4;
  white-space: nowrap;
}
.cabinet-products-table td:last-child {
  text-align: right;
}
.cabinet-products-table .ss-btn {
  font-size: 9px;
  min-height: 28px;
}
.cabinet-product-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #454b57;
  font-weight: 550;
}
.cabinet-product-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f0f3fb;
  color: #6b85b7;
  border: 1px solid #e7edf9;
}
.cabinet-product-icon--mint {
  background: #eef7f3;
  color: #72a593;
  border-color: #e3efe9;
}
.cabinet-product-icon svg {
  width: 15px;
  height: 15px;
}
.cabinet-tag {
  padding: 4px 8px;
  background: #f5f6f8;
  border-radius: 5px;
  font-size: 9px;
  color: #818897;
  border: 1px solid #eceef2;
}
.cabinet-reward {
  padding: 14px 17px;
  border: 1px solid var(--ss-line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ss-paper);
  font-size: 10px;
  color: #9297a2;
  margin-top: 15px !important;
  gap: 12px;
}
.cabinet-reward > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cabinet-reward i {
  color: #a49ac3;
}
.cabinet-reward > button {
  border: 0;
  background: transparent;
  font-size: 10px;
  color: #777e8b;
  white-space: nowrap;
}
.cabinet-support-card {
  margin: 10px 13px 13px;
  padding: 15px 12px;
  display: flex;
  align-items: center;
  flex-direction: column;
  border: 1px solid #e8eaef;
  box-shadow: 0 0 0 4px #f7f8fa inset;
  border-radius: 11px;
  background: #fff;
  gap: 7px;
  text-align: center;
}
.cabinet-support-card__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 29px;
  background: #f5f4fa;
  border-radius: 7px;
  color: #a29bb7;
  margin-bottom: 4px;
}
.cabinet-support-card strong {
  font-size: 11px;
  font-weight: 600;
  color: #5b616d;
}
.cabinet-support-card > span:not([class]) {
  font-size: 9px;
  color: #a1a6b0;
}
.cabinet-support-card > .ss-btn {
  margin-top: 6px;
  width: 100%;
  font-size: 9px;
}
body.silent-cabinet .glass-card {
  border-radius: 9px !important;
  border: 1px solid var(--ss-line) !important;
  box-shadow: none !important;
  background: var(--ss-paper) !important;
  backdrop-filter: none !important;
}
body.silent-cabinet .ov-cols {
  gap: 15px !important;
  margin-top: 22px !important;
}
body.silent-cabinet .ov-cols .ov-card {
  padding: 18px !important;
}
body.silent-cabinet .ov-card__eyebrow {
  display: none !important;
}
body.silent-cabinet .ov-card__head {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--ss-text) !important;
}
body.silent-cabinet .ov-cols .ov-card a,
body.silent-cabinet .ov-cols .ov-card span,
body.silent-cabinet .ov-cols .ov-card button {
  font-size: 10px !important;
}
body.silent-cabinet .cat-pill,
body.silent-cabinet .sort-btn {
  border-radius: 6px !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  min-height: 31px !important;
}
body.silent-cabinet .cat-pill.active {
  background: var(--ss-selected) !important;
  color: #5260af !important;
  border-color: #e2e6f5 !important;
}
body.silent-cabinet .sort-btn.active {
  background: #383c44 !important;
  color: #fff !important;
  border-color: #383c44 !important;
}
body.silent-cabinet .catalog-list-row {
  border-radius: 7px !important;
  box-shadow: none !important;
  padding: 14px 16px !important;
  min-height: 68px !important;
  border: 1px solid var(--ss-line) !important;
  background: var(--ss-paper) !important;
  margin-bottom: 8px !important;
}
body.silent-cabinet .catalog-list-row .text-base,
body.silent-cabinet .catalog-list-row .text-lg,
body.silent-cabinet .catalog-list-row .sm\:text-base {
  font-size: 12px !important;
  font-weight: 550 !important;
}
body.silent-cabinet .catalog-tag-green {
  font-size: 8px !important;
  background: #eef6ee !important;
  color: #7b947c !important;
  border: 0 !important;
  padding: 2px 5px !important;
}
body.silent-cabinet #catalogSearch {
  height: 38px !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  box-shadow: none !important;
}
body.silent-cabinet .h1-container > section > div:first-child h2,
body.silent-cabinet .h1-container > section > div:first-child h3 {
  letter-spacing: -0.5px !important;
}
body.silent-cabinet .modal-box {
  border-radius: 12px !important;
  box-shadow: 0 15px 70px #13192520 !important;
}
body.silent-cabinet .verified-badge > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 9px;
  cursor: help;
  background: #5261c8 !important;
  color: #fff !important;
  box-shadow: none !important;
}
html.dark body.silent-cabinet .verified-badge > span {
  background: #3c5279 !important;
  color: #edf2ff !important;
}
body.silent-cabinet .verified-badge > span > i {
  color: inherit !important;
}
/* Keep tooltip text and surface in the same palette; legacy utilities otherwise
   turn the stock count dark while leaving the tooltip background dark. */
body.silent-cabinet .badge-tooltip {
  background: var(--ss-paper) !important;
  color: var(--ss-text) !important;
  border: 1px solid var(--ss-line) !important;
  box-shadow: 0 5px 18px #00000016 !important;
  filter: none !important;
}
body.silent-cabinet .badge-tooltip::after {
  border-color: var(--ss-paper) transparent transparent transparent !important;
}
html.light body.silent-cabinet .badge-tooltip .quality-tooltip-stock,
html.dark body.silent-cabinet .badge-tooltip .quality-tooltip-stock {
  color: var(--ss-text) !important;
}
html.light body.silent-cabinet .badge-tooltip strong,
html.dark body.silent-cabinet .badge-tooltip strong {
  color: var(--ss-text) !important;
}
body.silent-cabinet .badge-tooltip .quality-tooltip-title {
  color: var(--ss-accent) !important;
}
body.silent-cabinet [role="button"]:focus-visible {
  outline: 2px solid #8c98ef;
  outline-offset: 2px;
}
/* Normalize inherited dark utility colors only in light mode, including generated rows. */
html.light body.silent-cabinet .text-white,
html.light body.silent-cabinet .text-zinc-200,
html.light body.silent-cabinet .text-zinc-300 {
  color: #4f5663 !important;
}
html.light body.silent-cabinet .text-zinc-400 {
  color: #8a919d !important;
}
html.light body.silent-cabinet .text-zinc-500 {
  color: #9298a3 !important;
}
html.light body.silent-cabinet [class*="bg-[#0"],
html.light body.silent-cabinet [class*="bg-[#1"],
html.light body.silent-cabinet [class*="bg-white/5"],
html.light body.silent-cabinet [class*="bg-white/[0."] {
  background-color: #f8f9fb !important;
}
html.light body.silent-cabinet input,
html.light body.silent-cabinet select,
html.light body.silent-cabinet textarea {
  background: #fff !important;
  border-color: #e5e8ee !important;
  color: #555d6c !important;
}
html.light body.silent-cabinet [class*="border-white/"] {
  border-color: #e9ecf1 !important;
}
html.light body.silent-cabinet [class*="bg-blue-6"],
html.light body.silent-cabinet .bg-brandBlue,
html.light body.silent-cabinet .bg-brand {
  background: #363c48 !important;
  color: #fff !important;
}
html.light body.silent-cabinet [class*="bg-blue-6"] .text-white,
html.light body.silent-cabinet .bg-brandBlue .text-white {
  color: #fff !important;
}
body.silent-cabinet #toast {
  background: #fff !important;
  border: 1px solid #e4e7ed !important;
  box-shadow: 0 8px 30px #00000012 !important;
}
body.silent-cabinet #toastText {
  color: #4f5663 !important;
}
/* Keep the explicit theme switch usable; the reference light theme is the default. */
html.dark:has(body.silent-cabinet) {
  background: #202228 !important;
}
.dark body.silent-cabinet {
  --ss-bg: #20232a;
  --ss-paper: #272b33;
  --ss-text: #e0e4ed;
  --ss-muted: #a2a9b7;
  --ss-line: #373d48;
  --ss-selected: #343e5c;
  border-color: #323741 !important;
}
.dark body.silent-cabinet #appSidebar .sidebar-link {
  color: #a6adba !important;
}
.dark body.silent-cabinet #appSidebar .sidebar-link:hover {
  background: #313744 !important;
  color: #e0e4ed !important;
}
.dark body.silent-cabinet #appSidebar > div:last-child > .glass-card {
  background: #292f3b !important;
}
.dark .cabinet-search,
.dark .cabinet-help.ss-btn,
.dark .cabinet-avatar {
  background: #2c323d;
  color: #a7b0c1;
  border-color: #3a4250;
}
.dark .cabinet-search kbd {
  background: #363f4e;
  border-color: #454f61;
}
.dark .cabinet-products-table th {
  background: #252a33;
}
.dark .cabinet-products-table td {
  border-color: #363d49;
  color: #a6adbb;
}
.dark .cabinet-product-name {
  color: #d0d8e6;
}
.dark .cabinet-tag {
  background: #343d4c;
  color: #adb9cf;
  border-color: #455166;
}
.dark .cabinet-support-card {
  background: #292f3b;
  border-color: #3c4554;
  box-shadow: none;
}
.dark .cabinet-support-card strong {
  color: #c5ccda;
}
.dark .ss-btn:not(.ss-btn--primary) {
  background: #303846;
  border-color: #414d61;
  color: #d3daea;
}
.dark .cabinet-stat {
  background: linear-gradient(120deg, #343d53, #2a3441);
  border-color: #424d60;
}
.dark .cabinet-stat.ss-wash-mint {
  background: linear-gradient(120deg, #344b4b, #303846);
}
.dark .cabinet-stat.ss-wash-peach {
  background: linear-gradient(120deg, #4c3b4e, #444131);
}
.dark body.silent-cabinet #dashBalance,
.dark body.silent-cabinet #dashPurchasesCount,
.dark body.silent-cabinet #dashStockCount {
  color: #e0e7f1 !important;
}
.dark .cabinet-stat__bottom,
.dark .cabinet-stat__bottom > button,
.dark .cabinet-stat > .ss-icon {
  color: #acb8ca;
}
.dark .cabinet-support-card__icon {
  background: #353d4c;
}
.dark body.silent-cabinet #toast {
  background: #303846 !important;
  border-color: #455166 !important;
}
.dark body.silent-cabinet #toastText {
  color: #d4ddec !important;
}
@media (min-width: 1024px) {
  body.silent-cabinet #appSidebar {
    transform: none !important;
  }
}
@media (max-width: 1200px) {
  body.silent-cabinet {
    --ss-sidebar: 208px;
  }
  body.silent-cabinet .h1-container {
    padding: 23px 20px !important;
  }
  .cabinet-topbar {
    padding: 0 20px;
  }
  .cabinet-stat {
    padding: 15px 14px;
  }
  .cabinet-stat__bottom {
    font-size: 9px;
  }
  .cabinet-search {
    min-width: 175px;
  }
  .cabinet-support-card {
    padding: 12px;
  }
}
@media (max-width: 1023px) {
  html:has(body.silent-cabinet) {
    padding: 7px !important;
  }
  body.silent-cabinet {
    border-width: 4px;
    border-radius: 17px;
    min-height: calc(100dvh - 14px) !important;
  }
  body.silent-cabinet > main {
    margin-left: 0 !important;
    min-height: calc(100dvh - 22px) !important;
    border-radius: 12px;
  }
  body.silent-cabinet #appSidebar {
    top: 11px !important;
    bottom: 11px !important;
    left: 11px !important;
    height: calc(100dvh - 22px) !important;
    width: 230px !important;
    box-shadow: 15px 0 50px #252b3920 !important;
    border-radius: 12px !important;
  }
  body.silent-cabinet #appSidebar.-translate-x-full {
    transform: translateX(calc(-100% - 20px)) !important;
  }
  .cabinet-menu {
    display: inline-flex !important;
    width: 30px;
    min-height: 30px !important;
    padding: 5px !important;
  }
  .cabinet-topbar {
    border-radius: 12px 12px 0 0;
    height: 57px;
    position: sticky;
    top: 0;
    z-index: 30;
  }
  body.silent-cabinet #sidebarBackdrop {
    background: #29314255 !important;
    backdrop-filter: blur(2px) !important;
  }
  .cabinet-support-card {
    display: none;
  }
  body.silent-cabinet .h1-container {
    padding: 23px 20px !important;
  }
  .cabinet-search {
    min-width: 160px;
  }
  body.silent-cabinet #appSidebar .sidebar-link {
    min-height: 38px !important;
  }
  body.silent-cabinet #appSidebar .sidebar-link span {
    font-size: 12px !important;
  }
}
@media (max-width: 650px) {
  .cabinet-search {
    display: none;
  }
  .cabinet-breadcrumb {
    font-size: 9px;
    gap: 8px;
  }
  .cabinet-topbar {
    padding: 0 14px;
    gap: 10px;
  }
  .cabinet-topbar__actions {
    gap: 6px;
  }
  body.silent-cabinet .h1-container {
    padding: 24px 14px !important;
  }
  .cabinet-page-heading {
    align-items: start;
    gap: 10px;
  }
  .cabinet-page-heading h2 {
    font-size: 19px;
  }
  .cabinet-page-heading p {
    font-size: 10px;
    max-width: 180px;
    line-height: 1.7;
  }
  .cabinet-page-heading > .ss-btn {
    font-size: 9px;
    padding: 7px 10px;
    min-height: 33px;
  }
  .cabinet-stats {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .cabinet-stat {
    padding: 15px 16px;
    min-height: 106px;
    position: relative;
  }
  .cabinet-stat > .ss-icon {
    position: absolute;
    right: 17px;
    top: 17px;
  }
  body.silent-cabinet #dashBalance,
  body.silent-cabinet #dashPurchasesCount,
  body.silent-cabinet #dashStockCount {
    font-size: 24px !important;
    margin-top: 10px !important;
  }
  .cabinet-stat__bottom {
    font-size: 10px;
  }
  .cabinet-stat__bottom > button {
    font-size: 10px;
  }
  .cabinet-products {
    margin-top: 18px !important;
  }
  .cabinet-reward {
    font-size: 9px;
    padding: 14px 12px;
  }
  .cabinet-reward > div {
    gap: 7px;
  }
  body.silent-cabinet .ov-cols {
    grid-template-columns: 1fr !important;
  }
  body.silent-cabinet .catalog-list-row {
    padding: 12px !important;
  }
  body.silent-cabinet input,
  body.silent-cabinet select,
  body.silent-cabinet textarea {
    font-size: 16px !important;
  }
  body.silent-cabinet #catalogSearch {
    font-size: 16px !important;
  }
  body.silent-cabinet .ss-btn {
    min-height: 36px;
  }
  body.silent-cabinet .cat-pill {
    min-height: 38px !important;
  }
}
@media (max-height: 760px) and (min-width: 1024px) {
  .cabinet-support-card {
    display: none;
  }
  body.silent-cabinet #appSidebar .uppercase {
    padding-top: 8px !important;
  }
  body.silent-cabinet #appSidebar .sidebar-link {
    min-height: 31px !important;
    padding-block: 6px !important;
  }
}

/* Legacy active-navigation and deposit rules have !important child colors. */
body.silent-cabinet #appSidebar .sidebar-link.active span {
  color: inherit !important;
}
body.silent-cabinet #appSidebar .sidebar-link.active svg,
body.silent-cabinet #appSidebar .sidebar-link.active i {
  color: #6c79c7 !important;
}
body.silent-cabinet .cabinet-stat__bottom > button,
body.silent-cabinet .cabinet-stat__bottom > button * {
  color: #53617a !important;
}
.dark body.silent-cabinet .cabinet-stat__bottom > button,
.dark body.silent-cabinet .cabinet-stat__bottom > button * {
  color: #b6c2d8 !important;
}
@media (max-width: 650px) {
  .cabinet-products-table {
    min-width: 0;
    table-layout: auto;
  }
  .cabinet-products-table th:nth-child(2),
  .cabinet-products-table th:nth-child(3),
  .cabinet-products-table td:nth-child(2),
  .cabinet-products-table td:nth-child(3) {
    display: none;
  }
  .cabinet-products-table td,
  .cabinet-products-table th {
    padding: 14px 12px;
  }
  .cabinet-product-name {
    gap: 7px;
    font-size: 10px;
  }
  .cabinet-products-table td:last-child {
    width: 80px;
  }
  .cabinet-products-table .ss-btn {
    font-size: 9px;
    padding: 6px 9px;
  }
}

/* Product details follow the reference's right-hand catalog inspector. */
body.silent-cabinet #productDetailModal > div {
  border-radius: 10px !important;
  padding: 20px !important;
  border-color: var(--ss-line) !important;
  background: var(--ss-paper) !important;
  box-shadow: 0 6px 30px #26314b0b !important;
  max-height: calc(100dvh - 130px);
  overflow-y: auto;
}
body.silent-cabinet #productDetailModal h3 {
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: -0.3px !important;
}
body.silent-cabinet #productDetailModal .modal-row-label {
  font-size: 11px !important;
  color: var(--ss-muted) !important;
}
body.silent-cabinet #productDetailModal .modal-row-value {
  font-size: 11px !important;
  color: var(--ss-text) !important;
  font-weight: 550 !important;
}
body.silent-cabinet #productDetailModal > div > div:has(> #modalProductDesc) {
  display: block !important;
  border: 1px solid var(--ss-line);
  border-radius: 7px;
  padding: 12px;
}
body.silent-cabinet #modalProductDesc {
  font-size: 10px !important;
  line-height: 1.85 !important;
  color: var(--ss-muted) !important;
  max-height: 180px;
  overflow-y: auto;
}
body.silent-cabinet #modalProductIdBadge,
body.silent-cabinet #modalProductPrice {
  display: none !important;
}
body.silent-cabinet #modalBuyDirectBtn {
  background: linear-gradient(#424347, #202124) !important;
  border: 1px solid #27282c !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 11px !important;
}
body.silent-cabinet #modalBuyDirectBtn * {
  color: #fff !important;
}
body.silent-cabinet #productDetailModal .modal-disclaimer {
  font-size: 9px !important;
  color: var(--ss-muted) !important;
}
@media (min-width: 1200px) {
  body.silent-cabinet #productDetailModal {
    align-items: flex-start !important;
    justify-content: flex-end !important;
    padding: 107px 45px 24px !important;
    background: rgba(248, 249, 251, 0.15) !important;
    backdrop-filter: none !important;
  }
  body.silent-cabinet #productDetailModal > div {
    width: 340px !important;
    max-width: 340px !important;
  }
  body.silent-cabinet:has(#productDetailModal:not(.hidden)) #view-catalog {
    margin-right: 365px !important;
    width: auto !important;
  }
}
@media (max-width: 650px) {
  body.silent-cabinet #productDetailModal > div {
    max-height: calc(100dvh - 40px);
  }
}
body.silent-cabinet .cat-pill.active * {
  color: inherit !important;
}
html.light body.silent-cabinet,
html.dark body.silent-cabinet {
  background: var(--ss-bg) !important;
}
