.gj-root {
    --bg: #0a0a12;
    --bg-soft: #171633;
    --bg-card: #211f4b;
    --indigo-deep: #1a0b4e;
    --indigo-mid: #2d1875;
    --indigo: #4527a0;
    --indigo-glow: #6d3fff;
    --gold: #f5c518;
    --gold-bright: #ffd633;
    --white: #ffffff;
    --muted: #9a96c6;
    --muted-soft: #cbc7ec;
    --green: #00e676;
    --red: #ff3366;
    --border: rgba(245, 197, 24, 0.15);
    --border-violet: rgba(109, 63, 255, 0.25);
    --border-soft: rgba(255, 255, 255, 0.08);
    background:
      radial-gradient(ellipse at 0% 0%, rgba(109, 63, 255, 0.2) 0%, transparent 48%),
      radial-gradient(ellipse at 100% 100%, rgba(245, 197, 24, 0.11) 0%, transparent 50%),
      linear-gradient(180deg, #110927 0%, #0a0a12 100%);
    color: var(--white);
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    padding: 22px;
    border-radius: 14px;
    border: 1px solid var(--border-violet);
    min-height: 600px;
    position: relative;
    overflow: hidden;
  }
  .gj-root::before {
    content: '';
    position: absolute; top: -50%; right: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(109, 63, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
  }
  .gj-root * { box-sizing: border-box; }
  .gj-shell {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    position: relative;
    z-index: 1;
  }
  .gj-sidebar {
    position: sticky;
    top: 82px;
    align-self: start;
    padding: 14px;
    border: 1px solid var(--border-violet);
    border-radius: 10px;
    background:
      radial-gradient(circle at 0% 0%, rgba(245, 197, 24, 0.08), transparent 42%),
      linear-gradient(145deg, rgba(45, 24, 117, 0.52) 0%, rgba(17, 16, 42, 0.84) 100%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  }
  .gj-sidebar-label {
    font-family: ui-monospace, monospace;
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .gj-side-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .gj-side-nav a {
    color: var(--muted-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
    transition: all 0.18s ease;
  }
  .gj-side-nav a:hover,
  .gj-side-nav a.active {
    color: var(--white);
    border-color: rgba(245, 197, 24, 0.3);
    background: rgba(245, 197, 24, 0.09);
    box-shadow: inset 0 0 0 1px rgba(245, 197, 24, 0.04);
  }
  .gj-main { min-width: 0; }
  .gj-section-anchor,
  .gj-grid,
  .gj-share-card,
  .gj-trades-list {
    scroll-margin-top: 96px;
  }
  .gj-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; padding-bottom: 14px;
    border-bottom: 1px solid var(--border-violet);
    position: relative;
  }
  .gj-title { display: flex; align-items: center; gap: 12px; }
  .gj-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 0 22px rgba(245,197,24,0.18);
  }
  .gj-title h2 {
    font-family: Georgia, serif; font-weight: 500; font-size: 20px;
    margin: 0; letter-spacing: -0.015em; line-height: 1.1;
  }
  .gj-title .sub {
    font-size: 10px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--indigo-glow) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.18em; text-transform: uppercase;
    font-family: ui-monospace, monospace; margin-top: 3px; font-weight: 500;
  }
  .gj-header-actions { display: flex; gap: 8px; align-items: center; }
  .gj-sync-download {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid rgba(245,197,24,0.2);
    border-radius: 10px;
    background:
      linear-gradient(135deg, rgba(245,197,24,0.08), rgba(109,63,255,0.08)),
      rgba(26, 11, 78, 0.28);
  }
  .gj-sync-download p {
    margin: 5px 0 0;
    color: var(--muted-soft);
    font-size: 13px;
    line-height: 1.45;
  }
  .gj-sync-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
  }
  .gj-sync-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--border-violet);
    border-radius: 6px;
    color: var(--white);
    background: rgba(255,255,255,0.04);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .gj-sync-btn.primary {
    background: var(--gold);
    color: var(--bg);
    border-color: transparent;
  }
  .gj-account-btn {
    display: flex; align-items: center; gap: 8px;
    background: rgba(26, 11, 78, 0.5); border: 1px solid var(--border-violet);
    color: var(--white); padding: 6px 12px; border-radius: 6px;
    cursor: pointer; font-size: 13px; transition: all 0.2s;
    font-family: ui-monospace, monospace;
  }
  .gj-account-btn:hover { border-color: var(--gold); }
  .gj-account-btn .acc-name { color: var(--white); font-weight: 500; }
  .gj-account-btn .acc-type {
    font-size: 9px; padding: 2px 6px; border-radius: 3px;
    letter-spacing: 0.1em; font-weight: 500;
  }
  .gj-account-btn .acc-type.prop { background: rgba(109, 63, 255, 0.25); color: #c9b9ff; }
  .gj-account-btn .acc-type.broker { background: rgba(245, 197, 24, 0.2); color: var(--gold); }
  .gj-account-btn .acc-type.all { background: rgba(255,255,255,0.1); color: var(--muted-soft); }
  .gj-currency-toggle {
    display: flex; background: rgba(26, 11, 78, 0.5); border-radius: 6px;
    border: 1px solid var(--border-violet); padding: 2px;
  }
  .gj-currency-toggle button {
    background: transparent; border: none; color: var(--muted-soft);
    padding: 6px 12px; font-size: 13px; font-weight: 500;
    cursor: pointer; border-radius: 4px; transition: all 0.2s;
    font-family: ui-monospace, monospace;
  }
  .gj-currency-toggle button.active { background: var(--gold); color: var(--bg); }
  .gj-add-btn {
    background: var(--gold); color: var(--bg); border: none;
    padding: 8px 16px; font-size: 13px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; border-radius: 6px; transition: all 0.2s;
  }
  .gj-add-btn:hover { background: var(--gold-bright); transform: translateY(-1px); }
  .gj-balance-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(45, 24, 117, 0.4) 0%, rgba(26, 11, 78, 0.3) 100%);
    border: 1px solid var(--border-violet); border-radius: 8px;
    margin-bottom: 16px;
  }
  .gj-balance-info { display: flex; gap: 32px; align-items: center; }
  .gj-balance-block .lbl {
    font-size: 9px; color: var(--muted-soft);
    letter-spacing: 0.18em; text-transform: uppercase;
    font-family: ui-monospace, monospace; margin-bottom: 4px;
  }
  .gj-balance-block .val {
    font-family: Georgia, serif; font-size: 20px; font-weight: 500;
    color: var(--gold); letter-spacing: -0.02em;
  }
  .gj-balance-block .val.delta { font-size: 16px; }
  .gj-balance-block .val.delta.up { color: var(--green); }
  .gj-balance-block .val.delta.down { color: var(--red); }
  .gj-balance-block .val.delta.zero { color: var(--muted); }
  .gj-balance-block .sub {
    font-size: 10px; color: var(--muted); margin-top: 2px;
    font-family: ui-monospace, monospace;
  }
  .gj-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
  .gj-stat {
    background: linear-gradient(145deg, rgba(45, 24, 117, 0.4) 0%, rgba(26, 11, 78, 0.3) 100%);
    border: 1px solid var(--border-violet);
    padding: 12px 14px; border-radius: 8px;
  }
  .gj-stat-label {
    font-size: 11px; color: var(--muted-soft);
    text-transform: uppercase; letter-spacing: 0.15em;
    font-family: ui-monospace, monospace; margin-bottom: 5px;
  }
  .gj-stat-value {
    font-family: Georgia, serif; font-size: 22px;
    font-weight: 500; letter-spacing: -0.02em;
  }
  .gj-stat-value.up { color: var(--green); }
  .gj-stat-value.down { color: var(--red); }
  .gj-stat-value.gold { color: var(--gold); }
  .gj-stat-sub {
    font-size: 10px; color: var(--muted); margin-top: 4px;
    font-family: ui-monospace, monospace; letter-spacing: 0.05em;
  }
  .gj-update-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(245, 197, 24, 0.18);
    border-radius: 8px;
    background:
      radial-gradient(circle at 8% 0%, rgba(245, 197, 24, 0.12), transparent 34%),
      linear-gradient(135deg, rgba(245, 197, 24, 0.055) 0%, rgba(45, 24, 117, 0.28) 100%);
  }
  .gj-update-card p {
    margin: 8px 0 0;
    color: var(--muted-soft);
    font-size: 13px;
    line-height: 1.55;
  }
  .gj-update-card a {
    flex: 0 0 auto;
    color: var(--black);
    background: var(--gold);
    border-radius: 6px;
    padding: 9px 12px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: ui-monospace, monospace;
  }
  .gj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
  .gj-card {
    background: linear-gradient(145deg, rgba(45, 24, 117, 0.35) 0%, rgba(17, 16, 42, 0.6) 100%);
    border: 1px solid var(--border-violet);
    border-radius: 8px; padding: 14px;
  }
  .gj-card-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; gap: 8px;
  }
  .gj-card-title {
    font-size: 13px; color: var(--gold);
    text-transform: uppercase; letter-spacing: 0.18em;
    font-family: ui-monospace, monospace;
  }
  .gj-period-tabs { display: flex; gap: 4px; }
  .gj-period-tabs button {
    background: transparent; border: 1px solid var(--border-violet);
    color: var(--muted-soft); font-size: 10px; padding: 4px 8px;
    border-radius: 4px; cursor: pointer; font-family: ui-monospace, monospace;
  }
  .gj-period-tabs button.active {
    background: rgba(245, 197, 24, 0.12); color: var(--gold);
    border-color: rgba(245, 197, 24, 0.3);
  }
  .gj-cal-nav {
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px; font-family: ui-monospace, monospace; font-size: 13px;
  }
  .gj-cal-nav button {
    background: transparent; border: 1px solid var(--border-violet);
    color: var(--muted-soft); padding: 4px 10px; border-radius: 4px;
    cursor: pointer; font-size: 13px;
  }
  .gj-cal-nav button:hover { border-color: var(--gold); color: var(--gold); }
  .gj-cal-month {
    color: var(--white); font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; font-size: 12px;
  }
  #gj-calendar {
    grid-template-columns: minmax(430px, .95fr) minmax(0, 1.05fr);
  }
  #gj-calendar .gj-card:first-child {
    padding: 16px;
  }
  .gj-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .gj-cal-dow {
    text-align: center; font-size: 9px; color: var(--muted);
    font-family: ui-monospace, monospace; padding: 3px;
    letter-spacing: 0.1em; text-transform: uppercase;
  }
  .gj-cal-day {
    aspect-ratio: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 54px;
    border-radius: 7px; cursor: pointer; position: relative;
    background: rgba(109, 63, 255, 0.04);
    border: 1px solid rgba(109, 63, 255, 0.08);
    transition: transform 0.15s;
  }
  .gj-cal-day.empty { background: transparent; cursor: default; border: none; }
  .gj-cal-day:hover:not(.empty) { transform: scale(1.08); z-index: 2; }
  .gj-cal-day .dn { font-size: 14px; color: var(--muted-soft); font-family: ui-monospace, monospace; }
  .gj-cal-day.has-pnl .dn { color: var(--white); font-weight: 500; }
  .gj-cal-day.has-pnl { cursor: pointer; }
  .gj-cal-day.win { background: rgba(0, 230, 118, 0.15); border-color: rgba(0, 230, 118, 0.25); }
  .gj-cal-day.win.strong { background: rgba(0, 230, 118, 0.4); border-color: rgba(0, 230, 118, 0.5); }
  .gj-cal-day.loss { background: rgba(255, 51, 102, 0.15); border-color: rgba(255, 51, 102, 0.25); }
  .gj-cal-day.loss.strong { background: rgba(255, 51, 102, 0.4); border-color: rgba(255, 51, 102, 0.5); }
  .gj-cal-day .pnl-mark { font-size: 11px; font-weight: 800; font-family: ui-monospace, monospace; margin-top: 3px; line-height: 1; }
  .gj-cal-day.win .pnl-mark { color: var(--green); }
  .gj-cal-day.loss .pnl-mark { color: var(--red); }
  .gj-cal-day.today { box-shadow: inset 0 0 0 1px var(--gold); }
  .gj-cal-day.has-note::after {
    content: ''; position: absolute; top: 3px; right: 3px;
    width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
  }
  .gj-equity-wrap { height: 200px; position: relative; }
  .gj-equity-wrap canvas { width: 100% !important; height: 100% !important; }
  .gj-sessions, .gj-asset-block {
    background: linear-gradient(145deg, rgba(45, 24, 117, 0.35) 0%, rgba(17, 16, 42, 0.6) 100%);
    border: 1px solid var(--border-violet);
    border-radius: 8px; padding: 14px; margin-bottom: 16px;
  }
  .gj-sessions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-top: 10px; }
  .gj-session {
    text-align: center; padding: 12px 8px;
    background: rgba(109, 63, 255, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(109, 63, 255, 0.15);
    transition: all 0.2s;
  }
  .gj-session:hover { border-color: rgba(245, 197, 24, 0.3); transform: translateY(-2px); }
  .gj-session-name {
    font-size: 10px; color: var(--gold);
    letter-spacing: 0.15em; text-transform: uppercase;
    font-family: ui-monospace, monospace; margin-bottom: 8px;
  }
  .gj-session-pnl {
    font-family: Georgia, serif; font-size: 17px; font-weight: 500;
    letter-spacing: -0.01em;
  }
  .gj-session-pnl.up { color: var(--green); }
  .gj-session-pnl.down { color: var(--red); }
  .gj-session-pnl.zero { color: var(--muted); }
  .gj-session-meta {
    font-size: 9px; color: var(--muted-soft); font-family: ui-monospace, monospace;
    margin-top: 4px; letter-spacing: 0.05em;
  }
  .gj-asset-row {
    display: grid; grid-template-columns: 70px 1fr 90px 50px;
    align-items: center; gap: 12px;
    padding: 8px 0; border-bottom: 1px solid rgba(109, 63, 255, 0.08);
  }
  .gj-asset-row:last-child { border-bottom: none; }
  .gj-asset-name {
    font-family: ui-monospace, monospace; font-size: 12px; font-weight: 500;
    color: var(--white);
  }
  .gj-asset-bar-track {
    height: 8px; background: rgba(109, 63, 255, 0.1); border-radius: 2px;
    position: relative; overflow: hidden;
  }
  .gj-asset-bar { height: 100%; border-radius: 2px; transition: width 0.4s ease; }
  .gj-asset-bar.up { background: linear-gradient(90deg, var(--green) 0%, rgba(0, 230, 118, 0.6) 100%); }
  .gj-asset-bar.down { background: linear-gradient(90deg, var(--red) 0%, rgba(255, 51, 102, 0.6) 100%); }
  .gj-asset-pnl {
    font-family: ui-monospace, monospace; font-size: 12px; text-align: right;
    font-weight: 500;
  }
  .gj-asset-pnl.up { color: var(--green); }
  .gj-asset-pnl.down { color: var(--red); }
  .gj-asset-count {
    font-size: 10px; color: var(--muted); text-align: right;
    font-family: ui-monospace, monospace;
  }
  .gj-trades-list {
    background: linear-gradient(145deg, rgba(45, 24, 117, 0.35) 0%, rgba(17, 16, 42, 0.6) 100%);
    border: 1px solid var(--border-violet);
    border-radius: 8px; padding: 14px;
  }
  .gj-trades-head { display: flex; justify-content: space-between; margin-bottom: 12px; align-items: center; }
  .gj-trades-table { width: 100%; border-collapse: collapse; font-size: 14px; }
  .gj-trades-table th {
    text-align: left; padding: 8px 6px; color: var(--muted);
    font-family: ui-monospace, monospace; font-size: 11px;
    letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
    border-bottom: 1px solid var(--border-violet);
  }
  .gj-trades-table td {
    padding: 10px 6px; border-bottom: 1px solid rgba(109, 63, 255, 0.1);
    font-family: ui-monospace, monospace;
  }
  .gj-trades-table td.pnl-up { color: var(--green); font-weight: 500; }
  .gj-trades-table td.pnl-down { color: var(--red); font-weight: 500; }
  .gj-trades-table tr:hover td { background: rgba(245, 197, 24, 0.05); }
  .gj-trades-more {
    display: flex;
    justify-content: center;
    padding-top: 12px;
  }
  .gj-trades-toggle {
    border: 1px solid rgba(245, 197, 24, 0.34);
    border-radius: 999px;
    background: rgba(245, 197, 24, 0.08);
    color: var(--gold);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 9px 16px;
    text-transform: uppercase;
  }
  .gj-trades-toggle:hover {
    background: rgba(245, 197, 24, 0.14);
    border-color: rgba(245, 197, 24, 0.55);
  }
  .gj-side-badge {
    display: inline-block; padding: 2px 8px; border-radius: 3px;
    font-size: 11px; letter-spacing: 0.1em;
  }
  .gj-side-badge.long { background: rgba(0,230,118,0.12); color: var(--green); }
  .gj-side-badge.short { background: rgba(255,51,102,0.12); color: var(--red); }
  .gj-outcome-badge {
    display: inline-block; padding: 2px 7px; border-radius: 3px;
    font-size: 10px; letter-spacing: 0.12em; font-weight: 500;
  }
  .gj-outcome-badge.tp { background: rgba(0,230,118,0.15); color: var(--green); }
  .gj-outcome-badge.sl { background: rgba(255,51,102,0.15); color: var(--red); }
  .gj-outcome-badge.be { background: rgba(255,255,255,0.08); color: var(--muted-soft); }
  .gj-outcome-badge.partial { background: rgba(245,197,24,0.15); color: var(--gold); }
  .gj-trade-delete {
    background: transparent; border: none; color: var(--muted);
    cursor: pointer; padding: 2px 6px; border-radius: 3px; font-size: 14px;
  }
  .gj-trade-delete:hover { color: var(--red); background: rgba(255,51,102,0.1); }
  .gj-trade-link {
    color: var(--gold); text-decoration: none; font-size: 14px;
    padding: 2px 6px; border-radius: 3px; transition: all 0.2s;
  }
  .gj-trade-link:hover { background: rgba(245,197,24,0.1); }
  .gj-result-btn {
    border: 1px solid rgba(245, 197, 24, 0.34);
    border-radius: 999px;
    background: rgba(245, 197, 24, 0.08);
    color: var(--gold);
    cursor: pointer;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 5px 9px;
    text-transform: uppercase;
  }
  .gj-result-btn:hover {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
  }
  .gj-profit-row {
    cursor: pointer;
  }
  .gj-profit-row:hover td {
    background: rgba(0,230,118,0.055) !important;
  }
  .gj-day-trade.gj-profit-row:hover {
    background: rgba(0,230,118,0.055);
  }
  .gj-pct-inline {
    font-size: 10px; color: var(--muted-soft);
    margin-left: 6px; font-weight: 400;
  }
  .gj-share-card {
    background:
      radial-gradient(circle at 8% 8%, rgba(245, 197, 24, 0.13), transparent 34%),
      linear-gradient(145deg, rgba(45, 24, 117, 0.38) 0%, rgba(17, 16, 42, 0.68) 100%);
    border: 1px solid var(--border-violet);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
  }
  .gj-share-card p {
    margin: 5px 0 0;
    color: var(--muted-soft);
    font-size: 13px;
    line-height: 1.45;
  }
  .gj-share-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) 1fr;
    gap: 14px;
    align-items: stretch;
  }
  .gj-share-preview {
    position: relative;
    overflow: hidden;
    min-height: 188px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(245, 197, 24, 0.24);
    background:
      radial-gradient(circle at 18% 10%, rgba(245, 197, 24, 0.22), transparent 38%),
      linear-gradient(145deg, #120736 0%, #050508 100%);
    box-shadow: inset 0 0 44px rgba(245, 197, 24, 0.045);
  }
  .gj-share-preview::after {
    content: '';
    position: absolute;
    right: -44px;
    bottom: -44px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.24), transparent 62%);
    pointer-events: none;
  }
  .gj-share-preview.down::after {
    background: radial-gradient(circle, rgba(255, 51, 102, 0.2), transparent 62%);
  }
  .gj-share-brand {
    position: relative;
    z-index: 1;
    font-family: ui-monospace, monospace;
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .gj-share-account {
    position: relative;
    z-index: 1;
    color: var(--muted-soft);
    font-size: 13px;
    margin-bottom: 10px;
  }
  .gj-share-pnl {
    position: relative;
    z-index: 1;
    font-family: Georgia, serif;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--green);
    margin-bottom: 10px;
  }
  .gj-share-pnl.down { color: var(--red); }
  .gj-share-period,
  .gj-share-mini {
    position: relative;
    z-index: 1;
    font-family: ui-monospace, monospace;
    color: var(--muted-soft);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .gj-share-mini {
    margin-top: 8px;
    color: var(--white);
  }
  .gj-share-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .gj-share-kpi {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(109, 63, 255, 0.18);
  }
  .gj-share-kpi .lbl {
    font-family: ui-monospace, monospace;
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 5px;
  }
  .gj-share-kpi .val {
    font-family: Georgia, serif;
    font-size: 19px;
    color: var(--white);
    line-height: 1.1;
  }
  .gj-share-kpi .val.up { color: var(--green); }
  .gj-share-kpi .val.down { color: var(--red); }
  .gj-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }
  .gj-share-actions button {
    border: 1px solid var(--border-violet);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    cursor: pointer;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 9px 11px;
  }
  .gj-share-actions button.primary {
    background: var(--gold);
    color: var(--bg);
    border-color: transparent;
  }
  .gj-share-actions button:hover {
    border-color: var(--gold);
  }
  .gj-copy-status {
    min-height: 18px;
    margin-top: 8px;
    color: var(--muted-soft);
    font-family: ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .gj-copy-status.saved { color: var(--green); }
  body.gj-modal-open {
    overflow: hidden;
  }
  .gj-modal-bg {
    --bg: #050508;
    --bg-soft: #11102a;
    --bg-card: #1a1840;
    --indigo-deep: #1a0b4e;
    --indigo-mid: #2d1875;
    --indigo: #4527a0;
    --indigo-glow: #6d3fff;
    --gold: #f5c518;
    --gold-bright: #ffd633;
    --white: #ffffff;
    --muted: #8a85b8;
    --muted-soft: #b3afd6;
    --green: #00e676;
    --red: #ff3366;
    --border-violet: rgba(109, 63, 255, 0.25);
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 5, 8, 0.74);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(14px, 3vw, 32px);
    overflow-y: auto;
  }
  .gj-modal {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--indigo-deep) 100%);
    border: 1px solid var(--gold);
    border-radius: 10px; padding: 24px; width: 100%; max-width: 540px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.45), 0 0 80px rgba(109, 63, 255, 0.35);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    outline: none;
    overscroll-behavior: contain;
    animation: gjModalIn 0.18s ease-out;
  }
  .gj-modal h3 {
    font-family: Georgia, serif; font-size: 18px; font-weight: 500;
    margin: 0 0 4px 0; letter-spacing: -0.01em;
  }
  .gj-modal-x {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    color: var(--muted-soft);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
  }
  .gj-modal-x:hover {
    border-color: var(--gold);
    color: var(--gold);
  }
  .gj-modal .modal-sub {
    font-size: 11px; color: var(--gold); letter-spacing: 0.15em;
    text-transform: uppercase; font-family: ui-monospace, monospace;
    margin-bottom: 18px;
  }
  .gj-certificate-modal {
    max-width: 980px;
  }
  .gj-trade-certificate-modal {
    max-width: 560px;
  }
  .gj-day-certificate-modal {
    max-width: 560px;
  }
  .gj-certificate-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
  }
  .gj-certificate-canvas-wrap {
    overflow: hidden;
    border: 1px solid rgba(245, 197, 24, 0.2);
    border-radius: 12px;
    background: #050508;
    box-shadow: inset 0 0 50px rgba(245, 197, 24, 0.04);
  }
  .gj-trade-certificate-modal .gj-certificate-canvas-wrap {
    max-height: min(72vh, 840px);
    overflow: auto;
  }
  .gj-day-certificate-modal .gj-certificate-canvas-wrap {
    max-height: min(72vh, 840px);
    overflow: auto;
  }
  .gj-certificate-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
  }
  .gj-modal-section {
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(109, 63, 255, 0.15);
  }
  .gj-modal-section:last-of-type { border-bottom: none; padding-bottom: 0; }
  .gj-section-label {
    font-size: 10px; color: var(--gold);
    letter-spacing: 0.15em; text-transform: uppercase;
    font-family: ui-monospace, monospace; margin-bottom: 10px;
  }
  .gj-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
  .gj-form-row.three { grid-template-columns: 1fr 1fr 1fr; }
  .gj-form-row.single { grid-template-columns: 1fr; }
  .gj-field label {
    display: block; font-size: 10px; color: var(--muted-soft);
    text-transform: uppercase; letter-spacing: 0.12em;
    font-family: ui-monospace, monospace; margin-bottom: 4px;
  }
  .gj-field input, .gj-field select, .gj-field textarea {
    width: 100%;
    background: rgba(10, 4, 32, 0.6);
    color: var(--white);
    border: 1px solid var(--border-violet); border-radius: 5px;
    padding: 8px 10px; font-size: 14px; font-family: ui-monospace, monospace;
    transition: border-color 0.2s;
  }
  .gj-field textarea { resize: vertical; min-height: 50px; font-family: 'Inter Tight', sans-serif; }
  .gj-field input:focus, .gj-field select:focus, .gj-field textarea:focus {
    outline: none; border-color: var(--gold);
  }
  .gj-field-hint {
    font-size: 10px; color: var(--gold); margin-top: 4px;
    font-family: ui-monospace, monospace;
  }
  .gj-modal-actions {
    display: flex; gap: 8px; justify-content: flex-end;
    margin-top: 18px; padding-top: 14px;
    border-top: 1px solid var(--border-violet);
  }
  .gj-btn {
    padding: 9px 18px; border: 1px solid var(--border-violet); background: transparent;
    color: var(--white); border-radius: 5px; cursor: pointer; font-size: 12px;
    font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    transition: all 0.2s;
  }
  .gj-btn.primary { background: var(--gold); color: var(--bg); border-color: var(--gold); }
  .gj-btn.primary:hover { background: var(--gold-bright); }
  .gj-btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
  .gj-side-toggle, .gj-outcome-grid { display: flex; gap: 6px; }
  .gj-outcome-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .gj-side-toggle button, .gj-outcome-btn {
    flex: 1; padding: 10px 8px; border: 1px solid var(--border-violet);
    background: rgba(10, 4, 32, 0.6); color: var(--muted-soft); border-radius: 5px;
    cursor: pointer; font-size: 11px; letter-spacing: 0.1em;
    text-transform: uppercase; font-family: ui-monospace, monospace;
    transition: all 0.2s;
  }
  .gj-outcome-btn {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .gj-side-toggle button.long.active { background: rgba(0,230,118,0.15); color: var(--green); border-color: var(--green); }
  .gj-side-toggle button.short.active { background: rgba(255,51,102,0.15); color: var(--red); border-color: var(--red); }
  .gj-outcome-btn .icon { display: block; font-size: 16px; margin-bottom: 4px; }
  .gj-outcome-btn .lbl-main { font-weight: 700; font-size: 16px; letter-spacing: 0.16em; }
  .gj-outcome-btn .lbl-sub { font-size: 9px; opacity: 0.7; margin-top: 2px; }
  .gj-outcome-btn.active.tp { background: rgba(0,230,118,0.2); color: var(--green); border-color: var(--green); }
  .gj-outcome-btn.active.sl { background: rgba(255,51,102,0.2); color: var(--red); border-color: var(--red); }
  .gj-outcome-btn.active.be { background: rgba(255,255,255,0.1); color: var(--white); border-color: var(--muted-soft); }
  .gj-outcome-btn.active.partial { background: rgba(245,197,24,0.2); color: var(--gold); border-color: var(--gold); }
  .gj-account-list { margin-bottom: 16px; }
  .gj-account-card {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px; border-radius: 6px;
    background: rgba(10, 4, 32, 0.6);
    border: 1px solid var(--border-violet); margin-bottom: 8px;
    cursor: pointer; transition: all 0.2s;
  }
  .gj-account-card:hover { border-color: var(--gold); }
  .gj-account-card.active { border-color: var(--gold); background: rgba(245, 197, 24, 0.05); }
  .gj-account-card .name { font-weight: 500; font-size: 13px; }
  .gj-account-card .meta { font-size: 10px; color: var(--muted-soft); margin-top: 2px; font-family: ui-monospace, monospace; }
  .gj-account-card .balance { font-family: Georgia, serif; font-size: 16px; color: var(--gold); font-weight: 500; }
  .gj-live-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(0, 230, 118, 0.14);
    border: 1px solid rgba(0, 230, 118, 0.28);
    color: var(--green);
    font-family: ui-monospace, monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
  }
  .gj-account-card .delete-acc {
    background: transparent; border: none; color: var(--muted);
    font-size: 14px; cursor: pointer; padding: 4px 8px;
  }
  .gj-account-card .delete-acc:hover { color: var(--red); }
  .gj-loading { text-align: center; padding: 40px; color: var(--muted-soft); font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: 0.1em; }
  .gj-empty {
    text-align: center; padding: 30px 20px; color: var(--muted-soft);
  }
  .gj-empty .icon {
    font-size: 32px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--indigo-glow) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
  }
  /* === DAY POPOVER === */
  .gj-day-popover {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--indigo-deep) 100%);
    border: 1px solid var(--gold);
    border-radius: 10px; padding: 20px; width: 100%; max-width: 660px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.45), 0 0 80px rgba(109, 63, 255, 0.35);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    outline: none;
    overscroll-behavior: contain;
    animation: gjModalIn 0.18s ease-out;
  }
  @keyframes gjModalIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .gj-day-popover-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding-bottom: 14px; margin-bottom: 14px;
    border-bottom: 1px solid var(--border-violet);
  }
  .gj-day-popover-date {
    font-family: Georgia, serif; font-size: 20px; font-weight: 500;
    letter-spacing: -0.01em;
  }
  .gj-day-popover-date .sub {
    font-size: 11px; color: var(--gold); letter-spacing: 0.15em;
    text-transform: uppercase; margin-top: 4px;
    font-family: ui-monospace, monospace;
  }
  .gj-day-popover-pnl {
    text-align: right;
  }
  .gj-day-popover-pnl .lbl {
    font-size: 10px; color: var(--muted-soft);
    letter-spacing: 0.18em; text-transform: uppercase;
    font-family: ui-monospace, monospace; margin-bottom: 4px;
  }
  .gj-day-popover-pnl .val {
    font-family: Georgia, serif; font-size: 26px; font-weight: 500;
    letter-spacing: -0.02em;
  }
  .gj-day-popover-pnl .val.up { color: var(--green); }
  .gj-day-popover-pnl .val.down { color: var(--red); }
  .gj-day-popover-pnl .val.zero { color: var(--muted-soft); }
  .gj-day-popover-pnl .pct {
    font-size: 12px; color: var(--muted-soft); margin-top: 2px;
    font-family: ui-monospace, monospace;
  }
  .gj-day-trade {
    display: grid; grid-template-columns: 60px 1fr auto auto auto;
    align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid rgba(109, 63, 255, 0.1);
    font-size: 13px; font-family: ui-monospace, monospace;
  }
  .gj-day-trade:last-child { border-bottom: none; }
  .gj-day-trade .asset { color: var(--white); font-weight: 500; }
  .gj-day-trade .meta { color: var(--muted-soft); font-size: 12px; }
  .gj-day-trade .pnl { font-weight: 500; text-align: right; min-width: 80px; }
  .gj-day-trade .pnl.up { color: var(--green); }
  .gj-day-trade .pnl.down { color: var(--red); }
  .gj-day-note-block {
    margin-top: 14px; padding-top: 14px;
    border-top: 1px solid var(--border-violet);
  }
  .gj-day-note-block textarea {
    width: 100%; background: rgba(10, 4, 32, 0.6);
    color: var(--white); border: 1px solid var(--border-violet);
    border-radius: 5px; padding: 10px; font-size: 14px;
    font-family: 'Inter Tight', sans-serif; min-height: 70px; resize: vertical;
  }
  .gj-day-note-block textarea:focus { outline: none; border-color: var(--gold); }
  .gj-day-note-status {
    font-size: 10px; color: var(--muted-soft);
    font-family: ui-monospace, monospace; letter-spacing: 0.1em;
    margin-top: 6px;
  }
  .gj-day-note-status.saved { color: var(--green); }
  .gj-attach-tabs {
    display: flex; gap: 4px; margin-bottom: 8px;
  }
  .gj-attach-tabs button {
    background: transparent; border: 1px solid var(--border-violet);
    color: var(--muted-soft); padding: 5px 10px; border-radius: 4px;
    cursor: pointer; font-size: 10px; font-family: ui-monospace, monospace;
    letter-spacing: 0.1em; text-transform: uppercase;
  }
  .gj-attach-tabs button.active {
    background: rgba(245, 197, 24, 0.12); color: var(--gold);
    border-color: rgba(245, 197, 24, 0.3);
  }

