/* WarrantyVault V35.0.71 compact backend workspace */
/* V35.0.75: Show Mode remains dark and readable even when the main workspace uses the light theme. */
html[data-theme="light"] .show-mode-shell {
  color: #f3f7fb !important;
  background: radial-gradient(circle at 85% 0%, rgba(20,184,166,.16), transparent 34%), linear-gradient(145deg,#06101b,#0a1c2e 56%,#07131f) !important;
}
html[data-theme="light"] .show-mode-header {
  color: #f3f7fb !important;
  border-bottom-color: rgba(148,163,184,.22) !important;
  background: rgba(4,14,25,.94) !important;
}
html[data-theme="light"] .show-mode-header .select,
html[data-theme="light"] .show-mode-header .btn {
  color: #f3f7fb !important;
  border-color: rgba(148,163,184,.3) !important;
  background: #0b1e30 !important;
}
html[data-theme="light"] .show-mode-hero,
html[data-theme="light"] .show-mode-stat,
html[data-theme="light"] .show-mode-inventory-panel,
html[data-theme="light"] .show-mode-purchase-queue,
html[data-theme="light"] .show-mode-unlinked-collection-sales {
  color: #f3f7fb !important;
  border-color: rgba(148,163,184,.2) !important;
  background: rgba(8,25,40,.9) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 18px 44px rgba(0,0,0,.18) !important;
}
html[data-theme="light"] .show-mode-hero h1,
html[data-theme="light"] .show-mode-stat b,
html[data-theme="light"] .show-mode-section-head span,
html[data-theme="light"] .show-mode-empty strong,
html[data-theme="light"] .show-mode-shell .starter-bag-sales-head span,
html[data-theme="light"] .show-mode-shell .starter-bag-sale-row strong {
  color: #f7fbff !important;
}
html[data-theme="light"] .show-mode-hero p,
html[data-theme="light"] .show-mode-stat span,
html[data-theme="light"] .show-mode-stat small,
html[data-theme="light"] .show-mode-section-head small,
html[data-theme="light"] .show-mode-empty,
html[data-theme="light"] .show-mode-shell .starter-bag-sale-row small,
html[data-theme="light"] .show-mode-shell .starter-bag-sales-head small {
  color: #9eb2c5 !important;
}
html[data-theme="light"] .show-mode-action {
  color: #f3f7fb !important;
  border-color: rgba(148,163,184,.22) !important;
  background: linear-gradient(145deg,#102a40,#081a2b) !important;
}
html[data-theme="light"] .show-mode-action b { color: #f7fbff !important; }
html[data-theme="light"] .show-mode-action small { color: #9eb2c5 !important; }
html[data-theme="light"] .show-mode-shell .starter-bag-sale-row,
html[data-theme="light"] .show-mode-inventory-card {
  color: #f3f7fb !important;
  border-color: rgba(148,163,184,.2) !important;
  background: rgba(13,34,52,.92) !important;
}
html[data-theme="light"] .show-mode-shell .btn:not(.primary) {
  color: #e8f0f7 !important;
  border-color: rgba(148,163,184,.28) !important;
  background: #0b1e30 !important;
}

/* V35.0.76 Show Mode collection-wide Quick Sale search */
.quick-sale-search { display: grid; gap: 14px; }
.quick-sale-search-field { margin: 0; }
.quick-sale-search-field > div {
  position: relative;
  display: flex;
  align-items: center;
}
.quick-sale-search-field > div > span {
  position: absolute;
  left: 14px;
  z-index: 1;
  color: var(--brand);
  font-size: 21px;
  pointer-events: none;
}
.quick-sale-search-field .field {
  min-height: 52px;
  padding-left: 43px;
  padding-right: 45px;
  font-size: 16px;
}
.quick-sale-search-field button {
  position: absolute;
  right: 7px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}
.quick-sale-search-field button:hover { color: var(--text); background: var(--panel-2); }
.quick-sale-search-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}
.quick-sale-search-summary b { color: var(--text); font-size: 13px; }
.quick-sale-search-summary small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-sale-search-results {
  display: grid;
  gap: 7px;
  max-height: min(48vh, 430px);
  overflow-y: auto;
  padding-right: 3px;
}
.quick-sale-search-result {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: var(--panel-2);
  text-align: left;
  cursor: pointer;
}
.quick-sale-search-result:hover,
.quick-sale-search-result:focus-visible {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, var(--panel-2));
  outline: none;
}
.quick-sale-search-result > div { min-width: 0; }
.quick-sale-search-result strong,
.quick-sale-search-result small,
.quick-sale-search-result em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-sale-search-result strong { font-size: 14px; }
.quick-sale-search-result small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.quick-sale-search-result em { margin-top: 2px; color: var(--muted); font-size: 11px; font-style: normal; }
.quick-sale-source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(20,184,166,.28);
  border-radius: 999px;
  color: #5eead4;
  background: rgba(20,184,166,.1);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.quick-sale-source-badge.show {
  border-color: rgba(96,165,250,.28);
  color: #93c5fd;
  background: rgba(59,130,246,.1);
}
.quick-sale-result-arrow { color: var(--muted); font-size: 25px; }
.quick-sale-search-empty {
  padding: 24px 16px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  color: var(--muted);
  text-align: center;
}
.quick-sale-search-empty strong,
.quick-sale-search-empty small { display: block; }
.quick-sale-search-empty strong { color: var(--text); }
.quick-sale-search-empty small { margin-top: 5px; }
.quick-sale-search-browse {
  display: grid;
  gap: 8px;
  padding-top: 3px;
  border-top: 1px solid var(--line);
}
.quick-sale-search-browse > span { padding-top: 10px; color: var(--muted); font-size: 11px; }
@media (max-width: 560px) {
  .quick-sale-search-result { grid-template-columns: 70px minmax(0, 1fr) auto; padding: 10px; }
  .quick-sale-search-results { max-height: 43vh; }
  .quick-sale-source-badge { padding-inline: 6px; font-size: 8px; }
}
@media (min-width: 931px) {
  .app { grid-template-columns: 244px minmax(0, 1fr); }
  .sidebar { padding: 14px 12px; }
  .brand { gap: 10px; padding: 2px 5px 14px; }
  .brand-logo { width: 48px; height: 48px; border-radius: 14px; }
  .brand-logo img { width: 46px; height: 46px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 10px; }
  .nav { gap: 3px; }
  .nav-label { margin: 5px 0; padding: 0 10px; font-size: 9px; }
  .nav-btn { min-height: 40px; gap: 10px; padding: 9px 11px; border-radius: 11px; font-size: 13px; }
  .nav-btn svg { width: 17px; height: 17px; }
  .sidebar-bottom { gap: 7px; }
  .storage-card { padding: 11px; border-radius: 13px; }
  .workspace { padding: 20px 24px 48px; }
  .topbar { margin-bottom: 18px; padding-bottom: 14px; }
  .page-title { font-size: clamp(27px, 3.2vw, 36px); }
  .page-sub { font-size: 13px; }
  .btn { min-height: 39px; padding-inline: 13px; border-radius: 10px; }
  .panel { border-radius: 16px; }
  .panel-pad { padding: 16px; }
  .panel-head { padding: 16px 16px 0; }
  .kpi-grid { gap: 11px; margin-bottom: 12px; }
  .kpi { min-height: 108px; padding: 14px; }
  .kpi-value { margin: 6px 0 4px; font-size: 25px; }
  .show-hero { margin-bottom: 12px; padding: 17px; border-radius: 17px; }
  .show-stats { gap: 7px; margin-top: 14px; }
  .stat-box { padding: 10px 11px; border-radius: 11px; }
  .stat-box b { font-size: 17px; }
  .starter-bag-sales-panel { margin-top: 12px; padding: 14px 16px; }
  .starter-bag-sale-row { padding: 9px 10px; }
}
.cloud-reconnect-overlay{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:24px;background:rgba(7,20,33,.72);backdrop-filter:blur(10px)}
.cloud-reconnect-card{width:min(560px,100%);padding:38px;border:1px solid rgba(148,163,184,.32);border-radius:28px;background:#fff;box-shadow:0 30px 90px rgba(7,20,33,.34);text-align:center;color:#172033}
.cloud-reconnect-card small{display:block;margin:14px 0 8px;color:#07879a;font-size:.76rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.cloud-reconnect-card h2{margin:0;font-size:clamp(1.65rem,4vw,2.35rem);line-height:1.08}.cloud-reconnect-card p{margin:16px auto 22px;max-width:470px;color:#5b6b82;line-height:1.55}
.cloud-reconnect-card em{display:block;margin-top:15px;color:#718198;font-size:.84rem;font-style:normal}.cloud-reconnect-spinner{display:block;width:42px;height:42px;margin:0 auto;border:4px solid #dbe8f4;border-top-color:#1677d2;border-radius:50%;animation:cloud-reconnect-spin .8s linear infinite}
@keyframes cloud-reconnect-spin{to{transform:rotate(360deg)}}
@media(max-width:640px){.cloud-reconnect-overlay{padding:14px}.cloud-reconnect-card{padding:30px 22px;border-radius:22px}}
