body.v87-imperial.theme-sand-dark {
  --sand-void: #040302;
  --sand-night: #0b0908;
  --sand-panel: #13100d;
  --sand-panel-2: #1d1712;
  --sand-panel-3: rgba(24, 19, 15, 0.98);
  --sand-line: rgba(224, 191, 133, 0.2);
  --sand-line-strong: rgba(244, 220, 178, 0.38);
  --sand-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
  --sand-shadow-soft: 0 16px 30px rgba(0, 0, 0, 0.26);
  --sand-text: #f5ecdc;
  --sand-text-soft: rgba(245, 236, 220, 0.84);
  --sand-muted: #cab18a;
  --sand-bone: #fff3df;
  --sand-accent: #e3c38e;
  --sand-accent-2: #f5dfb7;
  --sand-accent-deep: #9d6b34;
  --sand-glow: rgba(227, 195, 136, 0.22);
  --sand-glow-soft: rgba(227, 195, 136, 0.1);
  --sand-surface-top: rgba(30, 23, 18, 0.98);
  --sand-surface-bottom: rgba(10, 8, 7, 0.98);
  --sand-danger: #cc715b;
  --sand-warn: #d7ae63;
  --sand-ok: #89b18c;
  --sand-info: #ccb07d;
  --font-ui: "Aptos", "Segoe UI Variable", "Segoe UI", "Trebuchet MS", sans-serif;
  --font-display: "Iowan Old Style", "Constantia", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --action-height: 40px;
  --action-height-sm: 34px;
  --action-pill: 999px;
  --action-radius: 16px;
  --focus-ring: 0 0 0 3px rgba(227, 195, 136, 0.24);
  color-scheme: dark;
}

body.v87-imperial.theme-sand-dark,
body.v87-imperial.theme-sand-dark button,
body.v87-imperial.theme-sand-dark input,
body.v87-imperial.theme-sand-dark select,
body.v87-imperial.theme-sand-dark textarea {
  font-family: var(--font-ui);
}

body.v87-imperial.theme-sand-dark {
  background:
    radial-gradient(circle at top center, rgba(221, 192, 138, 0.13), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(181, 133, 67, 0.1), transparent 24%),
    linear-gradient(180deg, #090807 0%, #050404 100%) !important;
  color: var(--sand-text);
}

body.v87-imperial.theme-sand-dark .sidebar {
  background: linear-gradient(180deg, rgba(14, 12, 10, 0.98), rgba(8, 7, 6, 0.98)) !important;
  border-right: 1px solid var(--sand-line) !important;
  backdrop-filter: blur(6px);
}

body.v87-imperial.theme-sand-dark .main {
  background:
    linear-gradient(180deg, rgba(13, 11, 10, 0.18), transparent 16%),
    transparent !important;
}

body.v87-imperial.theme-sand-dark .brand-title,
body.v87-imperial.theme-sand-dark .topbar h1,
body.v87-imperial.theme-sand-dark h2,
body.v87-imperial.theme-sand-dark h3,
body.v87-imperial.theme-sand-dark h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--sand-bone) !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.26);
}

body.v87-imperial.theme-sand-dark .brand-title {
  font-size: 30px !important;
}

body.v87-imperial.theme-sand-dark .brand-sub,
body.v87-imperial.theme-sand-dark .topbar p,
body.v87-imperial.theme-sand-dark .muted,
body.v87-imperial.theme-sand-dark .small,
body.v87-imperial.theme-sand-dark .footer-note,
body.v87-imperial.theme-sand-dark .sidebar-foot p,
body.v87-imperial.theme-sand-dark .hero-copy p,
body.v87-imperial.theme-sand-dark .card p,
body.v87-imperial.theme-sand-dark .mini-kpi span {
  color: var(--sand-muted) !important;
}

body.v87-imperial.theme-sand-dark .topbar {
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.96) 0%, rgba(8, 7, 6, 0.9) 72%, rgba(8, 7, 6, 0) 100%) !important;
  backdrop-filter: blur(8px);
}

body.v87-imperial.theme-sand-dark .nav-btn {
  border-radius: 20px !important;
  border-color: rgba(221, 192, 138, 0.12) !important;
  color: var(--sand-text) !important;
}

body.v87-imperial.theme-sand-dark .nav-btn:hover,
body.v87-imperial.theme-sand-dark .nav-btn.active {
  border-color: rgba(245, 220, 176, 0.42) !important;
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(227, 195, 136, 0.18) !important;
}