@media (max-width: 900px) {
  .gj-root {
    padding: 16px;
    border-radius: 10px;
    overflow: visible;
  }
  .gj-root::before { display: none; }
  .gj-shell { grid-template-columns: 1fr; }
  .gj-sidebar {
    position: static;
    padding: 12px;
  }
  .gj-side-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .gj-side-nav a {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .gj-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .gj-title { align-items: center; }
  .gj-title h2 { font-size: 19px; }
  .gj-logo {
    width: 58px;
    height: 58px;
    border-radius: 13px;
  }
  .gj-header-actions {
    width: 100%;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .gj-sync-download {
    flex-direction: column;
    align-items: stretch;
  }
  .gj-sync-actions {
    justify-content: stretch;
  }
  .gj-sync-btn {
    flex: 1 1 160px;
  }
  .gj-account-btn {
    flex: 1 1 100%;
    justify-content: space-between;
    min-width: 0;
  }
  .gj-currency-toggle { flex: 1 1 130px; }
  .gj-currency-toggle button { flex: 1; }
  .gj-add-btn { flex: 1 1 130px; }
  .gj-balance-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .gj-balance-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .gj-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gj-update-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .gj-grid { grid-template-columns: 1fr; }
  #gj-calendar { grid-template-columns: 1fr; }
  .gj-share-layout { grid-template-columns: 1fr; }
  .gj-card-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .gj-equity-wrap { height: 220px; }
  .gj-sessions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gj-asset-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 0;
  }
  .gj-asset-pnl,
  .gj-asset-count { text-align: left; }
  .gj-trades-list { overflow-x: visible; }
  .gj-trades-table,
  .gj-trades-table tbody,
  .gj-trades-table tr,
  .gj-trades-table td {
    display: block;
    width: 100%;
  }
  .gj-trades-table thead { display: none; }
  .gj-trades-table tr {
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(109, 63, 255, 0.2);
    border-radius: 8px;
    background: rgba(10, 4, 32, 0.42);
  }
  .gj-trades-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0 !important;
    border-bottom: 1px solid rgba(109, 63, 255, 0.1);
    text-align: right !important;
  }
  .gj-trades-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .gj-trades-table td:last-child { border-bottom: none; }
  .gj-modal,
  .gj-day-popover {
    padding: 18px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
  }
  .gj-form-row,
  .gj-form-row.three { grid-template-columns: 1fr; }
  .gj-field input,
  .gj-field select,
  .gj-field textarea,
  .gj-day-note-block textarea {
    font-size: 16px;
    line-height: 1.35;
  }
  .gj-outcome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gj-day-popover-head {
    flex-direction: column;
    gap: 12px;
  }
  .gj-day-popover-pnl { text-align: left; }
  .gj-day-trade {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(109, 63, 255, 0.18);
    border-radius: 8px;
    background: rgba(10, 4, 32, 0.36);
  }
  .gj-day-trade > div:nth-child(2) {
    grid-column: 1 / -1;
    order: -1;
  }
  .gj-day-trade .pnl {
    min-width: 0;
    text-align: right;
  }
}

