@import url("https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800&family=Open+Sans:wght@400;600;700&display=swap");

:root {
  --fa-bg: #071a2f;
  --fa-bg-2: #0b223c;
  --fa-bg-3: #10304f;

  --fa-brand: #006d77;
  --fa-brand-2: #0a8b96;
  --fa-gold: #c5a24a;

  --fa-surface: rgba(255, 255, 255, 0.05);
  --fa-surface-2: rgba(255, 255, 255, 0.035);
  --fa-border: rgba(255, 255, 255, 0.10);
  --fa-border-2: rgba(255, 255, 255, 0.14);

  --fa-text: #f7fbff;
  --fa-text-soft: #d7e4ef;
  --fa-text-muted: #9db2c7;

  --fa-success: #78d6b0;
  --fa-danger: #ffae9d;

  --shadow-lg: 0 14px 38px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.18);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --font-head: "Golos Text", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--fa-text);
  background:
    radial-gradient(circle at top left, rgba(10, 139, 150, 0.16), transparent 25%),
    radial-gradient(circle at top right, rgba(197, 162, 74, 0.08), transparent 18%),
    linear-gradient(180deg, #061223 0%, #071a2f 35%, #091f36 100%);
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--fa-border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--fa-text);
  outline: none;
}

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

input:focus,
select:focus {
  border-color: rgba(10, 139, 150, 0.8);
  box-shadow: 0 0 0 3px rgba(10, 139, 150, 0.16);
}

select option {
  background: #0f2742;
  color: var(--fa-text);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fa-text-muted);
  padding: 12px 10px;
  border-bottom: 1px solid var(--fa-border);
  font-weight: 700;
}

tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--fa-text-soft);
  font-size: 14px;
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.hidden {
  display: none !important;
}

.empty {
  text-align: center;
  color: var(--fa-text-muted);
}

.app {
  max-width: 1540px;
  margin: 0 auto;
  padding: 24px;
}

/* top */

.top-shell {
  margin-bottom: 22px;
}

.hero-bar,
.market-strip,
.user-strip {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--fa-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025)),
    linear-gradient(180deg, #0d2440 0%, #0a1f37 100%);
  box-shadow: var(--shadow-lg);
}

.hero-bar::after,
.market-strip::after,
.user-strip::after,
.panel::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(197, 162, 74, 0.12), transparent 62%);
  pointer-events: none;
}

.hero-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 28px;
  margin-bottom: 18px;
}

.hero-logo-box {
  min-width: 430px;
  max-width: 430px;
  height: 170px;
  border-radius: 28px;
  border: 1px solid var(--fa-border-2);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.hero-logo-img {
  width: 180%;
  height: 180%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 109, 119, 0.18));
}

.hero-copy h1 {
  margin: 0 0 12px 0;
  font-family: var(--font-head);
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero-copy p {
  margin: 0;
  font-size: 20px;
  color: var(--fa-text-muted);
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 18px;
  padding: 24px;
  margin-bottom: 18px;
}

.market-card {
  min-height: 132px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid var(--fa-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.market-card-pair {
  background:
    linear-gradient(135deg, rgba(10,139,150,0.22), rgba(0,109,119,0.14)),
    rgba(255,255,255,0.03);
  border-color: rgba(10, 139, 150, 0.40);
}

.market-label {
  display: block;
  margin-bottom: 12px;
  color: var(--fa-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 13px;
  font-weight: 700;
}

.market-value {
  font-family: var(--font-head);
  font-size: 38px;
  line-height: 1.05;
  font-weight: 800;
  color: var(--fa-text);
}

.market-card-bid .market-value {
  color: var(--fa-success);
}

.market-card-ask .market-value {
  color: var(--fa-danger);
}

.user-strip {
  padding: 22px 28px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#current-user {
  font-size: 22px;
  color: var(--fa-text-soft);
  font-weight: 700;
  word-break: break-word;
}

/* buttons */

.primary-btn,
.secondary-btn,
.ghost-btn,
.interval-btn,
tbody button[data-order-id] {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--fa-brand) 0%, var(--fa-brand-2) 100%);
  box-shadow: 0 10px 24px rgba(0, 109, 119, 0.26);
}

.secondary-btn {
  color: var(--fa-text);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--fa-border);
}

.ghost-btn {
  color: var(--fa-text-soft);
  background: transparent;
  border: 1px solid var(--fa-border);
}

.interval-btn {
  min-width: 56px;
  color: var(--fa-text-soft);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--fa-border);
}

.interval-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--fa-brand) 0%, var(--fa-brand-2) 100%);
  border-color: transparent;
}

tbody button[data-order-id] {
  min-height: 34px;
  padding: 6px 12px;
  color: #ffb3bb;
  background: rgba(217, 92, 102, 0.12);
  border: 1px solid rgba(217, 92, 102, 0.24);
}

/* panels */

.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--fa-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025)),
    linear-gradient(180deg, #0d2440 0%, #0a1f37 100%);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  margin-bottom: 22px;
}

.panel::before {
  content: "";
  display: block;
  width: 120px;
  height: 5px;
  border-radius: 999px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--fa-brand), var(--fa-gold));
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-note {
  font-size: 13px;
  color: var(--fa-text-muted);
}

/* auth */

.auth-panel {
  margin-bottom: 22px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}

.form-card {
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.02);
  display: grid;
  gap: 18px;
}

.form-card h3 {
  margin: 0 0 4px 0;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
}

/* trading layout */

.trading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  grid-template-areas:
    "chart order-entry"
    "orderbook trades";
  grid-template-rows: 520px 520px;
  gap: 20px;
  margin-bottom: 22px;
  align-items: stretch;
}

.trading-grid > .panel {
  height: 100%;
  min-height: 0;
}

.chart-panel {
  grid-area: chart;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.order-entry-panel {
  grid-area: order-entry;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.order-entry-panel .form-card,
.order-entry-panel .order-form {
  flex: 1;
  align-content: start;
}

.orderbook-panel {
  grid-area: orderbook;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.trades-panel {
  grid-area: trades;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.trades-panel table {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.trades-panel thead {
  flex: 0 0 auto;
  display: table;
  width: 100%;
  table-layout: fixed;
}

.trades-panel tbody {
  flex: 1 1 auto;
  display: block;
  overflow-y: auto;
  max-height: none;
}

.trades-panel tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.orderbook-panel .section-head {
  flex: 0 0 auto;
}

.orderbook-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.onchain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.book-side {
  border-radius: 20px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  min-height: 0;
}

.book-side h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-family: var(--font-head);
  font-weight: 800;
}

.bid-title { color: var(--fa-success); }
.ask-title { color: var(--fa-danger); }

.orderbook-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.orderbook-panel table {
  table-layout: fixed;
}

.orderbook-panel th,
.orderbook-panel td {
  padding: 10px 8px;
  white-space: nowrap;
}

.orderbook-panel td {
  font-size: 13px;
}

.order-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-form button {
  grid-column: 1 / -1;
}

.trades-panel table {
  table-layout: fixed;
}

.trades-panel tbody {
  display: block;
  overflow-y: auto;
  max-height: 360px;
}

.trades-panel thead,
.trades-panel tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

#chart-container {
  width: 100%;
  height: 360px;
  min-height: 360px;
  max-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background: #0a1220;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
}


.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status {
  margin-top: 14px;
  min-height: 24px;
  font-size: 14px;
  font-weight: 700;
  color: #9db2c7 !important;
  transition: all 0.2s ease;
}

.status.success {
  color: #79f2b8 !important;
  text-shadow: 0 0 12px rgba(121, 242, 184, 0.28) !important;
}

.status.error {
  color: #ff7f93 !important;
  text-shadow: 0 0 12px rgba(255, 127, 147, 0.24) !important;
}

#auth-status.success,
#order-status.success,
#onchain-status.success,
#token-list-status.success,
#liquidity-init-status.success {
  color: #79f2b8 !important;
}

#auth-status.error,
#order-status.error,
#onchain-status.error,
#token-list-status.error,
#liquidity-init-status.error {
  color: #ff7f93 !important;
}

.status.success::before {
  content: "✔ ";
}

.status.error::before {
  content: "✖ ";
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
}

*::-webkit-scrollbar-thumb {
  background: rgba(10,139,150,0.45);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(10,139,150,0.65);
}

/* orderbook expand */

.toggle-book-btn {
  min-width: 110px;
}

.orderbook-panel.expanded {
  position: fixed;
  inset: 32px;
  z-index: 9999;
  margin: 0;
  min-height: auto;
  height: auto;
  max-height: calc(100vh - 64px);
  width: auto;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.orderbook-panel.expanded .orderbook-scroll {
  overflow-y: auto;
}

.orderbook-panel.expanded .book-grid {
  min-height: auto;
}

body.orderbook-expanded {
  overflow: hidden;
}

body.orderbook-expanded::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 20, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9998;
}

/* wallet info strip */

.wallet-info-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 2fr;
  gap: 14px;
}

.wallet-info-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.025);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 94px;
  justify-content: center;
  overflow: hidden;
}

.wallet-info-card-wide {
  grid-column: auto;
}

.wallet-info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--fa-text-muted);
  font-weight: 700;
}

.wallet-info-value {
  font-size: 17px;
  line-height: 1.25;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--fa-text);
  word-break: break-all;
}

@media (max-width: 1380px) {
  .hero-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logo-box {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    height: 150px;
  }

  .hero-logo-img {
    max-width: 90%;
    max-height: 72%;
  }

  .market-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trading-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "chart"
      "order-entry"
      "orderbook"
      "trades";
    grid-template-rows: auto auto 520px 520px;
    gap: 20px;
    margin-bottom: 22px;
    align-items: stretch;
  }
}

.tutor-message.thinking {
  display: flex;
  align-items: center;
  min-height: 126px;
  border-left-color: var(--fa-brand-2);
  background:
    radial-gradient(circle at 12% 50%, rgba(10,139,150,.13), transparent 30%),
    rgba(10,139,150,.055);
}

.ai-thinking-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.ai-thinking-visual {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
}

.ai-thinking-visual::before,
.ai-thinking-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.ai-thinking-visual::before {
  inset: 4px;
  border: 1px solid rgba(10,139,150,.28);
  animation: ai-breathe 1.8s ease-in-out infinite;
}

.ai-thinking-visual::after {
  inset: 0;
  border: 2px solid transparent;
  border-top-color: var(--fa-gold);
  border-right-color: var(--fa-brand-2);
  animation: ai-orbit-spin 1.15s linear infinite;
}

.ai-orbit {
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 50%;
  animation: ai-orbit-spin 3.2s linear infinite reverse;
}

.ai-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--fa-brand-2), #155ea8);
  box-shadow: 0 8px 22px rgba(10,139,150,.28);
  color: #fff;
  font: 800 12px/1 var(--font-head);
  letter-spacing: .06em;
}

.ai-thinking-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 10px;
  min-width: 0;
}

.ai-thinking-copy strong {
  grid-column: 1 / -1;
  color: var(--fa-text);
  font: 700 14px/1.3 var(--font-head);
}

.ai-thinking-phrase {
  color: var(--fa-text-muted);
  font-size: 13px;
  transition: opacity .18s ease, transform .18s ease;
}

.ai-thinking-phrase.changing {
  opacity: 0;
  transform: translateY(4px);
}

.ai-thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ai-thinking-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fa-gold);
  animation: ai-dot-pulse 1.1s ease-in-out infinite;
}

.ai-thinking-dots i:nth-child(2) { animation-delay: .16s; }
.ai-thinking-dots i:nth-child(3) { animation-delay: .32s; }