body.v87-imperial.theme-sand-dark .card,
body.v87-imperial.theme-sand-dark .hero-panel,
body.v87-imperial.theme-sand-dark .modal-card,
body.v87-imperial.theme-sand-dark .table-wrap,
body.v87-imperial.theme-sand-dark .board-col,
body.v87-imperial.theme-sand-dark .task-card,
body.v87-imperial.theme-sand-dark .task-mini,
body.v87-imperial.theme-sand-dark .mini-kpi,
body.v87-imperial.theme-sand-dark .list-item,
body.v87-imperial.theme-sand-dark .sidebar-foot,
body.v87-imperial.theme-sand-dark .note-box,
body.v87-imperial.theme-sand-dark .banner {
  background: linear-gradient(180deg, rgba(17, 14, 12, 0.98), rgba(10, 8, 7, 0.98)) !important;
  border-color: var(--sand-line) !important;
  box-shadow: var(--sand-shadow);
}

body.v87-imperial.theme-sand-dark .hero-panel {
  background:
    radial-gradient(circle at 15% 0%, rgba(221, 192, 138, 0.12), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(181, 133, 67, 0.09), transparent 18%),
    linear-gradient(180deg, rgba(16, 13, 11, 0.98), rgba(10, 8, 7, 0.98)) !important;
  border-color: rgba(221, 192, 138, 0.18) !important;
}

body.v87-imperial.theme-sand-dark .banner {
  background: linear-gradient(180deg, rgba(37, 29, 23, 0.98), rgba(22, 18, 14, 0.98)) !important;
}

body.v87-imperial.theme-sand-dark .table-wrap th,
body.v87-imperial.theme-sand-dark table th {
  background: rgba(14, 11, 9, 0.98) !important;
  color: var(--sand-accent-2) !important;
}

body.v87-imperial.theme-sand-dark input,
body.v87-imperial.theme-sand-dark select,
body.v87-imperial.theme-sand-dark textarea {
  background: #100d0b !important;
  border-color: rgba(221, 192, 138, 0.18) !important;
  color: var(--sand-text) !important;
}

body.v87-imperial.theme-sand-dark input:focus,
body.v87-imperial.theme-sand-dark select:focus,
body.v87-imperial.theme-sand-dark textarea:focus {
  border-color: rgba(245, 220, 176, 0.55) !important;
  box-shadow: var(--focus-ring) !important;
}

body.v87-imperial.theme-sand-dark textarea::placeholder,
body.v87-imperial.theme-sand-dark input::placeholder {
  color: rgba(195, 174, 135, 0.72) !important;
}

body.v87-imperial.theme-sand-dark :where(
  .btn,
  .quick-chip,
  .market-tab,
  .pw-chip,
  .portal-exec-filter-chip,
  .portal-exec-date-trigger,
  [data-v86-market],
  [data-v86-preset],
  .sync-status
) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: var(--action-height) !important;
  padding: 10px 15px !important;
  border-radius: var(--action-pill) !important;
  border: 1px solid rgba(221, 192, 138, 0.18) !important;
  color: var(--sand-text) !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease !important;
  backdrop-filter: none !important;
}

body.v87-imperial.theme-sand-dark .hidden {
  display: none !important;
}

body.v87-imperial.theme-sand-dark :where(
  .btn.small-btn,
  .pw-kz-badge,
  .chip,
  .sku-pill
) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: var(--action-height-sm) !important;
  padding: 8px 12px !important;
  border-radius: 14px !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
}

body.v87-imperial.theme-sand-dark :where(
  .btn,
  .quick-chip,
  .market-tab,
  .pw-chip,
  .portal-exec-filter-chip,
  .portal-exec-date-trigger,
  [data-v86-market],
  [data-v86-preset]
) {
  background: linear-gradient(180deg, rgba(26, 20, 16, 0.98), rgba(11, 9, 7, 0.98)) !important;
}

