/* 3cnm.live – light gradient black to blue */
:root {
  --bg-start: #0a0a0f;
  --bg-end: #0f172a;
  --long: #22c55e;
  --short: #ef4444;
  --close: #6b7280;
  --input-bg: rgba(255,255,255,0.08);
  --input-border: rgba(255,255,255,0.2);
  --text: #e2e8f0;
  --text-muted: rgba(226, 232, 240, 0.75);
  --danger: #f87171;
  --accent: #38bdf8;
  --panel: rgba(15, 23, 42, 0.65);
  --panel-border: rgba(56, 189, 248, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

/* Auth pages */
.auth-box {
  max-width: 360px;
  width: 100%;
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  border: 1px solid var(--input-border);
}

.auth-box h1 {
  margin-top: 0;
  text-align: center;
  font-size: 1.5rem;
}

.auth-box label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.auth-box input[type="text"],
.auth-box input[type="password"],
.auth-box input[type="number"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
}

.auth-box button,
.auth-box .btn {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  background: #2563eb;
  color: white;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.auth-box button:hover,
.auth-box .btn:hover {
  background: #1d4ed8;
}

.flash.error {
  color: #f87171;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.flash.success {
  color: #4ade80;
  margin-bottom: 1rem;
}

/* Trading layout */
.logo-wrap {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-wrap img {
  height: 48px;
  width: auto;
}

/* Symbol switch (on/off style) */
.symbol-switch-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.symbol-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.symbol-switch {
  display: inline-flex;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 999px;
  padding: 3px;
  gap: 0;
}

.symbol-option {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.15s, background 0.15s;
}

.symbol-option:hover {
  opacity: 0.9;
}

.symbol-option.active {
  background: rgba(255,255,255,0.15);
  opacity: 1;
}

.trading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 640px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.input-group input {
  width: 100px;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--text);
}

.input-group input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.buttons-center {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-long {
  padding: 0.85rem 1.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: var(--long);
  color: #fff;
}

.btn-long:hover:not(:disabled) {
  filter: brightness(1.1);
}

.btn-long:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-short {
  padding: 0.85rem 1.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: var(--short);
  color: #fff;
}

.btn-short:hover:not(:disabled) {
  filter: brightness(1.1);
}

.btn-short:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-close {
  padding: 0.85rem 1.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: var(--close);
  color: #fff;
}

.btn-close:hover:not(:disabled) {
  filter: brightness(1.15);
}

.btn-close:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nav-line {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.nav-line a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-line a:hover {
  text-decoration: underline;
}

.page-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
}

.setup-2fa .qr-wrap {
  text-align: center;
  margin: 1rem 0;
}

.setup-2fa .qr-wrap svg {
  max-width: 200px;
  height: auto;
}

/* —— Trading page (checklist + controls) —— */
body.page-trading {
  display: block;
  padding: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 120% 80% at 10% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 90% 60% at 100% 100%, rgba(34, 197, 94, 0.06) 0%, transparent 45%),
    linear-gradient(165deg, #07080c 0%, #0c1220 40%, #0a1628 100%);
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--text);
}

.trading-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.trading-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(10px);
}

.trading-topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.trading-topbar__logo {
  height: 32px;
  width: auto;
}

.trading-topbar__titles {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.15;
}

.trading-topbar__title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.trading-topbar__sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.45);
}

.trading-topbar__user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trading-topbar__name {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trading-topbar__logout {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  transition: background 0.15s, border-color 0.15s;
}

.trading-topbar__logout:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
}

.trading-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  align-items: start;
}

.trading-main--quantops {
  max-width: 1080px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .trading-main--quantops {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.85fr);
    align-items: start;
  }
}

@media (max-width: 820px) {
  .trading-main {
    grid-template-columns: 1fr;
  }
}

.checklist-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.checklist-panel__heading {
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #f8fafc;
}

.checklist-panel__hint {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.checklist-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist-item {
  margin-bottom: 0.65rem;
}

.checklist-item:last-child {
  margin-bottom: 0;
}

.checklist-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  transition: background 0.12s;
}

.checklist-label:hover {
  background: rgba(255, 255, 255, 0.04);
}

.checklist-cb {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.checklist-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #e8eef5;
}

.trade-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.symbol-switch-wrap--panel {
  margin-bottom: 1.25rem;
}

.trade-panel__inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.trade-panel__inputs .input-group input {
  width: 120px;
}

.trade-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.trade-panel__close-wrap {
  margin-bottom: 0.5rem;
}

.trade-panel__close-wrap .btn-close {
  width: 100%;
  max-width: 280px;
}

.trade-panel__message {
  margin: 0.75rem 0 0;
  min-height: 1.2em;
  font-size: 0.9rem;
}

.trade-panel__position {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trade-panel__countdown {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.5);
}

/* QuantOps checklist layout */
.checklist-panel--quantops {
  padding: 1.25rem 1.35rem 1.5rem;
}

.qh-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.qh-head__titles {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.qh-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.qh-title {
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #f8fafc;
}

.qh-sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 36rem;
}

.qh-reset {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.qh-reset:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.qh-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.qh-badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}