@keyframes ai-orbit-spin { to { transform: rotate(360deg); } }
@keyframes ai-breathe {
  0%, 100% { transform: scale(.92); opacity: .45; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes ai-dot-pulse {
  0%, 60%, 100% { transform: translateY(0); opacity: .35; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-thinking-visual::before,
  .ai-thinking-visual::after,
  .ai-orbit,
  .ai-thinking-dots i { animation: none; }
}

.tutor-status.online {
  border-color: rgba(120, 214, 176, .42);
  color: var(--fa-success);
  box-shadow: 0 0 0 4px rgba(120, 214, 176, .06);
}

.tutor-form {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.tutor-form label {
  color: var(--fa-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.tutor-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.tutor-input-row textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--fa-border);
  border-radius: 12px;
  outline: none;
  background: rgba(255,255,255,.045);
  color: var(--fa-text);
}

.tutor-input-row textarea:focus {
  border-color: rgba(10,139,150,.8);
  box-shadow: 0 0 0 3px rgba(10,139,150,.16);
}

.tutor-input-row button {
  min-width: 132px;
}

.tutor-topics button:disabled,
.tutor-input-row button:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}

@media (max-width: 700px) {
  .tutor-input-row { grid-template-columns: 1fr; }
  .tutor-input-row button { min-height: 48px; }
}

/* Menu tab stays visible in the upper-left corner */
.lab-nav-reveal,
.lab-nav-reveal.visible {
  top: 14px;
  right: auto;
  bottom: auto;
  left: 0;
  padding: 10px 13px 10px 9px;
  border: 1px solid var(--fa-border-2);
  border-left: 0;
  border-radius: 0 13px 13px 0;
}

.lab-nav-reveal {
  transform: translateX(-110%);
}

.lab-nav-reveal.visible {
  transform: translateX(0);
}

.lab-nav-reveal span {
  writing-mode: horizontal-tb;
  font-size: 10px;
}

@media (max-width: 1100px) {
  .lab-nav-reveal,
  .lab-nav-reveal.visible {
    top: 10px;
    right: auto;
    bottom: auto;
    left: 0;
  }
  .lab-nav-reveal { transform: translateX(-110%); }
  .lab-nav-reveal.visible { transform: translateX(0); }
}

/* TradingView-style drawing workspace */
.chart-workspace {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 555px;
  border-top: 1px solid rgba(148,163,184,.07);
}

.drawing-toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 6px;
  border-right: 1px solid rgba(148,163,184,.11);
  background: #0a101a;
}

.drawing-tool {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #8793a5;
}

.drawing-tool:hover {
  border-color: rgba(148,163,184,.18);
  background: #151d2a;
  color: #edf2f8;
}

.drawing-tool.active {
  border-color: rgba(59,130,246,.35);
  background: rgba(59,130,246,.16);
  color: #7db1ff;
  box-shadow: inset 2px 0 0 #3b82f6;
}

.drawing-tool.danger:hover { color: #ef5350; }
.drawing-tool svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drawing-divider { width: 24px; height: 1px; margin: 3px 0; background: rgba(148,163,184,.14); }

.chart-workspace .chart-shell { min-width: 0; }
#chart-drawing-layer {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  touch-action: none;
}
#chart-drawing-layer.interactive { pointer-events: auto; cursor: crosshair; }

.active-chart-tool {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 12px;
  max-width: calc(100% - 110px);
  padding: 6px 9px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 7px;
  background: rgba(8,13,23,.76);
  color: #768297;
  font: 600 9px/1.2 var(--font-head);
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.chart-tool-btn#chart-zoom-in,
.chart-tool-btn#chart-zoom-out {
  min-width: 32px;
  padding: 0 8px;
  font-size: 18px;
  font-weight: 500;
}

#chart-cursor-time {
  color: #5f6b7d;
  font-size: 10px;
}

@media (max-width: 700px) {
  .chart-workspace { grid-template-columns: 40px minmax(0, 1fr); min-height: 480px; }
  .drawing-toolbar { padding: 6px 3px; overflow-y: auto; }
  .drawing-tool { width: 32px; height: 32px; flex-basis: 32px; }
  .active-chart-tool { display: none; }
  .chart-legend-row .chart-ohlc { gap: 8px; overflow-x: auto; }
}

@media (max-width: 1180px) {
  .wallet-info-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .app {
    padding: 16px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .market-value {
    font-size: 28px;
  }

  .auth-grid,
  .info-grid,
  .onchain-grid,
  .meta-grid,
  .book-grid,
  .order-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .wallet-info-strip {
    grid-template-columns: 1fr;
  }

  .wallet-info-value {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .hero-logo-box {
    height: 120px;
    padding: 14px 16px;
  }

  .hero-logo-img {
    max-width: 92%;
    max-height: 76%;
  }
}

@media (max-width: 640px) {
  .hero-bar,
  .market-strip,
  .user-strip,
  .panel {
    border-radius: 22px;
  }

  .hero-bar,
  .market-strip,
  .user-strip,
  .panel,
  .form-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .market-strip {
    grid-template-columns: 1fr;
  }

  .user-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn {
    width: 100%;
  }
}

.market-select {
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fa-text);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  outline: none;
}

.market-select:focus {
  border-color: rgba(10, 139, 150, 0.8);
  box-shadow: 0 0 0 3px rgba(10, 139, 150, 0.16);
}

.market-select option {
  background: #0f2742;
  color: var(--fa-text);
}

.token-list-form {
  display: grid;
  gap: 16px;
}

.token-list-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.7fr 0.9fr;
  gap: 14px;
}

.token-list-panel .primary-btn {
  width: fit-content;
  min-width: 180px;
}

@media (max-width: 1180px) {
  .token-list-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .token-list-grid {
    grid-template-columns: 1fr;
  }

  .token-list-panel .primary-btn {
    width: 100%;
  }
}

.liquidity-init-form {
  display: grid;
  gap: 16px;
}

.liquidity-init-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.liquidity-init-panel .primary-btn {
  width: fit-content;
  min-width: 220px;
}

@media (max-width: 900px) {
  .liquidity-init-grid {
    grid-template-columns: 1fr;
  }

  .liquidity-init-panel .primary-btn {
    width: 100%;
  }
}

/* ===== TOKEN / LIQUIDITY PANELS ===== */

.token-list-panel,
.liquidity-init-panel,
.onchain-panel {
  margin-bottom: 22px;
}

.token-list-form,
.liquidity-init-form {
  display: grid;
  gap: 16px;
}

.token-list-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 0.7fr 0.9fr;
  gap: 14px;
  align-items: stretch;
}

.liquidity-init-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.token-list-panel .primary-btn,
.liquidity-init-panel .primary-btn {
  width: fit-content;
  min-width: 220px;
}

.token-list-panel .section-head,
.liquidity-init-panel .section-head,
.onchain-panel .section-head {
  margin-bottom: 20px;
}

.token-list-panel input,
.token-list-panel select,
.liquidity-init-panel input {
  min-height: 52px;
  border-radius: 14px;
}

.token-list-panel .status,
.liquidity-init-panel .status,
.onchain-panel .status {
  margin-top: 10px;
}

.onchain-panel .connect-btn {
  margin-bottom: 20px;
}

.wallet-info-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 1.9fr;
  gap: 14px;
  margin-bottom: 20px;
}

.wallet-info-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.025);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 94px;
  justify-content: center;
  overflow: hidden;
}

.wallet-info-card-wide {
  min-width: 0;
}

.wallet-info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--fa-text-muted);
  font-weight: 700;
}

.wallet-info-value {
  font-size: 18px;
  line-height: 1.25;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--fa-text);
  word-break: break-word;
}

@media (max-width: 1180px) {
  .token-list-grid {
    grid-template-columns: 1fr 1fr;
  }

  .liquidity-init-grid {
    grid-template-columns: 1fr;
  }

  .wallet-info-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .token-list-grid,
  .liquidity-init-grid,
  .wallet-info-strip,
  .onchain-grid {
    grid-template-columns: 1fr;
  }

  .token-list-panel .primary-btn,
  .liquidity-init-panel .primary-btn,
  .onchain-panel .connect-btn {
    width: 100%;
  }

  .wallet-info-value {
    font-size: 16px;
  }
}

/* ===== PATCH FOR CURRENT HTML ===== */

.top-shell .hero-bar h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.top-shell .hero-bar p {
  margin: 0;
  font-size: 20px;
  color: var(--fa-text-muted);
}

.market-strip > div {
  min-height: 132px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid var(--fa-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--fa-text);
}

.market-strip select {
  min-height: 76px;
  border-radius: 18px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
}

.auth-grid form,
#withdraw-form,
#deposit-form,
#token-list-form,
#liquidity-init-form,
#order-form {
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.02);
  display: grid;
  gap: 14px;
}

.auth-grid form h3,
#withdraw-form h3,
#deposit-form h3,
#token-list-form h3,
#liquidity-init-form h3 {
  margin: 0 0 4px 0;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
}

.panel h2 {
  margin: 0 0 18px 0;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.auth-grid button,
#withdraw-form button,
#deposit-form button,
#token-list-form button,
#liquidity-init-form button,
#order-form button,
#connect-btn,
#logout-btn {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--fa-brand) 0%, var(--fa-brand-2) 100%);
  box-shadow: 0 10px 24px rgba(0, 109, 119, 0.26);
  width: fit-content;
}

#logout-btn {
  background: transparent;
  border: 1px solid var(--fa-border);
  color: var(--fa-text-soft);
  box-shadow: none;
}

.auth-grid input,
.auth-grid select,
#withdraw-form input,
#withdraw-form select,
#deposit-form input,
#deposit-form select,
#token-list-form input,
#token-list-form select,
#liquidity-init-form input,
#liquidity-init-form select,
#order-form input,
#order-form select {
  min-height: 52px;
  border-radius: 14px;
}

#order-form {
  grid-template-columns: 1fr 1fr;
}

#order-form button {
  grid-column: 1 / -1;
}

#token-list-form {
  gap: 16px;
}

#liquidity-init-form {
  gap: 16px;
}

#withdraw-form,
#deposit-form {
  margin-top: 18px;
}

.user-strip {
  font-size: 22px;
  font-weight: 700;
}

.status,
#auth-status,
#order-status,
#onchain-status,
#token-list-status,
#liquidity-init-status {
  margin-top: 14px;
  min-height: 24px;
  font-size: 14px;
  color: var(--fa-text-muted);
}

@media (max-width: 980px) {
  #order-form {
    grid-template-columns: 1fr;
  }

  .market-strip > div {
    font-size: 22px;
    min-height: 110px;
  }

  .top-shell .hero-bar h1 {
    font-size: 40px;
  }

  .top-shell .hero-bar p {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-grid button,
  #withdraw-form button,
  #deposit-form button,
  #token-list-form button,
  #liquidity-init-form button,
  #order-form button,
  #connect-btn,
  #logout-btn {
    width: 100%;
  }
}

.chart-panel {
  padding-bottom: 24px;
}

.chart-panel .section-head {
  margin-bottom: 16px;
}

/* Final menu-tab position override */
.lab-nav-reveal,
.lab-nav-reveal.visible {
  top: 14px !important;
  right: auto !important;
  bottom: auto !important;
  left: 0 !important;
  padding: 10px 13px 10px 9px !important;
  border: 1px solid var(--fa-border-2) !important;
  border-left: 0 !important;
  border-radius: 0 13px 13px 0 !important;
}
.lab-nav-reveal { transform: translateX(-110%) !important; }
.lab-nav-reveal.visible { transform: translateX(0) !important; }
.lab-nav-reveal span { writing-mode: horizontal-tb !important; font-size: 10px !important; }

/* FinMarket Lab navigation and guide */
.lab-nav {
  position: fixed;
  z-index: 10020;
  top: 50%;
  left: 14px;
  display: grid;
  gap: 8px;
  width: 76px;
  padding: 10px;
  transform: translateY(-50%);
  border: 1px solid var(--fa-border);
  border-radius: 22px;
  background: rgba(7, 26, 47, .88);
  box-shadow: 0 18px 48px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
}

.lab-nav-btn {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 62px;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: var(--fa-text-muted);
}

.lab-nav-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lab-nav-btn span {
  max-width: 62px;
  font: 700 9px/1.15 var(--font-head);
  text-align: center;
}

.lab-nav-btn:hover {
  border-color: rgba(10,139,150,.25);
  background: rgba(10,139,150,.08);
  color: var(--fa-text-soft);
}

.lab-nav-btn.active {
  border-color: rgba(197,162,74,.34);
  background: linear-gradient(145deg, rgba(10,139,150,.22), rgba(197,162,74,.09));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--fa-gold);
}

.lab-drawer-backdrop {
  position: fixed;
  z-index: 10030;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(2, 10, 19, .58);
  backdrop-filter: blur(5px);
  transition: opacity .25s ease, visibility .25s ease;
}

.lab-drawer-backdrop.visible { visibility: visible; opacity: 1; }