body.v87-imperial.theme-sand-dark :where(
  .btn:hover,
  .quick-chip:hover,
  .market-tab:hover,
  .pw-chip:hover,
  .portal-exec-filter-chip:hover,
  .portal-exec-date-trigger:hover,
  [data-v86-market]:hover,
  [data-v86-preset]:hover
) {
  transform: translateY(-1px);
  border-color: rgba(245, 220, 176, 0.36) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

body.v87-imperial.theme-sand-dark :where(
  .quick-chip.active,
  .market-tab.active,
  .pw-chip.active,
  .portal-exec-filter-chip.active,
  .portal-exec-date-trigger.active,
  [data-v86-market].active,
  [data-v86-preset].active
) {
  background: linear-gradient(180deg, #f3dfbb 0%, #cfab73 56%, #7a5527 100%) !important;
  color: #1a130d !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

body.v87-imperial.theme-sand-dark .btn.primary,
body.v87-imperial.theme-sand-dark .portal-action-primary {
  background: linear-gradient(180deg, #f5e2bf 0%, #d0ab71 55%, #815928 100%) !important;
  color: #17110b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

body.v87-imperial.theme-sand-dark .btn.ghost,
body.v87-imperial.theme-sand-dark .portal-action-secondary {
  background: linear-gradient(180deg, rgba(24, 19, 15, 0.98), rgba(12, 10, 8, 0.98)) !important;
  color: var(--sand-bone) !important;
}

body.v87-imperial.theme-sand-dark .sync-status {
  min-width: 272px !important;
  width: auto !important;
  justify-content: center !important;
  border-radius: 18px !important;
}

body.v87-imperial.theme-sand-dark .sync-status::before {
  filter: saturate(0.85) brightness(1.08);
}

body.v87-imperial.theme-sand-dark :where(
  .portal-action-download,
  .portal-action-upload,
  .portal-action-add,
  .portal-action-calendar,
  .portal-action-open,
  .portal-action-filter
)::before {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.12);
}

body.v87-imperial.theme-sand-dark .portal-action-download::before { content: "↓"; }
body.v87-imperial.theme-sand-dark .portal-action-upload::before { content: "↑"; }
body.v87-imperial.theme-sand-dark .portal-action-add::before { content: "+"; }
body.v87-imperial.theme-sand-dark .portal-action-calendar::before { content: "▣"; }
body.v87-imperial.theme-sand-dark .portal-action-open::before { content: "→"; }
body.v87-imperial.theme-sand-dark .portal-action-filter::before { content: "•"; }

body.v87-imperial.theme-sand-dark .portal-action-download::before { content: "\2193"; }
body.v87-imperial.theme-sand-dark .portal-action-upload::before { content: "\2191"; }
body.v87-imperial.theme-sand-dark .portal-action-calendar::before { content: "\25A3"; }
body.v87-imperial.theme-sand-dark .portal-action-open::before { content: "\2192"; }
body.v87-imperial.theme-sand-dark .portal-action-filter::before { content: "\2022"; }

body.v87-imperial.theme-sand-dark .portal-action-primary::before {
  background: rgba(0, 0, 0, 0.1);
}

body.v87-imperial.theme-sand-dark :where(
  .portal-action-secondary,
  .portal-action-filter,
  .pw-kz-badge,
  .chip,
  .sku-pill
)::before {
  background: rgba(255, 255, 255, 0.06);
}

body.v87-imperial.theme-sand-dark .pw-kz-badge,
body.v87-imperial.theme-sand-dark .chip,
body.v87-imperial.theme-sand-dark .sku-pill {
  border-color: rgba(221, 192, 138, 0.18) !important;
}

body.v87-imperial.theme-sand-dark .pw-kz-badge.ok,
body.v87-imperial.theme-sand-dark .chip.ok {
  background: rgba(136, 176, 138, 0.14) !important;
  border-color: rgba(136, 176, 138, 0.32) !important;
  color: #e3f2df !important;
}

body.v87-imperial.theme-sand-dark .pw-kz-badge.info,
body.v87-imperial.theme-sand-dark .chip.info {
  background: rgba(204, 176, 125, 0.18) !important;
  border-color: rgba(227, 195, 136, 0.3) !important;
  color: #f7edda !important;
}

body.v87-imperial.theme-sand-dark .pw-kz-badge.warn,
body.v87-imperial.theme-sand-dark .chip.warn {
  background: rgba(215, 174, 99, 0.18) !important;
  border-color: rgba(215, 174, 99, 0.38) !important;
  color: #fff1cf !important;
}

body.v87-imperial.theme-sand-dark .pw-kz-badge.danger,
body.v87-imperial.theme-sand-dark .chip.danger,
body.v87-imperial.theme-sand-dark .task-card.overdue,
body.v87-imperial.theme-sand-dark .task-mini.overdue,
body.v87-imperial.theme-sand-dark .mini-kpi.danger {
  border-color: rgba(201, 111, 92, 0.42) !important;
}

body.v87-imperial.theme-sand-dark .sku-pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(29, 24, 19, 0.98), rgba(15, 12, 10, 0.98)) !important;
  color: var(--sand-bone) !important;
}

body.v87-imperial.theme-sand-dark .sku-pill:hover {
  color: var(--sand-accent-2) !important;
}

body.v87-imperial.theme-sand-dark .launch-filter-shell {
  background:
    radial-gradient(circle at top right, rgba(221, 192, 138, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(21, 17, 14, 0.98), rgba(10, 8, 7, 0.98)) !important;
}

body.v87-imperial.theme-sand-dark .launch-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: center;
}

body.v87-imperial.theme-sand-dark .launch-source-bar,
body.v87-imperial.theme-sand-dark .launch-focus-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

body.v87-imperial.theme-sand-dark .launch-card,
body.v87-imperial.theme-sand-dark .launch-audit-card {
  position: relative;
  overflow: hidden;
}

body.v87-imperial.theme-sand-dark .launch-card::before,
body.v87-imperial.theme-sand-dark .launch-audit-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(240, 221, 182, 0.92), rgba(181, 133, 67, 0.14));
  pointer-events: none;
}

