:root {
  --content-max: 66.666vw;
  --page-bg: #050505;
  --card-bg: #020202;
  --button-preview-bg: #282725;
  --button-border: #474747;
  --bg-overlay-alpha: 1;
  --button-overlay-alpha: 1;
  --page-bg-image: none;
  --button-bg-image: none;
  --button-bg: none;
  --text-color: #cbcbcb;
  --dark-input-border: #969696;
  --input-border-width: 1px;
  --link-color: #e9c770;
  --link-hover-color: #f2d35e;
  --icon-button-color: var(--link-color);
  --topbar-active-bg: #111111;
  --topbar-divider: #2a2a2a;
  --topbar-hover-color: #cddaec;
  --topbar-bg: transparent;
  --font-sans: "Noto Sans", sans-serif;
  --font-logo: "Noto Sans", sans-serif;
  --button-radius: 4px;
  --topbar-tab-pad-top: 2px;
  --topbar-tab-hitbox: 36px;
  --topbar-font-weight: 400;
  --topbar-text-offset: 12px;
  --portfolio-divider: #4c4f4e;
  --footer-offset: 12px;
  --site-header-height: 64px;
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  background-color: var(--page-bg);
  background-image:
    linear-gradient(rgba(0, 0, 0, var(--bg-overlay-alpha)), rgba(0, 0, 0, var(--bg-overlay-alpha))),
    var(--page-bg-image);
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  color: var(--text-color) !important;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  overflow-y: auto;
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

body {
  margin: 0;
  line-height: 1.35;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

body.linklist-page,
body.automatic-search-page,
body.trade-page,
body.watchlist-page,
body.settings-page,
body.widget-page {
  height: auto;
  padding-top: var(--site-header-height);
}

body.linklist-page .site-header,
body.automatic-search-page .site-header,
body.trade-page .site-header,
body.watchlist-page .site-header,
body.settings-page .site-header,
body.widget-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background-color: var(--page-bg);
  background-image:
    linear-gradient(rgba(0, 0, 0, var(--bg-overlay-alpha)), rgba(0, 0, 0, var(--bg-overlay-alpha))),
    var(--page-bg-image);
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

body.device-blocked {
  overflow: hidden;
}

.device-block-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 9999;
}

.device-block-message {
  max-width: 720px;
}

a, a:link, a:visited, a:hover, a:active { color: var(--link-color) !important; text-decoration: underline; }
a:hover, a:focus-visible { color: var(--link-hover-color) !important; }
a, button, select { cursor: pointer; }
select:disabled,
option:disabled,
optgroup:disabled { cursor: default; }
select:not(:disabled),
select:not(:disabled) option:not(:disabled),
select:not(:disabled) optgroup:not(:disabled) { cursor: pointer; }
input[type="text"], input[type="number"], input[type="search"], textarea { cursor: text; }
html.site-loading,
html.site-loading * { cursor: wait !important; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  display: inline-block;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

header { width: 100%; display: flex; justify-content: flex-start; align-items: flex-end; padding: 6px 16px 0; overflow: hidden; }
header:not(.site-header) > a { margin-left: calc((100vw - var(--content-max)) / 2); }
.logo-text {
  display: inline-block;
  height: 32px;
  line-height: 32px;
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: 25px;
  color: var(--text-color);
}
.site-header { padding: 0; align-items: stretch; flex-direction: column; justify-content: flex-start; position: relative; overflow: visible; }
.topbar { width: 100%; background: var(--topbar-bg); position: relative; }
.topbar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 4px 16px 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: nowrap;
  padding-bottom: 2px;
  min-height: 64px;
}
.topbar-logo { display: inline-flex; align-items: center; }
.topbar-logo { align-self: center; }
.topbar-logo .logo-text { transform: translateY(-2px); }
.topbar-logo,
.topbar-logo:link,
.topbar-logo:visited,
.topbar-logo:hover,
.topbar-logo:active {
  color: var(--text-color) !important;
  text-decoration: none !important;
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  margin-left: auto;
}
.topbar-fullscreen {
  display: none !important;
}
.topbar-tab {
  padding: calc(var(--topbar-tab-pad-top) + var(--topbar-tab-hitbox)) 12px 6px;
  margin-top: calc(-1 * var(--topbar-tab-hitbox));
  text-decoration: none;
  background: transparent;
  border-bottom: 3px solid transparent;
  color: var(--text-color) !important;
  margin-bottom: -1px;
  font-weight: var(--topbar-font-weight);
}
.topbar-tab-label {
  display: inline-block;
  position: relative;
  top: calc(-1 * var(--topbar-text-offset));
}
.topbar-tab:link,
.topbar-tab:visited,
.topbar-tab:active,
.topbar-tab:focus-visible {
  text-decoration: none !important;
  color: var(--text-color) !important;
}
.topbar-tab:hover {
  text-decoration: none !important;
  color: var(--topbar-hover-color) !important;
}
.topbar-feedback-link {
  position: absolute;
  right: 12px;
  top: 0;
  width: 44px;
  height: var(--site-header-height);
  margin: 0;
  padding: 0;
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: var(--text-color) !important;
  z-index: 12;
}
.topbar-feedback-link:link,
.topbar-feedback-link:visited,
.topbar-feedback-link:active,
.topbar-feedback-link:focus-visible {
  text-decoration: none !important;
  color: var(--text-color) !important;
}
.topbar-feedback-link:hover {
  text-decoration: none !important;
  color: var(--topbar-hover-color) !important;
}
.topbar-feedback-icon.material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
  position: static;
}
.topbar-tab.active {
  background: var(--topbar-active-bg);
  border-bottom-color: var(--link-color);
  position: relative;
}
.topbar-tab.active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -32px;
  height: 32px;
  background: var(--topbar-active-bg);
}
.topbar-divider {
  width: 100vw;
  height: 1px;
  background: var(--topbar-divider);
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  transform: none;
  z-index: 0;
}

