:host, :root {
  color-scheme: dark;
  --settings-nav-width: 168px;
  --settings-header-border: rgba(255, 255, 255, 0.10);
  --settings-nav-bg: rgba(0, 0, 0, 0.28);
  --settings-tab-active-bg: rgba(255, 255, 255, 0.12);
  --settings-tab-hover-bg: rgba(255, 255, 255, 0.06);
  /* Cool selection chrome — not KeyPilot text-mode orange / left-edge pulse */
  --settings-tab-active-border: color-mix(in srgb, var(--kp-color-accent, #78b4ff) 45%, transparent);
  --settings-tab-active-accent: var(--kp-color-accent, rgba(120, 180, 255, 0.95));
  --settings-tab-focus-ring: color-mix(in srgb, var(--kp-color-accent, #78b4ff) 75%, transparent);
  --font-heading: var(--kp-font-heading, Helvetica, Arial, sans-serif);
  --font-body: var(--kp-font-body, Helvetica, Arial, sans-serif);
  --font-ui: var(--kp-font-ui, Helvetica, Arial, sans-serif);
  --font-mono: var(--kp-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  /* Rectangular switch (same shape language as newtab.html) */
  --settings-ok-text: rgba(52, 211, 153, 0.95);
  --settings-err-text: rgba(248, 113, 113, 0.95);
  --settings-switch-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%);
  --settings-switch-border: rgba(255, 255, 255, 0.18);
  --settings-switch-border-hover: rgba(255, 255, 255, 0.28);
  --settings-switch-track-off: rgba(248, 113, 113, 0.15);
  --settings-switch-track-off-border: rgba(248, 113, 113, 0.35);
  --settings-switch-track-on: rgba(16, 185, 129, 0.25);
  --settings-switch-track-on-border: rgba(16, 185, 129, 0.45);
  --settings-switch-thumb: rgba(241, 245, 249, 0.88);
  --settings-switch-thumb-on: #f8fafc;
  --settings-switch-focus: 0 0 0 3px color-mix(in srgb, var(--kp-color-accent, #78b4ff) 35%, transparent);
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--kp-font-ui, var(--font-body, Helvetica, Arial, sans-serif));
  background: linear-gradient(rgb(18, 18, 18) 0%, rgb(11, 11, 11) 100%);
  color: var(--kp-color-fg, rgba(255, 255, 255, 0.92));
}

.settings-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

:host {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--kp-font-ui, Helvetica, Arial, sans-serif);
}

/* Full-height master–detail shell (in-page popover + standalone) */
.settings-app {
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.settings-app.kp-popover-embed {
  /* Host already paints the panel fill; keep embed opaque so cards never
     composite against the page during stylesheet load / FOUC. */
  background: linear-gradient(rgb(18, 18, 18) 0%, rgb(11, 11, 11) 100%);
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--settings-header-border);
  background: linear-gradient(180deg, rgba(35, 35, 35, 0.55) 0%, rgba(18, 18, 18, 0.2) 100%);
}

/* Outer KeyPilot popover titlebar owns title + close when embedded. */
.settings-app.kp-popover-embed > .header,
.kp-popover-embed .settings-app > .header,
.header[hidden] {
  display: none !important;
}

.header-text {
  min-width: 0;
}

.settings-appearance-field {
  margin: 0 0 16px;
}

.settings-appearance-field select {
  min-width: 200px;
}

.settings-theme-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-custom-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--kp-color-accent, #4a90c8);
  color: var(--kp-color-accent, #4a90c8);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Author `display` overrides UA [hidden] { display: none }; keep the attr effective. */
.settings-custom-badge[hidden] {
  display: none !important;
}

.appearance-group {
  margin: 0 0 16px;
  padding: 10px 12px 12px;
  border: 1px solid var(--settings-header-border, rgba(255,255,255,0.08));
  border-radius: 8px;
  min-width: 0;
}

.appearance-group legend {
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.appearance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 14px;
}

.appearance-span-2 {
  grid-column: 1 / -1;
}

.appearance-color-grid input[type="color"] {
  width: 100%;
  min-height: 28px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  cursor: pointer;
}

.settings-hub-grid + .settings-appearance-field {
  margin-top: 16px;
}

.settings-appearance-field .btn {
  align-self: flex-start;
}

h1 {
  margin: 0;
  font-family: var(--kp-font-heading, Helvetica, Arial, sans-serif);
  font-size: var(--kp-type-h2-size, 18px);
  letter-spacing: var(--kp-type-tracking-titlebar, 0.2px);
}

.sub {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.settings-shell {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--settings-nav-width) minmax(0, 1fr);
}

/* Left master list */
.settings-nav {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  overflow-y: auto;
  border-right: 1px solid var(--settings-header-border);
  background: var(--settings-nav-bg);
  scrollbar-width: thin;
  scrollbar-color: #4a4a4a #141414;
}

.settings-tab {
  appearance: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15px;
  padding: 9px 10px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.settings-category-visual {
  --settings-category-accent: 120, 180, 255;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(var(--settings-category-accent), 0.32);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(var(--settings-category-accent), 0.14);
  color: rgba(var(--settings-category-accent), 0.98);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.settings-category-visual[data-accent="green"] { --settings-category-accent: 74, 222, 128; }
.settings-category-visual[data-accent="blue"] { --settings-category-accent: 96, 190, 255; }
.settings-category-visual[data-accent="amber"] { --settings-category-accent: 245, 171, 74; }
.settings-category-visual[data-accent="indigo"] { --settings-category-accent: 137, 147, 255; }
.settings-category-visual[data-accent="rose"] { --settings-category-accent: 255, 117, 140; }
.settings-category-visual[data-accent="cyan"] { --settings-category-accent: 91, 226, 241; }
.settings-category-visual[data-accent="violet"] { --settings-category-accent: 194, 130, 255; }

.settings-category-icon-svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-tab:hover {
  background: var(--settings-tab-hover-bg);
  color: rgba(255, 255, 255, 0.95);
}

.settings-tab:focus-visible {
  outline: 2px solid var(--settings-tab-focus-ring);
  outline-offset: 1px;
}

/* Selected master-list item. Avoid orange inset left-edge (same visual language as
   text-mode field focus) so selecting a category never looks like typing mode. */
.settings-tab[aria-selected="true"] {
  background: var(--settings-tab-active-bg);
  border-color: var(--settings-tab-active-border);
  color: rgba(255, 255, 255, 0.98);
  box-shadow: inset 3px 0 0 var(--settings-tab-active-accent);
}

.settings-nav-group {
  margin: 10px 6px 2px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  user-select: none;
  pointer-events: none;
}

.settings-nav-group:first-of-type {
  margin-top: 6px;
}

/* Right detail pane */
.settings-detail {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px 28px;
  scrollbar-width: thin;
  scrollbar-color: #4a4a4a #141414;
}

.settings-panel {
  display: none;
  max-width: 720px;
}

.settings-panel[data-panel="overview"] {
  max-width: none;
}

.settings-panel.is-active {
  display: block;
}

.settings-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.settings-hub-tile {
  appearance: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  /* Opaque lift on the dark panel — translucent black on #121212 looked empty. */
  background: #2a2a2a;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 120ms ease, border-color 120ms ease;
}

.settings-hub-tile:hover {
  background: #333333;
  border-color: rgba(255, 255, 255, 0.28);
}

.settings-hub-tile:focus-visible {
  outline: 2px solid var(--settings-tab-focus-ring);
  outline-offset: 1px;
}

.settings-hub-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: rgba(255, 255, 255, 0.95);
}

.settings-hub-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-hub-heading .settings-category-visual {
  width: 28px;
  height: 28px;
}

.settings-hub-heading .settings-category-icon-svg {
  width: 16px;
  height: 16px;
}

.settings-hub-desc {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
}

.panel-header {
  margin-bottom: 14px;
}

.panel-header h2 {
  margin: 0 0 6px 0;
  font-size: 16px;
  letter-spacing: 0.15px;
}

.panel-lead {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.68);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.95);
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn:hover {
  border-color: rgba(255,255,255,0.28);
}

.btn-secondary {
  border-color: rgba(255,140,0,0.35);
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}

.radio input {
  transform: scale(1.1);
  flex-shrink: 0;
}

.radio-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.radio-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.radio-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.35;
}

.settings-app kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  line-height: 1.3;
}

/* Rectangular ON/OFF switch (mirrored from newtab; not pill-shaped) */
.kp-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--settings-switch-border);
  background: var(--settings-switch-bg);
  box-sizing: border-box;
}

.kp-switch:hover {
  border-color: var(--settings-switch-border-hover);
}

.kp-switch--row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.kp-switch-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.kp-switch-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.kp-switch-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.kp-switch-shortcut {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.50);
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
}

