/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@15.5.12_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/.pnpm/next@15.5.12_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .block {
    display: block;
  }
}
:root {
  color-scheme: dark;
  --bg: #080e18;
  --surface: #101a29;
  --surface2: #142133;
  --line: #223047;
  --line2: #2c3d54;
  --text: #ecf3fb;
  --muted: #8d9db1;
  --subtle: #5f728b;
  --green: #28d5a2;
  --red: #ff6c79;
  --blue: #67aaff;
  --gold: #f7c875;
}
* {
  box-sizing: border-box;
}
html,body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter,"Noto Sans SC","Microsoft YaHei",Arial,sans-serif;
}
button,input,textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: .45;
}
a {
  color: inherit;
}
h1,h2,h3,p {
  margin: 0;
}
.terminal {
  min-height: 100vh;
  background: radial-gradient(900px 550px at 56% -15%,#1a2f47 0%,transparent 60%),var(--bg);
}
.topbar {
  height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #0c1522dd;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 225px;
}
.brand-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #426b82;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -4px;
  padding-right: 4px;
  color: #fff;
  background: linear-gradient(135deg,#19314a,#0d1b2a);
}
.brand-icon span,.brand-mark span {
  color: var(--green);
}
.brand strong {
  font-size: 18px;
  letter-spacing: -.5px;
  display: block;
  line-height: 1.15;
}
.brand small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.4px;
}
.top-status,.top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-pill {
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #d6e0eb;
  font-size: 12px;
  white-space: nowrap;
}
.status-text {
  color: var(--subtle);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.status-dot.good {
  background: var(--green);
  box-shadow: 0 0 8px #28d5a285;
}
.status-dot.bad {
  background: var(--red);
}
.status-dot.idle {
  background: #687a8f;
}
.latency-chip {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: nowrap;
}
.latency-chip strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.paper-badge {
  color: #e6c484;
  border: 1px solid #6b5531;
  background: #342914a6;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  white-space: nowrap;
}
.paper-badge.small {
  padding: 5px 7px;
}
.icon-button {
  width: 33px;
  height: 33px;
  border: 1px solid var(--line);
  background: #172235;
  color: var(--muted);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-button:hover,.icon-button.active {
  color: var(--green);
  border-color: #386c6a;
}
.banner {
  margin: 12px 24px 0;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.banner button {
  margin-left: auto;
  background: none;
  border: 0;
  color: inherit;
}
.banner.error {
  border: 1px solid #7e3944;
  background: #3a1b26;
  color: #ffd2d7;
}
.banner.notice {
  border: 1px solid #296d5c;
  background: #143c35;
  color: #c4ffeb;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(295px,25%) minmax(500px,1fr) minmax(305px,25%);
  gap: 12px;
  padding: 12px 16px;
  min-height: 615px;
}
.panel {
  background: linear-gradient(180deg,#121d2c,#101a29);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  height: 74px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.1px;
  color: #6ca4aa;
  font-weight: 800;
  margin-bottom: 5px;
}
.panel-head h2 {
  font-size: 18px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -.4px;
}
.count {
  font-size: 12px;
  color: var(--green);
  background: #1d3a3b;
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 4px;
}
.minor-label {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.news-panel {
  display: flex;
  flex-direction: column;
}
.feed-filters {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 17px;
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  color: var(--subtle);
  font-size: 12px;
}
.feed-filters .filter-active {
  height: 100%;
  display: flex;
  align-items: center;
  color: var(--text);
  border-bottom: 2px solid var(--green);
  font-weight: 700;
}
.feed-list {
  overflow-y: auto;
  max-height: 575px;
  scrollbar-width: thin;
  scrollbar-color: #33445b transparent;
}
.feed-item {
  display: block;
  text-align: left;
  width: 100%;
  background: none;
  color: inherit;
  border: 0;
  border-bottom: 1px solid #1f2e42;
  padding: 16px 18px;
  border-left: 3px solid transparent;
}
.feed-item:hover {
  background: #1a283a;
}
.feed-item.selected {
  background: #182a3c;
  border-left-color: var(--green);
}
.feed-top,.feed-bottom {
  display: flex;
  align-items: center;
  gap: 9px;
}
.feed-top {
  justify-content: space-between;
  margin-bottom: 10px;
}
.source-tag {
  font-size: 11px;
  color: #9ab8dd;
  background: #213653;
  border: 1px solid #2e4d74;
  border-radius: 4px;
  padding: 3px 6px;
  white-space: nowrap;
}
.source-tag.bright {
  color: #adead9;
  background: #1b3e3d;
  border-color: #2a665c;
}
.feed-top time {
  font-size: 11px;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}
.feed-title {
  font-size: 14px;
  line-height: 1.55;
  color: #d9e6f3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 43px;
}
.feed-bottom {
  margin-top: 13px;
  font-size: 11px;
}
.feed-bottom strong {
  font-size: 12px;
}
.direction {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
}
.direction.long {
  color: var(--green);
}
.direction.short {
  color: var(--red);
}
.direction.none {
  color: var(--muted);
}
.grade {
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  padding: 2px 5px;
}
.grade-A {
  color: #53e7b6;
  background: #204638;
}
.grade-B {
  color: #f3c46f;
  background: #4c3b23;
}
.grade-C {
  color: #aab7c7;
  background: #293747;
}
.feed-status {
  margin-left: auto;
  color: var(--muted);
}
.demo-zone {
  padding: 13px 17px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.text-button {
  background: none;
  border: 0;
  color: #9db2c8;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.demo-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.demo-form input,.demo-form textarea {
  background: #0c1725;
  border: 1px solid var(--line2);
  border-radius: 6px;
  color: var(--text);
  padding: 9px;
  font-size: 12px;
  resize: vertical;
}
.demo-form textarea {
  min-height: 70px;
}
.demo-form button {
  background: #235e55;
  color: #eafff7;
  border: 0;
  border-radius: 6px;
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
}
.detail-panel {
  display: flex;
  flex-direction: column;
}
.article {
  padding: 22px 24px 20px;
  border-bottom: 1px solid var(--line);
  min-height: 154px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 17px;
  flex-wrap: wrap;
}
.article-meta a {
  margin-left: auto;
  color: var(--blue);
}
.article p {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 550;
  color: #edf4fb;
}
.signal-bar {
  display: flex;
  align-items: center;
  padding: 19px 24px;
  gap: 26px;
  border-bottom: 1px solid var(--line);
}
.symbol-block {
  min-width: 145px;
}
.symbol-block span,.signal-main>span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}
.symbol-block strong {
  display: block;
  font-size: 23px;
  letter-spacing: -.5px;
  line-height: 1.1;
}
.symbol-block small {
  display: block;
  color: var(--subtle);
  font-size: 12px;
  margin-top: 4px;
}
.signal-divider {
  height: 49px;
  width: 1px;
  background: var(--line2);
}
.signal-main>div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.signal-main .direction {
  font-size: 23px;
  letter-spacing: -.5px;
}
.signal-main .direction svg {
  width: 20px;
  height: 20px;
}
.confidence {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.reason-box {
  display: flex;
  gap: 12px;
  margin: 20px 24px 10px;
  padding: 14px 16px;
  border: 1px solid #304358;
  border-radius: 8px;
  background: #17283a;
}
.reason-icon {
  color: #81b7e1;
}
.reason-box strong {
  font-size: 12px;
  color: #dcebf5;
}
.reason-box p {
  font-size: 12px;
  color: #aabed2;
  line-height: 1.55;
  margin-top: 4px;
}
.reason-box .skip-reason {
  color: #f0c687;
}
.chart-heading {
  padding: 20px 24px 9px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.chart-heading h3 {
  font-size: 16px;
}
.chart-current {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--subtle);
  text-align: right;
}
.chart-current strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0;
  color: #eff7ff;
  margin-top: 2px;
}
.chart-wrap {
  margin: 0 20px;
  min-height: 185px;
}
.chart-wrap svg {
  width: 100%;
  height: 185px;
  overflow: visible;
}
.grid-line {
  stroke: #26374a;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.candle-up {
  stroke: #2bc99d;
  fill: #2bc99d;
}
.candle-down {
  stroke: #ee6974;
  fill: #ee6974;
}
.candle-up line,.candle-down line {
  stroke-width: 1.5;
}
.news-line {
  stroke: #e9b96f;
  stroke-width: 1.4;
  stroke-dasharray: 4 3;
}
.news-label {
  font-size: 10px;
  fill: #f1c781;
  font-weight: 800;
}
.axis-label {
  font-size: 10px;
  fill: #6c8197;
}
.chart-empty {
  height: 185px;
  margin: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  color: var(--subtle);
  border: 1px dashed #34465b;
  border-radius: 7px;
}
.chart-empty strong {
  font-size: 13px;
  color: var(--muted);
}
.chart-empty span {
  font-size: 11px;
}
.latency-strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--line);
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.latency-strip>div {
  background: #101b2a;
  padding: 13px 15px;
}
.latency-strip span {
  font-size: 10px;
  color: var(--subtle);
  display: block;
  margin-bottom: 4px;
}
.latency-strip strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.trade-panel {
  padding-bottom: 14px;
}
.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 16px 18px;
  background: #0a1523;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px;
}
.mode-switch button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 9px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 5px;
}
.mode-switch button.selected {
  background: #273d50;
  color: #fff;
  box-shadow: 0 1px 4px #0005;
}
.auto-state {
  margin: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.auto-state>div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.auto-state strong {
  font-size: 12px;
}
.auto-state>span {
  font-size: 10px;
  color: var(--subtle);
  text-align: right;
}
.auto-start {
  margin: 12px 18px 0;
  width: calc(100% - 36px);
  background: #1c4c44;
  border: 1px solid #2b7766;
  color: #bff6e5;
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.form-divider {
  height: 1px;
  background: var(--line);
  margin: 17px 18px;
}
.form-heading {
  display: flex;
  justify-content: space-between;
  margin: 0 18px 14px;
  color: #d7e4f0;
  font-size: 12px;
  font-weight: 700;
}
.form-heading svg {
  color: var(--subtle);
}
.field {
  display: block;
  margin: 0 18px 13px;
}
.field>span {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.field em {
  font-style: normal;
  color: var(--subtle);
}
.field input,.field-static {
  width: 100%;
  height: 37px;
  background: #0b1725;
  border: 1px solid var(--line2);
  border-radius: 6px;
  color: var(--text);
  padding: 0 11px;
  outline: none;
}
.field input:focus {
  border-color: #5d9aaf;
}
.field-static {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}
.field-static small {
  font-size: 10px;
  color: var(--subtle);
  font-weight: 500;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.field-grid .field {
  margin-right: 5px;
}
.field-grid .field+ .field {
  margin-left: 5px;
  margin-right: 18px;
}
.check-row {
  margin: 1px 18px 10px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #1f3044;
  border-bottom: 1px solid #1f3044;
}
.check-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #c5d4e4;
}
.check-row input {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
}
.timer-field>div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.timer-field input {
  width: 85px;
}
.timer-field small {
  font-size: 12px;
  color: var(--muted);
}
.save-button {
  width: calc(100% - 36px);
  margin: 1px 18px 13px;
  border: 1px solid #3c566c;
  background: #1a2e42;
  color: #b4cce2;
  padding: 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.save-button:hover {
  background: #24405a;
}
.order-summary {
  margin: 0 18px 13px;
  background: #0c1827;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
}
.order-summary span {
  font-size: 11px;
  color: var(--muted);
}
.order-summary strong {
  font-size: 14px;
}
.order-summary small {
  grid-column: 1/-1;
  font-size: 10px;
  color: var(--subtle);
}
.trade-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0 18px;
}
.trade-buttons button {
  border: 0;
  border-radius: 6px;
  padding: 12px;
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.long-button {
  background: #1e8c6e;
  color: #eafff5;
}
.short-button {
  background: #a64051;
  color: #fff2f3;
}
.trade-footnote {
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.5;
  margin: 10px 18px 12px;
}
.danger-zone {
  border-top: 1px solid var(--line);
  padding: 13px 18px 0;
  display: grid;
  gap: 8px;
}
.stop-button {
  width: 100%;
  background: #4e2530;
  border: 1px solid #994b59;
  color: #ffdce2;
  padding: 9px 11px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stop-button span {
  margin-left: auto;
  font-weight: 500;
  font-size: 10px;
  opacity: .75;
}
.close-all {
  width: 100%;
  background: transparent;
  border: 1px solid #46546a;
  color: #b2c0d2;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.bottom-panel {
  margin: 0 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111c2b;
  overflow: hidden;
}
.bottom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 17px;
  min-height: 51px;
}
.bottom-tabs {
  display: flex;
  gap: 24px;
  align-self: stretch;
}
.bottom-tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  position: relative;
  padding: 0 2px;
}
.bottom-tabs button.selected {
  color: var(--text);
}
.bottom-tabs button.selected:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
}
.bottom-tabs span {
  background: #26483e;
  color: #85e5c0;
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
}
.bottom-note {
  font-size: 10px;
  color: var(--subtle);
  display: flex;
  align-items: center;
  gap: 7px;
}
.positions-content {
  padding: 14px;
  display: grid;
  gap: 10px;
}
.position-card {
  border: 1px solid #2c3c51;
  background: #142236;
  border-radius: 8px;
  padding: 14px 16px;
}
.position-main,.position-main>div,.position-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.position-main {
  justify-content: space-between;
}
.position-main strong {
  font-size: 16px;
}
.origin-tag {
  font-size: 10px;
  color: #99aec4;
  background: #243348;
  padding: 3px 5px;
  border-radius: 4px;
}
.pnl {
  font-size: 15px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.pnl small {
  font-size: 11px;
  margin-left: 5px;
}
.positive {
  color: var(--green) !important;
}
.negative {
  color: var(--red) !important;
}
.muted {
  color: var(--muted) !important;
}
.position-data {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 13px;
  margin: 16px 0;
}
.position-data span {
  display: block;
  color: var(--subtle);
  font-size: 10px;
  margin-bottom: 4px;
}
.position-data strong {
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.position-actions {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  justify-content: flex-end;
}
.position-actions>span {
  margin-right: auto;
  color: var(--subtle);
  font-size: 10px;
}
.position-actions button {
  background: #23384d;
  border: 1px solid #3b5269;
  color: #d5e7f3;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  gap: 5px;
  align-items: center;
}
.position-actions button.close-position {
  background: #3c2937;
  border-color: #69404f;
  color: #ffd6dc;
}
.empty-row {
  padding: 26px;
  text-align: center;
  color: var(--subtle);
  font-size: 12px;
}
.empty-state {
  padding: 35px 18px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.empty-state.large {
  padding: 100px 20px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
th,td {
  text-align: left;
  border-bottom: 1px solid #213147;
  padding: 12px 16px;
  font-size: 11px;
  white-space: nowrap;
}
th {
  color: var(--subtle);
  font-size: 10px;
  font-weight: 750;
  background: #142236;
}
td {
  color: #c0d0e0;
}
td strong {
  color: #edf6ff;
}
td .direction {
  font-size: 10px;
  margin-left: 6px;
}
.table-news {
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%,#1a3447,transparent 50%),var(--bg);
  padding: 20px;
}
.login-card {
  width: min(420px,100%);
  background: #111d2c;
  border: 1px solid #344a60;
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 25px 90px #0008;
}
.brand-mark {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -5px;
  margin-bottom: 24px;
}
.login-card h1 {
  font-size: 32px;
  margin-bottom: 12px;
}
.login-card>p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 25px;
}
.login-card form {
  display: grid;
  gap: 10px;
}
.login-card label {
  font-size: 12px;
  color: var(--muted);
}
.login-card input {
  padding: 12px;
  background: #0b1523;
  border: 1px solid var(--line2);
  border-radius: 7px;
  color: var(--text);
  outline: none;
}
.login-card input:focus {
  border-color: var(--green);
}
.primary-button {
  margin-top: 7px;
  background: #188465;
  border: 0;
  border-radius: 7px;
  padding: 12px;
  color: #fff;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.login-card small {
  display: block;
  color: var(--subtle);
  font-size: 11px;
  margin-top: 20px;
  line-height: 1.5;
}
@media (max-width:1350px) {
  .workspace {
    grid-template-columns: minmax(270px,28%) minmax(450px,1fr);
  }
  .trade-panel {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    align-content: start;
    gap: 0 5px;
  }
  .trade-panel .panel-head,.trade-panel .mode-switch,.trade-panel .auto-state,.trade-panel .auto-start,.trade-panel .form-divider,.trade-panel .form-heading,.trade-panel .order-summary,.trade-panel .trade-buttons,.trade-panel .trade-footnote,.trade-panel .danger-zone {
    grid-column: 1/-1;
  }
  .trade-panel .field-grid {
    display: contents;
  }
  .trade-panel>.field {
    margin-top: 0;
  }
  .trade-panel .field-grid .field,.trade-panel .field-grid .field+.field {
    margin: 0 18px 13px;
  }
  .trade-panel .check-row {
    grid-column: 1/2;
  }
  .trade-panel .timer-field {
    grid-column: 2/3;
  }
  .trade-panel .save-button {
    grid-column: 3/4;
    align-self: end;
  }
  .trade-panel .trade-buttons {
    max-width: 470px;
    width: 100%;
  }
  .top-status {
    gap: 0;
  }
  .status-text {
    display: none;
  }
}
@media (max-width:900px) {
  .topbar {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  .top-status {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .workspace {
    display: block;
    padding: 10px;
  }
  .workspace>.panel {
    margin-bottom: 10px;
  }
  .feed-list {
    max-height: 300px;
  }
  .trade-panel {
    display: block;
  }
  .bottom-panel {
    margin: 0 10px 15px;
  }
  .position-data {
    grid-template-columns: repeat(3,1fr);
  }
  .bottom-head {
    overflow: auto;
  }
  .bottom-tabs {
    min-width: max-content;
  }
  .bottom-note {
    display: none;
  }
}
@media (max-width:550px) {
  .brand {
    min-width: 0;
  }
  .brand small {
    display: none;
  }
  .top-actions .latency-chip {
    display: none;
  }
  .paper-badge {
    font-size: 9px;
  }
  .workspace {
    padding: 7px;
  }
  .panel-head {
    padding: 15px;
  }
  .article,.signal-bar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .signal-bar {
    gap: 15px;
  }
  .signal-main .direction {
    font-size: 18px;
  }
  .confidence {
    display: none;
  }
  .reason-box {
    margin-left: 15px;
    margin-right: 15px;
  }
  .latency-strip {
    grid-template-columns: repeat(2,1fr);
  }
  .position-data {
    grid-template-columns: repeat(2,1fr);
  }
  .position-main {
    align-items: flex-start;
    gap: 10px;
  }
  .position-main>div:first-child {
    flex-wrap: wrap;
  }
  .pnl {
    text-align: right;
    white-space: nowrap;
  }
  .position-actions {
    flex-wrap: wrap;
  }
  .bottom-tabs {
    gap: 16px;
  }
}
.account-summary {
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.account-summary>div span {
  display: block;
  font-size: 10px;
  color: var(--subtle);
  margin-bottom: 5px;
}
.account-summary>div strong {
  font-size: 16px;
}
.account-summary small {
  margin-left: auto;
  color: var(--subtle);
  font-size: 10px;
}
.contracts-content {
  min-height: 220px;
}
.contract-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.contract-toolbar>div {
  display: grid;
  gap: 5px;
}
.contract-toolbar>div strong {
  font-size: 13px;
}
.contract-toolbar>div span {
  font-size: 10px;
  color: var(--subtle);
}
.contract-toolbar input {
  width: min(320px,45%);
  padding: 9px 11px;
  background: #0b1523;
  border: 1px solid var(--line2);
  border-radius: 7px;
  color: var(--text);
  outline: none;
  font-size: 12px;
}
.contract-toolbar input:focus {
  border-color: var(--green);
}
.contracts-content .table-scroll {
  max-height: 430px;
  overflow: auto;
}
.contracts-content table {
  min-width: 750px;
}
.contracts-content td:nth-child(4) {
  white-space: normal;
  min-width: 220px;
  max-width: 400px;
  color: var(--muted);
}
@media (max-width:650px) {
  .contract-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .contract-toolbar input {
    width: 100%;
  }
}
.live-test-box {
  grid-column: 1/-1;
  margin: 12px 18px 18px;
  padding: 14px;
  border: 1px solid #8d5b3d;
  border-radius: 8px;
  background: #36271d;
  color: #ffe4d2;
}
.live-test-box>strong {
  font-size: 13px;
}
.live-test-box p {
  font-size: 11px;
  line-height: 1.55;
  margin-top: 8px;
  color: #e0bea8;
}
.live-test-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.live-test-actions button {
  padding: 9px 12px;
  background: #b94a35;
  color: white;
  border: 0;
  border-radius: 6px;
  font-weight: 750;
  font-size: 11px;
}
.live-test-actions span {
  font-size: 11px;
  color: #eac4a9;
}
.bottom-panel .table-scroll button {
  padding: 6px 10px;
  background: #71372c;
  color: #fff;
  border: 1px solid #a85442;
  border-radius: 5px;
}
.live-test-box.live-on {
  border-color: #a94854;
  background: #3a202a;
}
.live-test-box.live-on .live-test-actions button {
  background: #a43f4b;
}
.connection-form+.connection-form {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.connection-help {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.setup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #36516a;
  border-radius: 7px;
  background: #15273a;
  color: #b6d7f4;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.setup-button:hover {
  border-color: #43a994;
  color: #d9fff3;
}
.connection-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #020812bd;
  backdrop-filter: blur(5px);
}
.connection-modal {
  width: min(620px,100%);
  max-height: min(92vh,820px);
  overflow: auto;
  border: 1px solid #34506a;
  border-radius: 13px;
  background: #101a29;
  box-shadow: 0 25px 100px #000b;
  padding: 23px;
}
.connection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.connection-head h2 {
  font-size: 20px;
}
.connection-status-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.connection-status-grid>div {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0d1725;
}
.connection-status-grid span,.connection-status-grid small {
  font-size: 10px;
  color: var(--muted);
}
.connection-status-grid strong {
  font-size: 12px;
  color: #dce8f5;
}
.connection-form {
  display: grid;
  gap: 9px;
}
.connection-form-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: #dce8f5;
}
.connection-form-title svg {
  color: #5bbca9;
}
.connection-form label {
  font-size: 11px;
  color: var(--muted);
}
.connection-form input {
  padding: 11px 12px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  background: #0b1523;
  color: var(--text);
  outline: none;
  font-size: 13px;
}
.connection-form input:focus {
  border-color: var(--green);
}
.connection-instructions {
  margin-top: 5px;
  padding: 12px 14px;
  border: 1px solid #35485d;
  border-radius: 7px;
  background: #142235;
}
.connection-instructions>strong {
  font-size: 11px;
  color: #dbe9f6;
}
.connection-instructions ol {
  padding-left: 18px;
  margin: 8px 0 0;
  color: #9fb1c4;
  font-size: 10px;
  line-height: 1.7;
}
.connection-instructions code {
  color: #a4d4ff;
}
.connection-instructions b {
  color: #ffb39c;
}
.connection-submit {
  padding: 12px;
  border: 1px solid #297862;
  border-radius: 7px;
  background: #1b5a4b;
  color: #e2fff5;
  font-weight: 800;
  font-size: 12px;
}
.connection-footnote {
  margin-top: 13px;
  color: #8497ad;
  font-size: 10px;
  line-height: 1.65;
}
@media (max-width:900px) {
  .connection-status-grid {
    grid-template-columns: 1fr;
  }
  .connection-status-grid>div {
    grid-template-columns: 1fr auto;
  }
  .connection-status-grid small {
    grid-column: 1/-1;
  }
  .connection-modal {
    padding: 17px;
  }
}
@media (max-width:550px) {
  .setup-button {
    padding: 7px;
    font-size: 10px;
  }
  .setup-button svg {
    display: none;
  }
  .connection-backdrop {
    padding: 8px;
  }
  .connection-modal {
    max-height: 96vh;
  }
}
select.field-static {
  display: block;
  color-scheme: dark;
  appearance: auto;
  padding-right: 30px;
}
:root {
  --bg: #080b09;
  --surface: #0e1210;
  --surface2: #141a17;
  --line: #27312c;
  --line2: #37443d;
  --text: #eff7f1;
  --muted: #91a298;
  --subtle: #64736b;
  --green: #36d99f;
  --red: #f16e78;
  --blue: #56a9ff;
  --gold: #f5bd52;
}
html,body {
  background: var(--bg);
}
.terminal {
  background: #080b09;
}
.topbar {
  height: 88px;
  padding: 0 18px;
  background: #0c100e;
  border: 1px solid #28312d;
  border-radius: 5px;
  margin: 8px 10px 0;
  gap: 12px;
}
.brand {
  min-width: 205px;
  gap: 12px;
}
.brand-icon {
  border-radius: 7px;
  border-color: #2f6754;
  background: #101d17;
  color: #48e5aa;
}
.brand-kicker {
  font-size: 9px !important;
  letter-spacing: 1.1px !important;
  color: #8ca99a !important;
  font-weight: 800;
  display: block !important;
}
.brand strong {
  font-size: 19px;
}
.brand small:last-child {
  letter-spacing: .3px;
  color: #90a297;
}
.top-status {
  gap: 1px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
.status-pill {
  font-size: 10px;
  padding: 6px 5px;
  gap: 5px;
}
.status-text {
  color: #6d8175;
}
.status-dot {
  width: 6px;
  height: 6px;
}
.top-actions {
  gap: 6px;
}
.latency-chip {
  font-size: 10px;
  padding: 7px 8px;
  border-radius: 5px;
}
.paper-badge {
  border-radius: 5px;
}
.workspace {
  grid-template-columns: minmax(330px,1fr) minmax(510px,1.25fr) minmax(340px,1fr);
  gap: 10px;
  padding: 10px;
  min-height: calc(100vh - 108px);
  align-items: stretch;
}
.panel {
  background: #0e1210;
  border-color: #27312c;
  border-radius: 6px;
}
.panel-head {
  height: 68px;
  padding: 14px 16px;
}
.eyebrow {
  color: #5bbca0;
  letter-spacing: 1.8px;
}
.feed-filters {
  height: 44px;
  padding: 0 14px;
  gap: 5px;
}
.feed-filters button {
  height: 100%;
  padding: 0 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #87968d;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feed-filters button small {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 10px;
  background: #17221c;
  color: #9cb6a6;
}
.feed-filters button.filter-active {
  color: #f0f8f2;
  border-color: var(--green);
  font-weight: 800;
}
.feed-list {
  max-height: calc(100vh - 338px);
  min-height: 330px;
  scrollbar-color: #334139 transparent;
}
.feed-item {
  padding: 13px 13px;
  border-bottom-color: #202923;
}
.feed-item.selected {
  background: #101c16;
  border-left-color: #4ba8ff;
}
.feed-title {
  font-size: 13px;
  color: #e4ece7;
}
.source-tag {
  border-radius: 3px;
  background: #151e19;
  border-color: #34443a;
  color: #a5cbb4;
}
.source-tag.bright {
  background: #123126;
  border-color: #1e6349;
  color: #76e1b1;
}
.grade-A {
  background: #12362a;
  color: #5be6ae;
}
.grade-B {
  background: #352a16;
  color: #f3c567;
}
.grade-C {
  background: #202522;
  color: #a8b3ac;
}
.detail-panel {
  background: #0e1210;
}
.article {
  padding: 17px 18px 15px;
  min-height: 122px;
  border-color: #27312c;
}
.article-meta {
  margin-bottom: 11px;
}
.article p {
  font-size: 15px;
  line-height: 1.55;
}
.signal-bar {
  padding: 14px 18px;
  gap: 18px;
  border-color: #27312c;
}
.signal-main>div {
  gap: 8px;
}
.signal-main .direction {
  font-size: 19px;
}
.symbol-block strong {
  font-size: 21px;
}
.decision-reason {
  display: block;
  max-width: 460px;
  margin-top: 7px;
  color: #93a398;
  font-size: 10px;
  line-height: 1.45;
}
.reason-box {
  margin: 12px 16px 8px;
  padding: 10px 12px;
  background: #111814;
  border-color: #2c3932;
  border-radius: 5px;
}
.reason-box p {
  font-size: 11px;
}
.latency-strip {
  margin-top: 0;
  background: #27312c;
  grid-template-columns: repeat(4,minmax(0,1fr));
  border-color: #27312c;
}
.latency-strip>div {
  background: #101512;
  padding: 10px 11px;
}
.latency-strip span {
  font-size: 9px;
}
.latency-strip strong {
  font-size: 12px;
}
.market-tools {
  display: grid;
  grid-template-columns: minmax(170px,1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 13px 16px 4px;
}
.market-tools label>span {
  display: block;
  color: #93a398;
  font-size: 10px;
  margin-bottom: 5px;
}
.market-tools .field-static {
  height: 34px;
  background: #080d0a;
  border-color: #354239;
  border-radius: 4px;
  font-size: 11px;
}
.market-chips {
  display: flex;
  gap: 5px;
}
.market-chips button,.interval-tabs button {
  border: 1px solid #313c35;
  border-radius: 4px;
  background: #111713;
  color: #a9b8ae;
  padding: 7px 9px;
  font-size: 10px;
  font-weight: 750;
}
.market-chips button:hover,.interval-tabs button.selected {
  border-color: #368bc7;
  background: #102336;
  color: #91caff;
}
.chart-heading {
  padding: 10px 16px 8px;
  align-items: center;
}
.chart-heading h3 {
  font-size: 15px;
}
.chart-heading-side {
  display: flex;
  align-items: center;
  gap: 12px;
}
.interval-tabs {
  display: flex;
  gap: 4px;
}
.interval-tabs button {
  padding: 6px 8px;
}
.chart-current {
  font-size: 9px;
}
.chart-current strong {
  font-size: 17px;
}
.chart-wrap {
  margin: 0 14px;
}
.chart-wrap svg {
  height: 205px;
}
.chart-empty {
  height: 205px;
  margin: 0 16px;
  border-color: #344239;
  border-radius: 5px;
}
.detail-panel .latency-strip {
  margin-top: auto;
}
.trade-panel {
  padding-bottom: 12px;
}
.trade-panel .panel-head {
  border-color: #27312c;
}
.mode-switch {
  margin: 12px 14px;
  background: #0a0e0c;
  border-color: #29342e;
  border-radius: 5px;
}
.mode-switch button {
  padding: 9px 6px;
  font-size: 11px;
}
.mode-switch button.selected {
  background: #183427;
  color: #5ce4ac;
  box-shadow: none;
}
.auto-state {
  margin: 0 14px;
}
.auto-state strong {
  font-size: 11px;
}
.auto-state>span {
  font-size: 9px;
}
.live-test-box {
  margin: 11px 14px 14px;
  padding: 11px;
  border-radius: 5px;
  background: #151a13;
  border-color: #67512a;
  color: #f6e7c6;
}
.live-test-box.live-on {
  background: #231418;
  border-color: #90454e;
}
.live-test-box p {
  font-size: 10px;
  line-height: 1.5;
  color: #b9b7a5;
}
.live-test-actions {
  flex-wrap: wrap;
}
.live-test-actions button {
  border-radius: 4px;
}
.form-divider {
  margin: 13px 14px;
}
.form-heading {
  margin: 0 14px 11px;
  font-size: 11px;
}
.field {
  margin: 0 14px 10px;
}
.field>span {
  font-size: 10px;
}
.field input,.field-static {
  height: 35px;
  border-radius: 4px;
  background: #090e0b;
  border-color: #37443d;
}
.field-grid .field {
  margin-left: 14px;
}
.field-grid .field+.field {
  margin-left: 4px;
  margin-right: 14px;
}
.selected-contract {
  margin: 0 14px 11px;
  padding: 9px 10px;
  border: 1px solid #303c34;
  border-radius: 4px;
  background: #0a0f0c;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  align-items: center;
}
.selected-contract span {
  font-size: 9px;
  color: #829188;
}
.selected-contract strong {
  font-size: 13px;
  color: #eef8f1;
}
.selected-contract small {
  grid-column: 1/-1;
  font-size: 9px;
  color: #708077;
}
.check-row {
  margin: 0 14px 8px;
  padding: 8px 0;
  border-color: #29342e;
}
.check-row span {
  font-size: 10px;
}
.timer-field>div {
  gap: 7px;
}
.timer-field input {
  width: 76px;
}
.save-button {
  width: calc(100% - 28px);
  margin: 1px 14px 10px;
  border-radius: 4px;
  background: #17231c;
  border-color: #344239;
  color: #bdcec2;
}
.order-summary {
  margin: 0 14px 10px;
  border-radius: 4px;
  background: #0a0f0c;
  border-color: #29342e;
}
.order-summary span {
  font-size: 10px;
}
.order-summary strong {
  font-size: 13px;
}
.trade-buttons {
  margin: 0 14px;
  gap: 7px;
}
.trade-buttons button {
  border-radius: 4px;
  padding: 11px;
}
.long-button {
  background: #137a52;
}
.short-button {
  background: #9f3447;
}
.trade-footnote {
  margin: 8px 14px;
  font-size: 9px;
}
.danger-zone {
  padding: 11px 14px 0;
  border-color: #29342e;
}
.profile-tabs {
  margin: 0 14px 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid #28332d;
  border-radius: 4px;
  background: #0b100d;
}
.profile-tabs span {
  margin-right: auto;
  color: #819087;
  font-size: 9px;
}
.profile-tabs button {
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: none;
  color: #9ba99f;
  font-size: 10px;
  font-weight: 750;
}
.profile-tabs button.selected {
  border-color: #345b46;
  background: #13251b;
  color: #5ce4ac;
}
.trade-action-caption {
  margin: 10px 14px 5px;
  color: #8fa097;
  font-size: 9px;
}
.bottom-panel {
  margin: 0 10px 14px;
  background: #0e1210;
  border-color: #27312c;
  border-radius: 6px;
}
.bottom-head {
  border-color: #27312c;
}
.bottom-tabs {
  gap: 19px;
}
.bottom-tabs button {
  font-size: 11px;
}
.position-card {
  background: #101713;
  border-color: #2d3931;
  border-radius: 5px;
}
.position-data {
  gap: 8px;
}
.empty-state {
  color: #90a096;
}
@media (max-width:1450px) {
  .workspace {
    grid-template-columns: minmax(290px,34%) minmax(460px,1fr);
  }
  .trade-panel {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    align-content: start;
    gap: 0 4px;
  }
  .trade-panel .panel-head,.trade-panel .mode-switch,.trade-panel .auto-state,.trade-panel .auto-start,.trade-panel .form-divider,.trade-panel .form-heading,.trade-panel .order-summary,.trade-panel .trade-buttons,.trade-panel .trade-footnote,.trade-panel .danger-zone,.trade-panel .live-test-box,.trade-panel .selected-contract {
    grid-column: 1/-1;
  }
  .trade-panel .field-grid {
    display: contents;
  }
  .trade-panel>.field {
    margin-top: 0;
  }
  .trade-panel .field-grid .field,.trade-panel .field-grid .field+.field {
    margin: 0 14px 10px;
  }
  .trade-panel .check-row {
    grid-column: 1/2;
  }
  .trade-panel .timer-field {
    grid-column: 2/3;
  }
  .trade-panel .save-button {
    grid-column: 3/4;
    align-self: end;
  }
  .trade-panel .trade-buttons {
    max-width: 470px;
    width: 100%;
  }
}
@media (max-width:900px) {
  .topbar {
    margin: 6px;
    height: auto;
    min-height: 72px;
  }
  .top-status {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow: auto;
  }
  .workspace {
    display: block;
    min-height: 0;
    padding: 7px;
  }
  .workspace>.panel {
    margin-bottom: 8px;
  }
  .feed-list {
    max-height: 300px;
    min-height: 160px;
  }
  .trade-panel {
    display: block;
  }
  .market-tools {
    grid-template-columns: 1fr;
  }
  .market-chips {
    justify-content: flex-start;
  }
  .chart-heading-side {
    gap: 6px;
  }
  .bottom-panel {
    margin: 0 7px 10px;
  }
}
@media (max-width:550px) {
  .topbar {
    padding: 10px;
    gap: 8px;
  }
  .brand {
    min-width: 0;
  }
  .top-actions .latency-chip {
    display: none;
  }
  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .top-status {
    gap: 0;
  }
  .workspace {
    padding: 5px;
  }
  .panel-head {
    padding: 12px;
  }
  .market-tools {
    padding: 10px 12px;
  }
  .chart-heading {
    padding: 9px 12px;
  }
  .chart-heading-side {
    flex-direction: column;
    align-items: flex-end;
  }
  .interval-tabs button {
    padding: 5px 6px;
  }
  .signal-bar {
    align-items: flex-start;
    gap: 10px;
  }
  .symbol-block {
    min-width: 92px;
  }
  .signal-main>div {
    flex-wrap: wrap;
  }
  .decision-reason {
    max-width: 230px;
  }
  .trade-panel .field-grid {
    display: grid;
  }
  .trade-panel .field-grid .field,.trade-panel .field-grid .field+.field {
    margin: 0 14px 10px;
  }
  .trade-panel .check-row,.trade-panel .timer-field,.trade-panel .save-button {
    grid-column: auto;
  }
  .trade-panel .save-button {
    width: calc(100% - 28px);
  }
  .bottom-tabs {
    gap: 14px;
  }
}
.login-screen {
  min-height: 100dvh;
}
@media (max-width:550px) {
  .login-screen {
    padding: max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));
  }
  .login-card {
    padding: 26px 21px;
  }
  .login-card h1 {
    font-size: 28px;
  }
  .login-card input,.login-card .primary-button {
    min-height: 48px;
    font-size: 16px;
  }
}
@media (max-height:650px) {
  .login-screen {
    align-items: start;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .login-card {
    margin: auto 0;
  }
}
.chart-wrap {
  margin: 0 14px 14px;
  padding: 0 10px 9px;
  border: 1px solid #303a34;
  border-radius: 4px;
  background: #0d1210;
  overflow: hidden;
}
.chart-plot {
  position: relative;
  border: 1px solid #29332e;
  border-radius: 3px;
  background: #0b100e;
  overflow: hidden;
}
.chart-wrap .chart-svg {
  display: block;
  width: 100%;
  height: 280px;
  overflow: hidden;
}
.chart-grid {
  stroke: #293630;
  stroke-width: 1;
}
.chart-axis-overlay {
  position: absolute;
  inset: 0 auto 0 0;
  width: 12%;
  pointer-events: none;
  color: #96a69c;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.chart-axis-overlay span {
  position: absolute;
  right: 4px;
  transform: translateY(-50%);
  white-space: nowrap;
}
.current-price-line {
  stroke: #b6c2ba;
  stroke-width: 1.4;
  stroke-dasharray: 6 6;
  opacity: .88;
}
.current-price-label {
  position: absolute;
  left: 13%;
  transform: translateY(-85%);
  color: #e0e9e2;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px #0b100e,0 0 3px #0b100e;
  white-space: nowrap;
  pointer-events: none;
}
.news-line {
  stroke: #f0b84e;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}
.news-label {
  fill: #f0c56c;
  font-size: 10px;
  font-weight: 700;
}
.chart-fullscreen-button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid #39463f;
  border-radius: 5px;
  background: #111814eF;
  color: #b9c7be;
}
.chart-fullscreen-button:hover {
  border-color: #49a0df;
  color: #9acaff;
}
.chart-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1.08fr;
  margin-top: 8px;
  border: 1px solid #303a34;
  border-radius: 3px;
  background: #0b100e;
}
.chart-stats>div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px 11px;
  border-right: 1px solid #29332e;
}
.chart-stats>div:last-child {
  border-right: 0;
}
.chart-stats span {
  color: #899b90;
  font-size: 10px;
}
.chart-stats strong {
  color: #edf4ee;
  font-size: 15px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chart-stats strong.positive {
  color: #20d889;
}
.chart-stats strong.negative {
  color: #f26778;
}
.chart-caption {
  padding-top: 8px;
  color: #77877d;
  font-size: 9px;
  line-height: 1.4;
  white-space: normal;
}
.chart-fullscreen:fullscreen {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 18px 24px;
  background: #0b100e;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
}
.chart-fullscreen:fullscreen .chart-plot {
  height: min(68vh,720px);
  flex: none;
}
.chart-fullscreen:fullscreen .chart-svg {
  height: 100%;
}
.chart-fullscreen:fullscreen .chart-stats {
  flex: none;
}
@media (max-width:550px) {
  .chart-wrap {
    margin: 0 10px 12px;
    padding: 0 7px 8px;
  }
  .chart-wrap .chart-svg {
    height: 242px;
  }
  .chart-axis-overlay {
    font-size: 9px;
    width: 14%;
  }
  .chart-axis-overlay span {
    right: 2px;
  }
  .current-price-label {
    left: 15%;
    font-size: 10px;
  }
  .chart-stats>div {
    padding: 7px 7px;
  }
  .chart-stats span {
    font-size: 9px;
  }
  .chart-stats strong {
    font-size: 12px;
  }
  .chart-caption {
    font-size: 8px;
  }
  .chart-fullscreen:fullscreen {
    padding: 10px;
  }
  .chart-fullscreen:fullscreen .chart-plot {
    height: 70vh;
  }
}
.market-tools {
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
}
.market-picker {
  position: relative;
  min-width: 0;
  z-index: 5;
}
.market-picker label {
  display: block;
}
.market-picker label>span {
  display: block;
  color: #93a398;
  font-size: 10px;
  margin-bottom: 5px;
}
.market-contract-input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #354239;
  border-radius: 4px;
  outline: none;
  background: #080d0a;
  color: #e9f2eb;
  font-size: 12px;
}
.market-contract-input:focus {
  border-color: #4d9cce;
  box-shadow: 0 0 0 2px #24567a55;
}
.market-contract-input::placeholder {
  color: #708077;
}
.market-contract-options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 300px;
  overflow: auto;
  border: 1px solid #394b40;
  border-radius: 5px;
  background: #101713;
  box-shadow: 0 12px 30px #000b;
}
.market-contract-options button {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #26342b;
  background: transparent;
  color: #e4eee7;
  text-align: left;
}
.market-contract-options button:last-child {
  border-bottom: 0;
}
.market-contract-options button:hover,.market-contract-options button:focus {
  outline: 0;
  background: #1a2a20;
}
.market-contract-options button strong {
  font-size: 12px;
  white-space: nowrap;
}
.market-contract-options button span {
  min-width: 0;
  overflow: hidden;
  color: #97a99c;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.market-contract-no-match {
  padding: 12px;
  color: #9caa9f;
  font-size: 11px;
}
.market-chips button {
  white-space: nowrap;
}
@media (max-width:900px) {
  .market-tools {
    grid-template-columns: minmax(0,1fr) auto;
  }
}
@media (max-width:550px) {
  .market-tools {
    grid-template-columns: 1fr;
  }
  .market-chips {
    justify-content: flex-start;
  }
  .market-contract-options {
    max-height: 240px;
  }
}
.impact-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.impact-strong {
  color: #ff8b96;
  border-color: #8f3945;
  background: #3a1821;
}
.impact-moderate {
  color: #f4ce7d;
  border-color: #775a2d;
  background: #342a16;
}
.impact-weak {
  color: #aac0d8;
  border-color: #35475d;
  background: #172337;
}
.impact-none {
  color: var(--muted);
  border-color: var(--line);
  background: #121a25;
}
.market-cap-current small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0;
  color: var(--subtle);
}
.news-coin-candidates {
  margin: 4px 24px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: #0d1722;
}
.news-candidates-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.news-candidates-heading span,.news-coin-candidates>small {
  color: var(--muted);
  font-size: 10px;
}
.news-candidates-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 9px 0;
  scrollbar-width: thin;
}
.news-candidate {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 4px;
  min-width: 112px;
  padding: 8px 10px;
  text-align: left;
  color: var(--text);
  background: #111f2d;
  border: 1px solid var(--line2);
  border-radius: 6px;
}
.news-candidate strong {
  font-size: 11px;
}
.news-candidate span {
  color: var(--muted);
  font-size: 10px;
}
.news-candidate.selected {
  border-color: var(--blue);
  background: #142b40;
}
.news-coin-candidates>small {
  display: block;
  line-height: 1.5;
}
@media (max-width:550px) {
  .news-coin-candidates {
    margin: 4px 12px 10px;
    padding: 10px;
  }
  .news-candidates-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .news-candidate {
    min-width: 98px;
    padding: 7px 8px;
  }
  .market-cap-current small {
    font-size: 8px;
  }
}
.live-account-card {
  margin: 10px 14px 13px;
  padding: 11px;
  border: 1px solid #35443b;
  border-radius: 6px;
  background: #0c120e;
}
.live-account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}
.live-account-head .eyebrow {
  margin: 0 0 3px;
  font-size: 8px;
  letter-spacing: 1.4px;
}
.live-account-head>div>strong {
  font-size: 12px;
}
.live-account-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #9aab9f;
  font-size: 9px;
  white-space: nowrap;
}
.account-collapse {
  padding: 4px 8px;
  border: 1px solid #37443d;
  border-radius: 5px;
  background: #121a15;
  color: #b7c8bc;
  font-size: 9px;
}
.live-account-balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.account-balance-primary,.account-balance-side>div {
  min-width: 0;
  padding: 9px;
  border: 1px solid #2c3931;
  border-radius: 5px;
  background: #101713;
}
.account-balance-primary span,.account-balance-side span {
  display: block;
  color: #89978d;
  font-size: 9px;
  margin-bottom: 5px;
}
.account-balance-primary strong {
  display: block;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.1;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.account-balance-primary b {
  display: block;
  margin-top: 3px;
  color: #c5d1c8;
  font-size: 11px;
}
.account-balance-side {
  display: grid;
  gap: 7px;
}
.account-balance-side strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.live-account-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  color: #829087;
  font-size: 9px;
}
.live-account-foot strong {
  color: #d9e5dc;
}
.account-stale-note {
  display: block;
  margin-top: 6px;
  color: #e3b76c;
  font-size: 9px;
}
.account-connect-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px;
  border: 1px solid #2c3931;
  border-radius: 5px;
  color: #9eaea2;
  font-size: 10px;
  line-height: 1.5;
}
.account-connect-prompt button,.account-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #37443d;
  border-radius: 5px;
  background: #141d17;
  color: #b8cec0;
  font-size: 9px;
  padding: 6px 8px;
  white-space: nowrap;
}
.account-detail-link {
  width: 100%;
  margin-top: 7px;
  background: transparent;
}
.account-balance-detail {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 9px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
.account-balance-detail>div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d1511;
}
.account-balance-detail span {
  display: block;
  margin-bottom: 8px;
  color: var(--subtle);
  font-size: 10px;
}
.account-balance-detail strong {
  display: block;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.account-balance-detail small {
  grid-column: 1/-1;
  color: var(--subtle);
  font-size: 10px;
}
@media (max-width:650px) {
  .account-balance-detail {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
    padding: 10px;
  }
  .account-balance-detail>div {
    padding: 9px;
  }
  .account-balance-detail strong {
    font-size: 14px;
  }
}
@media (max-width:1450px) {
  .trade-panel .live-account-card {
    grid-column: 1/-1;
  }
}
.trade-buttons {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(78px,.72fr);
}
.trade-buttons .flat-button {
  border: 1px solid #6e3c47;
  background: #24151a;
  color: #ffc1c9;
}
.trade-buttons .flat-button:hover:not(:disabled) {
  background: #3b1d25;
  border-color: #a34b5b;
}
.trade-close-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 9px 14px;
  padding: 10px;
  border: 1px solid #6e3c47;
  border-radius: 5px;
  background: #1a1215;
}
.trade-close-choices>strong {
  grid-column: 1/-1;
  color: #e7c7cc;
  font-size: 10px;
  line-height: 1.45;
}
.trade-close-choices button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border: 1px solid #594048;
  border-radius: 4px;
  background: #241a1e;
  color: #f1dce0;
  font-size: 10px;
}
.trade-close-choices button span {
  color: #ff9eaa;
  font-weight: 800;
}
@media (max-width:550px) {
  .trade-buttons {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(76px,.72fr);
  }
  .trade-buttons button {
    gap: 5px;
    padding: 10px 6px;
    font-size: 11px;
  }
  .trade-close-choices {
    grid-template-columns: 1fr;
  }
}