main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 16px; }

.card {
  padding: 16px;
  border: none;
  border-radius: 4px;
  min-height: 0;
  background: transparent !important;
  flex: 1;
  overflow-x: hidden;
  overflow-y: visible;
}
.page-shell {
  flex: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 16px 64px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
body.trade-page .page-shell,
body.watchlist-page .page-shell,
body.automatic-search-page .page-shell {
  padding-top: 1vh;
}
body.trade-page .page-shell { padding-bottom: 96px; }
body.settings-page .page-shell { justify-content: center; padding-bottom: 0; }
body.settings-page .card.full { flex: 0 0 auto; }
.home .page-shell { justify-content: center; align-items: center; }
.linklist-page .card ul,
.linklist-page .card ul li { text-align: center; }
#tvws-content { text-align: center; }
.linklist-page #tvws-content { text-align: left; }
.linklist-page .card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home .card { position: relative; flex: 0 0 auto; justify-content: center; align-items: center; }
.button-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.automatic-search-page .button-list {
  gap: 2px;
  align-items: flex-start;
}
.button-list li { padding: 0; }
.button-list a,
.button-list button {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--button-border);
  border-radius: var(--button-radius);
  text-decoration: none;
  width: 100%;
  max-width: 2170px;
  margin: 0 auto;
  background-color: var(--button-preview-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--text-color) !important;
  font-size: calc(1.1rem + 7.5px);
  font-family: inherit;
  cursor: pointer;
}
.automatic-search-page .button-list a,
.automatic-search-page .button-list button {
  display: inline-block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 2px 8px !important;
  font-size: inherit !important;
  line-height: 1.35 !important;
  border: 1px solid #4a5461;
  border-radius: var(--button-radius);
  background-color: var(--button-preview-bg);
  background-image: none;
  background-repeat: no-repeat;
  background-size: auto;
  color: var(--text-color) !important;
  text-decoration: none !important;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.button-list a:hover,
.button-list a:focus-visible,
.button-list button:hover,
.button-list button:focus-visible {
  text-decoration: none;
}
.card.full { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.widget-page .card.full { padding: 0; }
.widget-page .page-shell { padding: 0; width: 100%; max-width: 100%; margin: 0; }
.widget-page .card.full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.widget-page .widget-fill { min-height: 0; flex: 1; }
.news-card { flex: 0 0 auto; width: 100%; }
.widget-fill { flex: 1; position: relative; min-height: calc(100vh - 200px); }
.widget-fill .tradingview-widget-container,
.widget-fill .tradingview-widget-container__widget { width: 100%; height: 100%; }
.widget-fill .tradingview-widget-container { position: absolute; inset: 0; }


#research-form { display: block; margin-bottom: 2px; }
#research-form .field { width: 100%; }
#research-form label { display: flex; align-items: flex-end; flex-wrap: wrap; line-height: 1.2; min-height: 2.4em; margin: 0; font-size: calc(1.1rem + 7.5px); }
.ticker-logo { height: 1.05em; width: auto; margin-left: 8px; margin-right: 2px; align-self: flex-end; transform: translateY(-2px); object-fit: contain; }
#research-q {
      width: 100%;
      padding: 4px 8px;
      border-radius: 4px;
      background-color: #282725 !important;
    border: var(--input-border-width) solid var(--dark-input-border) !important;
    color: var(--text-color);
    font-family: inherit;
  }
#research-q:focus {
  outline: none;
  box-shadow: none;
}
.primary { padding: 8px 12px; border: 1px solid currentColor; border-radius: 4px; background: transparent; }
#research-go.primary {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: inherit;
  cursor: pointer;
  line-height: inherit;
  font-size: calc(1.1rem + 7.5px);
}
#research-go.primary:hover,
#research-go.primary:focus-visible {
  text-decoration: underline;
  background: transparent !important;
  border-color: transparent !important;
  outline: none;
}

