@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700&display=swap');

.navbar-container {
  -webkit-app-region: drag;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0px;
  user-select: none;
}

/* .chart-logo lives in Chart/chart.css now — it belongs with the chart,
   not the navbar, and needs to load in pop-out windows too. */

/* Logo button — also the dropdown trigger. Compact (matches stock-terminal
   PanelToolbar) with a small caret indicating it's interactive. */

.navbar-logo-button {
  -webkit-app-region: no-drag;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  height: 28px;
  min-width: 42px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
  color: var(--text);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.navbar-logo-button:hover,
.navbar-logo-button.open {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.navbar-logo-img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.navbar-logo-caret {
  font-size: 12px;
  opacity: 0.7;
  line-height: 1;
}

/* Portaled dropdown menu — fixed-positioned, z-index above panel content
   and other floating elements. */

.navbar-dropdown {
  min-width: 220px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 0;
  z-index: 10000;
  box-shadow: 0 8px 24px var(--shadow);
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: var(--text-dim);
  user-select: none;
}

.navbar-dropdown-group + .navbar-dropdown-group {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 4px;
}

.navbar-dropdown-category {
  padding: 4px 12px 2px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.navbar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: 0 4px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.navbar-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.navbar-dropdown-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.navbar-dropdown-label {
  flex: 1;
}

.navbar-dropdown-pin {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.1s ease;
  padding: 0 2px;
}

.navbar-dropdown-pin:hover {
  color: #ffd96b;
}

.navbar-dropdown-pin.pinned {
  color: #f5c542;
}

.nav-items {
  display: flex;
  align-items: center;
  flex-grow: 1;
  gap: 6px;
  margin-left: 6px;
  text-align: center;
}

.nav-item {
  -webkit-app-region: no-drag;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Uniform box for icon chips only — so SVG-internal padding differences
   (Trade icon ends at the right edge, News icon has whitespace inside
   its viewbox, etc.) don't translate into visibly uneven gaps between
   chips. Excludes the clock / ws-status nav-items which size to their
   own content. Targeting `.nav-item` that contains a `.nav-img` keeps
   this rule self-contained — no extra modifier class on the JSX side. */

.nav-item:has(.nav-img) {
  justify-content: center;
  width: 32px;
  height: 28px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.nav-item:has(.nav-img):hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-img {
  width: 20px;
  height: 20px;
  /* Force all navbar icons to white in dark theme regardless of the SVG's
     native fill, so newly-added icons (CLI, AddChart) look consistent
     with the existing ones without needing to edit each SVG. */
  filter: brightness(0) invert(1);
}

.nav-label {
  font-weight: 600;
  font-size: 15px;
  line-height: 18px;
  color: var(--text);
  margin-left: 5px;
}

.nav-item.clock {
  color: var(--text);
}

.bouncy {
  transition:
    transform 0.1s ease,
    opacity 0.1s ease;
}

.bouncy:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

.bouncy:active {
  transform: translateY(1px);
}

.nav-control-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 9px;
  -webkit-app-region: none;
}

.modal-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  -webkit-app-region: none;
  background-color: var(--loss);
}

.min-button {
  background-color: #fcff67;
}

.close-button {
  background-color: var(--loss);
}

.terminal-blur {
  background-color: #656565;
}

.control-button:hover {
  opacity: 0.6;
}

.refresh-icon {
  transition: transform 0.5s ease;
  filter: invert(100%);
}

.nav-item.refresh:hover .refresh-icon {
  transform: rotate(360deg);
}

.nav-item.refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.049);
  border: 1px solid transparent;
  padding: 6px;
  cursor: pointer;
  color: white;
  font-weight: 600;
  font-size: 15px;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
  border-color: var(--border-light);
}

.nav-item.refresh:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--border);
}

.sleep-mode-active {
  position: relative;
}

.sleep-mode-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 185, 255, 0.05);
  pointer-events: none;
}
.dragbar {
  position: absolute;
  -webkit-app-region: drag;
  height: 15px;
  width: 100%;
}

.logo {
  position: absolute;
  width: 35px;
  height: 50px;
  left: 44px;
  top: 32px;
}

.bg-logo {
  position: absolute;
  width: 196px;
  height: 322px;
  left: 1023px;
  top: 300px;
}

.login-title {
  position: absolute;
  width: 71px;
  height: 29px;
  left: 170px;
  top: 229px;
  font-weight: 600;
  font-size: 24px;
  line-height: 29px;
  color: var(--text);
}