.kp-switch-state {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  min-width: 1.5rem;
  text-align: right;
  font-family: var(--font-mono);
}

.kp-switch-state[data-state="off"] {
  color: var(--settings-err-text);
}

.kp-switch-state[data-state="on"] {
  color: var(--settings-ok-text);
}

.kp-switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.kp-switch-track {
  width: 42px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid var(--settings-switch-track-off-border);
  background: var(--settings-switch-track-off);
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: background 140ms ease, border-color 140ms ease;
  box-sizing: border-box;
}

.kp-switch-thumb {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--settings-switch-thumb);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  transform: translateX(0);
  transition: transform 140ms ease, background 140ms ease;
}

.kp-switch-input:checked + .kp-switch-track {
  background: var(--settings-switch-track-on);
  border-color: var(--settings-switch-track-on-border);
}

.kp-switch-input:checked + .kp-switch-track .kp-switch-thumb {
  transform: translateX(20px);
  background: var(--settings-switch-thumb-on);
}

.kp-switch-input:focus-visible + .kp-switch-track {
  outline: none;
  box-shadow: var(--settings-switch-focus);
  border-color: var(--settings-tab-active-accent);
}

.toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}

.toggle:hover {
  border-color: rgba(255,255,255,0.22);
}

.toggle input[type="checkbox"] {
  margin-top: 2px;
  transform: scale(1.1);
}