body :not(button):not(.primary):not(.primary *):not(script):not(style):not(.trade-full-name):not(.logo-text):not(.material-symbols-outlined) { font-size: 1.1rem !important; }
html.light-mode input[type="text"],
html.light-mode input[type="number"],
html.light-mode input[type="search"],
html.light-mode input[type="email"],
html.light-mode input[type="url"],
html.light-mode textarea,
body.light-mode input[type="text"],
body.light-mode input[type="number"],
body.light-mode input[type="search"],
body.light-mode input[type="email"],
body.light-mode input[type="url"],
body.light-mode textarea {
  background-color: #ffffff !important;
  border: 1px solid #c0c0c0 !important;
  color: #1a1a1a !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
html.light-mode #research-q,
html.light-mode #trade-q,
html.light-mode #trade-amount,
html.light-mode .trade-invest-toggle,
html.light-mode .trade-invest-menu,
html.light-mode .trade-invest-option,
html.light-mode #watchlist-q,
html.light-mode #setup-cash-amount,
html.light-mode #settings-cash-amount,
html.light-mode .quote-note-input,
body.light-mode #research-q,
body.light-mode #trade-q,
body.light-mode #trade-amount,
body.light-mode .trade-invest-toggle,
body.light-mode .trade-invest-menu,
body.light-mode .trade-invest-option,
body.light-mode #watchlist-q,
body.light-mode #setup-cash-amount,
body.light-mode #settings-cash-amount,
body.light-mode .quote-note-input {
    background-color: #ffffff !important;
    border: var(--input-border-width) solid #c0c0c0 !important;
    color: #1a1a1a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
      border-radius: 4px !important;
    }
#research-links, #research-links * { font-size: 1.05rem !important; }
#research-links {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
}
#research-links a,
#research-links button {
  width: 100%;
  max-width: none;
  margin: 0;
}