body.v87-imperial.theme-sand-dark .launch-card-head {
  align-items: flex-start;
}

body.v87-imperial.theme-sand-dark .launch-source-line {
  letter-spacing: 0.01em;
}

body.v87-imperial.theme-sand-dark .launch-card-metrics {
  color: var(--sand-text-soft) !important;
}

body.v87-imperial.theme-sand-dark .launch-card-actions {
  align-items: center;
}

body.v87-imperial.theme-sand-dark .launch-editor-registry {
  background:
    radial-gradient(circle at top right, rgba(224, 194, 138, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(27, 22, 18, 0.98), rgba(13, 10, 8, 0.98)) !important;
}

body.v87-imperial.theme-sand-dark .launch-editor-registry-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body.v87-imperial.theme-sand-dark .launch-editor-suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.v87-imperial.theme-sand-dark .portal-exec-card {
  position: relative;
  overflow: hidden;
}

body.v87-imperial.theme-sand-dark .portal-exec-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(233, 210, 171, 0.94), rgba(143, 100, 42, 0.16));
  pointer-events: none;
}

body.v87-imperial.theme-sand-dark button.card.kpi.portal-card-button {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--sand-text) !important;
}

body.v87-imperial.theme-sand-dark button.card.kpi.portal-card-button .label,
body.v87-imperial.theme-sand-dark button.card.kpi.portal-card-button .hint {
  color: var(--sand-muted) !important;
}

body.v87-imperial.theme-sand-dark button.card.kpi.portal-card-button .value {
  color: var(--sand-bone) !important;
}

body.v87-imperial.theme-sand-dark button.card.kpi.portal-card-button:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 220, 176, 0.28) !important;
}

body.v87-imperial.theme-sand-dark :where(button, a, input, select, textarea):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring) !important;
}

body.v87-imperial.theme-sand-dark .view.active :where(
  .card,
  .table-wrap,
  .list-item,
  .task-card,
  .task-mini,
  .mini-kpi,
  .pw-card,
  .repricer-card,
  .repricer-side,
  .repricer-guide-card,
  .portal-exec-card,
  .portal-livefix-card,
  .leader-row,
  .alert-row
) {
  content-visibility: auto;
  contain-intrinsic-size: auto 260px;
}

body.v87-imperial.theme-sand-dark .view.active :where(.table-wrap) {
  contain-intrinsic-size: auto 520px;
}

body.v87-imperial.theme-sand-dark .repricer-settings-card > summary {
  list-style: none;
}

body.v87-imperial.theme-sand-dark .repricer-settings-card > summary::-webkit-details-marker {
  display: none;
}

body.v87-imperial.theme-sand-dark .repricer-guide-card .value {
  font-size: 24px;
}