.toggle-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle-title {
  font-size: 13px;
  font-weight: 600;
}

.toggle-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.hint {
  margin: 10px 0 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.70);
}

.subhead {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: rgba(235, 235, 235, 0.78);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}

.field-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(235, 235, 235, 0.78);
}

.field-hint {
  font-size: 11px;
  color: rgba(235, 235, 235, 0.60);
}

.select {
  background: rgba(0,0,0,0.35);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 5px;
  padding: 10px 10px;
  font-size: 13px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Two-option segmented toggle (Cursor mode, etc.) */
.seg-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.seg-toggle-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 38px;
  padding: 8px 10px;
  cursor: pointer;
  user-select: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 120ms ease, color 120ms ease;
}

.seg-toggle-option:last-child {
  border-right: none;
}

.seg-toggle-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.seg-toggle-option:has(input:checked) {
  background: rgba(120, 180, 255, 0.22);
  color: rgba(255, 255, 255, 0.98);
}

.seg-toggle-option:has(input:focus-visible) {
  outline: 2px solid rgba(120, 180, 255, 0.75);
  outline-offset: -2px;
  z-index: 1;
}

.seg-toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.seg-toggle-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15px;
  text-align: center;
  line-height: 1.25;
  color: rgba(235, 235, 235, 0.72);
}

.seg-toggle-option:has(input:checked) .seg-toggle-text {
  color: rgba(255, 255, 255, 0.98);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 10px;
  align-items: center;
}

.number {
  background: rgba(0,0,0,0.35);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 5px;
  padding: 10px 10px;
  font-size: 13px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

.preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}

.preview-title {
  font-size: 12px;
  font-weight: 700;
}

.preview-box {
  height: 72px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.45);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.02);
}

.preview-box img {
  width: 60px;
  height: 60px;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.btn-small {
  padding: 8px 10px;
}

.divider {
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 4px 0 2px;
}

.about-card {
  padding: 14px 12px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
}

.about-brand {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

/* Narrow popover / window: stack nav above detail */
@media (max-width: 640px) {
  .settings-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .settings-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none;
    border-bottom: 1px solid var(--settings-header-border);
    padding: 8px;
    gap: 6px;
  }

  .settings-tab {
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .settings-tab[aria-selected="true"] {
    box-shadow: inset 0 -3px 0 var(--settings-tab-active-accent);
  }

  .settings-nav-group {
    display: none;
  }
}

.settings-nav::-webkit-scrollbar,
.settings-detail::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.settings-nav::-webkit-scrollbar-corner,
.settings-detail::-webkit-scrollbar-corner {
  background: #141414;
}
.settings-nav::-webkit-scrollbar-track,
.settings-detail::-webkit-scrollbar-track {
  background: #141414;
  border-left: 1px solid #111;
  border-top: 1px solid #111;
}
.settings-nav::-webkit-scrollbar-thumb,
.settings-detail::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #555 0%, #4a4a4a 45%, #3a3a3a 100%);
  border: 1px solid #111;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  min-height: 28px;
  min-width: 28px;
}
.settings-nav::-webkit-scrollbar-thumb:hover,
.settings-detail::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #666 0%, #5c5c5c 45%, #444 100%);
}
.settings-nav::-webkit-scrollbar-thumb:active,
.settings-detail::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #4a90c8 0%, #3a6a94 100%);
  border-color: #2a4a66;
}