.login-des {
  position: absolute;
  width: 510px;
  height: 21px;
  left: 170px;
  top: 290px;
  font-weight: 400;
  font-size: 17px;
  line-height: 21px;
  color: var(--text);
}

.login-label {
  position: absolute;
  width: 32px;
  height: 22px;
  left: 170px;
  top: 340px;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: var(--text);
}

.login-input {
  position: absolute;
  width: 528px;
  height: 50px;
  left: 170px;
  top: 374px;

  background: rgba(251, 158, 181, 0.06);
  border: 1.75px solid #fb9eb5;
  border-radius: 10px;
  padding-left: 20px;

  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  color: var(--text);
}

.login-input:focus {
  outline: none;
}

.login-input::placeholder {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  color: var(--text);
  opacity: 0.2;
}

.login-button {
  position: absolute;
  width: 528px;
  height: 50px;
  left: 170px;
  top: 470px;
  background: #fa5d82;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  cursor: pointer;
  border: none;
}

.bg-bottom-flower1 {
  position: absolute;
  width: 281px;
  height: 295px;
  left: -79px;
  top: 816px;

  opacity: 0.1;
}

.bg-bottom-flower2 {
  position: absolute;
  width: 160px;
  height: 168px;
  left: 61px;
  top: 892px;

  opacity: 0.1;
}

.bg-top-flower1 {
  position: absolute;
  width: 160px;
  height: 168px;
  right: 0;
  top: -80px;
  opacity: 0.1;
  transform: rotate(-172.75deg);
}

.bg-top-flower2 {
  position: absolute;
  width: 281px;
  height: 295px;
  right: -130px;
  top: -120px;

  opacity: 0.1;
  transform: rotate(-172.75deg);
}

.wrapper {
  width: 696px;
  height: 396px;
  background: #161929;
  position: relative;
  overflow: hidden;
}

.background {
  width: 700px;
  height: 400px;
  background: #161929;
  background-size: 100%, 100%;
  position: absolute;
  background-position-y: -50px;
}

.background__image {
  background: url('./pvp_auth-CEyAiODh.png') top right no-repeat;
  position: absolute;
  z-index: 3;
  width: 100%;
  height: 100%;
}

.foreground {
  position: absolute;
  width: 700px;
  height: 400px;
  background: #161929;
  background-size: 100%, 100%;
  background-position-y: -30px;
}

.dragbar {
  -webkit-app-region: drag;
  position: absolute;
  width: 100%;
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding: 8px;
  z-index: 3;
}

.welcome__Text {
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 11px;
  letter-spacing: 0em;
  text-align: left;
  color: var(--text-muted);
}

.soft__name {
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 17px;
  letter-spacing: 0em;
  text-align: left;
  color: var(--text);
  margin-top: 6px;
}

.bottom {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 9px;
}

.foreground .bottom {
  position: relative;
  top: calc(50% - 60px);
  justify-content: flex-end;
  z-index: 2;
  right: 37px;
}