body.v87-imperial.theme-sand-dark .repricer-guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.v87-imperial.theme-sand-dark {
  background:
    radial-gradient(circle at top center, rgba(227, 195, 136, 0.16), transparent 34%),
    radial-gradient(circle at 84% 9%, rgba(157, 107, 52, 0.14), transparent 24%),
    radial-gradient(circle at 18% 100%, rgba(204, 176, 125, 0.09), transparent 28%),
    linear-gradient(180deg, #090705 0%, #030202 100%) !important;
}

body.v87-imperial.theme-sand-dark .sidebar {
  background: linear-gradient(180deg, rgba(18, 14, 11, 0.98), rgba(9, 7, 6, 0.98)) !important;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}

body.v87-imperial.theme-sand-dark .topbar {
  background: linear-gradient(180deg, rgba(10, 8, 7, 0.97) 0%, rgba(10, 8, 7, 0.9) 72%, rgba(10, 8, 7, 0) 100%) !important;
  border-bottom: 1px solid rgba(226, 196, 142, 0.06);
  backdrop-filter: blur(10px);
}

body.v87-imperial.theme-sand-dark .card,
body.v87-imperial.theme-sand-dark .hero-panel,
body.v87-imperial.theme-sand-dark .modal-card,
body.v87-imperial.theme-sand-dark .table-wrap,
body.v87-imperial.theme-sand-dark .board-col,
body.v87-imperial.theme-sand-dark .task-card,
body.v87-imperial.theme-sand-dark .task-mini,
body.v87-imperial.theme-sand-dark .mini-kpi,
body.v87-imperial.theme-sand-dark .list-item,
body.v87-imperial.theme-sand-dark .sidebar-foot,
body.v87-imperial.theme-sand-dark .note-box,
body.v87-imperial.theme-sand-dark .banner {
  background:
    radial-gradient(circle at top right, var(--sand-glow-soft), transparent 26%),
    linear-gradient(180deg, var(--sand-surface-top), var(--sand-surface-bottom)) !important;
}

body.v87-imperial.theme-sand-dark .section-title,
body.v87-imperial.theme-sand-dark .pw-table-head,
body.v87-imperial.theme-sand-dark .section-subhead,
body.v87-imperial.theme-sand-dark .portal-exec-head {
  gap: 14px;
}

body.v87-imperial.theme-sand-dark .section-title h2,
body.v87-imperial.theme-sand-dark .pw-title,
body.v87-imperial.theme-sand-dark .portal-exec-head h2,
body.v87-imperial.theme-sand-dark .portal-exec-head h3 {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

body.v87-imperial.theme-sand-dark .section-title p,
body.v87-imperial.theme-sand-dark .pw-sub,
body.v87-imperial.theme-sand-dark .section-subhead p,
body.v87-imperial.theme-sand-dark .portal-exec-head p {
  max-width: 920px;
  line-height: 1.55;
  color: var(--sand-text-soft) !important;
}

body.v87-imperial.theme-sand-dark .view.portal-view-shell {
  display: none;
}

body.v87-imperial.theme-sand-dark .view.portal-view-shell.active {
  display: grid;
  gap: 14px;
}

body.v87-imperial.theme-sand-dark .portal-view-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(240, 221, 182, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(221, 192, 138, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(30, 23, 18, 0.98), rgba(15, 11, 9, 0.98));
  box-shadow: var(--sand-shadow-soft);
}

body.v87-imperial.theme-sand-dark .portal-view-eyebrow {
  color: rgba(244, 222, 186, 0.54);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.v87-imperial.theme-sand-dark .portal-view-guide strong {
  display: block;
  margin-top: 4px;
  color: var(--sand-bone);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.15;
}

body.v87-imperial.theme-sand-dark .portal-view-guide p {
  margin: 8px 0 0;
  color: var(--sand-text-soft);
  line-height: 1.5;
}

body.v87-imperial.theme-sand-dark .portal-view-guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

body.v87-imperial.theme-sand-dark .portal-view-guide-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(240, 221, 182, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--sand-bone);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.v87-imperial.theme-sand-dark .portal-toolbar,
body.v87-imperial.theme-sand-dark .quick-actions,
body.v87-imperial.theme-sand-dark .pw-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

body.v87-imperial.theme-sand-dark .portal-filter-grid,
body.v87-imperial.theme-sand-dark .control-filters,
body.v87-imperial.theme-sand-dark .filters {
  gap: 12px !important;
}

body.v87-imperial.theme-sand-dark .portal-surface,
body.v87-imperial.theme-sand-dark .ui-group,
body.v87-imperial.theme-sand-dark .comment-item,
body.v87-imperial.theme-sand-dark .owner-row,
body.v87-imperial.theme-sand-dark .alert-row,
body.v87-imperial.theme-sand-dark .repricer-side,
body.v87-imperial.theme-sand-dark .repricer-settings-card,
body.v87-imperial.theme-sand-dark .pw-stat,
body.v87-imperial.theme-sand-dark .pw-card,
body.v87-imperial.theme-sand-dark .list-item {
  border-color: rgba(227, 196, 143, 0.14) !important;
  background:
    radial-gradient(circle at top right, rgba(226, 193, 130, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(26, 20, 16, 0.98), rgba(12, 10, 8, 0.98)) !important;
  box-shadow: var(--sand-shadow-soft) !important;
}

body.v87-imperial.theme-sand-dark .ui-group,
body.v87-imperial.theme-sand-dark .comment-item,
body.v87-imperial.theme-sand-dark .owner-row,
body.v87-imperial.theme-sand-dark .alert-row {
  border-radius: 20px;
}

body.v87-imperial.theme-sand-dark .owner-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

body.v87-imperial.theme-sand-dark .owner-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(226, 193, 130, 0.96), rgba(169, 117, 58, 0.96));
}

body.v87-imperial.theme-sand-dark :where(.empty, .pw-empty, .portal-empty) {
  padding: 24px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(227, 196, 143, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: var(--sand-text-soft) !important;
}

body.v87-imperial.theme-sand-dark #view-dashboard .portal-exec-surface,
body.v87-imperial.theme-sand-dark #view-dashboard .portal-exec-section {
  background:
    radial-gradient(circle at top right, rgba(226, 193, 130, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(27, 21, 17, 0.98), rgba(12, 10, 8, 0.98)) !important;
  border-color: rgba(227, 196, 143, 0.16) !important;
  box-shadow: var(--sand-shadow) !important;
}

body.v87-imperial.theme-sand-dark #view-dashboard .portal-exec-card,
body.v87-imperial.theme-sand-dark #view-dashboard .portal-exec-period-panel,
body.v87-imperial.theme-sand-dark #view-dashboard .portal-exec-issue-row,
body.v87-imperial.theme-sand-dark #view-dashboard .portal-exec-metric {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)) !important;
  border-color: rgba(227, 196, 143, 0.12) !important;
  box-shadow: none !important;
}

body.v87-imperial.theme-sand-dark #view-prices .pw-shell {
  display: grid;
  gap: 14px;
}

body.v87-imperial.theme-sand-dark #view-prices .pw-card,
body.v87-imperial.theme-sand-dark #view-prices .pw-modal-box {
  background:
    radial-gradient(circle at top right, rgba(226, 193, 130, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(28, 21, 17, 0.98), rgba(12, 10, 8, 0.98)) !important;
  border-color: rgba(227, 196, 143, 0.16) !important;
}

body.v87-imperial.theme-sand-dark #view-prices .pw-label {
  color: var(--sand-accent-2) !important;
  letter-spacing: 0.08em;
}