.linklist { list-style: none; padding: 0; margin: 8px 0 0; width: 100%; overflow-x: hidden; }
.card ul { list-style: none; margin: 0; padding: 0; }
.card ul:not(.linklist):not(.quote-list) > li { padding: 2px 0; line-height: 1.25; }
.home-welcome { width: 100%; text-align: left; }
.home .card { overflow: hidden; }
.home-theme-creature-image {
  position: fixed;
  left: 76.1%;
  top: 20.3%;
  width: 17.8%;
  height: 59.8%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.home-welcome p { margin: 0 0 12px; text-indent: 0; text-align: left; }
body.home { overflow-x: hidden; }
body.home .page-shell { max-width: 100%; overflow-x: hidden; }
.home-info {
  vertical-align: super;
  font-size: 0.8em;
  line-height: 0;
  text-decoration: none !important;
}
.home-info:link,
.home-info:visited,
.home-info:hover,
.home-info:active,
.home-info:focus-visible {
  text-decoration: none !important;
}
.home-welcome-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  text-align: left;
}
.home-welcome-list li {
  text-align: left;
  padding: 2px 0;
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  line-height: 1.2;
}
.home-welcome-list li::before {
  content: "";
  width: 0.36em;
  height: 0.36em;
  background: currentColor;
  flex: 0 0 auto;
  margin-top: calc((1.2em - 0.36em) / 2 + 0.08em);
}
.home-welcome-text { display: block; }
.home .card ul,
.home .card ul li { text-align: left; }
.linklist li { padding: 12px 0; border-top: 1px solid #9aa0a6; }
.linklist li:first-child { border-top: 1px solid #9aa0a6; }
.linklist a { word-break: break-word; overflow-wrap: anywhere; white-space: normal; display: block; max-width: 100%; }
.automatic-search-page .linklist li,
.automatic-search-page .linklist li:first-child { border-top: none; }

.automatic-search-page #research-links { margin-top: 0; }
.automatic-search-page #research-links li { padding: 4px 0; }
.automatic-search-page #research-links a { line-height: 1.15; }
.automatic-search-page label { font-size: calc(1.1rem + 7.5px) !important; }
.automatic-search-page .card { padding-top: 0; }
.automatic-search-page a { text-decoration: none; }
.automatic-search-page .linklist a { display: inline; max-width: none; }
.automatic-search-page .linklist a { text-decoration: underline; }

.research-extra {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.research-feedback-row a { text-decoration: underline; }
.research-next-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.research-next-label { color: var(--text-color); }

.trade-page #trade-form { display: block; margin: 0 0 2px; }
.trade-page #trade-form label { display: flex; align-items: flex-end; flex-wrap: wrap; line-height: 1.2; min-height: 2.4em; margin: 0; font-size: calc(1.1rem + 7.5px); }
.trade-page .card { padding-top: 0; }
.trade-card { display: flex; flex-direction: column; gap: 0; position: relative; padding-bottom: 72px; }
.trade-top { flex: 0 0 auto; }
.trade-portfolio { flex: 1 1 auto; overflow-y: visible; overflow-x: visible; }
.trade-portfolio { border-top: none; padding-top: 0; }
body.trade-has-symbol .trade-portfolio { border-top: none; padding-top: 0; }
#portfolio-details { width: 100%; }
.trade-chart { width: 100%; height: 40vh; min-height: 240px; max-height: 520px; }
.trade-chart { margin-top: 0; margin-bottom: 8px; }
.trade-chart .tradingview-widget-container,
.trade-chart .tradingview-widget-container__widget { width: 100%; height: 100%; }
.settings-section { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.settings-autosave-note { margin-bottom: 18px; }
.settings-heading { font-weight: inherit; }
.settings-page input[type="checkbox"],
.settings-page input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--button-border);
  background: var(--button-preview-bg);
  display: inline-grid;
  place-content: center;
  margin: 0;
  cursor: pointer !important;
}
.settings-page input[type="checkbox"] { border-radius: 3px; }
.settings-page input[type="radio"] { border-radius: 50%; }
.settings-page input[type="checkbox"]::before,
.settings-page input[type="radio"]::before {
  content: "";
  width: 8px;
  height: 8px;
  transform: scale(0);
  background: var(--link-color);
}
.settings-page input[type="checkbox"]::before { border-radius: 2px; }
.settings-page input[type="radio"]::before { border-radius: 50%; }
.settings-page input[type="checkbox"]:checked::before,
.settings-page input[type="radio"]:checked::before {
  transform: scale(1);
}
.settings-page button {
  display: inline-block;
  background-color: var(--button-preview-bg);
  border: 1px solid var(--button-border);
  color: var(--text-color);
  border-radius: var(--button-radius);
  font-size: inherit;
  line-height: 1.35;
  padding: 2px 8px;
  font-family: inherit;
  font-weight: inherit;
  cursor: pointer !important;
}
.settings-page .settings-reset-btn {
  font-size: 1.08rem;
  padding: 0.5px 10.8px;
  align-self: flex-start;
}
.settings-option { display: inline-flex; align-items: center; gap: 6px; font-weight: inherit; }
.settings-option { cursor: pointer !important; }
.settings-page label { cursor: pointer !important; }
.settings-note { margin-top: 18px; }
#portfolio-list { list-style: none; padding: 0; margin: 8px 0 0; }
#portfolio-list { margin-left: 0; }
#portfolio-list li { padding: 4px 0; border-top: none; position: relative; }
#portfolio-list li:first-child { border-top: none; }
#portfolio-list li + li::before { display: none; }
#portfolio-list li.confirm-active + li::before { display: none; }
.quote-row-confirm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 6px;
  margin-left: 4px;
}
#trade-q {
      width: 100%;
      padding: 4px 8px;
      border-radius: 4px;
      background-color: #282725 !important;
      border: var(--input-border-width) solid var(--dark-input-border) !important;
      color: var(--text-color);
    font-family: inherit;
  }