.qh-badge--long {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.qh-badge--short {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.qh-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qh-step {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.qh-step:last-of-type {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.qh-step__num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.25), rgba(56, 189, 248, 0.08));
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}

.qh-step__title {
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #f1f5f9;
}

.qh-step__body .checklist-label {
  margin-bottom: 0.35rem;
}

.qh-step__body .checklist-label:last-child {
  margin-bottom: 0;
}

.qh-info {
  margin-top: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.qh-info__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qh-info__summary::-webkit-details-marker {
  display: none;
}

.qh-info__summary::after {
  content: "▸";
  margin-left: auto;
  opacity: 0.5;
  transition: transform 0.2s;
}

.qh-info[open] .qh-info__summary::after {
  transform: rotate(90deg);
}

.qh-info__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  font-style: italic;
}

.qh-info__body {
  padding: 0 0.85rem 0.85rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.qh-info__line {
  margin: 0 0 0.5rem;
}

.qh-info__warn {
  margin: 0.5rem 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid rgba(239, 68, 68, 0.6);
  color: #fecaca;
}

.qh-bullet {
  margin-right: 0.25rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.qh-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--panel-border);
}

.qh-progress-wrap {
  margin-bottom: 0.65rem;
}

.qh-progress {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.4rem;
}

.qh-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.qh-progress-bar__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  transition: width 0.3s ease;
}

.qh-footer__remind {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.qh-footer__emoji {
  font-size: 1rem;
}

.qh-footer__sub {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.55);
  line-height: 1.45;
}

.trade-panel--quantops .trade-panel__title {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #f8fafc;
}

.trade-panel__inputs--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.input-group--entry .input-readonly {
  width: 100%;
  min-width: 0;
  max-width: 200px;
  cursor: default;
  opacity: 0.95;
}

.input-readonly {
  background: rgba(56, 189, 248, 0.08) !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
}

.trade-panel__position--idle {
  color: rgba(226, 232, 240, 0.45);
  font-style: italic;
}

/* —— trade_checklist_am.html layout (two columns + header logo) —— */
body.page-trading .trading-main.trading-main--split {
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  width: 100%;
  box-sizing: border-box;
}

.trading-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1.25rem;
  align-items: start;
}

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

  .exec-column {
    position: static !important;
  }
}

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(7, 10, 18, 0.92);
}

.doc-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.doc-header__logo {
  width: 44px;
  height: auto;
  flex-shrink: 0;
}

.doc-header__titles .doc-line {
  margin: 0;
  line-height: 1.25;
}

.doc-header__titles .doc-line:first-child {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
}

.doc-header__titles .doc-line--quantops {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.5);
  margin-top: 0.12rem;
}

.doc-header__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.doc-header__name {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-header__logout {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}

.doc-header__logout:hover {
  background: rgba(56, 189, 248, 0.1);
}

.checklist-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.checklist-head__center {
  flex: 1;
  text-align: center;
  padding: 0 0.5rem;
}

.checklist-head__center .doc-line--emoji {
  margin-top: 0;
}

.checklist-head__reset {
  flex-shrink: 0;
  align-self: flex-start;
}

.doc-line--subtitle {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  line-height: 1.45 !important;
  max-width: 28rem;
  margin-left: auto !important;
  margin-right: auto !important;
}

.doc-dir-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  position: relative;
  z-index: 2;
}

.doc-dir {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
}

.doc-dir:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.doc-dir:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(0.3);
}

.doc-dir:not(:disabled):active {
  transform: scale(0.98);
}

.doc-dir--long {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.doc-dir--short {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.doc-dir--long.doc-dir--selected {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.85);
  border-color: rgba(74, 222, 128, 0.95);
  background: rgba(34, 197, 94, 0.22);
}

.doc-dir--short.doc-dir--selected {
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.85);
  border-color: rgba(252, 165, 165, 0.95);
  background: rgba(239, 68, 68, 0.2);
}

.trade-checklist-am {
  padding: 1.25rem 1.35rem 1.75rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.trade-exec-panel {
  padding: 1.25rem 1.2rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0.75rem;
}

.trade-exec-panel .doc-line--emoji {
  margin-top: 0;
  margin-bottom: 0.65rem;
  text-align: center;
}

.trade-exec-panel .doc-line--simbol {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(226, 232, 240, 0.55);
  margin-bottom: 0.35rem;
}

.trade-exec-panel .doc-line--symbtns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.trade-exec-panel .doc-line--symbtns .doc-sym {
  margin-right: 0;
}

.exec-sl-tp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.exec-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.exec-field--entry {
  margin-bottom: 1rem;
}

.exec-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(226, 232, 240, 0.65);
}

.trade-exec-panel .doc-input {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.exec-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.trade-exec-panel .btn-long,
.trade-exec-panel .btn-short {
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
}

.btn-close--full {
  width: 100%;
  max-width: none;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.trade-exec-panel .doc-app-msg,
.trade-exec-panel .doc-position,
.trade-exec-panel .doc-countdown {
  font-size: 0.85rem;
}

.trade-checklist-am .doc-line {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e8eef5;
}

.trade-checklist-am .doc-line--emoji {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 0.35rem;
  margin-bottom: 0.45rem;
}

.trade-checklist-am .doc-step-num {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.85rem;
  color: var(--accent);
}

.trade-checklist-am .doc-step-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.trade-checklist-am .doc-spacer {
  min-height: 0.35rem;
  margin: 0;
  line-height: 0.35rem;
  color: transparent;
}

.trade-checklist-am .doc-info-lead {
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
  margin-top: 1rem;
}

.trade-checklist-am .doc-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  max-width: 100%;
}

.trade-checklist-am .doc-check .checklist-cb {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.doc-reset {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.doc-reset:hover {
  background: rgba(56, 189, 248, 0.12);
}

.doc-sym {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  margin-right: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--input-border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  opacity: 0.75;
}

.doc-sym.active {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.doc-input {
  width: 100%;
  max-width: 14rem;
  padding: 0.5rem 0.65rem;
  font-size: 1rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--text);
}

.doc-input--readonly {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.28);
}

.trade-exec-panel .doc-app-msg {
  min-height: 1.2em;
  color: var(--text-muted);
}

.trade-exec-panel .doc-countdown {
  color: rgba(226, 232, 240, 0.45);
}

.trade-exec-panel .doc-position--idle {
  color: rgba(226, 232, 240, 0.45);
  font-style: italic;
}