body.v87-imperial.theme-sand-dark #view-prices .pw-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(12, 10, 8, 0.98) !important;
}

body.v87-imperial.theme-sand-dark #view-prices .pw-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

body.v87-imperial.theme-sand-dark #view-repricer .repricer-card,
body.v87-imperial.theme-sand-dark #view-repricer .repricer-guide-card,
body.v87-imperial.theme-sand-dark #view-repricer .repricer-side,
body.v87-imperial.theme-sand-dark #view-repricer .repricer-settings-card {
  background:
    radial-gradient(circle at top right, rgba(226, 193, 130, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(28, 21, 17, 0.98), rgba(12, 10, 8, 0.98)) !important;
  border-color: rgba(227, 196, 143, 0.15) !important;
}

body.v87-imperial.theme-sand-dark #view-repricer .repricer-side-grid {
  gap: 12px;
}

body.v87-imperial.theme-sand-dark .repricer-marketplace-button.wb {
  background: linear-gradient(180deg, #a45cff 0%, #7b2cff 58%, #4e168f 100%) !important;
  color: #ffffff !important;
  border-color: rgba(205, 166, 255, 0.44) !important;
  box-shadow: 0 14px 30px rgba(123, 44, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

body.v87-imperial.theme-sand-dark .repricer-marketplace-button.ozon {
  background: linear-gradient(180deg, #2f86ff 0%, #005bff 58%, #003a9c 100%) !important;
  color: #ffffff !important;
  border-color: rgba(130, 184, 255, 0.46) !important;
  box-shadow: 0 14px 30px rgba(0, 91, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

body.v87-imperial.theme-sand-dark #view-repricer .card,
body.v87-imperial.theme-sand-dark #view-repricer .repricer-card,
body.v87-imperial.theme-sand-dark #view-repricer .repricer-guide-card,
body.v87-imperial.theme-sand-dark #view-repricer .repricer-side,
body.v87-imperial.theme-sand-dark #view-repricer .repricer-settings-card {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}

body.v87-imperial.theme-sand-dark #view-launches .launch-card,
body.v87-imperial.theme-sand-dark #view-launch-control .launch-card,
body.v87-imperial.theme-sand-dark #view-launches .launch-audit-card,
body.v87-imperial.theme-sand-dark #view-launch-control .launch-audit-card,
body.v87-imperial.theme-sand-dark #view-product-leaderboard .list-item {
  background:
    radial-gradient(circle at top right, rgba(226, 193, 130, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(27, 21, 17, 0.98), rgba(12, 10, 8, 0.98)) !important;
}

body.v87-imperial.theme-sand-dark #view-control .ui-group-head strong,
body.v87-imperial.theme-sand-dark #view-executive .ui-group-head strong,
body.v87-imperial.theme-sand-dark #view-control .ui-label,
body.v87-imperial.theme-sand-dark #view-executive .ui-label {
  color: var(--sand-accent-2) !important;
}

body.v87-imperial.theme-sand-dark #view-control .comment-item p,
body.v87-imperial.theme-sand-dark #view-executive .comment-item p {
  color: var(--sand-text-soft) !important;
}

body.v87-imperial.theme-sand-dark #view-product-leaderboard .mini-kpi,
body.v87-imperial.theme-sand-dark #view-launches .mini-kpi,
body.v87-imperial.theme-sand-dark #view-launch-control .mini-kpi,
body.v87-imperial.theme-sand-dark #view-repricer .control-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)) !important;
  border-color: rgba(227, 196, 143, 0.12) !important;
}

@media (max-width: 820px) {
  html,
  body.v87-imperial.theme-sand-dark {
    overflow-x: hidden;
  }

  body.v87-imperial.theme-sand-dark .app-shell {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    overflow-x: clip;
  }

  body.v87-imperial.theme-sand-dark .sidebar,
  body.v87-imperial.theme-sand-dark .main,
  body.v87-imperial.theme-sand-dark .topbar,
  body.v87-imperial.theme-sand-dark .section-title,
  body.v87-imperial.theme-sand-dark .portal-view-guide,
  body.v87-imperial.theme-sand-dark .portal-view-guide-copy,
  body.v87-imperial.theme-sand-dark .view.portal-view-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.v87-imperial.theme-sand-dark .main {
    padding: 14px 12px 20px;
  }

  body.v87-imperial.theme-sand-dark .sidebar {
    padding: 14px 12px 10px;
    gap: 10px;
  }

  body.v87-imperial.theme-sand-dark .brand-block {
    padding: 0 0 6px;
    border-bottom: none;
  }

  body.v87-imperial.theme-sand-dark .brand-title {
    font-size: 22px !important;
  }

  body.v87-imperial.theme-sand-dark .brand-sub {
    display: none;
  }

  body.v87-imperial.theme-sand-dark .nav {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  body.v87-imperial.theme-sand-dark .nav::-webkit-scrollbar {
    display: none;
  }

  body.v87-imperial.theme-sand-dark .nav-btn {
    flex: 0 0 auto;
    min-width: 164px;
    padding: 10px 12px;
  }

  body.v87-imperial.theme-sand-dark .nav-btn small {
    display: none;
  }

  body.v87-imperial.theme-sand-dark .topbar {
    flex-direction: column;
    margin-bottom: 10px;
  }

  body.v87-imperial.theme-sand-dark .top-actions {
    width: 100%;
  }

  body.v87-imperial.theme-sand-dark .topbar h1 {
    font-size: 24px !important;
  }

  body.v87-imperial.theme-sand-dark .topbar p {
    font-size: 13px;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.v87-imperial.theme-sand-dark *,
  body.v87-imperial.theme-sand-dark *::before,
  body.v87-imperial.theme-sand-dark *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1180px) {
  body.v87-imperial.theme-sand-dark .portal-view-guide {
    grid-template-columns: 1fr;
  }

  body.v87-imperial.theme-sand-dark .portal-view-guide-chips {
    justify-content: flex-start;
  }

  body.v87-imperial.theme-sand-dark .repricer-guide-grid {
    grid-template-columns: 1fr;
  }

  body.v87-imperial.theme-sand-dark .sidebar,
  body.v87-imperial.theme-sand-dark .topbar,
  body.v87-imperial.theme-sand-dark .nav-btn,
  body.v87-imperial.theme-sand-dark .card,
  body.v87-imperial.theme-sand-dark .btn,
  body.v87-imperial.theme-sand-dark .quick-chip,
  body.v87-imperial.theme-sand-dark .market-tab,
  body.v87-imperial.theme-sand-dark .sync-status {
    backdrop-filter: none !important;
  }
}

body.v87-imperial.theme-sand-dark #view-prices,
body.v87-imperial.theme-sand-dark #view-ads-funnel {
  --market-rgb: 212, 164, 74;
  --market-ink: #fff5df;
}

body.v87-imperial.theme-sand-dark #view-prices[data-price-active-market="wb"],
body.v87-imperial.theme-sand-dark #view-ads-funnel[data-platform="wb"] {
  --market-rgb: 139, 92, 246;
}

body.v87-imperial.theme-sand-dark #view-prices[data-price-active-market="ozon"],
body.v87-imperial.theme-sand-dark #view-ads-funnel[data-platform="ozon"] {
  --market-rgb: 22, 131, 255;
}

body.v87-imperial.theme-sand-dark #view-prices[data-price-active-market="ym"],
body.v87-imperial.theme-sand-dark #view-ads-funnel[data-platform="ya"] {
  --market-rgb: 244, 196, 48;
}

body.v87-imperial.theme-sand-dark #view-prices .pw-card,
body.v87-imperial.theme-sand-dark #view-ads-funnel .card {
  border-color: rgba(var(--market-rgb), 0.18) !important;
  background:
    radial-gradient(circle at 92% 0, rgba(var(--market-rgb), 0.10), transparent 34%),
    linear-gradient(180deg, rgba(24, 19, 15, 0.92), rgba(10, 8, 7, 0.96)) !important;
}