.lab-drawer {
  position: fixed;
  z-index: 10040;
  top: 18px;
  bottom: 18px;
  left: 102px;
  width: min(620px, calc(100vw - 122px));
  overflow-y: auto;
  padding: 28px;
  transform: translateX(calc(-100% - 130px));
  border: 1px solid var(--fa-border-2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 0 0, rgba(10,139,150,.15), transparent 32%),
    linear-gradient(180deg, #0b223c, #071a2f);
  box-shadow: 0 28px 80px rgba(0,0,0,.5);
  transition: transform .32s cubic-bezier(.2,.75,.2,1);
}

.lab-drawer.open { transform: translateX(0); }
.lab-drawer-open { overflow: hidden; }

.lab-drawer-head {
  position: sticky;
  z-index: 2;
  top: -28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: -28px -28px 22px;
  padding: 28px;
  border-bottom: 1px solid var(--fa-border);
  background: rgba(8, 29, 51, .94);
  backdrop-filter: blur(16px);
}

.lab-drawer-head h2 { margin: 0; font: 800 27px/1.1 var(--font-head); }
.lab-drawer-close { width: 40px; height: 40px; border: 1px solid var(--fa-border); border-radius: 12px; background: rgba(255,255,255,.04); color: #fff; font-size: 25px; }
.guide-lead { padding: 17px 19px; border-left: 3px solid var(--fa-gold); border-radius: 4px 14px 14px 4px; background: rgba(197,162,74,.07); color: var(--fa-text-soft); line-height: 1.6; }

.guide-actions { display: grid; gap: 10px; margin-top: 18px; }
.guide-actions article { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 15px; border: 1px solid var(--fa-border); border-radius: 16px; background: rgba(255,255,255,.025); }
.guide-actions article > b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: rgba(10,139,150,.15); color: var(--fa-gold); font: 800 12px/1 var(--font-head); }
.guide-actions h3, .route-timeline h3 { margin: 0; color: var(--fa-text); font: 700 15px/1.3 var(--font-head); }
.guide-actions p, .route-timeline p { margin: 5px 0 0; color: var(--fa-text-muted); font-size: 13px; line-height: 1.55; }

.guide-faq { margin-top: 26px; }
.guide-faq > h3 { margin: 0 0 12px; font: 800 19px/1.2 var(--font-head); }
.guide-faq details { border-bottom: 1px solid var(--fa-border); }
.guide-faq summary { padding: 15px 3px; color: var(--fa-text-soft); font-weight: 700; cursor: pointer; }
.guide-faq details p { margin: -3px 0 15px; color: var(--fa-text-muted); font-size: 13px; line-height: 1.55; }

.route-progress-card { margin: 18px 0 22px; padding: 17px; border: 1px solid var(--fa-border); border-radius: 16px; background: rgba(255,255,255,.025); }
.route-progress-card > div:first-child { display: flex; justify-content: space-between; color: var(--fa-text-soft); font-size: 13px; }
.route-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.route-timeline li { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 0 0 22px; }
.route-timeline li::before { content: ""; position: absolute; top: 38px; bottom: 4px; left: 17px; width: 1px; background: linear-gradient(var(--fa-brand-2), rgba(10,139,150,.08)); }
.route-timeline li:last-child::before { display: none; }
.route-timeline li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(10,139,150,.35); border-radius: 50%; background: #0b2a46; color: var(--fa-gold); font: 800 12px/1 var(--font-head); }

@media (min-width: 1101px) {
  body { padding-left: 92px; }
}

@media (max-width: 1100px) {
  body { padding-bottom: 78px; }
  .lab-nav { top: auto; right: 12px; bottom: 10px; left: 12px; grid-template-columns: repeat(3, 1fr); width: auto; transform: none; border-radius: 18px; }
  .lab-nav-btn { min-height: 50px; grid-template-columns: auto auto; align-content: center; gap: 7px; padding: 7px; }
  .lab-nav-btn span { max-width: none; font-size: 10px; }
  .lab-nav-btn.active { box-shadow: inset 0 3px 0 var(--fa-gold); }
  .lab-drawer { top: 10px; right: 10px; bottom: 82px; left: 10px; width: auto; transform: translateY(calc(100% + 100px)); }
  .lab-drawer.open { transform: translateY(0); }
}

@media (max-width: 600px) {
  .lab-nav-btn { grid-template-columns: 1fr; gap: 3px; }
  .lab-nav-btn svg { width: 19px; height: 19px; }
  .lab-drawer { padding: 20px; border-radius: 20px; }
  .lab-drawer-head { top: -20px; margin: -20px -20px 18px; padding: 20px; }
  .lab-drawer-head h2 { font-size: 22px; }
}

/* Collapsible navigation */
.lab-nav { transition: transform .28s ease, opacity .2s ease; }
.lab-nav.collapsed { transform: translate(-130%, -50%); opacity: 0; pointer-events: none; }
.lab-nav-collapse { width: 100%; height: 28px; border: 1px solid var(--fa-border); border-radius: 10px; background: rgba(255,255,255,.035); color: var(--fa-text-muted); font-size: 21px; line-height: 1; }
.lab-nav-reveal { position: fixed; z-index: 10025; top: 50%; left: 0; display: flex; align-items: center; gap: 5px; padding: 11px 8px 11px 6px; transform: translate(-110%, -50%); border: 1px solid var(--fa-border-2); border-left: 0; border-radius: 0 14px 14px 0; background: rgba(7,26,47,.94); box-shadow: 0 12px 32px rgba(0,0,0,.3); color: var(--fa-text-soft); opacity: 0; transition: transform .25s ease, opacity .2s ease; }
.lab-nav-reveal.visible { transform: translate(0, -50%); opacity: 1; }
.lab-nav-reveal svg { width: 19px; height: 19px; fill: none; stroke: var(--fa-gold); stroke-width: 1.8; stroke-linecap: round; }
.lab-nav-reveal span { writing-mode: vertical-rl; font: 700 9px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }

@media (min-width: 1101px) {
  body.lab-nav-is-collapsed { padding-left: 0; }
}

/* Analytics view */
.analytics-kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.analytics-kpi-grid article { min-height: 92px; padding: 15px; border: 1px solid var(--fa-border); border-radius: 15px; background: rgba(255,255,255,.025); }
.analytics-kpi-grid span { display: block; color: var(--fa-text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.analytics-kpi-grid strong { display: block; margin-top: 8px; color: var(--fa-text); font: 800 20px/1.1 var(--font-head); }
.analytics-explainer { padding: 19px; border: 1px solid rgba(10,139,150,.25); border-radius: 17px; background: linear-gradient(145deg, rgba(10,139,150,.1), rgba(59,130,246,.035)); }
.analytics-explainer h3 { margin: 0; font: 800 18px/1.35 var(--font-head); }
.analytics-explainer p { margin: 9px 0 0; color: var(--fa-text-muted); font-size: 13px; line-height: 1.65; }
.analytics-notes { margin-top: 22px; }

/* Professional market chart */
.chart-panel { min-height: 720px !important; height: auto !important; padding: 0 !important; overflow: hidden !important; background: #080d17 !important; }
.pro-chart-header { display: flex; align-items: center; gap: 18px; min-height: 70px; padding: 14px 18px; border-bottom: 1px solid rgba(148,163,184,.12); background: #0b111d; }
.pro-chart-symbol { display: flex; align-items: center; gap: 11px; }
.symbol-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(145deg, #0a8b96, #075c65); box-shadow: 0 6px 18px rgba(10,139,150,.25); color: #fff; font: 800 11px/1 var(--font-head); }
.pro-chart-symbol div { display: grid; gap: 3px; }
.pro-chart-symbol strong { color: #f4f7fb; font: 800 16px/1.1 var(--font-head); }
.pro-chart-symbol div span { color: #737f91; font-size: 10px; }
.pro-chart-price { display: grid; gap: 2px; margin-left: auto; text-align: right; }
.pro-chart-price strong { color: #f4f7fb; font: 800 18px/1.1 var(--font-head); }
.pro-chart-price span { color: #8793a5; font-size: 11px; font-weight: 700; }
.pro-chart-price span.positive { color: #26a69a; }
.pro-chart-price span.negative { color: #ef5350; }
.chart-icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(148,163,184,.14); border-radius: 9px; background: #111927; color: #9aa4b2; }
.chart-icon-btn:hover, .chart-icon-btn.active { border-color: #3b82f6; color: #fff; }
.chart-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pro-chart-toolbar { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 7px 13px; overflow-x: auto; border-bottom: 1px solid rgba(148,163,184,.1); background: #0a101a; }
.pro-chart-toolbar .intervals { display: flex; flex-wrap: nowrap; gap: 3px; }
.pro-chart-toolbar .interval-btn, .chart-tool-btn { min-width: auto; height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #8994a5; font: 700 11px/1 var(--font-head); white-space: nowrap; }
.pro-chart-toolbar .interval-btn:hover, .chart-tool-btn:hover { background: #151d2a; color: #dbe2ec; }
.pro-chart-toolbar .interval-btn.active, .chart-tool-btn.active { border-color: rgba(59,130,246,.28); background: rgba(59,130,246,.14); color: #7db1ff; box-shadow: none; }
.toolbar-divider { flex: 0 0 1px; height: 22px; margin: 0 2px; background: rgba(148,163,184,.14); }
.chart-mode-switch { display: flex; gap: 2px; }

.chart-legend-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 39px; padding: 5px 16px; background: #080d17; }
.chart-legend-row .chart-ohlc { padding: 0; border: 0; background: transparent; border-radius: 0; font-size: 11px; }
.chart-legend-row .chart-ohlc span { color: #697587; }
.chart-legend-row .chart-ohlc strong { margin-left: 4px; color: #c5ceda; }
.chart-live-indicator { display: inline-flex; align-items: center; gap: 6px; color: #687487; font: 700 9px/1 var(--font-head); letter-spacing: .08em; }
.chart-live-indicator i { width: 6px; height: 6px; border-radius: 50%; background: #26a69a; box-shadow: 0 0 0 4px rgba(38,166,154,.1); animation: chart-live-pulse 1.8s ease-in-out infinite; }
@keyframes chart-live-pulse { 50% { opacity: .45; box-shadow: 0 0 0 7px rgba(38,166,154,0); } }

.chart-panel .chart-shell { position: relative; width: 100%; height: 555px !important; min-height: 555px !important; max-height: none !important; overflow: hidden; background: #080d17; }
.chart-panel #chart-container { width: 100%; height: 100% !important; min-height: 500px !important; max-height: none !important; border: 0; border-radius: 0; background: #080d17; }
.chart-watermark { position: absolute; left: 20px; bottom: 18px; z-index: 0; color: rgba(148,163,184,.07); font: 800 25px/1 var(--font-head); letter-spacing: .08em; pointer-events: none; }
.chart-empty-state { z-index: 3; border-radius: 0; background: rgba(8,13,23,.9); }

.chart-panel.chart-fullscreen { position: fixed !important; z-index: 12000 !important; inset: 12px !important; width: auto !important; min-height: 0 !important; margin: 0 !important; border-radius: 18px !important; box-shadow: 0 30px 100px rgba(0,0,0,.7) !important; }
.chart-panel.chart-fullscreen .chart-shell { height: calc(100vh - 171px) !important; }
.chart-fullscreen-open { overflow: hidden !important; }
.chart-fullscreen-open::before { content: ""; position: fixed; z-index: 11999; inset: 0; background: rgba(2,6,12,.82); backdrop-filter: blur(6px); }

@media (max-width: 1100px) {
  .lab-nav { grid-template-columns: 38px repeat(3, 1fr); }
  .lab-nav-collapse { height: 50px; }
  .lab-nav.collapsed { transform: translateY(150%); }
  .lab-nav-reveal { top: auto; right: 10px; bottom: 10px; left: auto; transform: translateY(150%); border: 1px solid var(--fa-border-2); border-radius: 14px; }
  .lab-nav-reveal.visible { transform: translateY(0); }
  .lab-nav-reveal span { writing-mode: horizontal-tb; }
}

@media (max-width: 700px) {
  .pro-chart-header { gap: 10px; padding: 11px 12px; }
  .pro-chart-price { display: none; }
  .chart-icon-btn { margin-left: auto; }
  .pro-chart-toolbar { padding-left: 9px; }
  .chart-panel .chart-shell { height: 480px !important; min-height: 480px !important; }
  .chart-panel { min-height: 650px !important; }
  .analytics-kpi-grid { grid-template-columns: 1fr; }
}

/* Keep the educational order lifecycle fully visible. */
@media (min-width: 1381px) {
  .trading-grid {
    grid-template-rows: minmax(640px, auto) 520px;
  }

  .order-entry-panel {
    height: auto;
    min-height: 640px;
    overflow: visible;
  }
}

@media (max-width: 1380px) {
  .order-entry-panel {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

/* FinMarket Lab educational layer */
.hero-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--fa-gold);
  font: 700 11px/1.2 var(--font-head);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lab-badge,
.tutor-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(120, 214, 176, .28);
  border-radius: 999px;
  background: rgba(120, 214, 176, .08);
  color: var(--fa-success);
  font: 700 11px/1 var(--font-head);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lab-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fa-success);
  box-shadow: 0 0 0 5px rgba(120, 214, 176, .10);
}

.learning-path {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border: 1px solid var(--fa-border);
  border-radius: 18px;
  background: rgba(6, 18, 35, .72);
  box-shadow: var(--shadow-md);
}

.learning-step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--fa-text-soft);
  font-size: 13px;
  white-space: nowrap;
}

.learning-step b {
  color: var(--fa-gold);
  font: 800 12px/1 var(--font-head);
}

.learning-path-line {
  height: 1px;
  flex: 1;
  min-width: 24px;
  margin: 0 14px;
  background: linear-gradient(90deg, rgba(197,162,74,.65), rgba(10,139,150,.45));
}

.order-lifecycle {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--fa-border);
}

.lifecycle-title {
  margin-bottom: 12px;
  color: var(--fa-text-muted);
  font: 700 11px/1.2 var(--font-head);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lifecycle-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.lifecycle-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--fa-text-muted);
  font-size: 11px;
}

.lifecycle-step::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 28px;
  right: -6px;
  height: 2px;
  background: var(--fa-border);
}

.lifecycle-step:last-child::before { display: none; }

.lifecycle-step span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--fa-border-2);
  border-radius: 50%;
  background: #102942;
  font-weight: 700;
}

.lifecycle-step.active { color: var(--fa-text-soft); }
.lifecycle-step.active span { border-color: var(--fa-brand-2); background: var(--fa-brand); }
.lifecycle-step.active::before { background: var(--fa-brand-2); }
.lifecycle-step.current span { box-shadow: 0 0 0 5px rgba(10,139,150,.14); }
#lifecycle-caption { margin: 12px 0 0; color: var(--fa-text-muted); font-size: 12px; }

.lab-tools-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: start;
}

.tutor-message {
  box-sizing: border-box;
  width: 100%;
  height: clamp(300px, 36vh, 430px);
  min-height: 300px;
  padding: 16px 18px;
  border-left: 3px solid var(--fa-gold);
  border-radius: 4px 14px 14px 4px;
  background: rgba(197,162,74,.07);
  color: var(--fa-text-soft);
  line-height: 1.65;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(10,139,150,.7) rgba(255,255,255,.04);
}

.tutor-message::-webkit-scrollbar {
  width: 8px;
}

.tutor-message::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}

.tutor-message::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(10,139,150,.72);
  background-clip: padding-box;
}

.tutor-message h3 {
  margin: 0 0 10px;
  color: var(--fa-text);
  font: 800 17px/1.35 var(--font-head);
}

.tutor-message p {
  margin: 8px 0 0;
}

.tutor-message ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 19px;
}

.tutor-message li::marker {
  color: var(--fa-gold);
}

.tutor-message strong {
  color: #ffffff;
  font-weight: 700;
}

.tutor-message code {
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: rgba(255,255,255,.05);
  color: var(--fa-success);
  font: 600 12px/1.4 var(--font-head);
}

.tutor-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tutor-topics button {
  padding: 9px 12px;
  border: 1px solid var(--fa-border);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: var(--fa-text-soft);
  font-size: 12px;
}

.tutor-topics button:hover { border-color: var(--fa-brand-2); background: rgba(10,139,150,.10); }

.instructor-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.instructor-kpis > div {
  padding: 13px;
  border: 1px solid var(--fa-border);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}

.instructor-kpis span { display: block; color: var(--fa-text-muted); font-size: 11px; }
.instructor-kpis strong { display: block; margin-top: 5px; font: 800 23px/1 var(--font-head); color: var(--fa-text); }
.learning-progress { margin-top: 18px; }
.learning-progress-head { display: flex; justify-content: space-between; color: var(--fa-text-soft); font-size: 12px; }
.learning-progress-bar { height: 8px; margin: 9px 0 12px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.learning-progress-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--fa-brand-2), var(--fa-gold)); transition: width .35s ease; }
#instructor-insight { margin: 0; color: var(--fa-text-muted); font-size: 13px; }

@media (max-width: 980px) {
  .lab-tools-grid { grid-template-columns: 1fr; }
  .learning-path { overflow-x: auto; }
  .learning-path-line { flex: 0 0 30px; }
}

@media (max-width: 700px) {
  .hero-bar { align-items: flex-start; }
  .lab-badge { display: none; }
  .learning-path { align-items: flex-start; flex-direction: column; gap: 10px; }
  .learning-path-line { display: none; }
  .instructor-kpis { grid-template-columns: repeat(2, 1fr); }
}

.intervals {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.interval-btn {
  min-width: 54px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.75);
  color: #cbd5e1;
  font-weight: 700;
}

.interval-btn:hover {
  background: rgba(30, 41, 59, 0.9);
}

.interval-btn.active {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.market-stats-strip,
.market-filters-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--fa-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025)),
    linear-gradient(180deg, #0d2440 0%, #0a1f37 100%);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  margin-bottom: 18px;
}

.market-stats-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 18px;
}

.market-stat-card {
  min-height: 120px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid var(--fa-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.market-value-small {
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1.08;
  font-weight: 800;
  color: var(--fa-text);
}

.market-value-small.positive {
  color: var(--fa-success);
}

.market-value-small.negative {
  color: var(--fa-danger);
}

.market-filters {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 14px;
}

.market-filters input,
.market-filters select {
  min-height: 52px;
  border-radius: 14px;
}

@media (max-width: 1380px) {
  .market-stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .market-stats-strip {
    grid-template-columns: 1fr;
  }
}

.market-info-panel {
  margin-bottom: 22px;
}

.market-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.info-mini-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.025);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 94px;
  justify-content: center;
  overflow: hidden;
}

.info-mini-card-wide {
  grid-column: span 2;
}

#info-market-status {
  color: var(--fa-success);
}

@media (max-width: 1180px) {
  .market-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .info-mini-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .market-info-grid {
    grid-template-columns: 1fr;
  }

  .info-mini-card-wide {
    grid-column: span 1;
  }
}

.market-directory-panel {
  margin-bottom: 22px;
}

.market-directory-toolbar {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 14px;
  margin-bottom: 18px;
}

.market-directory-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.market-directory-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.025);
  border-radius: 18px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: center;
  color: var(--fa-text);
}

.market-directory-item:hover {
  border-color: rgba(10, 139, 150, 0.35);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.03);
}

.market-directory-item.active {
  border-color: rgba(10, 139, 150, 0.65);
  box-shadow: 0 0 0 2px rgba(10, 139, 150, 0.14);
}

.market-directory-main {
  display: grid;
  gap: 6px;
}

.market-directory-pair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.market-directory-pair {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--fa-text);
}

.market-directory-symbol {
  font-size: 13px;
  color: var(--fa-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.market-directory-status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.market-directory-status.active {
  color: #85d8b6;
  background: rgba(120, 214, 176, 0.10);
  border-color: rgba(120, 214, 176, 0.22);
}

.market-directory-status.inactive {
  color: #ffb0ba;
  background: rgba(255, 120, 120, 0.10);
  border-color: rgba(255, 120, 120, 0.22);
}

.market-directory-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.market-directory-stat {
  display: grid;
  gap: 4px;
}

.market-directory-stat-label {
  font-size: 11px;
  color: var(--fa-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.market-directory-stat strong {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--fa-text);
}

.market-directory-select-wrap {
  display: grid;
  gap: 8px;
}

.market-directory-fallback {
  padding: 14px 0;
  color: var(--fa-text-muted);
}

@media (max-width: 980px) {
  .market-directory-toolbar {
    grid-template-columns: 1fr;
  }

  .market-directory-item {
    grid-template-columns: 1fr;
  }

  .market-directory-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .market-directory-stats {
    grid-template-columns: 1fr;
  }

  .market-directory-pair-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.chart-head-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chart-ohlc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.025);
  color: var(--fa-text-soft);
  font-size: 13px;
  white-space: nowrap;
}

.chart-ohlc strong {
  color: var(--fa-text);
  font-family: var(--font-head);
  font-weight: 700;
}

.chart-shell {
  position: relative;
  width: 100%;
  height: 360px;
  min-height: 360px;
  max-height: 360px;
  overflow: hidden;
  flex: 0 0 auto;
}


.chart-empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: var(--fa-text-muted);
  font-size: 15px;
  background: rgba(10, 18, 32, 0.72);
  backdrop-filter: blur(2px);
  pointer-events: none;
}


.chart-panel {
  overflow: visible;
}

#stat-change-24h.positive {
  color: var(--fa-success);
}

#stat-change-24h.negative {
  color: var(--fa-danger);
}

