/* IQOS shell navigation only. The main workspace retains its own theme. */
body[data-iqos-surface="host"] #root aside.iqos-shell-sidebar {
  --iq-bg: #15181d;
  --iq-ink: #ffffff;
  --iq-muted: #e6e9ed;
  --iq-faint: #b7bec8;
  --iq-hair: #393f48;
  --iq-soft: #20252c;
  --iq-hover: #292f37;
  --iq-selected: #333a45;
  color: var(--iq-ink);
  background: var(--iq-bg);
}

body[data-iqos-surface="host"] #root .iqos-shell-sidebar nav button:not(:disabled),
body[data-iqos-surface="host"] #root .iqos-shell-sidebar .iqos-sidebar-tools > button {
  color: var(--iq-ink) !important;
}
.iqos-shell-sidebar nav button > svg { color: #d8dde4; }
body[data-iqos-surface="host"] #root aside.iqos-shell-sidebar nav .iqos-nav-heading {
  color: #e6e9ed;
  border-bottom: 0;
}
.iqos-shell-sidebar nav button:is(.bg-gray-100,[aria-current="page"]),
.iqos-shell-sidebar .iqos-sidebar-tools > button.bg-gray-100 {
  position: relative;
  background: var(--iq-selected);
}
.iqos-shell-sidebar button:is(.bg-gray-100,[aria-current="page"])::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  background: #ff4650;
  border-radius: 2px;
}
body[data-iqos-surface="host"] #root .iqos-shell-sidebar :is(button,summary):focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}
.iqos-shell-sidebar nav .ml-auto.rounded-full { background: #434b56; color: white; }
.iqos-shell-sidebar nav .ml-auto.bg-red-100 { background: #66252d; color: #ffe6e8; }
.iqos-shell-sidebar :is(.iqos-sidebar-account,.iqos-sidebar-tools,.iqos-nav-group) .border-gray-200,
.iqos-shell-sidebar .iqos-sidebar-account { border-color: var(--iq-hair); }
body[data-iqos-surface="host"] #root .iqos-shell-sidebar .iqos-sidebar-tools span.font-medium,
body[data-iqos-surface="host"] #root .iqos-shell-sidebar .iqos-sidebar-account .truncate.font-medium {
  color: white;
}
body[data-iqos-surface="host"] #root .iqos-shell-sidebar .iqos-sidebar-tools .text-red-600 { color: #ffa3a9; }
.iqos-shell-sidebar .iqos-sidebar-account .bg-gray-200 { background: #404853; }
.iqos-shell-sidebar :is(.iqos-sidebar-account,.iqos-sidebar-brand,.iqos-sidebar-tools) button:hover {
  background: var(--iq-hover);
  color: white;
}
body[data-iqos-surface="host"] #root .iqos-shell-sidebar .iqos-sidebar-toggle {
  background: #2b3038;
  border-color: #505763;
  color: white;
}

/* Reuse the transparent IQOS artwork, with white lettering on the dark surface. */
.iqos-shell-sidebar .iqos-sidebar-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.iqos-shell-sidebar .iqos-sidebar-brand > img,
.iqos-shell-sidebar .iqos-sidebar-brand::after {
  grid-area: 1 / 1;
  justify-self: center;
  width: min(168px, 100%);
  height: auto;
  aspect-ratio: 3 / 1;
}
.iqos-shell-sidebar .iqos-sidebar-brand::after {
  content: "";
  background: white;
  -webkit-mask: url("/iqos-logo.png") center / contain no-repeat;
  mask: url("/iqos-logo.png") center / contain no-repeat;
  clip-path: inset(0 0 0 29%);
  pointer-events: none;
}
.iqos-shell-sidebar .iqos-sidebar-brand > button { grid-area: 1 / 2; }
@media (min-width: 1024px) {
  body[data-iqos-sidebar="collapsed"] .iqos-shell-sidebar .iqos-sidebar-brand::after { display: none; }
  body[data-iqos-sidebar="collapsed"] .iqos-shell-sidebar .iqos-nav-group + .iqos-nav-group {
    border-top-color: #393f48;
  }
}