body.v87-imperial.theme-sand-dark #view-prices .pw-chip[data-price-market],
body.v87-imperial.theme-sand-dark #view-ads-funnel .ads-platform-chip,
body.v87-imperial.theme-sand-dark #view-ads-funnel .ads-platform-pill {
  --platform-chip-rgb: 212, 164, 74;
  border-color: rgba(var(--platform-chip-rgb), 0.42) !important;
  background:
    radial-gradient(circle at 22% 0, rgba(var(--platform-chip-rgb), 0.22), transparent 30%),
    linear-gradient(180deg, rgba(var(--platform-chip-rgb), 0.16), rgba(12, 10, 8, 0.92)) !important;
  color: #fff1d8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

body.v87-imperial.theme-sand-dark #view-prices .pw-chip[data-price-market="wb"],
body.v87-imperial.theme-sand-dark #view-ads-funnel [data-platform="wb"] {
  --platform-chip-rgb: 139, 92, 246;
}

body.v87-imperial.theme-sand-dark #view-prices .pw-chip[data-price-market="ozon"],
body.v87-imperial.theme-sand-dark #view-ads-funnel [data-platform="ozon"] {
  --platform-chip-rgb: 22, 131, 255;
}

body.v87-imperial.theme-sand-dark #view-prices .pw-chip[data-price-market="ym"],
body.v87-imperial.theme-sand-dark #view-ads-funnel [data-platform="ya"] {
  --platform-chip-rgb: 244, 196, 48;
}