.bottom__left {
  background: linear-gradient(115.31deg, #ce7cff 0%, #734bff 100%);
  width: 131px;
  height: 2px;
  border-radius: 4px;
}

.bottom__right {
  width: 3px;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(115.31deg, #ce7cff 0%, #734bff 100%);
}

/* Animations */
@keyframes tail {
  0% {
    width: 0;
  }

  30% {
    width: 100px;
  }

  100% {
    width: 0;
  }
}

@keyframes shining {
  0% {
    width: 0;
  }
  50% {
    width: 30px;
  }
  100% {
    width: 0;
  }
}

@keyframes shooting {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(320px);
  }
}

@keyframes floating {
  from {
    transform: translate(0, 0px);
  }
  65% {
    transform: translate(0, 5px);
  }
  to {
    transform: translate(0, -0px);
  }
}

.form__wrapper {
  position: relative;
  top: calc(50% - 83px);
  height: 128px;
  display: flex;
  flex-direction: column;
  z-index: 3;
  background: #1a1d2d;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 28px 102px;
  margin: 0 133px;
  text-align: center;
  justify-content: center;
}

.overlay {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  top: 25px;
  left: 37px;
}

.contact__us {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  top: calc(50% - 60px);
  justify-content: center;
  z-index: 2;
}

.help {
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 12px;
  letter-spacing: 0em;
  text-align: left;
  color: var(--text-muted);
}

.contact__us a {
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 12px;
  letter-spacing: 0em;
  text-align: left;
  color: #ce7cff;
  text-decoration: none !important;
}

.input__login {
  display: flex;
  justify-content: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: 0em;
  text-align: left;
  color: #ce7cff;
}

.enter__license {
  color: var(--text-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 11px;
  letter-spacing: 0em;
  text-align: center;
  margin-top: 13px;
}

.input {
  margin-top: 15px;
  border-radius: 5px;
  font-size: 10px;
  padding: 12px 0px 12px 18px;
  letter-spacing: 0.7px;
  background-color: transparent;
  border: 1px solid #ce7cff;
  outline: none;
  color: var(--text);
  font-weight: 600;
  transition: 0.2s ease;
  margin-bottom: 17px;
  width: 100%;
}

.input::placeholder {
  color: var(--text-muted);
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 40px;
  margin: 0 auto;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.2s ease;
  font-weight: bold;
  background:
    linear-gradient(115.31deg, #74ff79 0%, #60ffbc 100%),
    linear-gradient(0deg, #ffffff, #ffffff);
  color: #0d0c10;
  height: 36px;
  border: none;
  outline: none;
  border-radius: 5px;
  width: 110px;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(80%);
}

.button--countdown {
  width: 100%;
  padding: 12px 10px;
  white-space: nowrap;
  background: transparent;
  border: 1px solid #ce7cff;
  color: #ce7cff;
}

.button--countdown:hover {
  transform: translateY(-2px);
  filter: none;
  background: rgba(206, 124, 255, 0.1);
}

.wipe-key-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(115.31deg, #ff6b6b 0%, #ff9999 100%);
  color: var(--text);
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 10px;
  font-family: 'Inter';
  transition: 0.2s ease;
}

.wipe-key-button:hover {
  transform: translateY(-2px);
  filter: brightness(80%);
}

.error__text {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff3c5d;
  font-size: 14px;
  font-weight: bold;
  margin-top: 3px;
  font-family: 'Inter';
}

.login__text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
}

.loading {
  width: 100%;
  display: flex;
  justify-content: center;
}

#success__gif,
#loading__gif {
  display: block;
  width: 30%;
  /*height: 50px;*/
}
.loading {
  height: 81px;
}
.form-group {
  margin-bottom: 0.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 11px;
  color: var(--text-dim);
}

.form-group input {
  width: 100%;
  max-width: 420px;
  padding: 0.3rem;
  background: var(--bg-input);
  border-radius: 4px;
  color: var(--text);
  border: 1px solid var(--border);
}

.connection-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.sound-select {
  min-width: 160px;
  padding: 0.3rem;
  background: var(--bg-input);
  border-radius: 4px;
  color: var(--text);
  border: 1px solid var(--border);
}
/* ════════════════════════════════════════════════════════════════════════
   Settings — compact design system.
   Everything new is scoped under .tabs-wrapper (settings window only) so the
   main terminal UI is untouched. Legacy bare-element rules (select, checkbox)
   are kept verbatim below because they leak app-wide and other surfaces may
   depend on them; the scoped rules override them inside settings.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Legacy app-wide rules (unchanged, do not extend) ── */
input[type='checkbox'] {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid #d8d8d8;
  margin-right: 5px;
  vertical-align: middle;
}

select {
  width: 110px;
}

/* ── Base ── */
.tabs-wrapper {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
}

/* Content column: tighter padding, capped width so pages don't sprawl. */
.tabs-wrapper .react-tabs__tab-panel--selected {
  padding: 12px 16px 28px;
  max-width: 840px;
}

/* ── Section headings (.api-key-label / .setting-label) ──
   Demoted from big yellow text to quiet section headers with a divider. */
.tabs-wrapper .api-key-label,
.tabs-wrapper .setting-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--text);
  margin: 18px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}

.tabs-wrapper .react-tabs__tab-panel--selected > .api-key-label:first-child,
.tabs-wrapper .react-tabs__tab-panel--selected > .setting-label:first-child,
.tabs-wrapper
  .react-tabs__tab-panel--selected
  > div:first-child
  > .api-key-label:first-child,
.tabs-wrapper
  .react-tabs__tab-panel--selected
  > div:first-child
  > .setting-label:first-child {
  margin-top: 0;
}