#trade-q:focus { outline: none; box-shadow: none; }
.trade-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.trade-full-name { font-size: 1.7rem; }
.trade-logo { height: 1.6em; width: auto; display: inline-block; object-fit: contain; }
#trade-summary button { font-size: 1.08rem; padding: 0.5px 10.8px; }
#trade-details { display: flex; flex-direction: column; gap: 6px; }
#portfolio-balance { margin-top: 0; }
#trade-amount {
      width: 100%;
      padding: 4px 8px;
      border-radius: 4px;
      background-color: #282725 !important;
      border: var(--input-border-width) solid var(--dark-input-border) !important;
      color: var(--text-color);
    font-family: inherit;
  }
#trade-amount:focus { outline: none; box-shadow: none; }
.trade-invest {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.trade-invest label {
  cursor: text;
}
.trade-invest-dropdown {
  position: relative;
  display: inline-block;
}
.trade-invest-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 0 6px;
  border-radius: 4px;
  background-color: #282725 !important;
  border: var(--input-border-width) solid var(--dark-input-border) !important;
  color: var(--text-color);
  font-family: inherit;
  line-height: 1;
  min-width: 88px;
  text-align: left;
  cursor: pointer;
}
.trade-invest-toggle-icon {
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}
.trade-invest-dropdown.open .trade-invest-toggle {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.trade-invest-menu {
  position: absolute;
  left: 0;
  top: calc(100% - 1px);
  min-width: 100%;
  display: flex;
  flex-direction: column;
  border: var(--input-border-width) solid var(--dark-input-border);
  border-top: 0;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  overflow: hidden;
  z-index: 30;
}
.trade-invest-menu[hidden] {
  display: none;
}
.trade-invest-option {
  border: 0;
  padding: 0 6px;
  min-height: 22px;
  text-align: left;
  background-color: #282725;
  color: var(--text-color);
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
}
.trade-invest-option + .trade-invest-option {
  border-top: var(--input-border-width) solid var(--dark-input-border);
}
.trade-invest-option:hover,
.trade-invest-option:focus-visible {
  background-color: #33302e;
}
html.light-mode .trade-invest-option:hover,
html.light-mode .trade-invest-option:focus-visible,
body.light-mode .trade-invest-option:hover,
body.light-mode .trade-invest-option:focus-visible {
  background-color: #f2f2f2 !important;
}
.trade-invest-toggle:focus,
.trade-invest-option:focus {
  outline: none;
  box-shadow: none;
}
.trade-invest-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}
#trade-summary { margin-top: 14px; }