@media (max-width: 980px) {
  .chart-head-right {
    justify-content: flex-start;
  }

  .chart-ohlc {
    flex-wrap: wrap;
  }
}

.chart-shell {
  position: relative;
  width: 100%;
  min-height: 460px;
}


.chart-panel .section-head {
  margin-bottom: 16px;
}

/* Highest-priority placement for the collapsed menu tab. */
body .lab-nav-reveal,
body .lab-nav-reveal.visible {
  top: 14px !important;
  right: auto !important;
  bottom: auto !important;
  left: 0 !important;
  padding: 10px 13px 10px 9px !important;
  border: 1px solid var(--fa-border-2) !important;
  border-left: 0 !important;
  border-radius: 0 13px 13px 0 !important;
}
body .lab-nav-reveal { transform: translateX(-110%) !important; }
body .lab-nav-reveal.visible { transform: translateX(0) !important; }
body .lab-nav-reveal span { writing-mode: horizontal-tb !important; font-size: 10px !important; }

/* Precise navigation and guide containment */
body .lab-nav {
  box-sizing: border-box;
  width: 96px;
  padding: 10px;
  overflow: hidden;
}

body .lab-nav-collapse,
body .lab-nav-btn {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
}

body .lab-nav-btn span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

body .lab-drawer {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0;
}

body .lab-drawer-head {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 22px;
  padding: 28px;
}

body .lab-drawer-close {
  flex: 0 0 40px;
  box-sizing: border-box;
  margin: 0;
}

body .lab-guide-view {
  min-height: 0;
  padding: 0 28px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(10,139,150,.72) transparent;
}

body .lab-guide-view.hidden { display: none; }

/* Financial University news carousel */
.fa-news-widget {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--fa-border);
}

.fa-news-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.fa-news-kicker {
  color: var(--fa-gold);
  font: 800 10px/1 var(--font-head);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fa-news-head h3 {
  margin: 6px 0 0;
  color: var(--fa-text);
  font: 800 18px/1.2 var(--font-head);
}

.fa-news-head > a {
  flex: 0 0 auto;
  color: var(--fa-text-muted);
  font-size: 11px;
  text-decoration: none;
}

.fa-news-head > a:hover { color: var(--fa-brand-2); }

.fa-news-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 168px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--fa-border);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(10,139,150,.12), rgba(197,162,74,.055));
  color: inherit;
  text-decoration: none;
  opacity: 1;
  transform: translateY(0);
  transition: border-color .2s ease, background .2s ease, opacity .18s ease, transform .18s ease;
}