/* ── Grouped "card" layout ──
   Wrap a tab's content in <div className="settings-cards"> and bundle related
   rows into <div className="settings-group"> cards (each with a
   .settings-group-title). Cards pack into two balanced columns by height, so a
   long tab reads as a handful of tidy, labelled groups instead of one tall
   stack. This only changes grouping/order within a tab, not which tab a setting
   lives in. */
.tabs-wrapper .settings-cards {
  column-count: 2;
  column-gap: 12px;
}

@media (max-width: 620px) {
  .tabs-wrapper .settings-cards {
    column-count: 1;
  }
}

.tabs-wrapper .settings-group {
  break-inside: avoid;
  display: block;
  margin: 0 0 12px;
  padding: 10px 12px 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.tabs-wrapper .settings-group-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
}

/* Highlight a card whose settings are global (apply to every coin/symbol),
   to set it apart from the per-coin cards around it. */
.tabs-wrapper .settings-group--global {
  border-left: 2px solid var(--accent);
}
.tabs-wrapper .settings-group--global .settings-group-title {
  color: var(--text);
}

/* Small inline tag, e.g. "Applies to all", shown next to a card title. */
.tabs-wrapper .settings-group-tag {
  margin-left: 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 1px 5px;
  vertical-align: middle;
}

/* Rows inside a card: label grows, control hugs the right edge. */
.tabs-wrapper .settings-group .grid-container {
  grid-template-columns: 1fr max-content;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  column-gap: 10px;
  margin-bottom: 6px !important;
}

.tabs-wrapper .settings-group .settings-info {
  margin: 0 0 8px;
}

/* ── Label/control rows ──
   The shared .grid-container (50/50 columns in main.css) is what made pages
   feel wide and spread out: a fixed label column with content-hugging
   controls keeps everything together. !important is needed to beat the
   inline marginBottom sprinkled through the pages. */
.tabs-wrapper .grid-container {
  grid-template-columns: 230px;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  column-gap: 10px;
  min-height: 24px;
  margin-bottom: 5px !important;
}

/* Demote the inline-bolded row labels; calm, uniform weight. */
.tabs-wrapper .grid-container > div:first-child > span {
  font-weight: 500 !important;
}

.tabs-wrapper .grid-row {
  display: grid;
  grid-template-columns: 230px max-content max-content;
  align-items: center;
  column-gap: 10px;
  min-height: 24px;
  margin-bottom: 5px;
}

.label {
  font-weight: 500;
}

/* ── Form controls ── */
.tabs-wrapper select {
  width: auto;
  min-width: 110px;
  height: 24px;
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  padding: 0 6px;
}

.tabs-wrapper input[type='text'],
.tabs-wrapper input[type='number'],
.tabs-wrapper input[type='password'] {
  height: 24px;
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  padding: 0 8px;
  box-sizing: border-box;
}

.tabs-wrapper input[type='text']:focus,
.tabs-wrapper input[type='number']:focus,
.tabs-wrapper input[type='password']:focus,
.tabs-wrapper select:focus,
.tabs-wrapper textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.tabs-wrapper input::placeholder,
.tabs-wrapper textarea::placeholder {
  color: var(--text-muted);
}

.tabs-wrapper input[type='checkbox'] {
  width: 14px;
  height: 14px;
  border: none;
  accent-color: var(--accent);
  margin-right: 5px;
  vertical-align: middle;
  cursor: pointer;
}

