/* Trading Journal — premium dark design system */
:root {
  color-scheme: dark;
  --bg: #0a0d0e;
  --bg-soft: #0d1112;
  --surface: #111617;
  --surface-alt: #151b1c;
  --surface-elevated: #192021;
  --surface-hover: #1c2425;
  --primary: #f2f5f4;
  --text: #d7dddb;
  --muted: #7f8b88;
  --muted-strong: #a7b0ae;
  --disabled: #56605e;
  --border: #222a2b;
  --border-strong: #313b3b;
  --accent: #72aaa5;
  --accent-strong: #8ec0bb;
  --accent-soft: rgba(114, 170, 165, .12);
  --pos: #79b8ad;
  --pos-soft: rgba(121, 184, 173, .11);
  --neg: #b76a78;
  --neg-soft: rgba(183, 106, 120, .11);
  --warn: #b5945e;
  --warn-soft: rgba(181, 148, 94, .12);
  --radius-control: 8px;
  --radius-block: 12px;
  --radius-modal: 18px;
  --shadow-elevated: 0 24px 70px rgba(0, 0, 0, .34);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body,
body.dark-mode {
  --bg: #0a0d0e;
  --surface: #111617;
  --primary: #f2f5f4;
  --text: #d7dddb;
  --muted: #7f8b88;
  --border: #222a2b;
  --accent: #72aaa5;
  --accent-2: #8ec0bb;
  --accent-3: #a8d0cc;
  --accent-bg: rgba(114, 170, 165, .12);
  --pos: #79b8ad;
  --neg: #b76a78;
  --warn: #b5945e;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -.01em;
}
body::before,
body::after { display: none; }
button, input, select, textarea { font: inherit; }
button, a, [onclick] { -webkit-tap-highlight-color: transparent; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}
::selection { background: rgba(114, 170, 165, .28); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2b3435; border: 2px solid transparent; background-clip: padding-box; border-radius: 999px; }

/* Public site */
#auth-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: stretch;
  background: var(--bg) !important;
  overflow: hidden;
}
#auth-screen::before, #auth-screen::after { content: none !important; }
#landing-page {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% -20%, rgba(114, 170, 165, .10), transparent 34%),
    var(--bg) !important;
  color: var(--text);
  scroll-behavior: smooth;
}
.lp-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.lp-header {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 3;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.lp-brand, .app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #0b1212;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.brand-mark.small { width: 26px; height: 26px; border-radius: 7px; font-size: 9px; }
.lp-header-links { display: flex; align-items: center; gap: 30px; }
.lp-header-links a { color: var(--muted-strong); text-decoration: none; font-size: 13px; transition: color .15s ease; }
.lp-header-links a:hover { color: var(--primary); }
.lp-header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.lp-text-btn, .lp-compact-cta, .lp-primary-cta, .lp-secondary-cta {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.lp-text-btn { padding: 8px 12px; color: var(--muted-strong); background: transparent; }
.lp-text-btn:hover { color: var(--primary); }
.lp-compact-cta { padding: 9px 15px; border-radius: var(--radius-control); background: #eef2f0; color: #101414; font-weight: 600; }
.lp-compact-cta:hover { background: #fff; transform: translateY(-1px); }
.lp-main { display: block; }
.lp-hero { padding: 122px 0 86px; text-align: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--muted-strong); font-size: 12px; letter-spacing: .04em; margin-bottom: 26px; }
.lp-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lp-hero h1 { margin: 0; color: #f5f7f6; font-size: clamp(54px, 7.8vw, 96px); line-height: .98; letter-spacing: -.065em; font-weight: 500; }
.lp-hero h1 em { color: var(--accent-strong); font-style: normal; }
.lp-hero > p { max-width: 630px; margin: 30px auto 0; color: #98a3a0; font-size: 18px; line-height: 1.55; letter-spacing: -.02em; }
.lp-hero-actions { margin-top: 38px; display: flex; justify-content: center; gap: 12px; }
.lp-primary-cta, .lp-secondary-cta { min-height: 48px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; border-radius: 9px; font-size: 14px; font-weight: 600; }
.lp-primary-cta { background: #eef2f0; color: #101414; }
.lp-primary-cta:hover { background: #fff; transform: translateY(-1px); }
.lp-secondary-cta { color: var(--text); border: 1px solid var(--border-strong); background: var(--surface); }
.lp-secondary-cta:hover { background: var(--surface-hover); border-color: #3d4848; }
.lp-privacy-note { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 11px; color: #65706e; font-size: 11px; }
.lp-privacy-note i { width: 3px; height: 3px; border-radius: 50%; background: #3d4645; }
.lp-product-wrap { position: relative; padding-bottom: 94px; }
.lp-product-wrap::before { content: ''; position: absolute; inset: -18% 8% auto; height: 55%; background: radial-gradient(ellipse, rgba(114, 170, 165, .09), transparent 64%); pointer-events: none; }
.lp-product-frame { position: relative; border: 1px solid #283131; border-radius: 14px; background: #0f1314; box-shadow: 0 40px 100px rgba(0, 0, 0, .42); overflow: hidden; }
.lp-product-topbar { height: 38px; border-bottom: 1px solid #202728; display: flex; align-items: center; gap: 6px; padding: 0 14px; color: #687370; }
.lp-product-topbar > span { width: 6px; height: 6px; border-radius: 50%; background: #36403f; }
.lp-product-topbar b { margin-left: auto; font-size: 10px; font-weight: 500; }
.lp-product-body { min-height: 570px; display: grid; grid-template-columns: 160px 1fr; }
.lp-preview-nav { padding: 24px 16px; border-right: 1px solid #202728; display: flex; flex-direction: column; gap: 4px; background: #0c1011; }
.lp-preview-nav strong { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: #dce1df; font-size: 12px; }
.lp-preview-nav > div { padding: 8px 10px; border-radius: 7px; color: #65706e; font-size: 11px; }
.lp-preview-nav > div.active { color: #dbe1df; background: #151b1c; }
.lp-preview-main { padding: 38px; min-width: 0; }
.lp-preview-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.lp-preview-heading small, .lp-story-copy > small, .lp-final-cta small { color: var(--accent); font-size: 9px; letter-spacing: .13em; font-weight: 600; }
.lp-preview-heading h3 { margin: 6px 0 0; color: #edf1ef; font-size: 27px; letter-spacing: -.045em; font-weight: 500; }
.lp-preview-heading button, .mock-row.heading button { padding: 8px 12px; background: var(--accent); color: #0d1414; border: 0; border-radius: 7px; font-size: 10px; font-weight: 600; }
.lp-preview-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #222a2b; border-radius: 10px; overflow: hidden; }
.lp-preview-metrics > div { padding: 17px 18px; border-right: 1px solid #222a2b; display: flex; flex-direction: column; gap: 3px; }
.lp-preview-metrics > div:last-child { border-right: 0; }
.lp-preview-metrics span { color: #788380; font-size: 10px; }
.lp-preview-metrics strong { color: #e3e8e6; font-size: 23px; line-height: 1.2; font-weight: 550; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.lp-preview-metrics small { color: #5f6a68; font-size: 9px; }
.positive { color: var(--pos) !important; }
.negative { color: var(--neg) !important; }
.lp-preview-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-top: 14px; }
.lp-equity-panel, .lp-insight-panel, .lp-story-ui { border: 1px solid #222a2b; border-radius: 10px; background: #111617; }
.lp-equity-panel, .lp-insight-panel { min-height: 280px; padding: 18px; }
.lp-panel-head { display: flex; justify-content: space-between; color: #d6dcda; font-size: 11px; }
.lp-panel-head b { font-weight: 500; }
.lp-panel-head span { color: #626d6b; font-size: 9px; }
.lp-bars { height: 190px; margin-top: 22px; padding: 10px 4px 0; display: flex; align-items: end; gap: 10px; border-bottom: 1px solid #273031; background: repeating-linear-gradient(to bottom, transparent 0, transparent 46px, rgba(255,255,255,.035) 47px); }
.lp-bars i { flex: 1; min-width: 4px; max-width: 22px; margin-inline: auto; border-radius: 3px 3px 0 0; background: linear-gradient(to top, rgba(114,170,165,.28), rgba(114,170,165,.82)); }
.lp-axis { display: flex; justify-content: space-between; padding-top: 8px; color: #55605e; font-size: 8px; }
.lp-insight-panel article { display: grid; grid-template-columns: 7px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid #222a2b; }
.lp-insight-panel article:last-child { border-bottom: 0; }
.lp-insight-panel article > span { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #65706e; }
.lp-insight-panel article.good > span { background: var(--pos); }
.lp-insight-panel article.bad > span { background: var(--neg); }
.lp-insight-panel article strong { display: block; color: #ced5d2; font-size: 10px; font-weight: 500; }
.lp-insight-panel article p { margin: 4px 0 0; color: #687370; font-size: 9px; line-height: 1.5; }
.lp-loop { margin-bottom: 100px; padding: 19px 28px; display: flex; align-items: center; justify-content: center; gap: 26px; border-block: 1px solid #202728; color: #a3adaa; font-size: 13px; }
.lp-loop i { color: #394342; font-style: normal; }
.lp-story-section { min-height: 520px; padding: 84px 0; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 96px; border-top: 1px solid #1c2324; }
.lp-story-section.flip .lp-story-copy { order: 2; }
.lp-story-copy h2 { margin: 14px 0 20px; color: #f0f3f2; font-size: clamp(38px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.055em; font-weight: 500; }
.lp-story-copy p { color: #899491; font-size: 16px; line-height: 1.65; max-width: 480px; }
.lp-story-copy ul { margin: 25px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: #adb6b3; font-size: 13px; }
.lp-story-copy li::before { content: '—'; margin-right: 10px; color: var(--accent); }
.lp-story-ui { padding: 22px; box-shadow: 0 26px 70px rgba(0,0,0,.26); }
.mock-row { min-height: 54px; display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 16px; align-items: center; border-bottom: 1px solid #232b2c; color: #778280; font-size: 11px; }
.mock-row.heading { display: flex; justify-content: space-between; color: #d8dddb; }
.mock-row b { color: #d7dddb; font-weight: 550; }
.mock-row em { font-style: normal; font-variant-numeric: tabular-nums; }
.mock-note { margin-top: 20px; padding: 16px; border-left: 2px solid var(--accent); background: #151b1c; }
.mock-note span, .edge-head { color: #798481; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.mock-note p { margin: 7px 0 0; color: #bbc3c0; font-size: 12px; line-height: 1.55; }
.edge-head, .edge-item { display: flex; justify-content: space-between; align-items: center; }
.edge-head small { color: #596361; font-size: 9px; }
.edge-item { margin-top: 24px; }
.edge-item div { display: flex; flex-direction: column; }
.edge-item b { color: #d8dddb; font-size: 12px; font-weight: 500; }
.edge-item span { color: #606b68; font-size: 9px; }
.edge-item strong { font-size: 11px; }
.edge-track { height: 3px; margin-top: 10px; background: #242c2d; border-radius: 3px; overflow: hidden; }
.edge-track i { display: block; height: 100%; background: var(--pos); }
.edge-track.loss i { background: var(--neg); }
.lp-final-cta { margin-top: 70px; padding: 82px 0; display: flex; align-items: end; justify-content: space-between; border-block: 1px solid #202728; }
.lp-final-cta h2 { margin: 12px 0 0; color: #f0f3f2; font-size: clamp(42px, 5vw, 68px); line-height: 1; letter-spacing: -.055em; font-weight: 500; }
.lp-footer { height: 88px; display: flex; align-items: center; justify-content: space-between; color: #596361; font-size: 11px; }
.lp-footer div { display: flex; gap: 16px; }
.lp-footer button { border: 0; background: transparent; color: #77817f; cursor: pointer; }

/* Authentication and legal */
#auth-overlay { position: fixed; inset: 0; z-index: 9100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(7, 9, 10, .9) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
#auth-overlay.open { display: flex; }
.login-card {
  width: min(400px, 100%);
  padding: 34px;
  background: #111617 !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-modal) !important;
  box-shadow: var(--shadow-elevated) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--text);
}
.login-card h2 { color: var(--primary) !important; font-size: 25px; letter-spacing: -.04em; font-weight: 550; }
.login-card .subtitle { color: var(--muted) !important; }
.login-input, body.dark-mode .login-input {
  min-height: 44px;
  background: #0d1112 !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-control);
  color: var(--text) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.login-input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft) !important; background: #101516 !important; }
.login-input::placeholder { color: #5f6a68; }
.login-btn { min-height: 44px; border-radius: var(--radius-control); background: var(--accent) !important; border-color: var(--accent) !important; color: #0b1212 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.login-btn:hover { background: var(--accent-strong); box-shadow: none; transform: none; }
.google-btn, body.dark-mode .google-btn { min-height: 44px; background: var(--surface-alt); border-color: var(--border-strong); color: var(--text); box-shadow: none; }
.google-btn:hover { background: var(--surface-hover); transform: none; box-shadow: none; }
.auth-divider { color: var(--muted); }
.auth-divider::before, .auth-divider::after { background: var(--border); }
.auth-switch, .privacy-row label { color: var(--muted); }
.auth-switch a, .privacy-row a { color: var(--accent-strong); }
.privacy-row input[type="checkbox"] { accent-color: var(--accent); }
#privacy-modal, #terms-modal, #onboarding-modal { background: rgba(6, 8, 9, .9); }
.privacy-modal-card, .onboarding-card { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); box-shadow: var(--shadow-elevated); }
.privacy-modal-card h2, .privacy-modal-card h4, .onboarding-card h2 { color: var(--primary); }

/* Application shell */
#top-navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2000;
  width: 100%;
  height: 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transform: none;
  background: rgba(10, 13, 14, .97);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.app-brand { justify-self: start; }
#top-navbar-inner { padding: 0; display: flex; align-items: center; gap: 2px; background: transparent; overflow: visible; }
.tnav-item, .tnav-grow-btn {
  min-height: 34px;
  padding: 0 11px;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color .12s ease, background .12s ease;
}
.tnav-item:hover, .tnav-grow-btn:hover, .tnav-grow-btn.open { color: var(--text); background: var(--surface-alt); transform: none; }
.tnav-item.active { color: var(--primary); background: var(--surface-alt); border-color: var(--border); box-shadow: none; font-weight: 550; }
.tnav-icon { width: 13px; display: inline-grid; place-items: center; font-size: 12px; color: currentColor; }
#grow-chevron { margin-left: 1px; color: var(--disabled); }
.app-nav-context { justify-self: end; display: flex; align-items: center; gap: 10px; min-width: 0; }
#active-account-display {
  position: static;
  transform: none;
  display: none;
  max-width: 190px;
  min-height: 34px;
  padding: 0 10px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  cursor: pointer;
}
#active-account-display .acc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.acc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.acc-type-badge { color: var(--muted); font-size: 9px; }
.app-profile { display: flex; align-items: center; gap: 8px; color: var(--muted-strong); font-size: 11px; }
.avatar, body.dark-mode .avatar { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 8px; background: #202829; color: var(--accent-strong); font-size: 10px; }
.tnav-grow-dropdown {
  top: calc(100% + 9px);
  right: 0;
  left: auto;
  min-width: 210px;
  padding: 6px;
  background: #14191a;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .38);
  transform: none;
}
.tnav-grow-dropdown.open { display: flex; }
.tnav-drop-item { min-height: 36px; border-radius: 7px; color: var(--muted-strong); font-size: 12px; }
.tnav-drop-item:hover { background: var(--surface-hover); color: var(--primary); }
.tnav-drop-item.danger { color: var(--neg); }
.tnav-drop-divider { background: var(--border); }
#grow-dropdown-overlay { background: rgba(0,0,0,.62); }
.main {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  height: 100vh;
  padding: 96px clamp(22px, 3.6vw, 56px) 64px;
  background: var(--bg);
  overflow: auto;
}
.page { width: min(1440px, 100%); margin-inline: auto; }
.page.active { display: block; animation: page-enter .18s ease both; }
@keyframes page-enter { from { opacity: .65; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.page-title { color: var(--primary); font-size: 27px; font-weight: 550; letter-spacing: -.045em; }
.page-subtitle { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.hamburger { display: none; }

/* Blocks, controls, and data */
.card, body.dark-mode .card,
.stat-card, body.dark-mode .stat-card,
.modal, body.dark-mode .modal {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.card { border-radius: var(--radius-block); padding: 20px; }
.card:hover, .stat-card:hover { transform: none; box-shadow: none; }
.card::before, .card::after, .stat-card::before, .stat-card::after { display: none; }
.card-title, .stat-label, .fl, .journal-section-title { color: var(--muted); }
.card-title { margin-bottom: 14px; font-size: 10px; font-weight: 550; letter-spacing: .03em; text-transform: none; }
.section-title, .cal-title { color: var(--primary); font-size: 13px; font-weight: 550; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-block);
  background: var(--surface);
  overflow: hidden;
}
.stat-card, body.dark-mode .stat-card { min-height: 112px; padding: 21px 22px; border: 0; border-right: 1px solid var(--border); border-radius: 0; background: transparent; }
.stat-card:last-child { border-right: 0; }
.stat-label { font-size: 11px; font-weight: 450; letter-spacing: 0; text-transform: none; }
.stat-value { margin-top: 9px; color: var(--primary); font-size: 27px; line-height: 1.15; font-weight: 550; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.pos, .pnl-pos { color: var(--pos); }
.neg, .pnl-neg { color: var(--neg); }
.neu { color: var(--primary); }
.fi, .fi-sm, .journal-textarea, .settings-input, .pretrade-account-select, .ptcl-add-input,
body.dark-mode .fi, body.dark-mode .fi-sm, body.dark-mode .journal-textarea {
  background: #0d1112;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.fi { min-height: 42px; padding: 9px 11px; }
.fi-sm { min-height: 34px; padding: 6px 9px; }
.fi:focus, .fi-sm:focus, .journal-textarea:focus, .settings-input:focus, .pretrade-account-select:focus, .ptcl-add-input:focus { border-color: var(--accent); background: #101516; box-shadow: 0 0 0 3px var(--accent-soft); }
select.fi, select.fi-sm { color-scheme: dark; }
.btn { min-height: 36px; border-radius: var(--radius-control); font-size: 12px; font-weight: 550; box-shadow: none; transition: background .12s ease, border-color .12s ease, color .12s ease; }
.btn-p, body.dark-mode .btn-p { background: var(--accent); border: 1px solid var(--accent); color: #0c1413; }
.btn-p:hover { background: var(--accent-strong); border-color: var(--accent-strong); transform: none; box-shadow: none; }
.btn-s, body.dark-mode .btn-s, .settings-cancel-btn { background: var(--surface-alt); border: 1px solid var(--border-strong); color: var(--text); }
.btn-s:hover, .settings-cancel-btn:hover { background: var(--surface-hover); color: var(--primary); transform: none; }
.dash-filter-bg, body.dark-mode .dash-filter-bg { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: none; }
.dash-filter-bg select { background: transparent; color: var(--text); }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 12px; background: transparent; border-bottom: 1px solid var(--border-strong); color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .025em; text-transform: none; }
td { padding: 13px 12px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover, body.dark-mode tbody tr:hover { background: rgba(255,255,255,.018); }
.pair-tag, body.dark-mode .pair-tag, .tag-badge { display: inline-flex; margin: 1px 4px 1px 0; padding: 3px 7px; border: 1px solid #2b3535; border-radius: 6px; background: #171d1e; color: #b5bfbc; font-size: 10px; }
.tag-badge { color: var(--muted-strong); background: transparent; }
.empty { color: var(--muted); }
.skeleton { animation: none; background: #182021; color: transparent !important; }
.skeleton-stopped { animation: none !important; background: transparent !important; color: inherit !important; }

/* Dashboard */
.dashboard-insights { margin: 20px 0; padding: 21px 22px; border: 1px solid var(--border); border-radius: var(--radius-block); background: var(--surface); }
.dashboard-insights-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--border); }
.section-eyebrow { display: block; margin-bottom: 4px; color: var(--accent); font-size: 9px; letter-spacing: .1em; font-weight: 600; }
.dashboard-insights h2 { margin: 0; color: var(--primary); font-size: 16px; font-weight: 550; letter-spacing: -.025em; }
#dashboard-insights-sample { color: var(--muted); font-size: 10px; }
.dashboard-insight-grid { display: grid; grid-template-columns: 1fr 1fr; }
.dashboard-insight-grid article { display: grid; grid-template-columns: 7px 1fr; gap: 13px; padding: 18px 22px 0 0; }
.dashboard-insight-grid article + article { padding-left: 22px; border-left: 1px solid var(--border); }
.insight-tone { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--muted); }
.insight-tone.good { background: var(--pos); }
.insight-tone.bad { background: var(--neg); }
.dashboard-insight-grid span { display: block; color: var(--muted); font-size: 10px; }
.dashboard-insight-grid strong { display: block; margin-top: 5px; color: var(--primary); font-size: 13px; font-weight: 500; }
.dashboard-insight-grid small { display: block; margin-top: 4px; color: #6d7875; font-size: 10px; }
.pretrade-dash-link, body.dark-mode .pretrade-dash-link { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-block); background: #0e1314; color: var(--text); }
.pretrade-dash-link:hover { background: var(--surface); border-color: var(--border-strong); }
.pretrade-dash-link-icon, body.dark-mode .pretrade-dash-link-icon { background: var(--accent-soft); color: var(--accent-strong); }
.content-grid { grid-template-columns: minmax(0, 1.6fr) minmax(280px, .75fr); gap: 16px; }
.right-col { gap: 16px; }
.cal-cell, body.dark-mode .cal-cell { min-height: 78px; background: transparent; border: 1px solid transparent; border-radius: 7px; }
.cal-cell:hover, body.dark-mode .cal-cell:hover { background: var(--surface-alt); }
.cal-cell.other { opacity: .25; }
.cal-cell.today, body.dark-mode .cal-cell.today { background: var(--accent-soft); border-color: rgba(114,170,165,.28); }
.cal-cell.has-win, body.dark-mode .cal-cell.has-win { background: var(--pos-soft); border-color: rgba(121,184,173,.16); }
.cal-cell.has-loss, body.dark-mode .cal-cell.has-loss { background: var(--neg-soft); border-color: rgba(183,106,120,.17); }
.cal-cell.has-be { background: rgba(255,255,255,.025); }
.growth-num { color: var(--primary); font-weight: 550; }

/* Journal */
.log-grid { grid-template-columns: minmax(0, 1fr) 310px; }
.log-filters { display: flex; align-items: center; gap: 7px; }
.journal-quiet-filter { display: none; }
.filter-disclosure { min-height: 34px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-control); background: var(--surface-alt); color: var(--muted-strong); cursor: pointer; }
.filter-disclosure span:not(:empty) { margin-left: 5px; padding: 1px 5px; border-radius: 999px; background: var(--accent); color: #0d1414; font-size: 9px; }
.filter-disclosure.has-filters { border-color: rgba(114,170,165,.38); color: var(--accent-strong); }
.journal-filter-panel { display: none; grid-template-columns: minmax(150px, 1.2fr) repeat(4, minmax(120px, .8fr)) auto; gap: 7px; margin: 2px 0 13px; padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: #0e1314; }
.journal-filter-panel.open { display: grid; }
.table-scroll { overflow-x: auto; }
.journal-table { min-width: 940px; }
.journal-row-link { cursor: pointer; }
.journal-row-link:focus-visible { outline-offset: -2px; }
.date-primary { color: var(--text); white-space: nowrap; }
.journal-row-link td small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.direction-pill { display: inline-flex; padding: 3px 7px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--muted-strong); font-size: 9px; text-transform: capitalize; }
.direction-pill.long { color: var(--pos); border-color: rgba(121,184,173,.28); background: var(--pos-soft); }
.direction-pill.short { color: var(--neg); border-color: rgba(183,106,120,.28); background: var(--neg-soft); }
.numeric-cell { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.evidence-cell { color: var(--muted); white-space: nowrap; }
.row-actions { white-space: nowrap; text-align: right; }
.edit-btn { font-size: 10px; color: var(--muted-strong); }
.del-btn { color: var(--muted); }
.sync-dot { display: inline-block; width: 5px; height: 5px; margin-left: 5px; border-radius: 50%; vertical-align: middle; }
.sync-dot.pending { background: var(--warn); }
.sync-dot.failed { background: var(--neg); }
.muted-cell { color: var(--disabled); }
.journal-mobile-add-btn { background: var(--accent); color: #0b1212; border-radius: var(--radius-control); }

/* Modals and journal editor */
.overlay { position: fixed; inset: 0; z-index: 6000; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(4, 6, 7, .82); backdrop-filter: none; -webkit-backdrop-filter: none; }
.overlay.open { display: flex; }
.modal, body.dark-mode .modal { width: min(560px, 96vw); max-height: 92vh; padding: 26px; border-radius: var(--radius-modal); overflow: auto; box-shadow: var(--shadow-elevated); }
.journal-modal { width: min(900px, 96vw); padding: 0; }
.modal-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 24px 26px 19px; background: var(--surface); border-bottom: 1px solid var(--border); }
.modal-kicker { margin-bottom: 4px; color: var(--accent); font-size: 9px; letter-spacing: .11em; font-weight: 600; }
.modal-title { margin: 0; color: var(--primary); font-size: 20px; font-weight: 550; letter-spacing: -.035em; }
.modal-close { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-alt); color: var(--muted); font-size: 18px; cursor: pointer; }
.modal-close:hover { background: var(--surface-hover); color: var(--primary); }
.journal-section { margin: 0; padding: 23px 26px; border-bottom: 1px solid var(--border); }
.journal-section-head { display: flex; align-items: start; justify-content: space-between; margin-bottom: 17px; }
.journal-section-head > div > span, .journal-details summary > span { display: block; color: var(--primary); font-size: 14px; font-weight: 550; }
.journal-section-head small, .journal-details summary small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 400; }
.required-note { color: var(--muted); font-size: 9px; }
.journal-row { gap: 10px; }
.journal-row.cols-5 { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); }
.journal-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.journal-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.journal-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.compact-gap { gap: 10px; }
.fg { margin-bottom: 13px; }
.fg:last-child { margin-bottom: 0; }
.fl { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.tag-input-wrap, body.dark-mode .tag-input-wrap { min-height: 42px; padding: 6px 8px; background: #0d1112; border: 1px solid var(--border-strong); border-radius: var(--radius-control); box-shadow: none; backdrop-filter: none; }
.pti { color: var(--text); }
.pair-chip { background: var(--accent-soft); border: 1px solid rgba(114,170,165,.24); color: var(--accent-strong); border-radius: 6px; }
.or { display: flex; gap: 4px; }
.oc, body.dark-mode .oc { min-height: 42px; padding: 0 9px; border: 1px solid var(--border-strong); border-radius: 7px; background: #0d1112; color: var(--muted); cursor: pointer; }
.oc.sw, body.dark-mode .oc.sw { background: var(--pos-soft); border-color: rgba(121,184,173,.35); color: var(--pos); }
.oc.sl, body.dark-mode .oc.sl { background: var(--neg-soft); border-color: rgba(183,106,120,.35); color: var(--neg); }
.oc.sb, body.dark-mode .oc.sb { background: rgba(255,255,255,.04); border-color: var(--border-strong); color: var(--muted-strong); }
.journal-details { border-bottom: 1px solid var(--border); }
.journal-details summary { list-style: none; padding: 17px 26px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.journal-details summary::-webkit-details-marker { display: none; }
.journal-details summary::after { content: '+'; color: var(--muted); font-size: 18px; }
.journal-details[open] summary::after { content: '−'; }
.journal-details-body { padding: 4px 26px 24px; }
.bias-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bias-card, body.dark-mode .bias-card { padding: 10px; background: #0d1112; border: 1px solid var(--border); border-radius: 8px; box-shadow: none; backdrop-filter: none; }
.bias-card label { color: var(--muted); font-size: 9px; }
.bias-card select { color: var(--text); }
.bias-card.bias-bull { background: var(--pos-soft); border-color: rgba(121,184,173,.24); }
.bias-card.bias-bear { background: var(--neg-soft); border-color: rgba(183,106,120,.24); }
.rules-check { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.rule-btn { min-height: 42px; border: 1px solid var(--border-strong); border-radius: 7px; background: #0d1112; color: var(--muted); }
.rule-btn.active-yes { color: var(--pos); background: var(--pos-soft); border-color: rgba(121,184,173,.32); }
.rule-btn.active-no { color: var(--neg); background: var(--neg-soft); border-color: rgba(183,106,120,.32); }
.journal-textarea { width: 100%; min-height: 108px; padding: 11px; resize: vertical; }
.screenshot-zone { min-height: 96px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px; border: 1px dashed #3a4645; border-radius: 10px; background: #0d1112; color: var(--muted); cursor: pointer; }
.screenshot-zone:hover, .screenshot-zone.is-dragging { border-color: var(--accent); background: var(--accent-soft); }
.screenshot-zone strong { display: block; color: var(--text); font-size: 12px; font-weight: 500; }
.screenshot-zone small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.drop-icon { width: 40px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface-alt); color: var(--accent-strong); font-size: 10px; font-weight: 600; }
.image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.image-gallery:empty { display: none; }
.modal-footer { position: sticky; bottom: 0; z-index: 2; min-height: 69px; padding: 14px 26px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); background: var(--surface); }
#trade-save-status { color: var(--neg); font-size: 10px; }
.modal-footer .btn-row { margin: 0; }

/* Trade detail */
.trade-detail { width: min(900px, 96vw); padding: 0; }
.trade-detail-header { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto auto; gap: 26px; align-items: start; padding: 26px; border-bottom: 1px solid var(--border); background: var(--surface); }
.trade-detail-header h2 { margin: 0; color: var(--primary); font-size: 28px; letter-spacing: -.045em; font-weight: 550; }
.trade-detail-tags { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.trade-detail-tags > span { padding-right: 7px; border-right: 1px solid var(--border); }
.trade-detail-tags > span:last-child { border-right: 0; }
.trade-detail-result { text-align: right; }
.trade-detail-result strong { display: block; font-size: 24px; font-weight: 550; font-variant-numeric: tabular-nums; }
.trade-detail-result span { color: var(--muted); font-size: 10px; }
.trade-detail-grid { display: grid; grid-template-columns: .85fr 1.4fr; }
.trade-detail-grid section, .trade-evidence, .trade-reflection { padding: 24px 26px; border-bottom: 1px solid var(--border); }
.trade-detail-grid section + section { border-left: 1px solid var(--border); }
.trade-detail-grid section > span, .trade-evidence > span, .trade-reflection > span { color: var(--accent); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.trade-detail-grid dl { margin: 15px 0 0; }
.trade-detail-grid dl div { padding: 9px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.trade-detail-grid dt { color: var(--muted); }
.trade-detail-grid dd { margin: 0; color: var(--text); text-align: right; }
.trade-detail-grid h3, .trade-reflection h3 { margin: 16px 0 5px; color: var(--muted); font-size: 10px; font-weight: 500; }
.trade-detail-grid p, .trade-reflection p { margin: 0; color: var(--text); font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.trade-evidence > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 13px; }
.trade-evidence button { padding: 0; border: 1px solid var(--border); border-radius: 9px; background: #0b0e0f; overflow: hidden; cursor: zoom-in; }
.trade-evidence img { width: 100%; height: 160px; display: block; object-fit: cover; }
.trade-reflection > div { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.trade-reflection article + article { padding-left: 24px; border-left: 1px solid var(--border); }
.trade-detail-footer { padding: 15px 26px; display: flex; justify-content: flex-end; gap: 8px; }

/* Performance and edge */
.perf-grid { gap: 16px; }
.chart-wrap canvas { max-width: 100%; }
.mistake-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--radius-block); overflow: hidden; background: var(--surface); }
.mistake-summary-grid .stat-card { border-right: 1px solid var(--border); }
.mistake-grid { gap: 16px; }
.pattern-item, .mistake-insight { background: transparent; border-color: var(--border); }
.mistake-chip { border-radius: 6px; background: var(--surface-alt); border-color: var(--border-strong); color: var(--muted-strong); }

/* Accounts */
#acc-grid { display: grid; grid-template-columns: 1fr !important; gap: 0 !important; border: 1px solid var(--border); border-radius: var(--radius-block); overflow: hidden; background: var(--surface); }
.account-row { min-height: 96px; display: grid; grid-template-columns: 1.5fr repeat(4, minmax(100px, .7fr)) auto; align-items: center; gap: 22px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.account-row:last-child { border-bottom: 0; }
.account-identity { display: flex; align-items: center; gap: 12px; }
.account-status { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 4px var(--pos-soft); }
.account-status.inactive { background: var(--disabled); box-shadow: none; }
.account-identity h3 { margin: 0; color: var(--primary); font-size: 14px; font-weight: 550; }
.account-identity p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.account-number { display: flex; flex-direction: column; }
.account-number span { color: var(--muted); font-size: 9px; }
.account-number strong { margin-top: 3px; color: var(--text); font-size: 13px; font-weight: 520; font-variant-numeric: tabular-nums; }
.account-actions { display: flex; align-items: center; gap: 7px; }
.account-state-label { margin-top: 6px; padding: 2px 7px; border: 1px solid rgba(121,184,173,.28); border-radius: 999px; background: var(--pos-soft); color: var(--pos); cursor: pointer; font-size: 9px; line-height: 1.4; }
.account-state-label.inactive { border-color: var(--border); background: var(--surface-alt); color: var(--muted); }

.performance-filterbar { margin-bottom: 16px; padding: 12px; display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)) auto; gap: 10px; align-items: end; border: 1px solid var(--border); border-radius: var(--radius-block); background: var(--surface); }
.performance-filterbar label { display: grid; gap: 5px; }
.performance-filterbar label > span { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.performance-filterbar .fi-sm { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 7px; background: #0d1112; color: var(--text); }
.performance-filterbar .btn { min-height: 34px; }
.performance-summary-strip { margin: -1px 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 0 0 var(--radius-block) var(--radius-block); background: #0d1112; overflow: hidden; }
.performance-summary-strip > div { padding: 12px 15px; display: grid; gap: 3px; border-right: 1px solid var(--border); }
.performance-summary-strip > div:last-child { border-right: 0; }
.performance-summary-strip span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.performance-summary-strip strong { color: var(--text); font-size: 13px; font-weight: 550; font-variant-numeric: tabular-nums; }
.performance-breakdown { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.performance-breakdown article { min-height: 64px; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); }
.performance-breakdown article div { min-width: 0; display: grid; gap: 2px; }
.performance-breakdown article span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.performance-breakdown article strong { overflow: hidden; color: var(--text); font-size: 13px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.performance-breakdown article small { color: var(--muted); font-size: 10px; }
.performance-breakdown article em { flex: 0 0 auto; font-size: 13px; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.empty-inline { padding: 28px 0; color: var(--muted); font-size: 12px; }
.day-trade-list { margin: 4px 0 18px; display: grid; border-top: 1px solid var(--border); }
.day-trade-list button { padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.day-trade-list button:hover strong { color: var(--accent-strong); }
.day-trade-list button span { display: grid; gap: 2px; }
.day-trade-list button strong { font-size: 13px; }
.day-trade-list button small { color: var(--muted); }
.day-trade-list button em { font-style: normal; font-weight: 600; }

/* Review */
#review-entries-list { gap: 0 !important; border: 1px solid var(--border); border-radius: var(--radius-block); overflow: hidden; }
#review-entries-list > .card { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
#review-entries-list > .card:last-child { border-bottom: 0; }
.review-auto-summary { margin: 0 0 19px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.review-auto-summary-head { display: flex; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--primary); font-size: 11px; }
.review-auto-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.review-auto-summary-grid div { padding: 12px 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.review-auto-summary-grid div:nth-child(4n) { border-right: 0; }
.review-auto-summary-grid span { display: block; color: var(--muted); font-size: 9px; }
.review-auto-summary-grid strong { display: block; margin-top: 3px; color: var(--primary); font-size: 14px; font-weight: 550; }

/* Macro, stocks, risk */
.risk-layout, .risk-grid { gap: 16px; }
.risk-advice { background: var(--surface-alt); border-color: var(--border); color: var(--muted-strong); }
.risk-table td, .risk-table th { border-color: var(--border); }
.risk-meter { background: #242d2d; }
.risk-meter-fill { background: var(--accent); }

/* Settings, pre-trade, upgrade, locks */
#settings-modal, #pretrade-modal, #checklist-editor-modal { background: rgba(4, 6, 7, .84); backdrop-filter: none; -webkit-backdrop-filter: none; }
.settings-modal-card, .pretrade-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-modal);
  color: var(--text);
  box-shadow: var(--shadow-elevated);
}
.settings-modal-card h2, .pretrade-title, .settings-row-label { color: var(--primary); }
.settings-modal-card { width: min(660px, 94vw); padding: 0; }
.settings-header { padding: 24px 26px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); }
.settings-header h2, .settings-modal-card h2 { margin: 3px 0 0; color: var(--primary); font-size: 21px; font-weight: 560; letter-spacing: -.035em; }
.settings-header .modal-close { position: static; }
.settings-tabs { padding: 10px 26px; display: flex; gap: 3px; border-bottom: 1px solid var(--border); }
.settings-tabs button { padding: 7px 11px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; font-weight: 550; cursor: pointer; }
.settings-tabs button:hover { color: var(--primary); background: var(--surface-hover); }
.settings-tabs button.active { color: var(--primary); background: var(--surface-elevated); box-shadow: inset 0 0 0 1px var(--border); }
#settings-tab-general, #settings-tab-upgrade { padding: 24px 26px 26px; }
.settings-section { margin: 0 0 25px; }
.settings-section-title { color: var(--muted); border-color: var(--border); }
.settings-section-copy { margin: -5px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.settings-row { border-color: var(--border); }
.settings-row-sub { color: var(--muted); }
.settings-footer { margin: 4px -26px -26px; padding: 16px 26px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--border); background: rgba(255,255,255,.012); }
.settings-save-btn { background: var(--accent); color: #0c1413; }
.settings-save-btn:hover { background: var(--accent-strong); }
.settings-cancel-btn { border-color: var(--border); color: var(--muted-strong); }
.settings-cancel-btn:hover { border-color: var(--border-strong); background: var(--surface-hover); color: var(--primary); }
.settings-cancel-btn.danger-text { color: var(--neg); }
.settings-cancel-btn.danger-text:hover { border-color: rgba(183,106,120,.35); background: var(--neg-soft); color: #dc8d9a; }
.danger-zone { padding: 14px 16px 8px; border: 1px solid rgba(183,106,120,.22); border-radius: var(--radius-control); background: rgba(183,106,120,.035); }
.danger-zone .settings-section-title { color: var(--neg); }
.settings-status-pill { padding: 4px 8px; border-radius: 999px; background: var(--pos-soft); color: var(--pos); font-size: 9px; }
.settings-plan-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-block); background: #0e1314; }
.settings-plan-card h3 { margin: 8px 0 6px; color: var(--primary); font-size: 23px; font-weight: 560; letter-spacing: -.035em; }
.settings-plan-card p { margin: 0; color: var(--muted-strong); font-size: 12px; }
.settings-plan-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
#risk-profile-section, .risk-profile-cell { background: var(--surface); border-color: var(--border); }
.risk-profile-cell { background: #0e1314; }
.risk-profile-cell > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.risk-profile-cell > div { display: flex; align-items: baseline; gap: 4px; }
.risk-profile-cell em { color: var(--muted); font-size: 11px; font-style: normal; }
.risk-profile-input { color: var(--primary); }
.pretrade-account-select, .ptcl-add-input { background: #0d1112; color: var(--text); }
.pretrade-risk-hint, .ptcl-item, .pt-photo-slot, body.dark-mode .pt-photo-slot { background: #0e1314; border-color: var(--border); color: var(--muted-strong); }
.ptcl-item:hover, .pt-photo-slot:hover, body.dark-mode .pt-photo-slot:hover { background: var(--surface-hover); }
.ptcl-item.checked { background: var(--pos-soft); border-color: rgba(121,184,173,.25); }
.emotion-btn, .pt-phase-btn, body.dark-mode .pt-phase-btn { background: #0e1314; border-color: var(--border); color: var(--muted); }
.emotion-btn.active { background: var(--accent-soft); border-color: rgba(114,170,165,.34); color: var(--accent-strong); }
.pro-lock-inner { transition: opacity .15s ease; }
.pro-lock-overlay { background: rgba(10,13,14,.82); backdrop-filter: none; -webkit-backdrop-filter: none; }
.pro-lock-card { background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-elevated); }
.pro-lock-title { color: var(--primary); }
.pro-lock-label { color: var(--muted); }

.pre-trade-fab, .fab { box-shadow: 0 10px 30px rgba(0,0,0,.3); background: var(--accent); color: #0b1212; }
.app-toast { background: #202728 !important; border: 1px solid #35403f; color: #f0f3f2 !important; box-shadow: 0 14px 34px rgba(0,0,0,.32) !important; }

@media (max-width: 1120px) {
  #top-navbar { grid-template-columns: auto 1fr auto; }
  .app-brand > span:last-child, .app-profile > span:last-child { display: none; }
  #active-account-display { display: none !important; }
  .lp-story-section { gap: 54px; }
  .journal-filter-panel { grid-template-columns: repeat(3, 1fr); }
  .account-row { grid-template-columns: 1.4fr repeat(2, .8fr) auto; }
  .account-row .account-number:nth-of-type(4), .account-row .account-number:nth-of-type(5) { display: none; }
}

@media (max-width: 820px) {
  .lp-shell { width: min(100% - 32px, 680px); }
  .lp-header { grid-template-columns: 1fr auto; }
  .lp-header-links { display: none; }
  .lp-hero { padding: 92px 0 62px; }
  .lp-hero h1 { font-size: clamp(50px, 13vw, 72px); }
  .lp-product-body { grid-template-columns: 1fr; min-height: 0; }
  .lp-preview-nav { display: none; }
  .lp-preview-main { padding: 22px; }
  .lp-preview-metrics { grid-template-columns: 1fr 1fr; }
  .lp-preview-metrics > div:nth-child(2) { border-right: 0; }
  .lp-preview-metrics > div:nth-child(-n+2) { border-bottom: 1px solid #222a2b; }
  .lp-preview-grid { grid-template-columns: 1fr; }
  .lp-insight-panel { min-height: 0; }
  .lp-loop { gap: 10px; padding-inline: 4px; font-size: 11px; }
  .lp-story-section, .lp-story-section.flip { grid-template-columns: 1fr; gap: 40px; padding: 64px 0; }
  .lp-story-section.flip .lp-story-copy { order: 0; }
  .lp-final-cta { align-items: start; flex-direction: column; gap: 34px; }

  #top-navbar {
    inset: auto 0 0;
    height: calc(66px + env(safe-area-inset-bottom, 0px));
    padding: 0 8px env(safe-area-inset-bottom, 0px);
    display: block;
    border-top: 1px solid var(--border-strong);
    border-bottom: 0;
    background: rgba(11, 14, 15, .98);
  }
  .app-brand, .app-nav-context { display: none; }
  #top-navbar-inner { width: 100%; height: 66px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
  .tnav-item, .tnav-grow-btn { min-width: 0; height: 62px; padding: 6px 2px 4px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border: 0; border-radius: 0; color: #687370; font-size: 9px; }
  .tnav-item:hover, .tnav-grow-btn:hover { background: transparent; }
  .tnav-item.active { border: 0; background: transparent; color: var(--accent-strong); }
  .tnav-icon { font-size: 15px; }
  #top-navbar-inner .tnav-item.mobile-secondary { display: none; }
  .mobile-macro { display: flex; }
  .tnav-grow-wrapper { display: contents; }
  #grow-chevron { display: none; }
  body > .tnav-grow-dropdown,
  .tnav-grow-dropdown {
    position: fixed;
    inset: auto 10px calc(76px + env(safe-area-inset-bottom, 0px)) 10px;
    width: auto;
    min-width: 0;
    max-height: min(440px, 65vh);
    padding: 8px;
    border-radius: 14px;
    background: #151a1b;
    display: none;
    transform: translateY(12px);
    overflow-y: auto;
  }
  body > .tnav-grow-dropdown.open,
  .tnav-grow-dropdown.open { display: flex; transform: none !important; }
  .tnav-drop-item { min-height: 44px; padding: 0 13px; }
  .main { height: 100vh; padding: 28px 14px calc(94px + env(safe-area-inset-bottom, 0px)); }
  .page { width: 100%; }
  .page-title { font-size: 23px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 92px; padding: 16px; border-bottom: 1px solid var(--border); }
  .stat-card:nth-child(2n) { border-right: 0; }
  .stat-card:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .stat-value { font-size: 23px; }
  .dashboard-insight-grid, .content-grid, .log-grid, .perf-grid, .mistake-grid { grid-template-columns: 1fr; }
  .dashboard-insight-grid article + article { margin-top: 16px; padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
  .right-col { grid-template-columns: 1fr 1fr; }
  .card { padding: 16px; overflow-x: visible; }
  .journal-mobile-add-btn { display: flex; }
  .pre-trade-fab, .fab { display: none; }
  .journal-filter-panel { grid-template-columns: 1fr 1fr; }
  .modal { max-height: calc(100vh - 24px); }
  .journal-modal, .trade-detail { width: 100%; max-width: none; height: calc(100vh - 12px); max-height: none; border-radius: 16px 16px 0 0; align-self: end; }
  .overlay { padding: 12px 0 0; align-items: end; }
  .journal-row.cols-5, .journal-row.cols-4, .journal-row.cols-3, .journal-row.cols-2, .bias-grid { grid-template-columns: 1fr 1fr; }
  .outcome-field { grid-column: 1 / -1; }
  .screenshot-zone { grid-template-columns: auto 1fr; }
  .screenshot-zone .btn { display: none; }
  .trade-detail-header { grid-template-columns: 1fr auto; }
  .trade-detail-result { grid-row: 2; text-align: left; }
  .trade-detail-header .modal-close { grid-row: 1; grid-column: 2; }
  .trade-detail-grid { grid-template-columns: 1fr; }
  .trade-detail-grid section + section { border-left: 0; }
  .trade-reflection > div { grid-template-columns: 1fr; }
  .trade-reflection article + article { padding-left: 0; border-left: 0; }
  .account-row { grid-template-columns: 1fr 1fr auto; gap: 14px; }
  .account-row .account-number:nth-of-type(n+3) { display: none; }
  .review-auto-summary-grid { grid-template-columns: 1fr 1fr; }
  .review-auto-summary-grid div:nth-child(2n) { border-right: 0; }
  #settings-modal { padding: 12px 0 0; align-items: flex-end; }
  .settings-modal-card, .pretrade-card { width: 100%; max-height: calc(100vh - 12px); border-radius: 16px 16px 0 0; }
  .settings-header { padding: 20px 18px 16px; }
  .settings-tabs { padding: 9px 18px; }
  #settings-tab-general, #settings-tab-upgrade { padding: 20px 18px; }
  .settings-footer { margin: 4px -18px -20px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 540px) {
  .lp-header-actions .lp-text-btn { display: none; }
  .lp-hero-actions { flex-direction: column; }
  .lp-primary-cta, .lp-secondary-cta { width: 100%; }
  .lp-privacy-note { flex-wrap: wrap; }
  .lp-preview-main { padding: 16px; }
  .lp-preview-heading h3 { font-size: 21px; }
  .lp-preview-heading button { display: none; }
  .lp-preview-metrics strong { font-size: 19px; }
  .lp-bars { gap: 5px; }
  .lp-loop { justify-content: flex-start; overflow-x: auto; }
  .lp-loop span, .lp-loop i { flex: 0 0 auto; }
  .right-col { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .journal-filter-panel { grid-template-columns: 1fr; }
  .log-filters #ls { width: 150px; }
  .journal-row.cols-5, .journal-row.cols-4, .journal-row.cols-3, .journal-row.cols-2, .bias-grid { grid-template-columns: 1fr; }
  .outcome-field { grid-column: auto; }
  .modal-header, .journal-section, .journal-details summary, .journal-details-body, .modal-footer { padding-left: 18px; padding-right: 18px; }
  .modal-footer { align-items: stretch; flex-direction: column; }
  .modal-footer .btn-row { width: 100%; }
  .modal-footer .btn { flex: 1; }
  .trade-detail-header { padding: 20px 18px; }
  .trade-detail-grid section, .trade-evidence, .trade-reflection { padding: 20px 18px; }
  .account-row { grid-template-columns: 1fr auto; }
  .account-row .account-number { display: none; }
  .lp-footer { align-items: flex-start; padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Macro research workspace */
.workspace-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.workspace-heading { display: flex; align-items: center; gap: 12px; }
.workspace-heading .page-title { margin: 3px 0 2px; }
.workspace-actions { display: flex; align-items: center; gap: 12px; }
.save-status { color: var(--muted); font-size: 12px; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel-heading h2 { margin: 3px 0 0; color: var(--primary); font-size: 17px; font-weight: 550; letter-spacing: -.025em; }
.evidence-badge { padding: 4px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 10px; }
.macro-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr); gap: 16px; align-items: start; }
.macro-command-panel, .macro-writing-panel, .macro-library-panel { margin: 0; }
.macro-command-panel, .macro-writing-panel { grid-column: 1; }
.macro-library-panel { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 0; }
.macro-controls { display: grid; grid-template-columns: minmax(160px, .8fr) minmax(280px, 1.25fr) minmax(170px, .8fr); gap: 16px; align-items: end; }
.macro-field { display: grid; gap: 8px; }
.macro-field > span, .macro-writing-grid label > span { display: flex; justify-content: space-between; color: var(--muted-strong); font-size: 11px; font-weight: 600; }
.macro-bias-control { min-height: 42px; padding: 3px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border: 1px solid var(--border); border-radius: var(--radius-control); background: #0d1112; }
.macro-bias-control button { border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.macro-bias-control button:hover { color: var(--primary); }
.macro-bias-control button.active { color: var(--primary); background: var(--surface-elevated); box-shadow: inset 0 0 0 1px var(--border-strong); }
.macro-bias-control button[data-bias="bullish"].active { color: var(--pos); }
.macro-bias-control button[data-bias="bearish"].active { color: var(--neg); }
.conviction-field input { width: 100%; accent-color: var(--accent); }
.macro-journal-signal { margin-top: 20px; padding: 15px 16px; display: grid; gap: 3px; border-top: 1px solid var(--border); background: rgba(255, 255, 255, .012); }
.macro-journal-signal > span { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.macro-journal-signal strong { color: var(--text); font-size: 13px; font-weight: 550; }
.macro-journal-signal small { color: var(--muted); }
.macro-journal-signal[data-tone="positive"] strong { color: var(--pos); }
.macro-journal-signal[data-tone="negative"] strong { color: var(--neg); }
.macro-writing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.macro-writing-grid label { display: grid; gap: 8px; }
.macro-writing-grid label.wide { grid-column: 1 / -1; }
.macro-writing-grid textarea { width: 100%; min-height: 118px; padding: 12px 13px; resize: vertical; border: 1px solid var(--border); border-radius: var(--radius-control); background: #0d1112; color: var(--text); line-height: 1.55; outline: 0; }
.macro-writing-grid label.wide textarea { min-height: 136px; }
.macro-writing-grid textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.macro-library { display: grid; gap: 2px; }
.macro-library > button { width: 100%; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.macro-library > button:first-child { border-top: 1px solid var(--border); }
.macro-library > button:hover span strong, .macro-library > button.active span strong { color: var(--accent-strong); }
.macro-library > button span { min-width: 0; display: grid; gap: 2px; }
.macro-library > button strong { color: var(--primary); font-size: 13px; }
.macro-library > button small { max-width: 210px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.macro-library > button em { padding: 3px 7px; border-radius: 999px; background: var(--surface-elevated); color: var(--muted); font-size: 9px; font-style: normal; text-transform: uppercase; }
.macro-library > button em.bullish { color: var(--pos); }
.macro-library > button em.bearish { color: var(--neg); }
.macro-empty { padding: 28px 0; display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.macro-empty strong { color: var(--text); font-size: 13px; }

@media (max-width: 980px) {
  .macro-layout { grid-template-columns: 1fr; }
  .macro-command-panel, .macro-writing-panel, .macro-library-panel { grid-column: 1; grid-row: auto; position: static; }
  .macro-controls { grid-template-columns: 1fr 1fr; }
  .conviction-field { grid-column: 1 / -1; }
  .performance-filterbar { grid-template-columns: repeat(3, 1fr); }
  .performance-filterbar .btn { align-self: stretch; }
}

@media (max-width: 620px) {
  .workspace-header { align-items: flex-start; flex-direction: column; }
  .workspace-actions { width: 100%; justify-content: space-between; }
  .macro-controls, .macro-writing-grid { grid-template-columns: 1fr; }
  .conviction-field, .macro-writing-grid label.wide { grid-column: auto; }
  .performance-filterbar { grid-template-columns: 1fr 1fr; }
  .performance-summary-strip { grid-template-columns: 1fr 1fr; }
  .performance-summary-strip > div:nth-child(2) { border-right: 0; }
  .performance-summary-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .performance-breakdown { grid-template-columns: 1fr; }
}

/* Optional account-routing workflow */
.routing-config > summary { padding: 1px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; }
.routing-config > summary::-webkit-details-marker { display: none; }
.routing-heading { min-width: 0; display: grid; gap: 3px; }
.routing-heading > span { color: var(--accent-strong); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.routing-heading strong { color: var(--primary); font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.routing-heading small { color: var(--muted); font-size: 11px; font-weight: 400; }
.routing-summary { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; color: var(--muted-strong); font-size: 11px; }
.routing-summary em { padding: 3px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 9px; font-style: normal; }
.routing-config[open] .routing-summary { opacity: .55; }
.routing-body { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.routing-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.routing-status-grid article { min-width: 0; padding: 12px; display: grid; gap: 4px; border: 1px solid var(--border); border-radius: var(--radius-control); background: #0d1112; }
.routing-status-grid article > span, .routing-sequence > span, .routing-builder section > span { color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.routing-status-grid strong { overflow: hidden; color: var(--text); font-size: 12px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.routing-status-grid small { color: var(--muted); font-size: 10px; }
.routing-sequence { margin-top: 14px; padding: 13px; display: grid; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius-control); }
.routing-sequence > div { min-height: 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.routing-sequence small, .routing-slots > small, .routing-step-buttons > small { color: var(--muted); font-size: 11px; }
.pattern-chip { height: 28px; padding: 0 6px 0 9px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface-elevated); color: var(--muted-strong); font-size: 11px; cursor: grab; }
.pattern-chip.active { border-color: rgba(111, 181, 169, .45); background: var(--accent-soft); color: var(--accent-strong); }
.pattern-chip button { width: 16px; height: 16px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: currentColor; cursor: pointer; }
.routing-builder { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.routing-builder > section { min-width: 0; padding: 13px; border: 1px solid var(--border); border-radius: var(--radius-control); }
.routing-builder section > p { margin: 7px 0 12px; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.routing-slots { margin: 10px 0 8px; display: grid; gap: 6px; }
.pattern-slot-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 28px; gap: 6px; align-items: center; }
.abab-slot-label { color: var(--muted-strong); font-size: 11px; font-weight: 700; text-align: center; }
.abab-acc-select { min-width: 0; height: 32px; padding: 0 9px; border: 1px solid var(--border); border-radius: 7px; background: #0b0f10; color: var(--text); font-size: 11px; }
.routing-remove { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.routing-remove:hover { border-color: rgba(229, 115, 115, .45); color: var(--neg); }
.routing-wide { width: 100%; }
.routing-step-buttons { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.routing-step-buttons .btn { min-width: 34px; }
.routing-actions { margin-top: 16px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.danger-text { color: var(--neg) !important; }

/* Secondary Journal workflow */
.journal-account-assignment { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.journal-account-assignment > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; }
.journal-account-assignment > summary::-webkit-details-marker { display: none; }
.journal-account-assignment > summary > span:first-child { display: grid; gap: 2px; }
.journal-account-assignment > summary strong { color: var(--text); font-size: 11.5px; font-weight: 600; }
.journal-account-assignment > summary small { color: var(--muted); font-size: 10px; }
#ctg-selected-badge { display: none; padding: 3px 7px; border: 1px solid rgba(111, 181, 169, .34); border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 9px; font-weight: 700; }
.journal-account-assignment-body { padding-top: 12px; }
#ctg-trade-list { max-height: 250px; margin-bottom: 9px; display: flex; flex-direction: column; gap: 5px; overflow-y: auto; }
.journal-account-assignment-selectors, .journal-account-assignment-actions { display: flex; align-items: center; gap: 7px; }
.journal-account-assignment-selectors { margin-bottom: 8px; }
.journal-account-assignment-selectors .btn { padding: 5px 9px; font-size: 10.5px; }
.journal-account-assignment-actions select { flex: 1; min-width: 0; }
.journal-account-assignment-actions .btn { flex: 0 0 auto; }
#ctg-feedback { display: none; margin-top: 7px; color: var(--pos); font-size: 10.5px; }

/* Legacy modal surfaces normalized to the premium theme */
#funded-fields { background: #0d1112 !important; }
.checklist-editor-panel { width: min(520px, 94vw); max-height: 88vh; padding: 28px; overflow-y: auto; border: 1px solid var(--border-strong); border-radius: var(--radius-modal); background: var(--surface); box-shadow: var(--shadow-modal); }
.checklist-editor-title { color: var(--primary); font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
.checklist-editor-subtitle { margin-top: 2px; color: var(--muted); font-size: 12px; }

@media (max-width: 680px) {
  .routing-config > summary { align-items: flex-start; }
  .routing-heading small, .routing-summary span { display: none; }
  .routing-status-grid, .routing-builder { grid-template-columns: 1fr; }
}

/* Risk controls */
.segmented { gap: 3px; padding: 3px; border-color: var(--border) !important; background: #0b0f10 !important; }
.seg-btn { min-height: 36px; color: var(--muted) !important; background: transparent !important; box-shadow: none !important; }
.seg-btn:hover { color: var(--text) !important; }
.seg-btn.active { color: var(--accent-strong) !important; background: var(--surface-elevated) !important; box-shadow: inset 0 0 0 1px var(--border-strong) !important; }
.risk-meter { border-color: var(--border) !important; background: #080b0c !important; }