.fa-news-card:hover { border-color: rgba(10,139,150,.5); background: linear-gradient(135deg, rgba(10,139,150,.17), rgba(197,162,74,.08)); }
.fa-news-card.changing { opacity: 0; transform: translateY(5px); }
.fa-news-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--fa-text-muted); font-size: 11px; }
.fa-news-meta span:first-child { color: var(--fa-gold); font-weight: 800; }
.fa-news-card h4 { margin: 14px 0 18px; color: var(--fa-text-soft); font: 750 17px/1.4 var(--font-head); }
.fa-news-read { margin-top: auto; color: var(--fa-brand-2); font: 700 12px/1 var(--font-head); }
.fa-news-read b { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.fa-news-card:hover .fa-news-read b { transform: translateX(4px); }
.fa-news-controls { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.fa-news-controls button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.2); transition: width .2s ease, background .2s ease; }
.fa-news-controls button.active { width: 24px; background: linear-gradient(90deg, var(--fa-brand-2), var(--fa-gold)); }

@media (max-width: 1100px) {
  body .lab-nav { width: auto; overflow: visible; }
  body .lab-drawer-head { padding: 22px; }
  body .lab-guide-view { padding: 0 22px 22px; }
}

/* Transparent page scrollbar and equal-height lower widgets */
html,
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(83, 190, 196, .72) transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(83, 190, 196, .68);
  background-clip: padding-box;
}

.lab-tools-grid {
  align-items: stretch;
  margin-bottom: 24px;
}

.lab-tools-grid > .panel {
  box-sizing: border-box;
  height: 100%;
}

.university-news-panel {
  display: flex;
  flex-direction: column;
}

.token-lifecycle-card { padding: 17px; border: 1px solid var(--fa-border); border-radius: 18px; background: linear-gradient(135deg,rgba(10,139,150,.11),rgba(255,255,255,.025)); }
.token-lifecycle-identity { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 11px; }
.token-lifecycle-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(145deg,var(--fa-brand-2),#006d77); color: #fff; font: 800 12px/1 var(--font-head); }
.token-lifecycle-identity > div { min-width: 0; }
.token-lifecycle-identity strong, .token-lifecycle-identity > div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-lifecycle-identity strong { color: #fff; font: 800 15px/1.25 var(--font-head); }
.token-lifecycle-identity > div span { margin-top: 4px; color: var(--fa-text-muted); font-size: 11px; }
.token-lifecycle-status { padding: 7px 9px; border: 1px solid rgba(197,162,74,.3); border-radius: 999px; color: var(--fa-gold); font: 700 9px/1 var(--font-head); text-transform: uppercase; }
.token-lifecycle-status.active { border-color: rgba(66,211,146,.3); background: rgba(66,211,146,.07); color: var(--fa-success); }
.token-contract-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 11px; background: rgba(2,12,23,.28); }
.token-contract-row > span { color: var(--fa-text-muted); font-size: 10px; }
.token-contract-row strong { overflow: hidden; color: var(--fa-text-soft); font: 600 10px/1.3 var(--font-head); text-overflow: ellipsis; white-space: nowrap; }
.token-contract-row a { color: var(--fa-brand-2); font-size: 10px; text-decoration: none; }
.token-stage-track { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: start; gap: 7px; margin-top: 17px; }
.token-stage-track > div { display: grid; justify-items: center; gap: 6px; color: var(--fa-text-muted); font-size: 9px; }
.token-stage-track b { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--fa-border); border-radius: 50%; background: #102942; color: var(--fa-text-muted); }
.token-stage-track i { height: 1px; margin-top: 13px; background: var(--fa-border); }
.token-stage-track > div.complete { color: var(--fa-text-soft); }
.token-stage-track > div.complete b { border-color: rgba(10,139,150,.5); background: rgba(10,139,150,.18); color: var(--fa-success); }
.token-stage-track > div.complete + i { background: linear-gradient(90deg,var(--fa-brand-2),rgba(10,139,150,.2)); }
.token-lifecycle-caption { margin: 15px 0 0; color: var(--fa-text-muted); font-size: 11px; line-height: 1.5; }

.fa-news-widget {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.fa-news-card {
  flex: 1 1 auto;
}

/* Перетаскиваемый разделитель области объёма */
.volume-resizer {
  position: absolute;
  z-index: 7;
  right: 72px;
  left: 0;
  height: 13px;
  margin-top: -6px;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
}

.volume-resizer::before {
  content: "";
  position: absolute;
  top: 6px;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(148, 163, 184, .10);
  transition: background .16s ease, box-shadow .16s ease;
}

.volume-resizer span {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 42px;
  height: 7px;
  transform: translateX(-50%);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  background: rgba(8, 13, 23, .9);
}

.volume-resizer:hover::before,
.volume-resizer.dragging::before {
  background: rgba(83, 190, 196, .75);
  box-shadow: 0 0 10px rgba(83, 190, 196, .28);
}

.volume-resizer:hover span,
.volume-resizer.dragging span {
  border-color: rgba(83, 190, 196, .8);
}

.volume-resizer.hidden { display: none; }
body.volume-resizing { cursor: ns-resize !important; user-select: none !important; }


/* FINCEX2_COUNTRY_STYLES_V2
=========================================================
   FINCEX 2.0 — ВИРТУАЛЬНЫЕ СТРАНЫ
========================================================= */

.fincex2-country-panel,
.fincex2-news-panel {
  position: relative;
  overflow: hidden;
}

.f2-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.f2-country-empty {
  padding: 26px;
  border: 1px dashed rgba(148,163,184,.28);
  border-radius: 14px;
  color: #94a3b8;
  text-align: center;
}

.f2-country-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.f2-token-mark {
  display: inline-flex;
  padding: 5px 9px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(14,165,233,.12);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 800;
}

.f2-country-heading h3 {
  margin: 0;
  font-size: 24px;
}

.f2-reference-box {
  min-width: 240px;
  padding: 14px 16px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 14px;
  background: rgba(15,23,42,.30);
}

.f2-reference-box span,
.f2-reference-box small {
  display: block;
  color: #94a3b8;
}

.f2-reference-box strong {
  display: block;
  margin: 5px 0;
  font-size: 22px;
}

.f2-reference-box small {
  font-size: 11px;
}

.f2-principle {
  margin-bottom: 16px;
  padding: 13px 15px;
  border-left: 3px solid #38bdf8;
  border-radius: 0 10px 10px 0;
  background: rgba(56,189,248,.06);
  color: #cbd5e1;
  line-height: 1.5;
}

.f2-metrics-grid {
  display: grid;
  grid-template-columns:
    repeat(4,minmax(0,1fr));
  gap: 10px;
}

.f2-metrics-grid article {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 12px;
  background: rgba(15,23,42,.24);
}

.f2-metrics-grid span {
  display: block;
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.f2-metrics-grid strong {
  font-size: 18px;
}

.f2-analysis-grid {
  display: grid;
  grid-template-columns:
    1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.f2-analysis-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(15,23,42,.22);
}

.f2-analysis-card h3 {
  margin-top: 0;
}

.f2-analysis-item {
  margin-top: 8px;
  color: #cbd5e1;
  line-height: 1.5;
}

.f2-my-country-box {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(148,163,184,.14);
}

.f2-create-country {
  display: grid;
  grid-template-columns:
    minmax(0,1fr) auto;
  gap: 10px;
}

.f2-issuer-caption {
  color: #94a3b8;
  line-height: 1.5;
}

.f2-policy-grid {
  display: grid;
  grid-template-columns:
    repeat(4,minmax(0,1fr));
  gap: 8px;
}

.f2-policy-grid button {
  min-height: 52px;
  white-space: normal;
}

.f2-news-description {
  margin-bottom: 15px;
  color: #94a3b8;
  line-height: 1.5;
}

.f2-news-list {
  display: grid;
  gap: 9px;
}

.f2-news-card {
  padding: 14px 16px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 12px;
  background: rgba(15,23,42,.22);
}

.f2-news-meta {
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 11px;
}

.f2-news-title {
  margin-bottom: 6px;
  font-weight: 800;
}

.f2-news-body {
  color: #cbd5e1;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .f2-metrics-grid {
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .f2-policy-grid {
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 700px) {
  .f2-country-heading {
    display: grid;
  }

  .f2-reference-box {
    min-width: 0;
  }

  .f2-create-country,
  .f2-metrics-grid,
  .f2-analysis-grid,
  .f2-policy-grid {
    grid-template-columns: 1fr;
  }
}



/* FINCEX_STAGE2_STYLES
==========================================================
   FINCEX 2.0 — ЭТАП 2
========================================================== */

.f2-stage2-description {
  color: #94a3b8;
  line-height: 1.55;
  max-width: 900px;
}


.f2-hypothesis-form {
  display: grid;
  grid-template-columns:
    minmax(280px, 2fr)
    minmax(180px, .8fr)
    minmax(220px, 1fr)
    auto;
  gap: 10px;
  align-items: stretch;
}


.f2-hypothesis-form textarea {
  min-height: 80px;
  resize: vertical;
}


.f2-hypothesis-list,
.f2-calendar-list,
.f2-event-history,
.f2-relations-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}


.f2-hypothesis-card,
.f2-calendar-card,
.f2-event-card,
.f2-relation-card {
  padding: 14px 16px;

  border:
    1px solid
    rgba(148,163,184,.14);

  border-radius: 12px;

  background:
    rgba(15,23,42,.22);
}


.f2-hypothesis-meta,
.f2-calendar-meta,
.f2-event-meta {
  margin-bottom: 6px;

  color: #94a3b8;

  font-size: 11px;
}


.f2-hypothesis-thesis {
  margin-bottom: 8px;

  color: #e2e8f0;

  font-weight: 700;
}


.f2-hypothesis-review {
  color: #cbd5e1;
  line-height: 1.5;
}


.f2-instructor-auth {
  display: grid;
  grid-template-columns:
    minmax(260px,1fr)
    auto;
  gap: 10px;

  max-width: 650px;
}


.f2-engine-summary {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0,1fr)
    );

  gap: 10px;

  margin-top: 20px;
}


.f2-engine-summary article {
  padding: 14px;

  border:
    1px solid
    rgba(148,163,184,.14);

  border-radius: 12px;

  background:
    rgba(15,23,42,.24);
}


.f2-engine-summary span {
  display: block;

  margin-bottom: 7px;

  color: #94a3b8;

  font-size: 12px;
}


.f2-engine-summary strong {
  font-size: 17px;
}


.f2-instructor-block {
  margin-top: 20px;

  padding-top: 18px;

  border-top:
    1px solid
    rgba(148,163,184,.14);
}


.f2-instructor-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0,1fr)
    );

  gap: 10px;

  margin: 12px 0;
}


.f2-instructor-grid label {
  display: grid;
  gap: 7px;

  color: #94a3b8;

  font-size: 12px;
}


.f2-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


.f2-relation-card {
  display: grid;

  grid-template-columns:
    1fr auto auto;

  gap: 15px;

  align-items: center;
}


.f2-event-card strong,
.f2-calendar-card strong {
  display: block;
  margin-bottom: 4px;
}


.f2-event-type {
  display: inline-flex;

  padding: 3px 7px;

  border-radius: 999px;

  background:
    rgba(56,189,248,.10);

  color: #38bdf8;

  font-size: 10px;

  font-weight: 800;

  text-transform: uppercase;
}


@media (max-width: 1100px) {

  .f2-hypothesis-form,
  .f2-instructor-grid,
  .f2-engine-summary {

    grid-template-columns:
      repeat(
        2,
        minmax(0,1fr)
      );
  }
}


@media (max-width: 700px) {

  .f2-hypothesis-form,
  .f2-instructor-auth,
  .f2-instructor-grid,
  .f2-engine-summary,
  .f2-relation-card {

    grid-template-columns:
      1fr;
  }
}


/* FINCEX_FINAL_STUDENT_STYLES_V1
========================================================= */

.f4-auth-gate,
.f4-training-shell {

  position:
    fixed;

  inset:
    0;

  z-index:
    200000;

  background:
    #07111f;

  color:
    #e2e8f0;
}


.f4-auth-gate {

  display:
    grid;

  place-items:
    center;

  padding:
    20px;
}


.f4-auth-gate.hidden,
.f4-training-shell.hidden {

  display:
    none !important;
}


.f4-auth-card {

  width:
    min(
      440px,
      100%
    );

  padding:
    30px;

  border:
    1px solid
    rgba(148,163,184,.18);

  border-radius:
    22px;

  background:
    #0c1828;

  box-shadow:
    0 30px 80px
    rgba(0,0,0,.38);
}


.f4-auth-card h1 {

  margin:
    6px 0 10px;
}