/* ── Buttons ── */
.tabs-wrapper button {
  background: var(--bg-button);
  color: var(--text);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  padding: 4px 10px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.tabs-wrapper button:hover:not(:disabled) {
  background: var(--bg-button-hover);
}

.tabs-wrapper button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Icon-only reorder arrows: strip the button chrome. */
.tabs-wrapper .vote-button {
  background: transparent;
  border: none;
  padding: 2px 3px;
  border-radius: 3px;
}

.tabs-wrapper .vote-button:hover:not(:disabled) {
  background: var(--bg-hover);
}

.tabs-wrapper .vote-button:disabled {
  opacity: 0.25;
}

/* ── Inputs with fixed roles ── */
.param-input {
  background: var(--bg-input);
  width: 320px;
  height: 24px;
  border-radius: 4px;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0 8px;
}

.param-input:focus {
  outline: none;
  border: 1px solid var(--accent);
}

.settings-input {
  background: var(--bg-input);
  width: 100px;
  height: 24px;
  border-radius: 4px;
  color: var(--text);
  /* Use the theme border token (not transparent) so the field stays visible on
     themes where --bg-input matches the page background, e.g. Gruvbox/Cobalt. */
  border: 1px solid var(--border);
  padding: 0 8px;
  margin-top: 2px;
}

.settings-input:focus {
  outline: none;
  border: 1px solid var(--accent);
}

.label-input-vertical {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
  gap: 3px;
}

.tabs-wrapper .label-input-vertical label {
  font-size: 11px;
  color: var(--text-dim);
}

/* ── Tables ── */
.tabs-wrapper table {
  table-layout: auto;
  border-collapse: collapse;
  font-size: 12px;
  width: 100%;
  color: var(--text-dim);
}

.tabs-wrapper table th {
  text-align: left;
  white-space: nowrap;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-bottom: 1px solid var(--border);
}

.tabs-wrapper table td {
  text-align: left;
  padding: 4px 8px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
}

.tabs-wrapper table tbody tr:hover {
  background-color: var(--bg-hover);
}

.trading-size-table-normal th {
  font-weight: normal !important;
}

/* ── Info tooltips ── */
.tabs-wrapper a[data-tooltip-id] img {
  width: 13px;
  height: 13px;
  opacity: 0.55;
  vertical-align: middle;
}

.tabs-wrapper a[data-tooltip-id]:hover img {
  opacity: 1;
}

/* ── Misc ── */
.tabs-wrapper .reveal-hide-button {
  width: 56px;
  height: 24px;
  background-color: var(--bg-button);
  border-radius: 4px;
  border: 1px solid var(--border-light);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  margin-left: 5px;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.15s;
}

.tabs-wrapper .reveal-hide-button:hover {
  background-color: var(--bg-button-hover);
}

.settings-info {
  font-size: 11px;
  margin: 8px 0;
  color: var(--text-muted);
  font-weight: 400;
}

/* Slim notice bar (e.g. "changes require a restart"). */
.settings-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  padding: 5px 10px;
  margin-bottom: 12px;
}

/* Settings Search */
.tab-list-container {
  display: flex;
  flex-direction: column;
  width: 200px;
  flex-shrink: 0;
  height: 100%;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.settings-search-container {
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.settings-search-input {
  background: var(--bg-input);
  width: 180px;
  height: 24px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
}

.settings-search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.settings-search-input::placeholder {
  color: var(--text-muted);
}

.tabs-wrapper .settings-search-clear {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.tabs-wrapper .settings-search-clear:hover {
  background: transparent;
  color: var(--text);
}

.search-results-container {
  padding: 12px 16px;
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}

.search-results-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.search-results-empty {
  color: var(--text-muted);
  font-size: 12px;
  padding: 20px 10px;
}

.search-results-category-group {
  margin-bottom: 6px;
}

.search-result-category {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 10px;
  margin-bottom: 4px;
  font-weight: 600;
}

.search-result-item {
  padding: 6px 8px;
  background: var(--bg-alt);
  margin-bottom: 4px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.search-result-item:hover {
  background: var(--accent);
}

.search-result-item:focus {
  outline: 1px solid var(--accent);
}

.search-result-label {
  font-weight: 600;
  color: var(--text);
  font-size: 12px;
}

.search-result-description {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-result-section {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-highlight {
  background-color: rgba(72, 154, 236, 0.4);
  color: var(--text);
}
/* Chrome for the dedicated, frameless Settings window. The titlebar is the
   only OS drag region; everything else (incl. the close button) opts out. */
.settings-window-root {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: var(--bg-base);
  color: var(--text);
}

.settings-window-titlebar {
  -webkit-app-region: drag;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  flex-shrink: 0;
  /* No right padding — the close control runs flush to the window corner,
     native-window style. */
  padding: 0 0 0 12px;
  background: var(--bg-navbar);
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.settings-window-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.settings-window-titlebar-right {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 10px;
}

.settings-window-version {
  font-size: 11px;
  color: var(--text-muted);
}

.settings-window-close {
  -webkit-app-region: no-drag;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease;
}

.settings-window-close:hover {
  background: #e81123;
  color: #fff;
}

.settings-window-body {
  flex: 1;
  min-height: 0;
  /* Flush, no outer padding — the tab menu and the per-tab content each own
     their own scroll region (see tabs.css). */
  padding: 0;
  overflow: hidden;
  display: flex;
}

/* react-tabs injects a <div class="react-tabs"> wrapper between the body and
   .tabs-wrapper; stretch the whole chain so the columns can fill the window. */
.settings-window-root .react-tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