@media (max-width: 520px) {
  .gj-root {
    padding: 12px;
    border-radius: 8px;
  }
  .gj-title { gap: 10px; }
  .gj-logo {
    width: 54px;
    height: 54px;
  }
  .gj-title h2 {
    font-size: 17px;
    line-height: 1.15;
  }
  .gj-title .sub {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  .gj-stats { grid-template-columns: 1fr; }
  .gj-share-kpis { grid-template-columns: 1fr; }
  .gj-update-card {
    padding: 12px;
  }
  .gj-update-card a {
    width: 100%;
    text-align: center;
  }
  .gj-balance-info { grid-template-columns: 1fr; }
  .gj-card,
  .gj-sessions,
  .gj-asset-block,
  .gj-trades-list { padding: 12px; }
  .gj-card-head { gap: 10px; }
  .gj-cal-nav {
    width: 100%;
    justify-content: space-between;
  }
  .gj-cal-day {
    min-height: 48px;
  }
  .gj-cal-day .pnl-mark {
    display: block;
    font-size: 9px;
  }
  .gj-equity-wrap { height: 190px; }
  .gj-sessions-grid { grid-template-columns: 1fr; }
  .gj-modal-bg { padding: 10px; }
  .gj-modal,
  .gj-day-popover { padding: 14px; }
  .gj-certificate-head {
    align-items: stretch;
    flex-direction: column;
  }
  .gj-modal-x {
    align-self: flex-end;
  }
  .gj-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .gj-btn { width: 100%; }
  .gj-account-card {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
  .gj-account-card > div:last-child {
    width: 100%;
    justify-content: space-between;
  }
}