.f4-auth-card p {

  color:
    #94a3b8;

  line-height:
    1.55;
}


.f4-eyebrow {

  color:
    #38bdf8;

  font-size:
    11px;

  font-weight:
    800;

  letter-spacing:
    .12em;

  text-transform:
    uppercase;
}


.f4-auth-tabs {

  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    7px;

  margin:
    22px 0 14px;
}


.f4-auth-tabs button.active {

  border-color:
    #38bdf8;
}


.f4-auth-form {

  display:
    grid;

  gap:
    10px;
}


.f4-auth-form.hidden {

  display:
    none;
}


.f4-auth-form input {

  width:
    100%;

  box-sizing:
    border-box;
}


.f4-status {

  margin-top:
    10px;

  color:
    #94a3b8;

  line-height:
    1.45;
}


.f4-status.error {

  color:
    #fca5a5;
}


.f4-status.success {

  color:
    #86efac;
}


/* TRAINING */

.f4-training-shell {

  overflow:
    auto;

  padding:
    15px;

  box-sizing:
    border-box;
}


.f4-training-header {

  display:
    flex;

  justify-content:
    space-between;

  gap:
    20px;

  align-items:
    center;

  margin-bottom:
    10px;

  padding:
    14px 18px;

  border:
    1px solid
    rgba(148,163,184,.13);

  border-radius:
    14px;

  background:
    #0c1828;
}


.f4-training-header strong {

  display:
    block;

  margin-top:
    4px;
}


.f4-progress-track {

  height:
    7px;

  margin-bottom:
    13px;

  overflow:
    hidden;

  border-radius:
    999px;

  background:
    rgba(148,163,184,.12);
}


.f4-progress-bar {

  width:
    0;

  height:
    100%;

  background:
    linear-gradient(
      90deg,
      #0284c7,
      #22c55e
    );

  transition:
    width .3s;
}


.f4-training-layout {

  display:
    grid;

  grid-template-columns:
    210px
    minmax(0,1fr)
    390px;

  gap:
    12px;

  align-items:
    start;
}


.f4-lessons-panel,
.f4-tutor-panel {

  position:
    sticky;

  top:
    0;

  max-height:
    calc(100vh - 100px);

  overflow-y:
    auto;

  padding:
    15px;

  border:
    1px solid
    rgba(148,163,184,.13);

  border-radius:
    14px;

  background:
    #0c1828;
}


.f4-lessons {

  display:
    grid;

  gap:
    6px;
}


.f4-lesson-btn {

  width:
    100%;

  padding:
    9px 10px;

  border:
    1px solid
    rgba(148,163,184,.13);

  border-radius:
    9px;

  background:
    rgba(15,23,42,.5);

  color:
    #94a3b8;

  font-size:
    11px;

  text-align:
    left;
}


.f4-lesson-btn.completed {

  border-color:
    rgba(34,197,94,.3);

  color:
    #86efac;
}


.f4-lesson-btn.active {

  border-color:
    #38bdf8;

  color:
    #e0f2fe;
}


.f4-lesson-btn:disabled {

  opacity:
    .35;
}


.f4-mock-exchange {

  display:
    grid;

  gap:
    10px;
}


.f4-mock-panel {

  padding:
    16px;

  border:
    1px solid
    rgba(148,163,184,.13);

  border-radius:
    13px;

  background:
    #0c1828;

  transition:
    .2s;
}


.f4-mock-panel.f4-highlight {

  border-color:
    #38bdf8;

  box-shadow:
    0 0 0 3px
    rgba(56,189,248,.13);
}


.f4-mock-overview {

  display:
    flex;

  justify-content:
    space-between;

  align-items:
    center;
}


.f4-demo-badge {

  padding:
    6px 9px;

  border-radius:
    999px;

  background:
    rgba(245,158,11,.12);

  color:
    #fbbf24;

  font-size:
    10px;

  font-weight:
    800;
}


.f4-market-row {

  display:
    grid;

  grid-template-columns:
    1.2fr repeat(4,1fr);

  gap:
    8px;

  padding:
    9px 0;

  border-bottom:
    1px solid
    rgba(148,163,184,.08);

  font-size:
    12px;
}


.positive {

  color:
    #86efac;
}


.negative {

  color:
    #fca5a5;
}


.f4-chart {

  height:
    220px;

  color:
    #38bdf8;

  background:
    linear-gradient(
      180deg,
      rgba(56,189,248,.06),
      transparent
    );

  border-radius:
    10px;
}


.f4-chart svg {

  width:
    100%;

  height:
    100%;
}


.f4-chart-meta {

  margin-top:
    8px;

  color:
    #94a3b8;

  font-size:
    11px;
}


.f4-two-columns {

  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    10px;
}


.f4-book-row,
.f4-trade-row {

  display:
    flex;

  justify-content:
    space-between;

  padding:
    7px 0;

  font-size:
    12px;
}


.f4-book-row.ask {

  color:
    #fca5a5;
}


.f4-book-row.bid {

  color:
    #86efac;
}


.f4-book-mid {

  margin:
    5px 0;

  padding:
    6px;

  text-align:
    center;

  border-radius:
    8px;

  background:
    rgba(148,163,184,.07);

  font-size:
    11px;
}


.f4-form-grid {

  display:
    grid;

  grid-template-columns:
    repeat(4,1fr)
    auto;

  gap:
    8px;
}


.f4-kpis {

  display:
    grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(120px,1fr)
    );

  gap:
    8px;
}


.f4-kpis article {

  padding:
    11px;

  border:
    1px solid
    rgba(148,163,184,.10);

  border-radius:
    9px;

  background:
    rgba(15,23,42,.35);
}


.f4-kpis span,
.f4-kpis strong {

  display:
    block;
}


.f4-kpis span {

  margin-bottom:
    5px;

  color:
    #94a3b8;

  font-size:
    10px;
}


.f4-demo-address {

  padding:
    10px;

  border-radius:
    8px;

  background:
    rgba(56,189,248,.06);

  font-family:
    monospace;
}


.f4-token-form {

  display:
    grid;

  grid-template-columns:
    1fr
    .7fr
    auto;

  gap:
    8px;
}


.f4-policy-grid {

  display:
    grid;

  grid-template-columns:
    repeat(3,1fr);

  gap:
    7px;
}


.f4-world-chain {

  display:
    flex;

  flex-wrap:
    wrap;

  align-items:
    center;

  gap:
    8px;
}


.f4-world-chain span {

  padding:
    7px 9px;

  border-radius:
    8px;

  background:
    rgba(56,189,248,.06);
}


.f4-lesson-points {

  display:
    grid;

  gap:
    8px;

  margin:
    14px 0;
}


.f4-lesson-point {

  padding:
    10px;

  border-left:
    3px solid
    #38bdf8;

  background:
    rgba(56,189,248,.04);

  color:
    #cbd5e1;

  font-size:
    12px;

  line-height:
    1.45;
}


.f4-options {

  display:
    grid;

  gap:
    7px;

  margin-top:
    10px;
}


.f4-options button {

  text-align:
    left;
}


.f4-provision-steps {

  display:
    grid;

  gap:
    10px;

  margin:
    18px 0;
}


.f4-provision-steps div {

  padding:
    10px;

  border-radius:
    8px;

  background:
    rgba(148,163,184,.06);
}


.f4-provision-steps .done {

  color:
    #86efac;

  background:
    rgba(34,197,94,.06);
}


.f4-exam-question {

  padding:
    11px 0;

  border-bottom:
    1px solid
    rgba(148,163,184,.1);
}


.f4-exam-question label {

  display:
    block;

  margin-top:
    5px;

  color:
    #cbd5e1;

  font-size:
    12px;
}


@media (
  max-width: 1200px
) {

  .f4-training-layout {

    grid-template-columns:
      170px
      minmax(0,1fr)
      330px;
  }
}


@media (
  max-width: 900px
) {

  .f4-training-layout {

    grid-template-columns:
      1fr;
  }


  .f4-lessons-panel,
  .f4-tutor-panel {

    position:
      relative;

    max-height:
      none;
  }


  .f4-two-columns,
  .f4-form-grid,
  .f4-token-form,
  .f4-policy-grid {

    grid-template-columns:
      1fr;
  }
}



/* FINCEX_STAGE56_ECONOMY_STYLES
========================================================= */


.f56-economy {

  margin-top:
    20px;

  padding-top:
    18px;

  border-top:
    1px solid
    rgba(148,163,184,.14);
}


.f56-economy-head {

  display:
    flex;

  justify-content:
    space-between;

  gap:
    16px;

  align-items:
    flex-start;

  margin-bottom:
    14px;
}


.f56-economy-type {

  padding:
    6px 9px;

  border-radius:
    999px;

  background:
    rgba(56,189,248,.08);

  color:
    #7dd3fc;

  font-size:
    11px;

  font-weight:
    800;
}


.f56-description {

  max-width:
    900px;

  color:
    #94a3b8;

  line-height:
    1.5;
}


.f56-grid {

  display:
    grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0,1fr)
    );

  gap:
    12px;

  margin-top:
    14px;
}


.f56-card {

  padding:
    14px;

  border:
    1px solid
    rgba(148,163,184,.13);

  border-radius:
    12px;

  background:
    rgba(15,23,42,.20);
}


.f56-card h4 {

  margin:
    0 0 12px;
}


.f56-sector {

  margin-bottom:
    9px;
}


.f56-sector-head {

  display:
    flex;

  justify-content:
    space-between;

  gap:
    10px;

  margin-bottom:
    4px;

  color:
    #cbd5e1;

  font-size:
    12px;
}


.f56-sector-track {

  height:
    6px;

  overflow:
    hidden;

  border-radius:
    999px;

  background:
    rgba(148,163,184,.10);
}


.f56-sector-bar {

  height:
    100%;

  border-radius:
    inherit;

  background:
    rgba(56,189,248,.75);
}


.f56-resource-row,
.f56-trade-row {

  display:
    grid;

  grid-template-columns:
    1.35fr
    .7fr
    .7fr;

  gap:
    8px;

  padding:
    7px 0;

  border-bottom:
    1px solid
    rgba(148,163,184,.07);

  font-size:
    11px;
}


.f56-surplus {

  color:
    #86efac;
}


.f56-deficit {

  color:
    #fca5a5;
}


.f56-empty {

  color:
    #64748b;

  font-size:
    12px;

  line-height:
    1.45;
}


@media (
  max-width: 850px
) {

  .f56-grid {

    grid-template-columns:
      1fr;
  }
}



/* FINCEX_STAGE7_ACCOUNT_STYLES
========================================================= */


/*
  Старая верхняя полоска user-strip
  остаётся в DOM для совместимости
  старого script.js, но визуально
  больше не нужна.
*/

.user-strip {

  display:
    none !important;
}


/*
  На основной бирже регистрации
  и формы входа больше нет.
*/

.auth-panel {

  display:
    none !important;
}


.f7-account-nav-btn {

  cursor:
    pointer;
}


.f7-account-backdrop {

  position:
    fixed;

  inset:
    0;

  z-index:
    400000;

  display:
    flex;

  justify-content:
    flex-start;

  align-items:
    stretch;

  background:
    rgba(1,8,18,.66);

  backdrop-filter:
    blur(7px);
}


.f7-account-backdrop.hidden {

  display:
    none !important;
}


.f7-account-drawer {

  width:
    min(
      460px,
      calc(100vw - 30px)
    );

  height:
    100%;

  box-sizing:
    border-box;

  overflow-y:
    auto;

  padding:
    24px;

  background:

    linear-gradient(
      180deg,
      #10263d,
      #09182a
    );

  border-right:
    1px solid
    rgba(148,163,184,.20);

  box-shadow:
    30px 0 80px
    rgba(0,0,0,.35);
}


.f7-account-head {

  display:
    flex;

  justify-content:
    space-between;

  align-items:
    flex-start;

  gap:
    15px;

  margin-bottom:
    20px;
}


.f7-account-head h2 {

  margin:
    5px 0 0;
}


.f7-kicker {

  font-size:
    10px;

  font-weight:
    900;

  letter-spacing:
    .14em;

  color:
    #22c6d5;
}


.f7-account-close {

  width:
    38px;

  height:
    38px;

  border-radius:
    10px;

  font-size:
    24px;

  line-height:
    1;

  cursor:
    pointer;
}