.watchlist-page #watchlist-form { display: block; margin: 0 0 2px; }
.watchlist-page #watchlist-form label { display: flex; align-items: flex-end; flex-wrap: wrap; line-height: 1.2; min-height: 2.4em; margin: 0; }
.watchlist-page .card { padding-top: 0; }
#watchlist-q {
      width: 100%;
      padding: 4px 8px;
      border-radius: 4px;
      background-color: #282725 !important;
      border: var(--input-border-width) solid var(--dark-input-border) !important;
      color: var(--text-color);
    font-family: inherit;
  }
#watchlist-q:focus { outline: none; box-shadow: none; }
.quote-list { margin: 8px 0 0; padding: 0; margin-left: -10px; }
.quote-list li { padding: 6px 0; border-top: none; position: relative; }
.quote-list li:first-child { border-top: none; }
.quote-list li + li::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: -14px;
  height: 1px;
  background: var(--topbar-divider);
  z-index: 2;
}
.quote-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quote-row-content { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.quote-widget { flex: 0 1 240px; max-width: 240px; width: 100%; overflow: hidden; }
.quote-widget .tradingview-widget-container,
.quote-widget .tradingview-widget-container__widget { width: 100%; height: 100%; }
.trade-portfolio .quote-widget { flex: 0 1 220px; max-width: 220px; }
.trade-portfolio .quote-row { flex-wrap: nowrap; }
.quote-link { text-decoration: none !important; font-size: 1rem; line-height: 1; cursor: pointer; }
.quote-link.material-symbols-outlined,
.quote-refresh.material-symbols-outlined,
.quote-note-btn.material-symbols-outlined {
  color: var(--icon-button-color) !important;
  font-size: 22px;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 530, "GRAD" 0, "opsz" 20;
  text-decoration: none !important;
  vertical-align: middle;
}
.quote-note { margin: auto 0 0; padding-top: 8px; }
.quote-remove { color: var(--link-color); text-decoration: none; cursor: pointer; font-size: 1rem; line-height: 1; }
.quote-remove:hover { color: var(--link-hover-color); }
.quote-remove.material-symbols-outlined {
  color: var(--icon-button-color) !important;
  font-size: 22px;
  font-variation-settings: "FILL" 0, "wght" 530, "GRAD" 0, "opsz" 20;
}
.quote-remove.material-symbols-outlined:hover {
  color: var(--link-hover-color) !important;
}
.quote-refresh { color: var(--icon-button-color); text-decoration: none !important; font-size: 1rem; line-height: 1; }
.quote-note-btn { color: var(--icon-button-color); text-decoration: none; cursor: pointer; font-size: 1rem; line-height: 1; }
.quote-link:hover,
.quote-refresh:hover,
.quote-note-btn:hover { color: var(--link-hover-color); }
.quote-note-btn.material-symbols-outlined { color: var(--icon-button-color) !important; }
.quote-link.material-symbols-outlined:hover,
.quote-refresh.material-symbols-outlined:hover,
.quote-note-btn.material-symbols-outlined:hover {
  color: var(--link-hover-color) !important;
}
.quote-note-text { display: inline-block; font-style: normal; }
.quote-note-input {
      padding: 2px 6px;
      border-radius: 4px;
      background-color: #282725 !important;
      border: var(--input-border-width) solid var(--dark-input-border) !important;
      color: var(--text-color);
      font-family: inherit;
  font-size: 1rem;
}
.quote-note-input:focus { outline: none; box-shadow: none; }

body.theme-selection .page-shell {
  justify-content: center;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 100vh;
}
body.theme-selection .card {
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 600px;
  flex: 0 0 auto;
}
body.theme-selection .card {
  max-width: 900px;
  width: min(900px, 100%);
  overflow: visible;
}
body.theme-selection .theme-choice-actions {
  width: 100%;
  margin-top: 12px;
}
body.theme-selection .theme-choice-actions button {
  font-size: 1.1rem;
  padding: 8px 12px;
}
body.theme-selection .theme-choice-text {
  white-space: normal;
  max-width: 100%;
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
body.settings-page .theme-choice-text {
  white-space: normal;
  max-width: 100%;
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
body.theme-selection .theme-choice-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
}
body.theme-selection .theme-choice-actions li {
  width: auto;
}
body.theme-selection .theme-choice-actions button {
  width: auto;
  max-width: none;
}
body.theme-selection #setup-cash-custom-form { width: 100%; margin-top: 12px; }
body.settings-page #settings-cash-custom-form { width: 100%; margin-top: 0; }
.settings-reset-custom { align-self: flex-start; display: inline-block; }
#setup-cash-amount,
#settings-cash-amount {
      width: 100%;
      padding: 4px 8px;
      border-radius: 4px;
      background-color: #282725 !important;
      border: var(--input-border-width) solid var(--dark-input-border) !important;
      color: var(--text-color);
      font-family: inherit;
  }
#setup-cash-amount:focus,
#settings-cash-amount:focus { outline: none; box-shadow: none; }



.info-icon { text-decoration: none; }
.info-icon.overlay { position: absolute; top: 8px; right: 8px; z-index: 2; }
.site-feedback { position: fixed; right: var(--footer-offset); left: auto; bottom: var(--footer-offset); }
.widget-page .site-feedback { z-index: 20; }
.site-feedback p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-error {
  position: fixed;
  left: 12px;
  bottom: var(--footer-offset);
  max-width: calc(100vw - 24px);
  color: var(--text-color);
  line-height: 1.35;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-error-icon {
  color: #ea3323;
  font-size: 22px;
  line-height: 1;
  margin-right: 0;
  font-variation-settings: "FILL" 0, "wght" 530, "GRAD" 0, "opsz" 20;
}
.site-error-text { line-height: 1.35; }
.site-error a { color: var(--link-color) !important; text-decoration: underline; }
.watchlist-footer-note {
  margin-left: 0;
}
.watchlist-page .site-feedback p > a {
  order: 4;
}
.watchlist-page .site-feedback p > .theme-change-button {
  order: 5;
}
.watchlist-page .site-feedback p > .watchlist-footer-note {
  order: 3;
}
.watchlist-page .site-feedback {
  right: var(--footer-offset);
  left: auto;
  width: calc(100% - 24px);
  max-width: none;
  margin: 0;
}
.watchlist-page .site-feedback p {
  width: 100%;
  justify-content: flex-end;
  position: relative;
}
.watchlist-page .watchlist-footer-note {
  position: absolute;
  left: 50%;
  right: auto;
  top: 50%;
  transform: translate(calc(-50% + var(--footer-note-offset, 0px)), -50%);
  display: inline-block;
  width: auto;
  text-align: center;
  max-width: calc(100% - 24px);
  pointer-events: none;
}
.trade-page .site-feedback p {
  width: 100%;
  position: relative;
  justify-content: flex-end;
}
.trade-page .site-feedback {
  right: var(--footer-offset);
  left: auto;
  width: calc(100% - 24px);
  max-width: none;
  margin: 0;
}
.market-overview-page .site-feedback {
  right: 0;
  left: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}
.market-overview-page .site-feedback p {
  width: 100%;
  justify-content: center;
}
.trade-page .trade-footer-note {
  position: absolute;
  left: 50%;
  right: auto;
  top: 50%;
  transform: translate(calc(-50% + var(--footer-note-offset, 0px)), -50%);
  display: inline-block;
  width: auto;
  text-align: center;
  max-width: calc(100% - 24px);
  pointer-events: none;
}
.trade-page .trade-order-status {
  position: fixed;
  left: 12px;
  right: auto;
  bottom: var(--footer-offset);
  margin-left: 0;
  white-space: normal;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: calc(100vw - 24px);
}
.trade-order-status .order-line {
  display: inline-flex;
  align-items: center;
  gap: 0;
  justify-content: flex-start;
}
.trade-order-status .order-text { display: inline; }
.trade-order-status .order-time {
  display: inline;
}
.trade-order-status .order-spinner {
  --s: 22px;
  --w: 5px;
  --t: .45s;
  --g: 43%;
  width: var(--s);
  height: var(--s);
  display: inline-block;
  border-radius: 999px;
  background: conic-gradient(#0000 0 var(--g), rgba(96,165,250,.92) calc(var(--g) + 8%) 100%);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - var(--w)), #000 0);
  mask: radial-gradient(farthest-side, #0000 calc(100% - var(--w)), #000 0);
  filter: drop-shadow(0 0 2px rgba(96,165,250,.7)) drop-shadow(0 0 7px rgba(96,165,250,.35));
  animation: order-spin var(--t) linear infinite;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.trade-order-status .order-cancel {
  margin-left: 0;
  color: var(--link-color) !important;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.trade-order-status .order-cancel-icon.material-symbols-outlined {
  color: var(--icon-button-color) !important;
  font-size: 22px;
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  display: block;
  position: relative;
  top: -1px;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 530, "GRAD" 0, "opsz" 20;
}
.trade-order-status .order-cancel:hover .order-cancel-icon.material-symbols-outlined {
  color: var(--link-hover-color) !important;
}
.trade-order-status .order-cancel:disabled {
  opacity: 0.6;
  cursor: default;
}
.trade-order-status .order-check {
  display: inline-block;
  vertical-align: middle;
}
@keyframes order-spin { to { transform: rotate(1turn); } }
.economic-calendar-page .site-feedback {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
.economic-calendar-page .site-feedback p {
  justify-content: center;
}
.site-button,
.site-feedback a,
.site-feedback a:link,
.site-feedback a:visited,
.site-feedback a:active,
.site-feedback button {
  display: inline-block;
  background-color: var(--button-preview-bg);
  border: 1px solid #4a5461;
  color: var(--text-color) !important;
  border-radius: 4px;
  font-size: inherit;
  line-height: 1.35;
  padding: 2px 8px;
  text-decoration: none !important;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.site-button:hover,
.site-button:focus-visible,
.site-feedback a:hover,
.site-feedback a:focus-visible,
.site-feedback button:hover,
.site-feedback button:focus-visible {
  text-decoration: none !important;
  color: var(--text-color) !important;
}
.site-feedback-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.theme-change-inline {
  margin-left: 0;
}

@media (max-width: 900px) {
  :root {
    --content-max: 100vw;
  }
  .site-header { display: flex; }
  .topbar-tabs { display: none; }
  .topbar-fullscreen { display: none; }
  .topbar-divider { display: none; }
  .topbar-inner {
    justify-content: center;
    padding: 12px 16px 0;
  }
}
  html.light-mode,
  body.light-mode {
    --page-bg: #f7f7f7;
    --text-color: #000000;
    --link-color: #1a73e8;
    --link-hover-color: #0b63d1;
    --button-preview-bg: #f2f2f2;
    --button-border: #474747;
    --topbar-active-bg: #d0d0d0;
    --topbar-divider: #cfd4db;
    --topbar-hover-color: #0b63d1;
    --topbar-bg: #dedede;
  --bg-overlay-alpha: 0;
  --button-overlay-alpha: 0;
  --portfolio-divider: #c6ccd6;
  --icon-button-color: var(--link-color);
}

html.light-mode .logo-text,
body.light-mode .logo-text,
html.light-mode .topbar-logo,
html.light-mode .topbar-logo:link,
html.light-mode .topbar-logo:visited,
html.light-mode .topbar-logo:hover,
html.light-mode .topbar-logo:active,
body.light-mode .topbar-logo,
body.light-mode .topbar-logo:link,
body.light-mode .topbar-logo:visited,
body.light-mode .topbar-logo:hover,
body.light-mode .topbar-logo:active {
    color: #000000;
  }

  html.light-mode .site-button,
  body.light-mode .site-button,
  html.light-mode .button-list a,
  body.light-mode .button-list a,
  html.light-mode .button-list button,
  body.light-mode .button-list button,
  html.light-mode .site-feedback a,
  body.light-mode .site-feedback a,
  html.light-mode .site-feedback button,
  body.light-mode .site-feedback button,
  html.light-mode .theme-choice-actions button,
  body.light-mode .theme-choice-actions button {
    color: var(--text-color) !important;
  }

  html.light-mode .topbar-tab.active,
  body.light-mode .topbar-tab.active {
    border-bottom-color: var(--link-color);
  }