body.v87-imperial.theme-sand-dark #view-prices .pw-chip[data-price-market="goldapple"],
body.v87-imperial.theme-sand-dark #view-ads-funnel [data-platform="goldapple"] {
  --platform-chip-rgb: 154, 196, 58;
}

body.v87-imperial.theme-sand-dark #view-prices .pw-chip[data-price-market="letu"],
body.v87-imperial.theme-sand-dark #view-ads-funnel [data-platform="letu"] {
  --platform-chip-rgb: 217, 70, 239;
}

body.v87-imperial.theme-sand-dark #view-prices .pw-chip[data-price-market="magnit"],
body.v87-imperial.theme-sand-dark #view-ads-funnel [data-platform="magnit"] {
  --platform-chip-rgb: 239, 68, 68;
}

body.v87-imperial.theme-sand-dark #view-prices .pw-chip[data-price-market].active,
body.v87-imperial.theme-sand-dark #view-ads-funnel .ads-platform-chip.active,
body.v87-imperial.theme-sand-dark #view-ads-funnel .ads-platform-chip[aria-pressed="true"] {
  background:
    radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(var(--platform-chip-rgb), 0.86), rgba(var(--platform-chip-rgb), 0.44)) !important;
  border-color: rgba(var(--platform-chip-rgb), 0.86) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 32px rgba(var(--platform-chip-rgb), 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.42);
}

body.v87-imperial.theme-sand-dark #view-ads-funnel .ads-platform-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

body.v87-imperial.theme-sand-dark #view-ads-funnel .ads-platform-pill {
  padding: 5px 9px;
}