.f7-account-loading {

  color:
    #9fb2c8;

  padding:
    20px 0;
}


.f7-account-error {

  padding:
    12px;

  border-radius:
    10px;

  background:
    rgba(239,68,68,.08);

  color:
    #fca5a5;
}


.f7-account-hero {

  padding:
    16px;

  margin-bottom:
    12px;

  border:
    1px solid
    rgba(56,189,248,.20);

  border-radius:
    14px;

  background:
    rgba(56,189,248,.05);
}


.f7-account-email {

  font-size:
    17px;

  font-weight:
    800;

  overflow-wrap:
    anywhere;
}


.f7-account-id {

  margin-top:
    5px;

  color:
    #8295aa;

  font-size:
    11px;
}


.f7-account-section {

  margin-top:
    12px;

  padding:
    14px;

  border:
    1px solid
    rgba(148,163,184,.13);

  border-radius:
    13px;

  background:
    rgba(8,20,36,.40);
}


.f7-account-section h3 {

  margin:
    0 0 12px;

  font-size:
    14px;
}


.f7-account-grid {

  display:
    grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0,1fr)
    );

  gap:
    8px;
}


.f7-account-stat {

  min-width:
    0;

  padding:
    9px;

  border-radius:
    9px;

  background:
    rgba(148,163,184,.055);
}


.f7-account-stat span {

  display:
    block;

  margin-bottom:
    4px;

  color:
    #8599ae;

  font-size:
    10px;
}


.f7-account-stat strong {

  display:
    block;

  overflow-wrap:
    anywhere;

  color:
    #e2edf7;

  font-size:
    12px;
}


.f7-account-wide {

  grid-column:
    1 /
    -1;
}


.f7-account-token {

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  min-width:
    50px;

  padding:
    5px 8px;

  border-radius:
    999px;

  background:
    rgba(34,197,94,.09);

  color:
    #86efac;

  font-weight:
    900;
}


.f7-account-warning {

  color:
    #fbbf24 !important;
}


.f7-account-danger {

  color:
    #fca5a5 !important;
}


.f7-account-good {

  color:
    #86efac !important;
}


.f7-account-actions {

  display:
    grid;

  gap:
    8px;

  margin-top:
    16px;
}


.f7-account-logout {

  width:
    100%;

  padding:
    11px;

  cursor:
    pointer;

  border:
    1px solid
    rgba(239,68,68,.28);

  border-radius:
    10px;

  background:
    rgba(239,68,68,.07);

  color:
    #fecaca;

  font-weight:
    800;
}


@media (
  max-width: 520px
) {

  .f7-account-grid {

    grid-template-columns:
      1fr;
  }


  .f7-account-wide {

    grid-column:
      auto;
  }
}



/* FINCEX_STAGE8_COUNTRY_STYLES
========================================================= */


/*
  Старый country panel сохраняем в DOM
  для совместимости старых функций,
  но основным интерфейсом страны
  становится Stage 8.
*/

#f2-country-panel {

  display:
    none !important;
}


.f8-country-workspace {

  position:
    fixed;

  inset:
    0;

  z-index:
    300000;

  box-sizing:
    border-box;

  overflow-y:
    auto;

  background:
    #071421;

  color:
    #e5eef7;
}


.f8-country-workspace.hidden {

  display:
    none !important;
}


.f8-country-header {

  position:
    sticky;

  top:
    0;

  z-index:
    10;

  display:
    flex;

  justify-content:
    space-between;

  gap:
    20px;

  align-items:
    center;

  min-height:
    86px;

  padding:
    14px 24px;

  background:
    rgba(7,20,33,.94);

  border-bottom:
    1px solid
    rgba(148,163,184,.14);

  backdrop-filter:
    blur(14px);
}


.f8-country-title {

  display:
    flex;

  gap:
    17px;

  align-items:
    center;
}


.f8-country-title h1 {

  margin:
    3px 0;

  font-size:
    25px;
}


.f8-country-subtitle {

  color:
    #8ea3b8;

  font-size:
    12px;
}


.f8-kicker {

  color:
    #27c3d4;

  font-size:
    10px;

  font-weight:
    900;

  letter-spacing:
    .14em;
}


.f8-back-btn {

  padding:
    9px 12px;

  border-radius:
    9px;

  cursor:
    pointer;
}


.f8-country-top-stats {

  display:
    flex;

  gap:
    8px;

  flex-wrap:
    wrap;

  justify-content:
    flex-end;
}


.f8-top-stat {

  min-width:
    85px;

  padding:
    8px 10px;

  border:
    1px solid
    rgba(148,163,184,.12);

  border-radius:
    9px;

  background:
    rgba(15,32,50,.75);
}


.f8-top-stat span {

  display:
    block;

  margin-bottom:
    3px;

  color:
    #8195aa;

  font-size:
    9px;

  text-transform:
    uppercase;
}


.f8-top-stat strong {

  font-size:
    12px;
}


.f8-country-tabs {

  position:
    sticky;

  top:
    115px;

  z-index:
    9;

  display:
    flex;

  gap:
    6px;

  overflow-x:
    auto;

  padding:
    10px 24px;

  background:
    rgba(7,20,33,.96);

  border-bottom:
    1px solid
    rgba(148,163,184,.10);
}


.f8-country-tabs button {

  flex:
    0 0 auto;

  padding:
    8px 11px;

  border:
    1px solid
    transparent;

  border-radius:
    9px;

  background:
    transparent;

  color:
    #8da1b5;

  cursor:
    pointer;

  font-size:
    11px;

  font-weight:
    800;
}


.f8-country-tabs button.active {

  border-color:
    rgba(39,195,212,.30);

  background:
    rgba(39,195,212,.09);

  color:
    #d9fbff;
}


.f8-country-content {

  width:
    min(
      1480px,
      calc(100% - 40px)
    );

  margin:
    0 auto;

  padding:
    22px 0 60px;
}


.f8-loading {

  padding:
    30px;

  color:
    #94a3b8;
}


.f8-section-head {

  display:
    flex;

  justify-content:
    space-between;

  gap:
    20px;

  align-items:
    flex-end;

  margin-bottom:
    16px;
}


.f8-section-head h2 {

  margin:
    2px 0 0;
}


.f8-section-head p {

  max-width:
    650px;

  margin:
    0;

  color:
    #8498ad;

  font-size:
    12px;

  line-height:
    1.5;
}


.f8-grid {

  display:
    grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0,1fr)
    );

  gap:
    10px;
}


.f8-grid-2 {

  display:
    grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0,1fr)
    );

  gap:
    12px;
}


.f8-grid-3 {

  display:
    grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0,1fr)
    );

  gap:
    12px;
}


.f8-card {

  min-width:
    0;

  padding:
    15px;

  border:
    1px solid
    rgba(148,163,184,.13);

  border-radius:
    13px;

  background:
    linear-gradient(
      180deg,
      rgba(17,40,62,.86),
      rgba(10,26,42,.88)
    );
}


.f8-card h3,
.f8-card h4 {

  margin:
    0 0 12px;
}


.f8-metric {

  padding:
    13px;

  border:
    1px solid
    rgba(148,163,184,.10);

  border-radius:
    11px;

  background:
    rgba(4,16,28,.35);
}


.f8-metric span {

  display:
    block;

  margin-bottom:
    6px;

  color:
    #8197ac;

  font-size:
    10px;
}


.f8-metric strong {

  display:
    block;

  font-size:
    20px;

  font-weight:
    850;
}


.f8-metric small {

  display:
    block;

  margin-top:
    6px;

  color:
    #74889c;

  font-size:
    10px;

  line-height:
    1.4;
}


.f8-good {

  color:
    #86efac !important;
}


.f8-warning {

  color:
    #fbbf24 !important;
}


.f8-danger {

  color:
    #fca5a5 !important;
}


.f8-info {

  color:
    #7dd3fc !important;
}


.f8-diagnosis {

  display:
    grid;

  gap:
    8px;
}


.f8-diagnosis-item {

  padding:
    11px 12px;

  border-left:
    3px solid
    #38bdf8;

  border-radius:
    8px;

  background:
    rgba(56,189,248,.04);
}


.f8-diagnosis-item.warning {

  border-color:
    #f59e0b;

  background:
    rgba(245,158,11,.04);
}


.f8-diagnosis-item.danger {

  border-color:
    #ef4444;

  background:
    rgba(239,68,68,.04);
}


.f8-diagnosis-item.good {

  border-color:
    #22c55e;

  background:
    rgba(34,197,94,.04);
}


.f8-diagnosis-item strong {

  display:
    block;

  margin-bottom:
    4px;
}


.f8-diagnosis-item p {

  margin:
    0;

  color:
    #94a3b8;

  font-size:
    11px;

  line-height:
    1.45;
}


.f8-progress {

  height:
    7px;

  overflow:
    hidden;

  margin-top:
    6px;

  border-radius:
    999px;

  background:
    rgba(148,163,184,.10);
}


.f8-progress > div {

  height:
    100%;

  border-radius:
    inherit;

  background:
    #27c3d4;
}


.f8-list {

  display:
    grid;

  gap:
    7px;
}


.f8-row {

  display:
    grid;

  grid-template-columns:
    minmax(0,1.4fr)
    minmax(80px,.8fr)
    minmax(70px,.6fr);

  gap:
    10px;

  align-items:
    center;

  padding:
    8px 0;

  border-bottom:
    1px solid
    rgba(148,163,184,.08);

  font-size:
    11px;
}


.f8-row:last-child {

  border-bottom:
    none;
}


.f8-event {

  padding:
    13px;

  border:
    1px solid
    rgba(148,163,184,.11);

  border-radius:
    11px;

  background:
    rgba(9,25,41,.55);
}


.f8-event-meta {

  display:
    flex;

  justify-content:
    space-between;

  gap:
    10px;

  margin-bottom:
    6px;

  color:
    #7990a5;

  font-size:
    9px;
}


.f8-event h4 {

  margin:
    0 0 6px;

  font-size:
    13px;
}


.f8-event p {

  margin:
    0;

  color:
    #9aadc0;

  font-size:
    11px;

  line-height:
    1.5;
}


.f8-policy-card {

  display:
    flex;

  flex-direction:
    column;

  min-height:
    245px;
}


.f8-policy-card p {

  color:
    #91a5b8;

  font-size:
    11px;

  line-height:
    1.48;
}


.f8-policy-group {

  color:
    #27c3d4;

  font-size:
    9px;

  font-weight:
    900;

  letter-spacing:
    .08em;

  text-transform:
    uppercase;
}


.f8-policy-controls {

  margin-top:
    auto;

  display:
    grid;

  gap:
    7px;
}


.f8-policy-controls input,
.f8-policy-controls select {

  width:
    100%;

  box-sizing:
    border-box;
}


.f8-policy-btn {

  width:
    100%;

  padding:
    9px;

  cursor:
    pointer;

  font-weight:
    800;
}


.f8-policy-btn:disabled {

  cursor:
    not-allowed;

  opacity:
    .4;
}


.f8-policy-status {

  margin-bottom:
    13px;

  min-height:
    20px;

  font-size:
    11px;

  color:
    #94a3b8;
}


.f8-program {

  padding:
    10px;

  border-radius:
    9px;

  background:
    rgba(39,195,212,.05);

  font-size:
    11px;
}


.f8-pill {

  display:
    inline-flex;

  padding:
    4px 7px;

  border-radius:
    999px;

  background:
    rgba(56,189,248,.08);

  color:
    #7dd3fc;

  font-size:
    9px;

  font-weight:
    800;
}


.f8-empty {

  padding:
    18px;

  color:
    #6f8499;

  font-size:
    11px;
}


@media (
  max-width: 1100px
) {

  .f8-grid {

    grid-template-columns:
      repeat(
        2,
        minmax(0,1fr)
      );
  }


  .f8-grid-3 {

    grid-template-columns:
      repeat(
        2,
        minmax(0,1fr)
      );
  }


  .f8-country-header {

    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .f8-country-tabs {

    top:
      140px;
  }
}


@media (
  max-width: 700px
) {

  .f8-grid,
  .f8-grid-2,
  .f8-grid-3 {

    grid-template-columns:
      1fr;
  }


  .f8-country-content {

    width:
      calc(100% - 22px);
  }


  .f8-country-header {

    padding:
      12px;
  }


  .f8-country-tabs {

    top:
      155px;

    padding-left:
      12px;

    padding-right:
      12px;
  }
}



/* FINCEX_STAGE9_COMPACT_STYLES
========================================================= */


.f9-compact-hidden {

  display:
    none !important;
}


.f9-expand-wrap {

  display:
    flex;

  justify-content:
    center;

  margin:
    11px 0 4px;
}


.f9-expand-btn {

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    7px;

  min-width:
    180px;

  padding:
    8px 14px;

  border:
    1px solid
    rgba(55,190,210,.24);

  border-radius:
    9px;

  background:
    rgba(35,190,205,.055);

  color:
    #9fdde4;

  cursor:
    pointer;

  font-size:
    10px;

  font-weight:
    850;

  letter-spacing:
    .025em;

  transition:
    background .16s ease,
    border-color .16s ease;
}


.f9-expand-btn:hover {

  background:
    rgba(35,190,205,.11);

  border-color:
    rgba(55,190,210,.42);
}


.f9-expand-btn.hidden {

  display:
    none !important;
}


.market-directory-panel.f9-collapsed-panel {

  overflow:
    hidden;
}


.f9-event-panel {

  overflow:
    hidden;
}


.f9-compact-note {

  margin-left:
    8px;

  color:
    #6f859a;

  font-size:
    9px;
}




/* FINCEX_PUBLIC_PROFILE_STYLES_V1
========================================================= */


.f10-profile-chip {

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  margin-left:
    8px;

  padding:
    4px 7px;

  border:
    1px solid
    rgba(56,189,248,.22);

  border-radius:
    999px;

  background:
    rgba(56,189,248,.07);

  color:
    #7dd3fc;

  cursor:
    pointer;

  font-size:
    9px;

  font-weight:
    850;

  letter-spacing:
    .03em;
}


.f10-profile-chip:hover {

  background:
    rgba(56,189,248,.14);
}


.f10-profile-backdrop {

  position:
    fixed;

  inset:
    0;

  z-index:
    450000;

  display:
    flex;

  justify-content:
    flex-end;

  background:
    rgba(2,8,18,.68);

  backdrop-filter:
    blur(7px);
}


.f10-profile-backdrop.hidden {

  display:
    none !important;
}


.f10-profile-drawer {

  width:
    min(
      680px,
      calc(100vw - 28px)
    );

  height:
    100%;

  box-sizing:
    border-box;

  overflow-y:
    auto;

  padding:
    23px;

  background:
    linear-gradient(
      180deg,
      #10263d,
      #071524
    );

  border-left:
    1px solid
    rgba(148,163,184,.18);

  box-shadow:
    -35px 0 90px
    rgba(0,0,0,.38);
}


.f10-profile-head {

  display:
    flex;

  justify-content:
    space-between;

  gap:
    16px;

  align-items:
    flex-start;

  margin-bottom:
    16px;
}


.f10-profile-kicker {

  color:
    #28c2d0;

  font-size:
    9px;

  font-weight:
    900;

  letter-spacing:
    .14em;
}


.f10-profile-head h2 {

  margin:
    4px 0 3px;

  font-size:
    25px;
}


.f10-profile-country {

  color:
    #8fa4b8;

  font-size:
    12px;
}


.f10-profile-close {

  width:
    38px;

  height:
    38px;

  border-radius:
    10px;

  cursor:
    pointer;

  font-size:
    23px;
}


.f10-profile-badges {

  display:
    flex;

  gap:
    6px;

  flex-wrap:
    wrap;

  margin-bottom:
    14px;
}


.f10-badge {

  display:
    inline-flex;

  padding:
    5px 8px;

  border-radius:
    999px;

  background:
    rgba(125,211,252,.08);

  color:
    #9cdbf8;

  font-size:
    9px;

  font-weight:
    850;
}


.f10-badge.owner {

  background:
    rgba(34,197,94,.08);

  color:
    #86efac;
}


.f10-badge.readonly {

  background:
    rgba(251,191,36,.07);

  color:
    #fde68a;
}


.f10-profile-section {

  margin-top:
    11px;

  padding:
    14px;

  border:
    1px solid
    rgba(148,163,184,.12);

  border-radius:
    12px;

  background:
    rgba(7,20,34,.44);
}


.f10-profile-section h3 {

  margin:
    0 0 12px;

  font-size:
    14px;
}


.f10-profile-grid {

  display:
    grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0,1fr)
    );

  gap:
    8px;
}


.f10-stat {

  min-width:
    0;

  padding:
    9px;

  border-radius:
    9px;

  background:
    rgba(148,163,184,.055);
}


.f10-stat span {

  display:
    block;

  margin-bottom:
    4px;

  color:
    #8095a9;

  font-size:
    9px;
}


.f10-stat strong {

  display:
    block;

  overflow-wrap:
    anywhere;

  font-size:
    12px;
}


.f10-profile-wide {

  grid-column:
    1 /
    -1;
}


.f10-good {

  color:
    #86efac !important;
}


.f10-warning {

  color:
    #fbbf24 !important;
}


.f10-danger {

  color:
    #fca5a5 !important;
}


.f10-resource,
.f10-trade-row {

  display:
    grid;

  grid-template-columns:
    minmax(0,1.5fr)
    minmax(80px,.8fr)
    minmax(60px,.55fr);

  gap:
    8px;

  padding:
    7px 0;

  border-bottom:
    1px solid
    rgba(148,163,184,.07);

  font-size:
    10px;
}


.f10-news {

  padding:
    11px 0;

  border-bottom:
    1px solid
    rgba(148,163,184,.08);
}


.f10-news:last-child {

  border-bottom:
    none;
}


.f10-news-meta {

  margin-bottom:
    4px;

  color:
    #70869b;

  font-size:
    9px;
}


.f10-news strong {

  display:
    block;

  margin-bottom:
    4px;

  font-size:
    12px;
}


.f10-news p {

  margin:
    0;

  color:
    #93a7b9;

  font-size:
    10px;

  line-height:
    1.45;
}


.f10-access-box {

  padding:
    11px;

  border-radius:
    10px;

  background:
    rgba(34,197,94,.055);

  color:
    #a8d8b7;

  font-size:
    10px;

  line-height:
    1.5;
}


.f10-access-box.readonly {

  background:
    rgba(251,191,36,.045);

  color:
    #d8c99c;
}


.f10-loading {

  padding:
    25px 0;

  color:
    #8da1b4;
}


@media (
  max-width: 620px
) {

  .f10-profile-grid {

    grid-template-columns:
      repeat(
        2,
        minmax(0,1fr)
      );
  }


  .f10-profile-wide {

    grid-column:
      1 /
      -1;
  }
}




/* FINCEX_DAILY_BRIEF_STYLES_V1
========================================================= */

.f11-brief-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  min-height: 34px;

  padding: 7px 11px;

  border: 1px solid rgba(56,189,248,.2);
  border-radius: 9px;

  background: rgba(56,189,248,.07);
  color: #9adcf8;

  cursor: pointer;

  font-size: 10px;
  font-weight: 850;
}

.f11-brief-btn:hover {
  background: rgba(56,189,248,.13);
}

.f11-brief-btn.hidden {
  display: none !important;
}


.f11-backdrop {
  position: fixed;
  inset: 0;

  z-index: 600000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(2,8,18,.72);

  backdrop-filter: blur(8px);
}

.f11-backdrop.hidden {
  display: none !important;
}


.f11-modal {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));

  overflow-y: auto;

  box-sizing: border-box;

  padding: 22px;

  border: 1px solid rgba(148,163,184,.17);
  border-radius: 18px;

  background:
    linear-gradient(
      160deg,
      #122a43,
      #081624 72%
    );

  box-shadow:
    0 30px 100px rgba(0,0,0,.48);
}


.f11-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  gap: 15px;

  margin-bottom: 15px;
}


.f11-kicker {
  color: #2cc7d5;

  font-size: 9px;
  font-weight: 900;

  letter-spacing: .15em;
}


.f11-head h2 {
  margin: 5px 0 3px;

  font-size: 23px;
  line-height: 1.15;
}


.f11-country {
  color: #899eb1;

  font-size: 11px;
}


.f11-close {
  width: 38px;
  height: 38px;

  flex: 0 0 auto;

  border-radius: 10px;

  cursor: pointer;

  font-size: 22px;
}


.f11-type {
  display: inline-flex;

  margin-bottom: 12px;

  padding: 5px 8px;

  border-radius: 999px;

  background: rgba(125,211,252,.08);
  color: #9cddfb;

  font-size: 9px;
  font-weight: 900;
}


.f11-type.event {
  background: rgba(251,191,36,.08);
  color: #fde68a;
}

.f11-type.market {
  background: rgba(96,165,250,.08);
  color: #93c5fd;
}

.f11-type.system {
  background: rgba(192,132,252,.08);
  color: #d8b4fe;
}

.f11-type.quiet {
  background: rgba(34,197,94,.07);
  color: #86efac;
}

.f11-type.breaking {
  background: rgba(248,113,113,.1);
  color: #fca5a5;
}


.f11-summary {
  margin: 0;

  color: #becbd8;

  font-size: 12px;
  line-height: 1.6;
}


.f11-section {
  margin-top: 14px;

  padding: 13px;

  border: 1px solid rgba(148,163,184,.1);
  border-radius: 11px;

  background: rgba(4,15,27,.35);
}


.f11-section-title {
  margin-bottom: 9px;

  color: #879caf;

  font-size: 9px;
  font-weight: 850;

  letter-spacing: .06em;
  text-transform: uppercase;
}


.f11-why {
  color: #a6b7c5;

  font-size: 11px;
  line-height: 1.55;
}


.f11-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0,1fr));

  gap: 7px;
}


.f11-stat {
  min-width: 0;

  padding: 9px;

  border-radius: 9px;

  background: rgba(148,163,184,.05);
}


.f11-stat span {
  display: block;

  margin-bottom: 4px;

  color: #778da1;

  font-size: 8px;
}


.f11-stat strong {
  display: block;

  overflow-wrap: anywhere;

  font-size: 11px;
}


.f11-positive {
  color: #86efac !important;
}

.f11-negative {
  color: #fca5a5 !important;
}


.f11-actions {
  display: flex;
  justify-content: flex-end;

  gap: 8px;

  margin-top: 17px;
}


.f11-primary,
.f11-secondary {
  min-height: 36px;

  padding: 8px 13px;

  border-radius: 9px;

  cursor: pointer;

  font-size: 10px;
  font-weight: 850;
}


.f11-primary {
  border: 1px solid rgba(56,189,248,.25);

  background: rgba(56,189,248,.12);
  color: #a7e4fa;
}


.f11-secondary {
  border: 1px solid rgba(148,163,184,.13);

  background: rgba(148,163,184,.05);
  color: #b7c4cf;
}


.f11-breaking-line {
  height: 3px;

  margin: -22px -22px 19px;

  border-radius: 18px 18px 0 0;

  background:
    linear-gradient(
      90deg,
      #ef4444,
      #f59e0b
    );
}


@media (max-width: 620px) {
  .f11-grid {
    grid-template-columns:
      repeat(2, minmax(0,1fr));
  }

  .f11-actions {
    flex-direction: column-reverse;
  }

  .f11-primary,
  .f11-secondary {
    width: 100%;
  }
}



/* FINCEX_FA_BRANDING_V2 */

.f12-auth-logo-slot {
  display: flex !important;
  align-items: center !important;
  min-height: 44px;
  margin-bottom: 18px !important;
  padding: 0 !important;
}

.f12-auth-fa-logo {
  display: block;
  width: 190px;
  max-width: 75%;
  max-height: 50px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.f12-brief-fa-logo {
  display: block;
  width: 125px;
  max-width: 44%;
  max-height: 34px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 10px;
}

@media (max-width: 620px) {
  .f12-auth-fa-logo {
    width: 160px;
  }

  .f12-brief-fa-logo {
    width: 105px;
  }
}


/* FINCEX_EDU_EMAIL_PLACEHOLDER_V1 */

#f4-auth-gate input[type="email"]::placeholder {
  color: rgba(148, 163, 184, 0.58);
  opacity: 1;
}

#f4-auth-gate input[type="email"]::-webkit-input-placeholder {
  color: rgba(148, 163, 184, 0.58);
}

