:root{
  --bg: #0F1419;
  --panel: #161B22;
  --panel-alt: #1C232D;
  --panel-raised: #202834;
  --border: #2A323C;
  --border-soft: #232B35;
  --text: #E6E8EB;
  --text-dim: #8B949E;
  --text-faint: #5B6472;
  --brass: #C9A227;
  --brass-light: #E0BC4A;
  --brass-dim: rgba(201,162,39,0.14);
  --green: #3FB68B;
  --green-dim: rgba(63,182,139,0.14);
  --red: #E5636A;
  --red-strong: #FF4750;
  --red-dim: rgba(229,99,106,0.14);
  --amber: #E5A23F;
  --amber-dim: rgba(229,162,63,0.14);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}
*{ box-sizing: border-box; margin:0; padding:0; }
html,body{ height:100%; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x:hidden;
}
button{ font-family: inherit; cursor:pointer; }
a{ color: inherit; text-decoration:none; }
/* scrollbars never hide: a dim track and a light-blue thumb (same blue as the frame glow) */
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background: rgba(255,255,255,0.025); border-radius:6px; }
::-webkit-scrollbar-thumb{ background: rgba(125,190,255,0.28); border-radius:6px; border:2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover{ background: rgba(125,190,255,0.50); border:2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-corner{ background: transparent; }
/* arrow buttons at both ends of every scrollbar, and three grip lines on the thumb */
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-thumb:vertical{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='7' viewBox='0 0 6 7'%3E%3Cpath d='M0 .5h6M0 3.5h6M0 6.5h6' stroke='%230F1419' stroke-opacity='.35' stroke-width='1'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:center; }
::-webkit-scrollbar-thumb:horizontal{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='6' viewBox='0 0 7 6'%3E%3Cpath d='M.5 0v6M3.5 0v6M6.5 0v6' stroke='%230F1419' stroke-opacity='.35' stroke-width='1'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:center; }
::-webkit-scrollbar-button:single-button{ display:block; width:10px; height:13px; background-color: transparent; background-repeat:no-repeat; background-position:center; border-radius:6px; }
::-webkit-scrollbar-button:single-button:hover{ background-color: rgba(125,190,255,0.12); }
::-webkit-scrollbar-button:single-button:active{ background-color: rgba(125,190,255,0.22); }
::-webkit-scrollbar-button:single-button:vertical:decrement{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 8l3-3 3 3' fill='none' stroke='%237DBEFF' stroke-opacity='.55' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:single-button:vertical:increment{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4l3 3 3-3' fill='none' stroke='%237DBEFF' stroke-opacity='.55' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:single-button:horizontal{ width:13px; height:10px; }
::-webkit-scrollbar-button:single-button:horizontal:decrement{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M8 3L5 6l3 3' fill='none' stroke='%237DBEFF' stroke-opacity='.55' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:single-button:horizontal:increment{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M4 3l3 3-3 3' fill='none' stroke='%237DBEFF' stroke-opacity='.55' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:double-button{ display:none; }

/* ---------- Demo role switcher bar ---------- */
.demo-bar{
  display:flex; align-items:center; justify-content:space-between;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px;
  font-size:12px;
}
.demo-bar-left{ display:flex; align-items:center; gap:10px; color: var(--text-faint); }
.demo-tag{
  font-family: var(--font-mono); font-size:10px; letter-spacing:0.1em; text-transform:uppercase;
  color: var(--brass-light); border:1px solid rgba(201,162,39,0.35); padding:3px 8px; border-radius:20px; background: var(--brass-dim);
}
.role-switch{ display:flex; align-items:center; gap:6px; background: var(--panel); border:1px solid var(--border); border-radius:8px; padding:3px; }
.role-btn{
  border:none; background:transparent; color: var(--text-dim); font-size:12px; font-weight:600;
  padding:6px 14px; border-radius:6px; transition: all .15s ease; display:flex; align-items:center; gap:6px;
}
.role-btn.active{ background: var(--brass-dim); color: var(--brass-light); }
.role-btn .dot{ width:6px; height:6px; border-radius:50%; }

/* ---------- App shell ---------- */
.app{ display:flex; min-height: calc(100vh - 37px); }
.app-shell{ display:none; }
.app-shell.active{ display:flex; width:100%; }

.sidebar{
  width: 224px; flex-shrink:0; background: var(--panel);
  border-right: 1px solid var(--border);
  display:flex; flex-direction: column; padding: 22px 14px;
}
.brand{ display:flex; align-items:center; gap:10px; padding: 4px 8px 26px 8px; }
.brand-mark{ width:26px; height:26px; border:1.5px solid var(--brass); border-radius:4px; position:relative; flex-shrink:0; }
.brand-mark::before{ content:''; position:absolute; left:50%; top:6px; bottom:6px; width:1.5px; background: var(--brass); transform: translateX(-50%) rotate(20deg); }
.brand-name{ font-family: var(--font-display); font-weight:600; font-size:16.5px; letter-spacing: 0.02em; }
.brand-sub{ font-size:10px; color: var(--text-faint); letter-spacing:0.14em; text-transform:uppercase; margin-top:1px; }

.nav{ display:flex; flex-direction:column; gap:2px; margin-top: 10px; }
.nav-item{
  display:flex; align-items:center; gap:11px; padding: 10px 12px; border-radius:7px;
  color: var(--text-dim); font-size:13.5px; font-weight:500; cursor:pointer; border:1px solid transparent;
  transition: all .15s ease;
}
.nav-item svg{ width:16px; height:16px; opacity:0.85; flex-shrink:0; }
.nav-item:hover{ background: var(--panel-alt); color: var(--text); }
.nav-item.active{ background: var(--brass-dim); color: var(--brass-light); border-color: rgba(201,162,39,0.25); }
.nav-item.active svg{ opacity:1; }
.nav-badge{ margin-left:auto; font-family: var(--font-mono); font-size:10.5px; background: var(--red); color:#fff; border-radius:10px; padding:1px 7px; }

.sidebar-foot{ margin-top:auto; padding: 14px 10px 4px; border-top:1px solid var(--border-soft); display:flex; flex-direction:column; gap:10px;}
.status-pill{ display:flex; align-items:center; gap:7px; font-size:11.5px; color: var(--text-faint); }
.status-dot{ width:7px; height:7px; border-radius:50%; background: var(--green); box-shadow: 0 0 6px var(--green); flex-shrink:0; }
.status-dot.amber{ background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.status-dot.red{ background: var(--red-strong); box-shadow: 0 0 6px var(--red-strong); animation: pulseDot 1.1s infinite; }
@keyframes pulseDot{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }
.locked-note{ font-size:10.5px; color: var(--red); font-family: var(--font-mono); display:none; }
.locked-note.show{ display:block; }

/* ---------- Main ---------- */
.main{ flex:1; min-width:0; }
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 32px; border-bottom:1px solid var(--border);
}
.page-title{ font-family: var(--font-display); font-size: 21px; font-weight:600; }
/* the trader's name, tagline and accounts line in the top bar: kept small so the page content leads */
.topbar .page-title{ font-size:15px; font-weight:600; color: var(--text-dim); line-height:1.2; }
.page-sub{ color: var(--text-dim); font-size:12.5px; margin-top:3px; }
.topbar .page-sub{ font-size:11px; color: var(--text-faint); margin-top:1px; }
.topbar-right{ display:flex; align-items:center; gap:14px; }
.beta-tag{
  font-size:10.5px; letter-spacing:0.09em; text-transform:uppercase;
  color: var(--brass-light); border:1px solid rgba(201,162,39,0.35);
  padding:4px 9px; border-radius: 20px; background: var(--brass-dim);
}
.discipline-pill{
  display:flex; align-items:center; gap:7px; font-size:12px; font-weight:600;
  padding:6px 12px; border-radius:20px; border:1px solid var(--border);
}
.discipline-pill.green{ color: var(--green); border-color: rgba(63,182,139,.35); background: var(--green-dim); }
.discipline-pill.amber{ color: var(--amber); border-color: rgba(229,162,63,.35); background: var(--amber-dim); }
.discipline-pill.red{ color: var(--red-strong); border-color: rgba(229,99,106,.4); background: var(--red-dim); }
.avatar{ width:32px; height:32px; border-radius:50%; background: var(--panel-raised); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-size:12px; color:var(--text-dim); }

.view{ display:none; padding: 26px 32px 60px; }
.view.active{ display:block; }

/* ---------- shared bits ---------- */
.grid{ display:grid; gap:16px; }
.card{ background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.card-label{ font-size:11px; letter-spacing:0.08em; text-transform:uppercase; color: var(--text-faint); font-weight:500; }
.mono{ font-family: var(--font-mono); }
.num-lg{ font-family: var(--font-mono); font-size: 26px; font-weight:500; margin-top:6px; }
.up{ color: var(--green); } .down{ color: var(--red); } .warn{ color: var(--amber); }
.trend{ font-size:12px; margin-top:5px; color: var(--text-dim); font-family: var(--font-mono); }
.hint{ color: var(--text-faint); font-size:12px; line-height:1.5; }
.section-title{ font-family: var(--font-display); font-size:15.5px; font-weight:600; margin-bottom:14px; display:flex; align-items:center; justify-content:space-between; }
.btn{ border:1px solid var(--border); background: var(--panel-raised); color: var(--text); padding:9px 16px; border-radius:8px; font-size:13px; font-weight:600; transition: all .15s; }
.btn:hover{ border-color: var(--brass); color: var(--brass-light); }
.btn-primary{ background: var(--brass); color:#1a1408; border-color: var(--brass); }
.btn-primary:hover{ background: var(--brass-light); color:#1a1408; }
.btn-danger{ background: var(--red-strong); color:#fff; border-color: var(--red-strong); }
.btn-danger:hover{ background:#ff6068; color:#fff; }
.btn-sm{ padding:6px 11px; font-size:12px; }
.badge{ font-size:10.5px; padding:2px 8px; border-radius:20px; font-weight:600; }
.badge.win{ background: var(--green-dim); color: var(--green); }
.badge.loss{ background: var(--red-dim); color: var(--red); }
.badge.ok{ background: var(--green-dim); color: var(--green); }
.badge.broken{ background: var(--red-dim); color: var(--red); }

/* ---------- Dashboard ---------- */
.stat-row{ grid-template-columns: repeat(4, 1fr); margin-bottom:16px; }
.dash-main{ grid-template-columns: 1.3fr 1fr; align-items:start; margin-bottom:16px; }

.gauge-card{ display:flex; flex-direction:column; align-items:center; text-align:center; }
.gauge-title{ font-family: var(--font-display); font-size:14.5px; font-weight:600; margin-bottom:2px;}
.gauge-caption{ font-size:11.5px; color: var(--text-faint); margin-bottom:10px; }
.gauge-readout{ font-family: var(--font-mono); font-size:13px; color: var(--text-dim); margin-top:-6px; }
.gauge-readout b{ color: var(--brass-light); font-size:15px; }

.rulebar-row{ display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--border-soft); font-size:13px; }
.rulebar-row:last-child{ border-bottom:none; }
.rulebar-name{ flex:1; color: var(--text); }
.rulebar-track{ width:120px; height:6px; border-radius:4px; background: var(--panel-raised); overflow:hidden; }
.rulebar-fill{ height:100%; border-radius:4px; }
.rulebar-pct{ width:38px; text-align:right; font-family: var(--font-mono); color: var(--text-dim); font-size:12px; }

.pnl-split{ display:flex; align-items:flex-end; gap:22px; height:150px; padding-top:14px; }
.pnl-col{ display:flex; flex-direction:column; align-items:center; gap:10px; flex:1; height:100%; justify-content:flex-end; }
.pnl-bar{ width:56px; border-radius: 5px 5px 3px 3px; position:relative; }
.pnl-bar-label{ font-size:11.5px; color: var(--text-dim); text-align:center; line-height:1.35; }
.pnl-bar-val{ font-family: var(--font-mono); font-size:13px; margin-bottom:6px; }

.today-list-row{ display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--border-soft); font-size:12.5px; }
.today-list-row:last-child{ border-bottom:none; }
.tag-chip{ font-size:10.5px; padding:2px 7px; border-radius:5px; background: var(--panel-raised); color: var(--text-dim); font-family: var(--font-mono); }
.dot{ width:7px; height:7px; border-radius:50%; flex-shrink:0; }

.streak-card{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px;}
.streak-item{ flex:1; text-align:center; }
.streak-num{ font-family: var(--font-mono); font-size:22px; font-weight:600; }
.streak-label{ font-size:11px; color: var(--text-faint); margin-top:4px; }
.ladder-track{ width:100%; height:10px; border-radius:6px; background: var(--panel-raised); overflow:hidden; margin-top:8px; position:relative; }
.ladder-fill{ height:100%; border-radius:6px; background: linear-gradient(90deg, var(--green), var(--amber) 70%, var(--red-strong) 100%); }

/* ---------- Trade log table ---------- */
.filters{ display:flex; gap:8px; margin-bottom:14px; }
.filter-btn{ background: var(--panel); border:1px solid var(--border); color: var(--text-dim); padding:7px 14px; border-radius:20px; font-size:12.5px; font-weight:600; }
.filter-btn.active{ background: var(--brass-dim); color: var(--brass-light); border-color: rgba(201,162,39,.35); }
table.trade-table{ width:100%; border-collapse:collapse; font-size:12.5px; }
table.trade-table th{ text-align:left; color: var(--text-faint); font-weight:600; font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; padding:10px 10px; border-bottom:1px solid var(--border); position:sticky; top:0; background:var(--panel); }
table.trade-table td{ padding:10px 10px; border-bottom:1px solid var(--border-soft); vertical-align:middle; }
table.trade-table tbody tr:hover{ background: var(--panel-alt); }
.rule-icon{ width:18px; height:18px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; }
.rule-icon.ok{ background: var(--green-dim); color: var(--green); }
.rule-icon.broken{ background: var(--red-dim); color: var(--red); }
.table-scroll{ max-height: 560px; overflow:auto; border:1px solid var(--border); border-radius:12px; }

/* ---------- Form ---------- */
.form-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-size:11.5px; color: var(--text-dim); font-weight:600; }
.field input, .field select, .field textarea{
  background: var(--panel-alt); border:1px solid var(--border); border-radius:8px; padding:9px 11px;
  color: var(--text); font-family: var(--font-body); font-size:13px;
}
.field textarea{ resize: vertical; min-height:60px; font-family: var(--font-body); }
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color: var(--brass); }
.field.span2{ grid-column: span 2; }
.field.span3{ grid-column: span 3; }
.mood-row{ display:flex; gap:6px; }
.mood-btn{ flex:1; background: var(--panel-alt); border:1px solid var(--border); border-radius:7px; padding:8px 0; text-align:center; color: var(--text-dim); font-family: var(--font-mono); font-size:13px; }
.mood-btn.active{ background: var(--brass-dim); border-color: var(--brass); color: var(--brass-light); }
.import-note{ background: var(--panel-alt); border:1px dashed var(--border); border-radius:10px; padding:12px 14px; font-size:12px; color: var(--text-dim); margin-bottom:18px; line-height:1.55; }
.import-note b{ color: var(--brass-light); }
.form-actions{ display:flex; gap:10px; margin-top:20px; }
.preview-box{ margin-top:18px; padding:14px 16px; border-radius:10px; border:1px solid var(--border); background: var(--panel-alt); font-size:12.5px; display:none; }
.preview-box.show{ display:block; }
.preview-row{ display:flex; justify-content:space-between; padding:4px 0; }
.preview-row span:first-child{ color: var(--text-faint); }

/* ---------- Rules view ---------- */
.rule-grid{ grid-template-columns: repeat(2, 1fr); }
.rule-card{ position:relative; }
.rule-card-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.rule-num{ font-family: var(--font-mono); color: var(--brass-light); font-size:12px; font-weight:600; }
.rule-text{ font-family: var(--font-display); font-size:14px; font-weight:600; margin:6px 0 6px; line-height:1.35; }
.rule-detail{ font-size:12px; color: var(--text-dim); line-height:1.5; margin-bottom:10px; }
.rule-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:8px; padding-top:10px; border-top:1px solid var(--border-soft); }
.toggle{ width:34px; height:19px; border-radius:20px; background: var(--panel-raised); position:relative; border:1px solid var(--border); flex-shrink:0; }
.toggle::after{ content:''; position:absolute; width:13px; height:13px; border-radius:50%; background: var(--text-faint); top:2px; left:2px; transition: all .15s; }
.toggle.on{ background: var(--green-dim); border-color: rgba(63,182,139,.4); }
.toggle.on::after{ background: var(--green); left:17px; }
.auto-chip{ font-size:9.5px; text-transform:uppercase; letter-spacing:.06em; color: var(--brass-light); background: var(--brass-dim); padding:2px 7px; border-radius:20px; font-weight:700; }

/* ---------- amber banner ---------- */
.amber-banner{
  display:none; align-items:center; gap:12px; background: var(--amber-dim); border:1px solid rgba(229,162,63,.4);
  border-radius:10px; padding:12px 16px; margin-bottom:18px; font-size:13px; color: var(--amber);
}
.amber-banner.show{ display:flex; }
/* clock-change reminder (23 Oct 2026): black background, amber frame and heading */
.amber-banner.clock-banner{ background:#000; border-color: rgba(229,162,63,.55); color: var(--text); }
.amber-banner.clock-banner b{ color: var(--amber); }
.amber-banner.clock-banner svg{ color: var(--amber); }
.amber-banner svg{ width:20px; height:20px; flex-shrink:0; }

/* ---------- FULL SCREEN CRITICAL ALERT ---------- */
.alert-overlay{
  position:fixed; inset:0; z-index:999; display:none; align-items:center; justify-content:center;
  padding: 30px;
}
.alert-overlay.show{ display:flex; }
.alert-overlay .flash-bg{
  position:absolute; inset:0; background: #3a0407;
  animation: flashRed 0.9s infinite;
}
@keyframes flashRed{
  0%,100%{ background:#3a0407; }
  50%{ background:#8f0f18; }
}
.alert-box{
  position:relative; z-index:2; max-width: 620px; width:100%;
  background: #14090a; border: 2px solid var(--red-strong);
  border-radius: 16px; padding: 34px 34px 28px;
  box-shadow: 0 0 60px rgba(255,71,80,0.35);
  animation: shake 0.35s ease-in-out;
}
@keyframes shake{ 0%{ transform: translateY(-8px); opacity:0;} 100%{ transform: translateY(0); opacity:1;} }
.alert-icon{ width:52px; height:52px; border-radius:50%; background: rgba(255,71,80,.18); border:2px solid var(--red-strong); display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.alert-icon svg{ width:26px; height:26px; }
.alert-kicker{ font-family: var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color: var(--red-strong); font-weight:700; margin-bottom:8px;}
.alert-title{ font-family: var(--font-display); font-size:24px; font-weight:700; color:#fff; line-height:1.25; margin-bottom:12px; }
.alert-rule{ background: rgba(255,255,255,0.05); border-left:3px solid var(--red-strong); padding:12px 14px; border-radius:6px; font-size:13.5px; color:#f0d9da; line-height:1.5; margin-bottom:16px; }
.alert-advice{ font-size:13.5px; color:#e9c9ca; line-height:1.6; margin-bottom:22px; }
.alert-advice b{ color:#fff; }
.contact-row{ display:flex; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.contact-btn{
  flex:1; min-width:140px; display:flex; align-items:center; justify-content:center; gap:8px;
  background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.18); color:#fff;
  padding:11px 12px; border-radius:9px; font-size:12.5px; font-weight:600; transition: all .15s;
}
.contact-btn:hover{ background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.35); }
.contact-btn svg{ width:15px; height:15px; flex-shrink:0; }
.alert-foot-actions{ display:flex; gap:10px; align-items:center; justify-content:space-between; padding-top:14px; border-top:1px solid rgba(255,255,255,0.1);}
.alert-foot-note{ font-size:11px; color:#c99; }
.ack-btn{ background:#fff; color:#3a0407; border:none; padding:10px 18px; border-radius:8px; font-weight:700; font-size:13px; }
.ack-btn:hover{ background:#f0d9da; }

/* ---------- Support back office ---------- */
.kpi-row{ grid-template-columns: repeat(4,1fr); margin-bottom:18px; }
.roster-table{ width:100%; border-collapse:collapse; font-size:13px; }
.roster-table th{ text-align:left; color: var(--text-faint); font-weight:600; font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; padding:10px 12px; border-bottom:1px solid var(--border); }
.roster-table td{ padding:12px; border-bottom:1px solid var(--border-soft); }
.roster-table tbody tr{ cursor:pointer; transition: background .12s; }
.roster-table tbody tr:hover{ background: var(--panel-alt); }
.trader-name-cell{ display:flex; align-items:center; gap:10px; }
.trader-avatar{ width:30px; height:30px; border-radius:50%; background: var(--panel-raised); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-size:11px; }
.status-chip{ display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:600; padding:4px 10px; border-radius:20px; }
.status-chip.green{ background: var(--green-dim); color: var(--green); }
.status-chip.amber{ background: var(--amber-dim); color: var(--amber); }
.status-chip.red{ background: var(--red-dim); color: var(--red-strong); }

.alert-feed-item{ display:flex; gap:12px; padding:13px 0; border-bottom:1px solid var(--border-soft); align-items:flex-start;}
.alert-feed-item:last-child{ border-bottom:none; }
.feed-severity{ width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.feed-severity.critical{ background: var(--red-dim); color: var(--red-strong); }
.feed-severity.warning{ background: var(--amber-dim); color: var(--amber); }
.feed-body{ flex:1; }
.feed-top{ display:flex; justify-content:space-between; gap:10px; }
.feed-name{ font-weight:600; font-size:13.5px; }
.feed-time{ font-size:11px; color: var(--text-faint); font-family: var(--font-mono); }
.feed-msg{ font-size:12.5px; color: var(--text-dim); margin-top:3px; line-height:1.45; }
.feed-actions{ display:flex; gap:8px; margin-top:9px; }
.mini-contact{ display:flex; align-items:center; gap:5px; font-size:11px; font-weight:600; padding:5px 10px; border-radius:7px; background: var(--panel-raised); border:1px solid var(--border); color: var(--text-dim); }
.mini-contact:hover{ border-color: var(--brass); color: var(--brass-light); }
.mini-contact svg{ width:12px; height:12px; }
.empty-feed{ text-align:center; padding:40px 0; color: var(--text-faint); font-size:13px; }

.detail-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.back-link{ display:flex; align-items:center; gap:6px; color: var(--text-dim); font-size:12.5px; font-weight:600; margin-bottom:16px; }
.back-link:hover{ color: var(--brass-light); }
.detail-trader{ display:flex; align-items:center; gap:14px; }
.detail-avatar{ width:48px; height:48px; border-radius:50%; background: var(--panel-raised); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-size:16px; }

.contact-panel{ display:flex; gap:10px; }
.contact-panel .contact-btn{ color: var(--text); border-color: var(--border); background: var(--panel-raised); }
.contact-panel .contact-btn:hover{ border-color: var(--brass); color: var(--brass-light); }


.index-row{ display:grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap:10px; margin-top:10px; }
.ix{ background: var(--panel-alt); border:1px solid var(--border-soft); border-radius:10px; padding:12px 14px; min-width:0; }
.ix-head{ display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.ix-name{ font-family: var(--font-display); font-size:13.5px; font-weight:600; }
.ix-alias{ font-family: var(--font-mono); font-size:10.5px; color: var(--text-faint); }
.ix-count{ font-family: var(--font-mono); font-size:21px; font-weight:500; margin-top:4px; }
.ix-count small{ font-size:11px; color: var(--text-dim); font-weight:400; margin-left:4px; }
.ix-share{ height:4px; background: var(--panel-raised); border-radius:3px; margin:8px 0 6px; overflow:hidden; }
.ix-share div{ height:100%; background: var(--brass); border-radius:3px; }
.ix-sub{ display:flex; justify-content:space-between; font-family: var(--font-mono); font-size:11px; color: var(--text-dim); }
/* ---------- Period key figures (Daily / Weekly / Monthly / Annual) ---------- */
.period-card{ margin-bottom:16px; padding: 18px 20px 20px; }
.period-head{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:14px; }
.period-title{ font-family: var(--font-display); font-size:15.5px; font-weight:600; }
.period-tabs{ display:flex; gap:4px; background: var(--bg); border:1px solid var(--border); border-radius:9px; padding:3px; }
.period-btn{ display:inline-block; padding:7px 16px; border-radius:6px; font-size:12.5px; font-weight:600; color: var(--text-dim); border:1px solid transparent; transition: all .15s ease; }
.period-btn:hover{ color: var(--text); background: var(--panel-alt); }
.period-btn.active{ background: var(--brass-dim); color: var(--brass-light); border-color: rgba(201,162,39,.35); }
.period-nav{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.period-arrow{ width:30px; height:30px; border-radius:7px; border:1px solid var(--border); background: var(--panel-alt); color: var(--text-dim); font-size:15px; line-height:1; display:flex; align-items:center; justify-content:center; }
.period-arrow:hover:not(:disabled){ color: var(--brass-light); border-color: rgba(201,162,39,.35); }
.period-arrow:disabled{ opacity:.3; cursor:default; }
.period-label{ font-family: var(--font-mono); font-size:13px; color: var(--text); min-width: 210px; }
.period-latest{ font-size:11.5px; color: var(--brass-light); background:none; border:none; text-decoration: underline; text-underline-offset:3px; }
.period-kpis{ display:grid; grid-template-columns: repeat(4, 1fr); gap:10px; }
.pk{ background: var(--panel-alt); border:1px solid var(--border-soft); border-radius:10px; padding:12px 14px; min-width:0; }
.pk .card-label{ font-size:10.5px; }
.pk-val{ font-family: var(--font-mono); font-size:21px; font-weight:500; margin-top:5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pk-sub{ font-family: var(--font-mono); font-size:11px; color: var(--text-dim); margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* Trade quality: nothing is cut off with "…" — key figures, their explanations and the per-trade boxes wrap when narrow */
#tv-quality .pk-sub{ white-space:normal; overflow:visible; text-overflow:clip; line-height:1.35; overflow-wrap:anywhere; }
#tv-quality .pk-val{ white-space:normal; overflow:visible; text-overflow:clip; line-height:1.2; overflow-wrap:anywhere; }
#tv-quality .pk .card-label{ white-space:normal; }
#tv-quality table.q-rules td:first-child{ white-space:normal; min-width:160px; }
.pk-delta.up{ color: var(--green); } .pk-delta.down{ color: var(--red); }
.period-lower{ display:grid; grid-template-columns: 1.6fr 1fr; gap:10px; margin-top:10px; }
.period-chart{ background: var(--panel-alt); border:1px solid var(--border-soft); border-radius:10px; padding:12px 14px; }
.period-chart svg{ display:block; width:100%; height:110px; }
.period-empty{ padding: 28px 0; text-align:center; color: var(--text-faint); font-size:13px; }
.split-row{ display:flex; justify-content:space-between; align-items:baseline; padding:7px 0; border-bottom:1px solid var(--border-soft); font-size:12.5px; color: var(--text-dim); }
.split-row:last-child{ border-bottom:none; }
.split-row .mono{ font-size:13px; }

@media (max-width: 980px){
  .period-kpis{ grid-template-columns: repeat(2,1fr); }
  .period-lower{ grid-template-columns: 1fr; }
  .period-label{ min-width:0; }
  .form-grid{ grid-template-columns: repeat(2,1fr); }
  .dash-main, .rule-grid, .kpi-row, .stat-row{ grid-template-columns: repeat(2,1fr); }
}


/* ================= Traders Patrol app additions (beyond the v1.1 mockup) ================= */
.app{ min-height:100vh; }
.sidebar{ position:sticky; top:0; height:100vh; }
.main{ height:100vh; overflow-y:auto; }
.status-pill b{ color: var(--text-dim); font-weight:600; }
.muted{ color: var(--text-faint); }
.row{ display:flex; align-items:center; gap:10px; }
.spacer{ flex:1; }
.pill-count{ font-family: var(--font-mono); font-size:11px; color: var(--text-faint); margin-left:6px; }

/* trade log */
table.trade-table td.num{ text-align:right; font-family: var(--font-mono); }
table.trade-table th.num{ text-align:right; }
table.trade-table tbody tr{ cursor:pointer; }
table.trade-table tr.day-sep td{ background: var(--bg); color: var(--text-faint); font-size:11px; font-family: var(--font-mono); padding:6px 10px; cursor:default; }
.legs-chip{ font-size:10px; font-family: var(--font-mono); color: var(--brass-light); background: var(--brass-dim); border-radius:5px; padding:1px 6px; margin-left:6px; }
.search{ background: var(--panel); border:1px solid var(--border); color: var(--text); padding:7px 12px; border-radius:20px; font-size:12.5px; min-width:200px; }
.search:focus{ outline:none; border-color: var(--brass); }

/* side drawer (trade detail / journal) */
.drawer-back{ position:fixed; inset:0; background: rgba(0,0,0,.45); z-index:90; display:none; }
.drawer-back.show{ display:block; }
.drawer{ position:fixed; top:0; right:0; bottom:0; width:min(560px, 100vw); background: var(--panel); border-left:1px solid var(--border); z-index:91; transform: translateX(100%); transition: transform .2s ease; overflow-y:auto; padding:24px 26px 40px; }
.drawer.show{ transform:none; }
.drawer h3{ font-family: var(--font-display); font-size:18px; margin-bottom:4px; }
.kv{ display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; margin:16px 0; }
.kv .pk-val{ font-size:16px; }
.close-x{ position:absolute; top:16px; right:18px; background:none; border:none; color: var(--text-dim); font-size:22px; }
.drawer .form-grid{ grid-template-columns: repeat(2, 1fr); }
.drawer .field.span2{ grid-column: span 2; }

/* import view */
.drop{ border:1.5px dashed var(--border); border-radius:12px; padding:22px; text-align:center; color: var(--text-dim); font-size:13px; transition: all .15s; }
.drop.over{ border-color: var(--brass); background: var(--brass-dim); color: var(--brass-light); }
.path{ font-family: var(--font-mono); font-size:11.5px; color: var(--text-dim); background: var(--panel-alt); border:1px solid var(--border-soft); border-radius:6px; padding:4px 8px; word-break: break-all; }

/* settings */
.settings-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.settings-grid .card{ min-width:0; }
.profile-table{ width:100%; border-collapse:collapse; font-size:12px; }
.profile-table th{ text-align:left; color: var(--text-faint); font-size:10px; text-transform:uppercase; letter-spacing:.04em; padding:6px 4px; border-bottom:1px solid var(--border); }
.profile-table td{ padding:4px; border-bottom:1px solid var(--border-soft); }
.profile-table input, .profile-table select{ width:100%; min-width:46px; background: var(--panel-alt); border:1px solid var(--border-soft); border-radius:5px; color: var(--text); padding:5px 6px; font-family: var(--font-mono); font-size:11.5px; }
.consent-box{ background: var(--panel-alt); border:1px solid var(--border); border-radius:10px; padding:14px 16px; font-size:12.5px; line-height:1.6; color: var(--text-dim); white-space: pre-wrap; margin:10px 0 12px; }
.check{ display:flex; gap:10px; align-items:flex-start; font-size:13px; }
.check input{ margin-top:3px; accent-color: var(--brass); }
.ok-line{ color: var(--green); font-size:12.5px; }
.err-line{ color: var(--red); font-size:12.5px; }

/* chat */
.chat{ display:flex; flex-direction:column; gap:8px; max-height:380px; overflow-y:auto; padding:4px 2px 10px; }
.msg{ max-width:80%; padding:9px 12px; border-radius:12px; font-size:13px; line-height:1.45; white-space:pre-wrap; }
.msg .t{ display:block; font-size:10px; color: var(--text-faint); margin-top:4px; font-family: var(--font-mono); }
.msg.me{ align-self:flex-end; background: var(--brass-dim); border:1px solid rgba(201,162,39,.3); }
.msg.them{ align-self:flex-start; background: var(--panel-alt); border:1px solid var(--border); }
.chat-input{ display:flex; gap:8px; }
.chat-input textarea{ flex:1; min-height:42px; max-height:120px; resize:vertical; background: var(--panel-alt); border:1px solid var(--border); border-radius:8px; color: var(--text); padding:9px 11px; font-family: var(--font-body); font-size:13px; }

/* toasts */
.toasts{ position:fixed; bottom:18px; right:18px; display:flex; flex-direction:column; gap:8px; z-index:200; }
.toast{ background: var(--panel-raised); border:1px solid var(--border); border-left:3px solid var(--brass); border-radius:9px; padding:11px 14px; font-size:12.5px; max-width:360px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.toasts-mid{ top:50%; left:50%; bottom:auto; right:auto; transform:translate(-50%,-50%); z-index:400; pointer-events:none; }
.toasts-mid .toast{ pointer-events:auto; max-width:460px; min-width:320px; font-size:14px; line-height:1.5; padding:18px 20px 14px; border:1px solid var(--amber); border-left:4px solid var(--amber); background:#0B0E12; box-shadow:0 18px 60px rgba(0,0,0,.6); }
.toasts-mid .toast.red{ border-color: var(--red-strong); }
.toasts-mid .toast.green{ border-color: var(--green); }   /* 1 Dec 2026: one colour all round — a success message had an amber frame with only a green left edge */
.toast-btns{ display:flex; justify-content:flex-end; align-items:center; gap:8px; margin-top:6px; } .toasts-mid .toast-btns{ margin-top:12px; }
.toast.red{ border-left-color: var(--red-strong); } .toast.amber{ border-left-color: var(--amber); } .toast.green{ border-left-color: var(--green); }

/* login */
.login-wrap{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; }
.login-card{ width:100%; max-width:380px; }
.login-card .field{ margin:14px 0; }

/* alert feed extras */
.feed-meta{ font-size:11px; color: var(--text-faint); font-family: var(--font-mono); margin-top:3px; }
.alert-feed-item.acked{ opacity:.55; }
.seg{ display:flex; gap:4px; background: var(--bg); border:1px solid var(--border); border-radius:9px; padding:3px; }
.seg button{ background:none; border:1px solid transparent; color: var(--text-dim); padding:6px 12px; border-radius:6px; font-size:12px; font-weight:600; }
.seg button.active{ background: var(--brass-dim); color: var(--brass-light); border-color: rgba(201,162,39,.35); }
.contact-log-item{ padding:9px 0; border-bottom:1px solid var(--border-soft); font-size:12.5px; }
.contact-log-item:last-child{ border-bottom:none; }
.equity svg{ display:block; width:100%; height:160px; }
@media (max-width: 980px){ .settings-grid{ grid-template-columns:1fr; } .kv{ grid-template-columns: repeat(2,1fr); } }
.app{ width:100%; }
table.trade-table td{ white-space:nowrap; }
.drawer .form-grid > *{ min-width:0; }
.drawer select, .drawer textarea{ width:100%; }
.drawer .mood-btn{ min-width:0; }
.chart-wrap{ position:relative; }
.chart-wrap svg{ display:block; width:100%; }
.chart-tip{ display:none; position:absolute; top:6px; pointer-events:none; background: var(--panel-raised); border:1px solid var(--border); border-radius:8px; padding:8px 10px; font-size:12px; color: var(--text); min-width:180px; box-shadow:0 6px 18px rgba(0,0,0,.35); z-index:5; }
.chart-tip div{ display:flex; align-items:center; gap:6px; margin-top:4px; color: var(--text-dim); }
.chart-tip .mono{ margin-left:auto; color: var(--text); }
.chart-tip i, .chart-legend i{ width:10px; height:3px; border-radius:2px; display:inline-block; }
.chart-legend{ display:flex; gap:16px; flex-wrap:wrap; font-size:11.5px; color: var(--text-dim); margin-bottom:6px; }
.chart-legend span{ display:flex; align-items:center; gap:6px; }
select.search{ min-width:0; }
.form-grid > *{ min-width:0; }
.field input, .field select, .field textarea{ width:100%; min-width:0; }
.profile-table td:first-child input{ min-width:150px; }
.profile-table td:nth-child(3) select{ min-width:110px; }
.modal-back{ position:fixed; inset:0; background: rgba(0,0,0,.5); z-index:300; display:flex; align-items:center; justify-content:center; padding:20px; }
.modal{ width:100%; max-width:440px; }
.profile-table td:nth-child(2) input{ min-width:80px; }
.profile-table td:nth-child(4) input, .profile-table td:nth-child(5) input{ min-width:64px; }
.profile-table td:nth-child(n+6) input{ min-width:58px; }
.profile-table td:nth-child(14) select{ min-width:58px; }
/* hover explanations */
.no-tips .has-tip:not(.warn):not(:disabled){ cursor:inherit; text-decoration:none; }   /* help tips switched off: no dotted "there is help here" underline */
.has-tip{ cursor:help; text-decoration: underline dotted rgba(139,148,158,.55); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tipbox{ position:fixed; z-index:1000; display:none; max-width:320px; background: var(--panel-raised); color: var(--text); border:1px solid var(--border); border-left:3px solid var(--brass);
  border-radius:8px; padding:9px 12px; font: 400 12.5px/1.5 var(--font-body); letter-spacing:0; text-transform:none; box-shadow:0 8px 24px rgba(0,0,0,.45); pointer-events:none; }
/* ================= Education & quiz ================= */
.nav-section{ font-size:10px; letter-spacing:.14em; text-transform:uppercase; color: var(--text-faint); padding:14px 12px 4px; }
.nav{ overflow-y:auto; }
.edu-head .period-title{ margin-bottom:2px; }
.edu-list{ display:flex; flex-direction:column; gap:8px; }
.edu-item{ display:flex; align-items:center; gap:14px; padding:13px 16px; border:1px solid var(--border); border-radius:10px; background: var(--panel-alt); cursor:pointer; transition: all .15s; }
.edu-item:hover{ border-color: rgba(201,162,39,.5); }
.edu-item.done .edu-num{ background: var(--green-dim); color: var(--green); border-color: rgba(63,182,139,.4); }
.edu-item.quiz{ border-style:dashed; border-color: rgba(201,162,39,.45); }
.edu-item.quiz .edu-num{ background: var(--brass-dim); color: var(--brass-light); }
.edu-num{ width:30px; height:30px; border-radius:50%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-family: var(--font-mono); font-size:12.5px; color: var(--text-dim); flex-shrink:0; }
.edu-title{ font-family: var(--font-display); font-size:14.5px; font-weight:600; }
.edu-article{ max-width:900px; padding:24px 30px 26px; }
.edu-h{ font-family: var(--font-display); font-size:23px; font-weight:600; line-height:1.3; margin:6px 0 16px; }
.edu-figure{ margin:4px 0 20px; background: var(--bg); border:1px solid var(--border-soft); border-radius:12px; padding:14px 14px 10px; }
.edu-figure svg{ display:block; width:100%; height:auto; }
.edu-figure figcaption{ font-size:12px; color: var(--text-dim); margin-top:8px; line-height:1.5; }
.edu-body p{ font-size:14.5px; line-height:1.75; color: var(--text); margin-bottom:12px; max-width:72ch; }
.edu-body b{ color: var(--brass-light); font-weight:600; }
.edu-boxes{ display:grid; grid-template-columns: 1.3fr 1fr; gap:12px; margin-top:16px; }
.edu-box{ background: var(--panel-alt); border:1px solid var(--border-soft); border-radius:10px; padding:14px 16px; }
.edu-box ul{ margin:8px 0 0 18px; } .edu-box li{ font-size:13px; line-height:1.6; color: var(--text); margin-bottom:3px; }
.edu-box p{ font-size:13px; line-height:1.6; color: var(--text-dim); margin-top:8px; }
.edu-box.assay{ border-color: rgba(201,162,39,.35); }
.quiz-grid{ grid-template-columns: repeat(3, 1fr); margin-bottom:22px; }
.quiz-score{ display:grid; grid-template-columns: repeat(3,1fr); gap:8px; margin-top:14px; }
.quiz-score .pk-val{ font-size:18px; }
.quiz-card{ max-width:820px; padding:24px 28px; }
.quiz-progress{ height:6px; background: var(--panel-raised); border-radius:4px; overflow:hidden; margin:14px 0 8px; }
.quiz-progress div{ height:100%; background: var(--brass); border-radius:4px; transition: width .3s; }
.quiz-options{ display:flex; flex-direction:column; gap:10px; }
.quiz-opt{ display:flex; align-items:center; gap:12px; text-align:left; background: var(--panel-alt); border:1px solid var(--border); color: var(--text); padding:13px 16px; border-radius:10px; font-size:14px; line-height:1.45; transition: all .15s; }
.quiz-opt:hover:not([disabled]){ border-color: var(--brass); }
.quiz-opt[disabled]{ cursor:default; }
.quiz-opt.right{ border-color: var(--green); background: var(--green-dim); }
.quiz-opt.wrong{ border-color: var(--red); background: var(--red-dim); }
.quiz-opt.dim{ opacity:.55; }
.quiz-letter{ width:26px; height:26px; border-radius:50%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-family: var(--font-mono); font-size:12px; color: var(--text-dim); flex-shrink:0; }
.quiz-explain{ margin-top:16px; padding:13px 16px; border-radius:10px; font-size:13.5px; line-height:1.6; }
.quiz-explain.ok{ background: var(--green-dim); border:1px solid rgba(63,182,139,.35); }
.quiz-explain.bad{ background: var(--red-dim); border:1px solid rgba(229,99,106,.35); }
.quiz-result{ display:flex; gap:26px; align-items:center; margin-top:12px; }
.quiz-miss{ padding:12px 0; border-bottom:1px solid var(--border-soft); }
.quiz-miss:last-child{ border-bottom:none; }
@media (max-width: 1100px){ .quiz-grid{ grid-template-columns: 1fr 1fr; } .edu-boxes{ grid-template-columns:1fr; } }
.edu-figure svg{ max-width:760px; margin:0 auto; }

/* ---- sharing scope (Traders Patrol → Tradeguard → What I share) */
.share-chip{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:999px;font-size:10.5px;font-weight:600;letter-spacing:.02em;background:var(--brass-dim, rgba(201,162,39,.14));color:var(--brass-light);border:1px solid rgba(201,162,39,.35);vertical-align:middle;white-space:nowrap;}
.share-note{margin:0 0 16px;padding:10px 14px;border-radius:10px;border:1px dashed rgba(201,162,39,.4);color:var(--text-dim);font-size:12.5px;}
.share-presets{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 14px;}
.share-presets .btn.on{border-color:var(--brass);color:var(--brass-light);background:rgba(201,162,39,.12);}
.share-row{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--border-soft);}
.share-row:first-of-type{border-top:0;}
.share-row input{margin-top:3px;accent-color:var(--brass);}
.share-row .t{font-weight:600;font-size:13px;}
.share-row .hint{display:block;margin-top:2px;}
.share-row.locked{opacity:.55;}
.share-row.locked input{cursor:not-allowed;}

/* ---------- My Statistics ---------- */
.ms-ask{ margin-bottom:16px; }
.ms-input{ display:flex; gap:10px; margin-top:14px; align-items:stretch; }
.ms-input textarea{ flex:1; min-width:0; background: var(--bg); color: var(--text); border:1px solid var(--border); border-radius:9px; padding:10px 12px; font-family: var(--font-body); font-size:13.5px; resize:vertical; }
.ms-input textarea:focus{ outline:none; border-color: var(--brass); }
.ms-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.ms-chips .filter-btn{ font-size:11.5px; padding:5px 11px; }
.ms-grid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px; }
.ms-card{ min-width:0; }
.ms-card.full{ grid-column: 1 / -1; }
.ms-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin-bottom:10px; }
.ms-title{ font-family: var(--font-display); font-weight:600; font-size:15px; }
.ms-actions{ display:flex; gap:2px; flex-shrink:0; opacity:.55; transition: opacity .15s; }
.ms-card:hover .ms-actions{ opacity:1; }
.ms-ic{ background:none; border:1px solid transparent; color: var(--text-dim); font-size:11.5px; padding:3px 7px; border-radius:6px; font-family: var(--font-mono); }
.ms-ic:hover:not([disabled]){ border-color: var(--border); color: var(--brass-light); }
.ms-ic.danger:hover{ color: var(--red); }
.ms-ic[disabled]{ opacity:.3; cursor:default; }
.ms-svg{ display:block; overflow:visible; }
.ms-svg .ax{ font-size:10.5px; fill: var(--text-faint); font-family: var(--font-mono); }
.ms-svg .ax.val{ fill: var(--text-dim); }
.ms-kpis{ display:grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap:10px; }
.ms-kpi{ background: var(--panel-alt); border:1px solid var(--border-soft); border-radius:10px; padding:12px 14px; min-width:0; }
.ms-kpi .num-lg{ font-size:22px; }
.ms-gap{ height:14px; }
.ms-text{ font-size:13px; color: var(--text-dim); line-height:1.55; white-space:pre-wrap; }
.ms-table{ max-height:420px; overflow:auto; }
.ms-heat{ border-collapse:separate; border-spacing:2px; font-family: var(--font-mono); font-size:10.5px; }
.ms-heat th{ color: var(--text-faint); font-weight:500; padding:4px 6px; text-align:center; white-space:nowrap; }
.ms-heat tbody th{ text-align:right; }
.ms-heat td{ white-space:nowrap; padding:0 6px; min-width:46px; height:28px; text-align:center; border-radius:4px; color: var(--text); }
.ms-working{ display:flex; align-items:center; gap:10px; color: var(--text-dim); font-size:12.5px; padding:14px 0; }
.spinner{ width:14px; height:14px; border-radius:50%; border:2px solid var(--border); border-top-color: var(--brass); animation: spin .8s linear infinite; display:inline-block; }
@keyframes spin{ to{ transform: rotate(360deg); } }
.ms-code textarea{ width:100%; min-height:220px; margin-top:12px; background: var(--bg); color: var(--text); border:1px solid var(--border); border-radius:8px; padding:10px; font-family: var(--font-mono); font-size:12px; line-height:1.5; tab-size:2; }
.ms-chat{ max-height:52vh; }
@media (max-width: 1100px){ .ms-grid{ grid-template-columns: 1fr; } }
.ms-error{ padding:10px 14px; border-radius:10px; border:1px solid rgba(229,99,106,.4); background: var(--red-dim); color: var(--red-strong); font-size:12.5px; }
.banner-ack{ margin-left:auto; flex-shrink:0; background: rgba(0,0,0,.18); border-color: currentColor; color: inherit; }
.view.tgnet-view{ padding:0; }
.view.tgnet-view .view-pad{ padding: 26px 32px 60px; }
.tg-frame{ display:block; width:100%; height: calc(100vh - 84px); border:0; background: var(--bg); }

/* ---------- Subscription plans ---------- */
.tier-icon{ vertical-align:middle; flex-shrink:0; }
.tier-badge{ display:inline-flex; align-items:center; gap:6px; padding:3px 10px 3px 6px; border-radius:999px; font-size:11.5px; font-weight:600; border:1px solid var(--border); }
.tier-badge.bronze{ color:#E0A06A; border-color: rgba(205,127,50,.45); background: rgba(205,127,50,.1); }
.tier-badge.silver{ color:#DCE3EA; border-color: rgba(201,209,218,.45); background: rgba(201,209,218,.08); }
.tier-badge.gold{ color:#F2C14E; border-color: rgba(242,193,78,.5); background: rgba(242,193,78,.1); }
.plan-grid{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:16px; margin-bottom:16px; }
.plan-card{ display:flex; flex-direction:column; gap:6px; position:relative; }
.plan-card.current{ border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass) inset; }
.plan-card .plan-head{ display:flex; align-items:center; gap:10px; }
.plan-card .plan-name{ font-family: var(--font-display); font-size:19px; font-weight:600; }
.plan-card .plan-price{ font-family: var(--font-display); font-size:22px; font-weight:600; margin-top:6px; }
.plan-card .plan-price span{ font-size:12px; color: var(--text-dim); font-weight:500; }
.plan-card .form-actions{ margin-top:auto; padding-top:10px; }
.plan-now{ position:absolute; top:14px; right:14px; font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color: var(--brass-light); }
.matrix{ width:100%; border-collapse:collapse; font-size:13px; }
.matrix th, .matrix td{ padding:11px 12px; border-bottom:1px solid var(--border-soft); text-align:center; }
.matrix th:first-child, .matrix td:first-child{ text-align:left; }
.matrix thead th{ font-weight:600; vertical-align:bottom; }
.matrix thead th .tier-icon{ display:block; margin:0 auto 6px; }
.matrix td.yes{ color: var(--green); font-weight:700; }
.matrix td.no{ color: var(--text-faint); }
.matrix td.part{ color: var(--amber); font-size:12px; }
.matrix tr.grp td{ font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--text-faint); padding-top:18px; border-bottom:0; }
.matrix .col-current{ background: rgba(201,162,39,.06); }
.matrix .sub{ display:block; font-size:11.5px; color: var(--text-dim); font-weight:400; margin-top:2px; }
.lock-card{ max-width:640px; }
@media (max-width: 1100px){ .plan-grid{ grid-template-columns:1fr; } }
.ticks{ list-style:none; font-size:12.5px; color: var(--text-dim); display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
.ticks li::before{ content:'✓'; color: var(--green); margin-right:8px; font-weight:700; }
.gap-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 14px; padding:10px 14px; border:1px solid var(--border-soft); border-radius:10px; background: var(--panel-alt); }
.gap-row label{ font-size:12.5px; font-weight:600; }
.gap-row input{ width:72px; background: var(--bg); color: var(--text); border:1px solid var(--border); border-radius:7px; padding:6px 8px; font-family: var(--font-mono); }
.gap-row .hint{ flex:1; min-width:240px; }
.chip-wrap{ display:flex; flex-wrap:wrap; gap:6px; }
.reason-chip{ display:inline-flex; align-items:center; gap:4px; font-size:12px; padding:4px 10px; border-radius:999px; border:1px solid var(--border); color: var(--text-dim); background: var(--panel-alt); }
.reason-chip.mine{ border-color: rgba(201,162,39,.4); color: var(--brass-light); }
.reason-chip button{ background:none; border:0; color: inherit; font-size:13px; padding:0 0 0 2px; line-height:1; }
.setup-add{ gap:8px; margin-top:8px; align-items:center; }
.setup-add input{ flex:1; min-width:0; background: var(--bg); color: var(--text); border:1px solid var(--border); border-radius:7px; padding:7px 10px; font-size:12.5px; }
.tagline{ font-size:12.5px; font-style:italic; color: var(--brass-light); margin-top:1px; }
.topbar .tagline{ font-size:11px; opacity:.8; margin-top:0; }
.id-preview{ display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px dashed var(--border); border-radius:10px; min-height:52px; }
.id-preview .id-name{ font-weight:600; font-size:14px; }
.member-tag{ display:block; font-size:11px; font-style:italic; color: var(--brass-light); }
.brand-sub.brand-payoff{ text-transform:none; letter-spacing:0.02em; font-size:11px; font-style:italic; color: var(--brass-light); white-space:nowrap; }
.bar-chart{ padding: 2px 0; }
.bar-amounts, .bar-instr{ display:grid; margin-top:4px; font-family: var(--font-mono); font-size:11px; text-align:center; }
.bar-instr{ margin:0 0 4px; align-items:end; line-height:1.25; color: var(--text-dim); font-family: var(--font-body); font-weight:600; font-size:10.5px; letter-spacing:.02em; }
.bar-instr span{ white-space:nowrap; justify-self: unsafe center; }
.bar-instr.many{ font-size:9.5px; }
.bar-amounts span{ white-space:nowrap; justify-self: unsafe center; }
.bar-amounts.many{ font-size:10px; row-gap:1px; }
.pick-groups{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap:12px 18px; }
.pick-group .card-label{ margin-bottom:6px; }
/* sharing: two options */
.share-opts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:4px 0 14px;}
@media (max-width:760px){.share-opts{grid-template-columns:1fr;}}
.share-opt{display:flex;gap:12px;align-items:flex-start;text-align:left;padding:14px 16px;border-radius:12px;border:1px solid var(--border);background:transparent;color:var(--text);cursor:pointer;font:inherit;}
.share-opt:hover{border-color:rgba(201,162,39,.5);}
.share-opt.on{border-color:var(--brass);background:rgba(201,162,39,.10);}
.share-opt .t{display:block;font-weight:600;font-size:14px;margin-bottom:4px;}
.share-opt .hint{display:block;line-height:1.45;}
.share-opt-wrap{display:flex;flex-direction:column;gap:6px;}.share-opt-wrap .share-opt{width:100%;flex:1;}
.share-j{display:flex;gap:8px;align-items:center;padding:4px 6px;font-size:13px;cursor:pointer;transition:opacity .15s;}.share-j.off{opacity:.45;}.share-j.off b{font-weight:500;}
.share-opt-radio{flex:none;width:16px;height:16px;margin-top:2px;border-radius:50%;border:2px solid var(--text-dim);}
.share-opt.on .share-opt-radio{border-color:var(--brass);background:radial-gradient(circle,var(--brass) 45%,transparent 50%);}
.share-table{width:100%;border-collapse:collapse;font-size:12.5px;}
.share-table th{text-align:left;font-weight:600;color:var(--text-dim);padding:6px 8px;border-bottom:1px solid var(--border-soft);}
.share-table td{padding:7px 8px;border-bottom:1px solid var(--border-soft);}
.share-table td:first-child{color:var(--text);}
.share-table td.muted{color:var(--text-dim);}
/* charts */
.chart-bar{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;}
.chart-bar .mini-sel{background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:7px;padding:6px 10px;font-size:12.5px;font-family:var(--font-body);}
.chart-tog{align-items:center;font-size:12.5px;color:var(--text-dim);}
.chart-tog input{margin-top:0;}
.chart-card{margin-top:12px;padding:12px 12px 8px;}
.chart-box{height:min(62vh,560px);min-height:360px;width:100%;}
.chart-legend{display:flex;flex-wrap:wrap;gap:6px 16px;padding:8px 4px 2px;font-size:11.5px;color:var(--text-dim);font-family:var(--font-mono);}
.chart-legend i{display:inline-block;width:14px;height:2px;margin-right:6px;vertical-align:middle;}
.chart-trades tbody tr{cursor:pointer;}
.chart-trades tbody tr.focus td{background:var(--brass-dim);}
.amber-txt{color:var(--amber);}
.today-list-row .mini-sel{background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:7px;padding:5px 8px;font-size:12px;}
.exit-layer{position:absolute;inset:0;pointer-events:none;z-index:3;overflow:hidden;}
.exit-ico{position:absolute;left:0;top:0;pointer-events:auto;cursor:default;line-height:0;filter:drop-shadow(0 1px 1px rgba(0,0,0,.5));}
.exit-ico svg{display:block;}
.exit-lines{position:absolute;left:0;top:0;pointer-events:none;}
.tog-group{display:inline-flex;align-items:center;gap:10px;padding:4px 10px;border:1px solid var(--border-soft);border-radius:8px;}
.tog-label{font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--text-faint);}
.tog-sw{display:inline-block;width:10px;height:3px;border-radius:2px;margin-right:2px;vertical-align:middle;}
.chart-box.drawing{cursor:crosshair;outline:1px dashed rgba(201,162,39,.5);}
.fib-hint{margin:0 0 8px;padding:8px 12px;border-radius:8px;background:var(--brass-dim);color:var(--text);font-size:12.5px;}
.mini-time{background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:3px 6px;font-family:var(--font-mono);font-size:12px;color-scheme:dark;}
/* dashboard sections: selected period / today / all time */
.dash-sec{display:flex;align-items:center;gap:10px;margin:26px 0 12px;}
.dash-sec:first-child{margin-top:4px;}
.dash-sec-dot{width:8px;height:8px;border-radius:50%;flex:none;}
.dash-sec-title{font-family:var(--font-display);font-weight:600;font-size:13px;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;}
.dash-sec-sub{font-size:12px;color:var(--text-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.dash-sec-line{flex:1;height:1px;background:var(--border);min-width:20px;}
.dash-sec-period .dash-sec-dot{background:var(--brass);} .dash-sec-period .dash-sec-title{color:var(--brass-light);}
.dash-sec-today .dash-sec-dot{background:var(--green);box-shadow:0 0 0 3px var(--green-dim);} .dash-sec-today .dash-sec-title{color:var(--green);}
.dash-sec-all .dash-sec-dot{background:#8FA8FF;} .dash-sec-all .dash-sec-title{color:#AFC0FF;} .dash-sec-all .dash-sec-sub{color:#AFC0FF;}
.dash-sec-pulse .dash-sec-dot{background:var(--amber);} .dash-sec-pulse .dash-sec-title{color:var(--amber);}
.dash-period > .card{border-left:3px solid var(--brass);}
.dash-today{border-left:3px solid var(--green);}
.entry-ico{position:absolute;left:0;top:0;pointer-events:auto;cursor:pointer;line-height:0;filter:drop-shadow(0 1px 1px rgba(0,0,0,.5));}
.entry-ico svg{display:block;}
.entry-ico b{position:absolute;left:100%;top:50%;transform:translate(2px,-50%);font:600 10px/1 var(--font-mono);color:var(--text);background:rgba(15,20,25,.85);padding:2px 3px;border-radius:3px;}
.exit-ico{cursor:pointer;}
.entry-ico.dim,.exit-ico.dim{opacity:.35;}
.chart-trades tr.trade-head td{background:var(--panel-alt);font-size:12px;color:var(--text-dim);padding-top:9px;padding-bottom:9px;}
.chart-trades tr.trade-head td b{color:var(--text);}
.chart-trades tr.fill-row td{font-size:12.5px;}
.chart-trades tr.fill-row td:first-child{color:var(--text-faint);}
.chart-trades td{white-space:nowrap;}
/* Charts: which trades are drawn — lit chip = shown (win blue / loss yellow, like the lines on the chart), outline = hidden */
.trade-chips{ gap:6px; align-items:center; flex-wrap:wrap; }
.trade-chip{ font-family: var(--font-mono); font-size:11.5px; padding:3px 10px; border-radius:20px; cursor:pointer; background:transparent; border:1px dashed var(--border); color: var(--text-faint); }
.trade-chip:hover{ color: var(--text); border-style:solid; }
.trade-chip.on{ border-style:solid; color: var(--text); }
.trade-chip.on.win{ background: rgba(88,166,255,.16); border-color: rgba(88,166,255,.6); }
.trade-chip.on.loss{ background: rgba(224,188,74,.16); border-color: rgba(224,188,74,.6); }
.trade-chip.on.flat{ background: rgba(139,148,158,.16); border-color: rgba(139,148,158,.6); }
.chip-link{ font-size:12px; color: var(--brass-light); text-decoration:none; margin-left:2px; }
.chart-trades tr.trade-head td.up,.chart-trades tr.trade-head td .up{color:var(--green);} .chart-trades tr.trade-head td.down{color:var(--red);}
#chartWrap:fullscreen{background:var(--bg);padding:16px 20px;overflow:auto;display:flex;flex-direction:column;}
#chartWrap:fullscreen .chart-card{flex:1;display:flex;flex-direction:column;min-height:0;}
#chartWrap:fullscreen .chart-box{flex:1;height:auto;max-height:none;min-height:300px;}
.mini-num{width:52px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:3px 6px;font-family:var(--font-mono);font-size:12px;}
.profile-table select[data-k="session"]{min-width:120px;}
.profile-table select[data-k="tz"]{min-width:110px;}

/* Trading profiles: cluster trades, daily loss, loss ladder */
.pf-top { grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .pf-top { grid-template-columns: 1fr; } }
.calc-val { font-family: var(--font-mono, monospace); padding: 7px 0; color: var(--text); white-space: nowrap; }
.profile-table .calc-val { display: inline-block; padding: 0 6px; color: var(--brass-light); cursor: help; }
.ladder-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 720px; }
@media (max-width: 700px) { .ladder-steps { grid-template-columns: 1fr; } }
.ladder-step { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: rgba(255,255,255,.02); }
.ladder-step input { width: 100%; margin-top: 4px; }
.ls-day { font-weight: 600; font-size: 14px; }
.ls-sub { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
.ls-break { border-color: rgba(224,188,74,.45); background: rgba(224,188,74,.06); }
.ls-advice { font-size: 12.5px; line-height: 1.55; margin-top: 4px; }
.ls-advice select { margin: 0 4px; }
.sess-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.sess-bars .ladder-track { height: 6px; margin-top: 3px; }
.section-title .toggle { margin-left: auto; }
.ladder-step input, .ls-advice select, .pf-gap-in { background: var(--bg); color: var(--text); border:1px solid var(--border); border-radius:7px; padding:7px 9px; font-family: var(--font-mono); }
.ladder-step input:focus, .pf-gap-in:focus { outline:none; border-color: var(--brass); }
.pf-gap-in:disabled { opacity: .45; }
.ls-advice select { padding: 3px 6px; }

/* Rule book */
.rulebook-head { display:flex; gap:20px; align-items:flex-start; flex-wrap:wrap; }
.rule-reader { position:fixed; inset:0; z-index:300; background: var(--bg); display:none; align-items:center; justify-content:center; padding:24px; }
.rule-reader.show { display:flex; }
.rr-inner { max-width:760px; width:100%; text-align:center; }
.rr-count { font-size:12px; letter-spacing:.14em; text-transform:uppercase; color: var(--brass-light); margin-bottom:22px; }
.rr-text { font-family: var(--font-display); font-size:30px; line-height:1.3; color: var(--text); }
.rr-detail { font-size:16px; line-height:1.6; color: var(--text-dim); margin-top:18px; }
.rr-dots { display:flex; gap:7px; justify-content:center; margin-top:28px; }
.rr-dots span { width:8px; height:8px; border-radius:50%; background: var(--border); cursor:pointer; }
.rr-dots span.on { background: var(--brass); }
.protect-card.on { border-color: rgba(63,182,139,.45); }

/* Alarm bells on Trading profiles */
.bell { display:inline-flex; color: var(--amber); margin-left:8px; cursor:help; vertical-align:middle; }
.th-bell { color: var(--amber); margin-right:3px; vertical-align:-1px; }
.profile-table th[title] { cursor:help; }
.bell-legend { display:flex; gap:10px; align-items:flex-start; font-size:13px; color: var(--text-dim); padding:10px 14px; border:1px solid rgba(224,188,74,.3); background: var(--amber-dim); border-radius:10px; line-height:1.5; }
.bell-legend svg { color: var(--amber); flex-shrink:0; margin-top:2px; }
.unprof-banner { margin-bottom:14px; }
.unprof-banner a { color: var(--brass-light); font-weight:600; }
/* Erase: confirm box */
.sure-back { position:fixed; inset:0; z-index:400; background: rgba(5,7,10,.72); display:flex; align-items:center; justify-content:center; padding:20px; }
.sure-box { width:min(480px, 100%); background: var(--panel); border:1px solid rgba(229,99,106,.45); border-radius:14px; padding:20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.sure-title { display:flex; gap:8px; align-items:center; font-weight:600; font-size:16px; color: var(--red-strong); margin-bottom:10px; }
.sure-body { font-size:13.5px; line-height:1.55; color: var(--text); }
.erase-link { color: var(--red) !important; font-weight:500 !important; }
/* Erase by date & time */
.range-box { width:min(520px, 100%); }
.range-grid { grid-template-columns: 1fr 1fr; gap:12px; margin:14px 0 12px; }
.range-preview { font-size:13.5px; line-height:1.55; padding:10px 12px; border-radius:10px; background: rgba(255,255,255,.03); border:1px solid var(--line, rgba(255,255,255,.08)); margin-bottom:12px; min-height:44px; }
.erase-range-btn { color: var(--red) !important; margin-left:8px; }
.range-box.restore { border-color: rgba(201,162,92,.45); }
.range-box.restore .sure-title { color: var(--brass-light); }
.range-box.tz-box .sure-title { color: var(--brass-light); }   /* Time zone pop-up: a setting, not a warning (23 Oct 2026) */
.erase-batch td { background: rgba(255,255,255,.035); border-top:1px solid var(--border); padding-top:9px; padding-bottom:9px; }
.toast-action { margin-left:12px; background:none; border:1px solid var(--brass); color: var(--brass-light); border-radius:6px; padding:2px 10px; font-size:12px; font-weight:600; cursor:pointer; }
.toast-action:hover { background: rgba(201,162,92,.15); }
/* Trade Log: delete button after Rule */
.row-erase-cell { width:1%; white-space:nowrap; text-align:right; }
.row-erase { background:none; border:1px solid transparent; color: var(--text-dim); border-radius:6px; padding:2px 8px; font-size:11.5px; cursor:pointer; min-width:64px; }
.row-erase:hover { border-color: rgba(229,99,106,.5); color: var(--red); background: rgba(229,99,106,.08); }
/* Undo erase window */
.undo-btn { margin-left:6px; }
/* Trade Log toolbar (23 Oct 2026): every action button the same size, one line, slightly smaller text */
.filters.tl-bar{ flex-wrap:wrap; row-gap:8px; align-items:center; margin-bottom:16px; }
.filters.tl-bar .filter-btn{ height:30px; padding:0 14px; display:inline-flex; align-items:center; white-space:nowrap; }
.tl-search-row{ margin-bottom:16px; }
/* Clusters row on the Trades page (23 Oct 2026) */
.tl-cluster-row{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:8px 12px; margin-bottom:16px; border:1px solid var(--border); border-radius:10px; background: var(--panel); }
.tl-cluster-row.on{ border-color: var(--brass); background: var(--brass-dim); }
.tl-cluster-t{ font-family: var(--font-display); font-weight:600; font-size:14px; color: var(--brass-light); }
.tl-cluster-row .btn{ height:30px; }
.tl-cluster-row .btn:first-of-type{ margin-left:auto; }
.cl-pick{ display:inline-flex; align-items:center; margin-right:8px; vertical-align:middle; cursor:pointer; }
.cl-pick input{ width:16px; height:16px; accent-color: var(--brass); cursor:pointer; pointer-events:none; }
.cl-split{ margin-left:6px; font-size:11.5px; padding:3px 10px; border-radius:6px; border:1px solid var(--brass); background: var(--panel-alt); color: var(--brass-light); cursor:pointer; }
.cl-split:hover{ border-color: var(--brass); color: var(--brass-light); }
.tl-search-row .search{ width:340px; max-width:100%; height:30px; }
.filters.tl-bar .tl-acts{ display:flex; flex-wrap:nowrap; gap:6px; margin-left:auto; }
.filters.tl-bar .tl-act{ flex:0 0 auto; width:122px; height:30px; padding:0 6px; margin:0; font-size:11.5px; line-height:1; white-space:nowrap; display:inline-flex; align-items:center; justify-content:center; gap:4px; overflow:hidden; text-overflow:ellipsis; }
/* an option that is not possible right now (e.g. "Read it from my broker file" for Saxo) */
label.check.opt-off{ opacity:.45; cursor:not-allowed; }
.undo-box { width:min(1180px, calc(100vw - 40px)); }   /* 28 Oct 2026: wider — each line has Restore and Delete for good */
.undo-box .sure-title { width:100%; }
.undo-x { position:static; margin-left:auto; }
.undo-scroll { max-height: 52vh; margin-bottom:6px; }
/* 28 Oct 2026: one header per erase, above its own table */
.erase-group { margin-bottom:12px; }
.erase-head { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 12px; border:1px solid var(--border); border-bottom:none; border-radius:8px 8px 0 0; background:rgba(255,255,255,.035); }
.erase-what { flex:1; min-width:220px; font-size:14px; }
.erase-what b { font-size:14px; }
.erase-what .hint span { white-space:nowrap; }
.erase-acts { display:flex; gap:8px; flex-wrap:wrap; }
.erase-group .undo-scroll { border:1px solid var(--border); border-radius:0 0 8px 8px; }
.undo-scroll.undo-scroll-many, .db-box .undo-scroll.undo-scroll-many { max-height:30vh; }
.seg { display:inline-flex; border:1px solid var(--border); border-radius:9px; overflow:hidden; margin:2px 0 10px; }
.seg-btn { background:none; border:0; color: var(--text-dim); padding:6px 14px; font-size:12.5px; cursor:pointer; }
.seg-btn + .seg-btn { border-left:1px solid var(--border); }
.seg-btn.active { background: rgba(201,162,92,.16); color: var(--brass-light); font-weight:600; }
/* a tab row inside a tab (e.g. One by one / By date & time): quiet grey, so only the main tab is yellow (28 Oct 2026) */
.seg.seg-sub .seg-btn.active { background: rgba(255,255,255,.09); color: var(--text); }
/* Dashboard: rules broken list */
.pk-link { color: var(--brass-light); text-decoration: none; border-bottom: 1px dotted var(--brass-light); }
.pk-link:hover { color: var(--text); }
.broken-box { width: min(720px, 100%); border-color: var(--border); position: relative; max-height: 86vh; display:flex; flex-direction:column; }
.broken-box .close-x { position:absolute; top:10px; right:12px; }
.bk-list { overflow-y:auto; display:flex; flex-direction:column; gap:8px; padding-right:4px; }
.bk-row { border:1px solid var(--border); border-radius:10px; padding:10px 12px; cursor:pointer; background: rgba(255,255,255,.02); }
.bk-row:hover { border-color: var(--brass); }
.bk-head { display:flex; gap:10px; align-items:baseline; margin-bottom:6px; font-size:13px; }
.bk-rule { font-size:12.5px; line-height:1.5; color: var(--text-dim); }
.bk-rule b { color: var(--text); font-weight:600; }

/* "Be aware of" banner */
.aware-bar { display:none; flex-direction:column; gap:14px; margin:0 0 14px; font-size:13px; background: var(--panel-alt); border:1px solid var(--border); border-radius:16px; padding:14px 16px 16px; box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 6px 18px rgba(0,0,0,.25); }
.aware-bar.show { display:flex; }
.aware-pill{ color: var(--text-dim); border-color: var(--border-soft); background: var(--panel-alt); text-decoration:none; font-weight:500; }
.aware-pill:hover{ color: var(--text); }
.aware-pill.has-items{ color: var(--amber); border-color: rgba(229,162,63,.35); background: var(--amber-dim); }
.aw-hide{ margin-left:4px; padding:2px 10px; }
.aw-label { font-weight:700; color: var(--amber); letter-spacing:.02em; }
.aw-item { display:inline-flex; align-items:center; gap:6px; background: rgba(0,0,0,.18); border:1px solid rgba(224,188,74,.25); border-radius:20px; padding:3px 6px 3px 10px; cursor:help; }
.aw-item b { font-weight:600; }
.aw-ic { font-size:12px; }
.aw-x { background:none; border:none; color: var(--text-faint); font-size:15px; line-height:1; padding:0 2px; cursor:pointer; }
.aw-x:hover { color: var(--text); }
.aw-more { margin-left:auto; color: var(--brass-light); font-size:12px; text-decoration:none; }
/* Market calendar */
.mc-grid { grid-template-columns: 1fr 1fr; gap:16px; }
@media (max-width: 1100px) { .mc-grid { grid-template-columns: 1fr; } }
.mc-day { margin-bottom:10px; }
.mc-day.past { opacity:.8; }   /* was .5 — brighter, 14 Nov 2026 */
.mc-dayname { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color: var(--brass-light); margin:8px 0 4px; }
.mc-day.today .mc-dayname { color: var(--amber); font-weight:700; }
.mc-row { display:grid; grid-template-columns: 92px 56px 1fr; gap:4px 10px; padding:5px 0; border-bottom:1px solid var(--border-soft); font-size:13px; align-items:baseline; }
.mc-row.past { opacity:.8; }
.mc-day.past .mc-row.past { opacity:1; }   /* a past day is dimmed once, not twice */
.mc-cur { font-family: var(--font-mono); font-size:11.5px; color: var(--amber); }
.mc-fp { grid-column: 3; font-size:11.5px; }
.mc-watch { margin-top:12px; font-size:13px; }
.mc-watch summary { cursor:pointer; color: var(--brass-light); }
/* Chart drawing tools */
.draw-btn.active { background: var(--brass-dim); border-color: var(--brass); color: var(--text); }
.draw-sw { width:16px; height:16px; border-radius:50%; border:2px solid transparent; padding:0; cursor:pointer; margin:0 1px; }
.draw-sw.active { border-color: var(--text); box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.exit-lines .dr { pointer-events: auto; cursor: move; }   /* drag to move (12 Nov 2026) */
.exit-lines .dr-hit { stroke: transparent; stroke-width: 12; fill: none; }
.exit-lines .dr-fill { pointer-events: all; }
.exit-layer.tooling .dr, .exit-layer.tooling .draw-text { pointer-events: none; }
.draw-texts { position:absolute; inset:0; pointer-events:none; }
.draw-text { position:absolute; left:0; top:0; pointer-events:auto; cursor:move; background: rgba(15,20,25,.88); border:1.5px solid; border-radius:6px; padding:4px 8px; font-size:12.5px; line-height:1.4; max-width:280px; white-space:pre-wrap; user-select:none; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.draw-text.sel { outline: 2px solid #F2F4F5; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(242,244,245,.18), 0 2px 8px rgba(0,0,0,.4); }
/* selected drawing: glow under the shape, white handles on its points, dashed box round a free-draw stroke */
.exit-lines .dr-halo { fill: none; stroke: #F2F4F5; stroke-opacity: .28; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.exit-lines .dr-handle { fill: #F2F4F5; stroke-width: 2.5; pointer-events: all; cursor: grab; }
.exit-layer.tooling .dr-handle { pointer-events: none; }
.dragging-draw, .dragging-draw * { cursor: grabbing !important; user-select: none; }
.exit-lines .dr-box { fill: none; stroke: #F2F4F5; stroke-opacity: .6; stroke-width: 1; stroke-dasharray: 4 3; pointer-events: none; }
.draw-selpill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 10px; border: 1.5px solid; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(242,244,245,.06); }
.draw-selpill > i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.draw-edit { position:absolute; left:0; top:0; pointer-events:auto; z-index:5; width:240px; min-height:54px; background: var(--panel); color: var(--text); border:1.5px solid; border-radius:6px; padding:5px 8px; font: 12.5px/1.4 var(--font-body); resize: both; outline:none; }
.pen-capture { position:absolute; left:0; top:0; bottom:26px; pointer-events:auto; cursor:crosshair; z-index:4; }

/* Charts: screenshot caption + flash */
.chart-card{ position:relative; }
.shot-cap{ position:absolute; top:14px; left:50%; transform:translateX(-50%); z-index:5; background: rgba(10,13,18,.82); border:1px solid var(--border); color: var(--text); font: 600 12px var(--font-mono); padding:4px 10px; border-radius:7px; pointer-events:none; white-space:nowrap; }
.shot-flash{ animation: shotFlash .35s ease-out; }
@keyframes shotFlash { from { box-shadow: 0 0 0 3px rgba(201,162,92,.8); } to { box-shadow: 0 0 0 0 rgba(201,162,92,0); } }
/* My Chart Library */
.lib-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap:14px; margin-top:12px; }
.lib-card{ display:flex; flex-direction:column; gap:8px; padding:10px; }
.lib-thumb{ aspect-ratio: 16/10; background: rgba(0,0,0,.25); border-radius:8px; overflow:hidden; cursor:zoom-in; display:flex; align-items:center; justify-content:center; }
.lib-thumb img{ width:100%; height:100%; object-fit:cover; object-position: center top; }
.lib-thumb:hover img{ opacity:.9; }
.lib-meta{ font-size:13px; }
.lib-note-txt{ font-size:12.5px; line-height:1.5; color: var(--text); white-space:pre-wrap; max-height:4.6em; overflow:hidden; }
.lib-chips{ display:flex; flex-wrap:wrap; gap:5px; }
.lib-chip{ border:1px solid var(--border); background: rgba(255,255,255,.03); color: var(--text-dim); border-radius:999px; padding:2px 9px; font-size:11.5px; cursor:pointer; line-height:1.5; }
.lib-chip:hover{ color: var(--text); border-color: var(--brass); }
.lib-chip.ev{ color:#E0BC4A; border-color: rgba(224,188,74,.35); }
.lib-chip.su{ color:#7DB7FF; border-color: rgba(88,166,255,.35); }
.lib-chip.ex{ color:#C8CDD6; }
.lib-chip.r-up{ color: var(--green); border-color: rgba(63,185,80,.4); }
.lib-chip.r-down{ color: var(--red); border-color: rgba(229,99,106,.4); }
.lib-chip.pick.on{ background: rgba(201,162,92,.2); border-color: var(--brass); color: var(--text); font-weight:600; }
.lib-chip.pick.r-up.on{ background: rgba(63,185,80,.2); border-color: var(--green); }
.lib-chip.pick.r-down.on{ background: rgba(229,99,106,.2); border-color: var(--red); }
.lib-chip.sug{ border-style:dashed; color: var(--text); }
.lib-filters{ flex-wrap:wrap; gap:6px; }
.lib-filters .search{ min-width:260px; flex:1 1 260px; }
.lib-stats{ margin-top:12px; }
.lib-dir{ display:flex; height:22px; border-radius:7px; overflow:hidden; margin:4px 0 8px; background: rgba(255,255,255,.04); font: 600 11.5px var(--font-mono); }
.lib-dir span{ display:flex; align-items:center; justify-content:center; color:#0b0e12; white-space:nowrap; }
.lib-dir .up{ background: var(--green); } .lib-dir .down{ background: var(--red); } .lib-dir .flat{ background: #6b7280; color:#fff; }
.lib-stat-row{ display:flex; flex-wrap:wrap; gap:6px 14px; font-size:12.5px; align-items:center; }
.lib-reacts{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.warn-txt{ color: var(--amber); }
.tag-box{ width:min(820px, 100%); max-height: calc(100vh - 40px); overflow:auto; }
.tag-head{ display:flex; gap:12px; align-items:flex-start; margin-bottom:10px; font-size:13px; }
.tag-head img{ width:180px; border-radius:6px; border:1px solid var(--border); }
.tag-sec{ border-top:1px solid var(--border); padding:8px 0; }
.tag-sec summary{ cursor:pointer; font-weight:600; font-size:13px; }
.tag-sec summary .hint{ font-weight:400; margin-left:6px; }
.tag-group{ display:flex; gap:8px; align-items:baseline; margin:7px 0; }
.tag-group .card-label{ min-width:130px; }
.tag-group .chip-wrap{ display:flex; flex-wrap:wrap; gap:5px; }
.tag-react .chip-wrap{ display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.lib-note:focus{ outline:none; border-color: var(--brass); }
.lib-actions{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.lib-light{ padding:16px; }
.lib-light-in{ width:min(1500px, 100%); max-height:100%; display:flex; flex-direction:column; gap:8px; background: var(--panel); border:1px solid var(--border); border-radius:12px; padding:12px; }
.lib-light-bar{ display:flex; align-items:center; gap:8px; }
.lib-light-img{ flex:1; min-height:0; overflow:auto; display:flex; justify-content:center; }
.lib-light-img img{ width:100%; height:auto; max-width:100%; align-self:flex-start; }
.lib-light-note{ font-size:13px; line-height:1.5; white-space:pre-wrap; color: var(--text); }

/* My Chart Library window (opens over the Charts page) */
.lib-overlay{ padding:22px; z-index:390; }
.lib-panel{ width:min(1400px, 100%); height:100%; display:flex; flex-direction:column; background: var(--bg, #0d1117); border:1px solid var(--border); border-radius:14px; box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow:hidden; }
.lib-panel-bar{ display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--border); background: var(--panel); }
.lib-panel-body{ flex:1; overflow:auto; }
.lib-overlay .sure-back{ z-index:400; }

/* account switcher */
.acct-switch{ background: var(--panel-alt); color: var(--text); border:1px solid var(--border); border-radius:8px; padding:5px 8px; font-size:12.5px; margin-right:8px; max-width:200px; }
.acct-switch.one{ border-color: var(--brass); color: var(--brass-light); background: var(--brass-dim); }

/* opening gaps grouped by region */
.gap-region td{ background: var(--panel-alt); color: var(--brass-light); font-size:12px; text-transform:uppercase; letter-spacing:.06em; padding-top:8px; }

/* entry fields in tables (Accounts & import) look like every other field */
.acct-table input, .acct-table select{ background: var(--panel-alt); border:1px solid var(--border); border-radius:8px; padding:7px 10px; color: var(--text); font-family: var(--font-body); font-size:13px; }
.acct-table input:focus, .acct-table select:focus, .acct-switch:focus{ outline:none; border-color: var(--brass); }
.acct-table input::placeholder{ color: var(--text-faint); }
/* drop-down lists: the open list in the same dark colours with clear text */
select option{ background: var(--panel); color: var(--text); }
select option:checked{ background: var(--brass-dim); color: var(--brass-light); }
.acct-switch.one option{ color: var(--text); }

/* every small drop-down (index pickers etc.) in the platform's dark style — not only those inside chart bars */
.mini-sel{ background: var(--panel-alt); color: var(--text); border:1px solid var(--border); border-radius:8px; padding:6px 10px; font-size:12.5px; font-family: var(--font-body); color-scheme: dark; }
.mini-sel:focus{ outline:none; border-color: var(--brass); }
select{ color-scheme: dark; }
/* 23 Oct 2026: fields with a suggestion list (broker name etc.) — the drop-down is drawn by Chromium and follows color-scheme: dark like the other menus */
input[list]{ color-scheme: dark; }
/* the app's own drop-down for suggestion lists (desktop/renderer/combo.js) */
.combo-pop{ position:fixed; z-index:10050; background:var(--panel-alt); color:var(--text); border:1px solid var(--border); border-radius:8px; padding:4px; box-shadow:0 8px 24px rgba(0,0,0,.45); max-height:260px; overflow-y:auto; font-family:var(--font-body); font-size:13px; }
.combo-opt{ padding:7px 10px; border-radius:6px; cursor:pointer; white-space:nowrap; }
.combo-opt:hover, .combo-opt.hi{ background:var(--brass-dim); color:var(--brass-light); }
.combo-opt.sel{ font-weight:600; }
/* Trade Quality: own date range */
.q-range{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color: var(--text-dim); margin-left:6px; padding:2px 6px; border-radius:8px; }
.q-range.on{ background: var(--brass-dim); color: var(--brass-light); }
.q-date{ background: var(--panel-alt); color: var(--text); border:1px solid var(--border); border-radius:8px; padding:5px 8px; font-size:12.5px; font-family: var(--font-body); color-scheme: dark; }
.q-date:focus{ outline:none; border-color: var(--brass); }

/* after a bad day: warning box */
.bd-box{ max-width:520px; border-color: var(--amber); }
.bd-box .sure-title{ color: var(--amber); }
.bd-row .mini-sel{ padding:5px 8px; }

/* account balance chart (Dashboard) */
.equity svg.eq-chart{ width:100%; height:auto; aspect-ratio: 760 / 230; }
.eq-grid{ stroke: var(--border-soft); stroke-width:1; }
.eq-lbl{ fill: var(--text-dim); font-size:11px; font-family: var(--font-mono); }
.eq-line{ fill:none; stroke: var(--brass); stroke-width:2; stroke-linejoin:round; }
.eq-area{ fill: var(--brass-dim); }
.eq-end{ fill: var(--panel); stroke: var(--brass); stroke-width:2; }
.eq-end.now{ fill: var(--brass); }
.eq-dot{ fill: transparent; cursor: default; }
.eq-dot:hover{ fill: var(--brass-light); }
.eq-foot{ justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:6px; }
/* All accounts overview */
.acct-chip{ display:inline-block; margin-left:6px; padding:1px 6px; border-radius:4px; font-size:10.5px; background:rgba(199,163,92,.14); color:var(--brass-light, #d8b878); white-space:nowrap; }
.all-acc tbody tr{ cursor:pointer; }
.all-acc tr.all-total td{ border-top:1px solid var(--border, #2a3340); }
.all-acc .ladder-track{ margin-bottom:3px; }
/* Network: Communities (Tradeguard frame) and Sharing & connection side by side, framed like the Guard page */
.net-wrap.split{ display:grid; grid-template-columns:minmax(0,1.6fr) minmax(380px,1fr); gap:24px; padding:22px 28px; height:calc(100vh - 84px); box-sizing:border-box; }
.net-wrap.split > .net-main, .net-wrap.split > .net-side{ min-width:0; min-height:0; display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--border); border-top:3px solid var(--brass); border-radius:14px; background:rgba(255,255,255,0.018); }
.net-wrap.split .tg-frame{ flex:1; height:auto; min-height:0; }
.net-wrap.split .net-side-body{ flex:1; overflow:auto; padding:16px; }
.net-wrap.split .net-side-body .card{ margin-bottom:16px; }
.net-wrap .guard-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; background:var(--panel-alt); border-bottom:1px solid var(--border); border-radius:11px 11px 0 0; flex-shrink:0; }
.net-wrap .guard-head .section-title{ font-size:15px; }
.net-wrap.full-comm, .net-wrap.full-share{ grid-template-columns:1fr; }
.net-wrap.full-comm > .net-side, .net-wrap.full-share > .net-main{ display:none; }
.net-wrap:not(.split) > .net-side{ display:none; }
.net-share-grid{ grid-template-columns:1fr; align-items:start; }
.net-wrap.full-share .net-share-grid{ grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); }
@media (max-width: 1100px){ .net-wrap.split{ grid-template-columns:1fr; height:auto; } .net-wrap.split > .net-main{ height:80vh; } .net-wrap.full-share .net-share-grid{ grid-template-columns:1fr; } }
/* Sharing & connection: "See example" */
.ex-box{ max-width:1100px; width:calc(100vw - 80px); }
.ex-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.ex-col{ border:1px solid var(--border); border-radius:12px; padding:14px; background:var(--panel); min-width:0; }
.ex-col.mine{ border-color:var(--brass); }
.ex-head{ font-family:var(--font-display); font-weight:600; font-size:15px; margin-bottom:10px; }
.ex-trade{ font-size:12px; }
.ex-trade th, .ex-trade td{ padding:6px 6px; }
@media (max-width: 900px){ .ex-grid{ grid-template-columns:1fr; } }
.ex-box .sure-title{ color:var(--text); }
.ex-box{ border-color:var(--border); max-height:calc(100vh - 40px); overflow-y:auto; }
.ex-box > .form-actions{ position:sticky; bottom:-20px; background:var(--panel); padding:12px 0 4px; margin-bottom:-4px; border-top:1px solid var(--border); z-index:2; }
.ex-box .sure-title{ position:sticky; top:-20px; background:var(--panel); z-index:2; padding:6px 0; }
/* Trading profiles → Daily loss ladder → Days off (13 Oct 2026) */
.dayoff-rules{ display:flex; flex-direction:column; gap:6px; max-width:640px; }
.dayoff-rule{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 12px; border:1px solid var(--border-soft); border-radius:10px; font-size:13px; }
.dayoff-rule input { background: var(--bg); color: var(--text); border:1px solid var(--border); border-radius:7px; padding:7px 9px; font-family: var(--font-mono); }
.dayoff-rule input:focus { outline:none; border-color: var(--brass); }

/* Start account: the two choices stacked, each on its own line (14 Oct 2026) */
.start-choice { display: flex; flex-direction: column; gap: 8px; min-width: 280px; padding: 2px 0; }
.start-choice .check { align-items: center; gap: 8px; white-space: nowrap; }
.start-choice .check input[type="radio"] { margin-top: 0; }
.start-choice input[type="number"] { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 7px; padding: 6px 9px; font-family: var(--font-mono); }
.start-choice input[type="number"]:focus { outline: none; border-color: var(--brass); }
/* Accounts table: room between the Trades count and the Start account choice (14 Oct 2026) */
.acct-table th:nth-child(6), .acct-table td:nth-child(6) { padding-left: 36px; }
/* Rule-breach overlay: never taller than the window — the list scrolls, Acknowledge always visible (14 Oct 2026) */
.alert-overlay { overflow-y: auto; padding: 20px; }
.alert-box { max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.alert-box > * { flex-shrink: 0; }
.alert-box > .alert-rule { flex: 1 1 auto; min-height: 60px; overflow-y: auto; }
/* "Delete for good": a quiet red button — only for things that cannot be undone (14 Oct 2026) */
.btn.btn-danger-ghost { background: transparent; color: var(--red-strong, #FF4750); border: 1px solid rgba(255,71,80,.45); }
.btn.btn-danger-ghost:hover { background: rgba(255,71,80,.12); border-color: var(--red-strong, #FF4750); }
/* The Be aware / status pills in the top bar sit on the right, also when the trader's name on the left is hidden (14 Oct 2026) */
.topbar-right { margin-left: auto; }

/* Dashboard: From – to period (14 Oct 2026) */
.period-range{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-bottom:12px; }
.period-range label{ display:flex; align-items:center; gap:6px; font-size:12.5px; color: var(--text-dim); }
.period-range input[type=date]{ background: var(--bg); color: var(--text); border:1px solid var(--border); border-radius:7px; padding:6px 8px; font-family: var(--font-mono); font-size:12.5px; color-scheme: dark; }
.period-preset{ background: var(--panel-alt); color: var(--text-dim); border:1px solid var(--border); border-radius:7px; padding:6px 11px; font-size:12px; cursor:pointer; }
.period-preset:hover{ color: var(--text); }
.period-preset.active{ background: var(--brass-dim); color: var(--brass-light); border-color: rgba(201,162,39,.35); }
/* Dashboard: Market Pulse (14 Oct 2026) */
.pulse-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap:12px; }
.pulse-card{ background: var(--panel-alt); padding:14px; display:flex; flex-direction:column; gap:10px; }
.pulse-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.pulse-name{ font-family: var(--font-display); font-weight:600; font-size:15px; }
.pulse-chip{ border-radius:999px; padding:3px 9px; font-size:11px; font-weight:600; white-space:nowrap; }
.pulse-chip.amber{ background: var(--amber-dim); color: var(--amber); }
.pulse-chip.green{ background: var(--green-dim); color: var(--green); }
.pulse-chip.brass{ background: var(--brass-dim); color: var(--brass-light); }
.pulse-chip.grey{ background: var(--panel-raised); color: var(--text-dim); }
.pulse-gauge{ width:100%; max-width:200px; align-self:center; }
.pulse-typ{ text-align:center; margin-top:-6px; }
.pulse-you{ display:flex; justify-content:space-between; background: var(--bg); border-radius:7px; padding:8px 10px; font-size:12.5px; }
.pulse-you span:first-child{ color: var(--text-dim); }
.pulse-ls-lbl{ display:flex; justify-content:space-between; font-size:12px; margin-bottom:4px; }
.pulse-long{ color: var(--brass-light); } .pulse-short{ color:#AFC0FF; }
.pulse-ls-bar{ display:flex; height:8px; border-radius:4px; overflow:hidden; background: var(--panel-raised); }
.pulse-long-bg{ background: var(--brass); } .pulse-short-bg{ background:#8FA8FF; }
.pulse-foot{ display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; font-size:11.5px; color: var(--text-dim); }
.pulse-foot b{ color: var(--text); font-weight:500; }
.pulse-note{ margin-top:12px; line-height:1.5; }
.pulse-counts{ margin-top:14px; }
.pulse-counts-title{ font-weight:600; font-size:13px; margin-bottom:6px; }
.pulse-counts-total td{ font-weight:600; border-top:1px solid var(--border, rgba(255,255,255,.12)); }
.pulse-opt{ display:flex; align-items:center; gap:6px; margin-top:6px; color: var(--text-dim); cursor:pointer; }

/* My trading review — ★ What's good and bad (My statistics) and In plain words (Trade Quality), 14 Oct 2026 */
.ms-review-chip{ background: var(--brass-dim) !important; color: var(--brass-light) !important; border-color: rgba(201,162,39,.45) !important; }
.ms-review-chip.active{ background: var(--brass) !important; color: #14110a !important; }
.rv-card{ margin-top:16px; border-color: rgba(201,162,39,.35); }
.rv-sum{ font-size:15px; line-height:1.5; margin-bottom:12px; }
.rv-months{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.rv-month{ display:flex; flex-direction:column; gap:2px; background: var(--panel-alt); border:1px solid var(--border-soft); border-radius:8px; padding:7px 12px; font-family: var(--font-mono); font-size:13px; }
.rv-cols{ display:grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap:16px; }
.rv-cols.one{ grid-template-columns: 1fr; gap:4px; margin-top:8px; }
.rv-h{ font-family: var(--font-display); font-weight:600; font-size:12.5px; letter-spacing:.07em; text-transform:uppercase; margin-bottom:8px; }
.rv-h.good{ color: var(--green); } .rv-h.bad{ color: var(--red); }
.rv-item{ display:flex; gap:10px; padding:9px 0; border-bottom:1px solid var(--border-soft); }
.rv-item:last-child{ border-bottom:0; }
.rv-dot{ width:8px; height:8px; border-radius:50%; margin-top:6px; flex:none; }
.rv-item.good .rv-dot{ background: var(--green); } .rv-item.bad .rv-dot{ background: var(--red); }
.rv-title{ font-weight:600; font-size:13.5px; margin-bottom:2px; }
.rv-text{ font-size:13px; line-height:1.55; color: var(--text-dim); }
.rv-text b{ color: var(--text); } .rv-text b.up{ color: var(--green); } .rv-text b.down{ color: var(--red); }
.rv-focus{ margin-top:16px; background: var(--brass-dim); border:1px solid rgba(201,162,39,.35); border-radius:10px; padding:12px 16px; }
.rv-focus .rv-h{ color: var(--brass-light); }
.rv-focus ol{ margin:0; padding-left:20px; font-size:14px; line-height:1.7; }
.rv-foot{ margin-top:12px; }
.q-details-toggle{ display:flex; align-items:center; gap:12px; margin:16px 0; }

/* Emotion gauge (Dashboard · Today · live) */
.emo-card{display:flex;gap:22px;align-items:center;margin-bottom:16px;}
.emo-left{flex:0 0 230px;text-align:center;cursor:help;}
.emo-svg{width:230px;height:auto;display:block;}
.emo-needle{transition:all .6s ease;}
.emo-state{font:600 20px/1.2 var(--font-mono, 'IBM Plex Mono');margin-top:4px;}
.emo-body{flex:1;min-width:0;}
.emo-say{font-size:14px;line-height:1.5;margin-bottom:10px;}
.emo-why{display:flex;flex-direction:column;gap:5px;font-size:13px;}
.emo-sig{display:flex;align-items:center;gap:8px;}
.emo-sig .dot{width:8px;height:8px;border-radius:50%;flex:0 0 8px;}
.emo-hist{display:flex;align-items:center;gap:6px;margin-top:12px;flex-wrap:wrap;}
.emo-dot{width:13px;height:13px;border-radius:50%;display:inline-block;cursor:help;}
@media (max-width:900px){.emo-card{flex-direction:column;align-items:stretch;}.emo-left{flex:none;}}

/* Chart replay */
.replay-bar{background:var(--panel-alt);border:1px solid var(--border);border-radius:8px;padding:7px 10px;}
.replay-bar .rp-time{font:600 13px var(--font-mono, 'IBM Plex Mono');min-width:118px;}
.replay-bar input[type=range]{flex:1;min-width:160px;accent-color:var(--brass);}
.live-pnl{position:absolute;left:0;top:0;font:600 11px/1 var(--font-mono, 'IBM Plex Mono');padding:3px 5px;border-radius:4px;background:rgba(15,20,25,.9);white-space:nowrap;pointer-events:none;}
/* Emotion gauge: pick a day, replay a day */
.emo-needle{transition:transform .7s cubic-bezier(.3,1.4,.5,1);}
.emo-when{font-size:12.5px;color:var(--text-dim);margin:-2px 0 8px;}
.emo-when a{color:var(--brass-light);}
.emo-replay{margin-top:12px;}
.emo-ctl{gap:6px;align-items:center;margin-bottom:6px;}
.emo-linebox{position:relative;}
.emo-line{width:100%;height:84px;display:block;border-radius:6px;}
.emo-pts{position:absolute;inset:0;}
.emo-pt{position:absolute;width:11px;height:11px;border-radius:50%;transform:translate(-50%,-50%);cursor:pointer;border:2px solid var(--panel);}
.emo-pt.on{width:15px;height:15px;border-color:var(--text);box-shadow:0 0 0 3px rgba(242,244,245,.15);}
button.emo-dot{border:2px solid transparent;padding:0;position:relative;width:16px;height:16px;cursor:pointer;}
button.emo-dot.on{border-color:var(--text);box-shadow:0 0 0 3px rgba(242,244,245,.15);}
button.emo-dot i{position:absolute;top:100%;left:50%;transform:translateX(-50%);font:normal 9.5px Inter;color:var(--text-faint);margin-top:2px;}
.emo-hist{padding-bottom:10px;}

/* click-to-sort tables (table.sortable) — click a column name: A→Z / low→high, again: Z→A / high→low, again: back to normal */
table.sortable thead th{ cursor:pointer; user-select:none; }
table.sortable thead th:empty{ cursor:default; }
table.sortable thead th:not(:empty):hover{ color: var(--text); }
table.sortable thead th:not(:empty)::after{ content:'\21C5'; margin-left:5px; opacity:0; font-size:10px; }
table.sortable thead th:not(:empty):hover::after{ opacity:.45; }
table.sortable thead th.sorted-asc, table.sortable thead th.sorted-desc{ color: var(--brass-light, var(--text)); }
table.sortable thead th.sorted-asc::after{ content:'\25B2'; opacity:1; }
table.sortable thead th.sorted-desc::after{ content:'\25BC'; opacity:1; }
.sort-date{ display:none; color: var(--text-faint); }
table.is-sorted .sort-date{ display:inline; }

/* full-screen button on the Chart page: brass, with a clear corners icon */
.fs-btn { display:inline-flex; align-items:center; gap:7px; font-weight:600; color:var(--brass-light); border-color:var(--brass); background:var(--brass-dim); }
.fs-btn svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.fs-btn:hover { background:var(--brass); color:#0F1419; border-color:var(--brass-light); }
.fs-btn.on { background:var(--brass); color:#0F1419; border-color:var(--brass-light); }
.fs-btn.on:hover { filter:brightness(1.1); }
/* colour palette: only shown while Free draw is on (or a drawing is selected) */
.draw-palette { animation: drawPalIn .15s ease-out; }
@keyframes drawPalIn { from { opacity:0; transform:translateX(-4px); } to { opacity:1; transform:none; } }

/* Chart page: the day picker comes first — same size as before, in the chart's blue so it is easy to find */
.chart-bar .date-pick .mini-sel { background:rgba(88,166,255,0.10); border-color:rgba(88,166,255,0.45); color:#A8CFFF; }
.chart-bar .date-pick .mini-sel:hover, .chart-bar .date-pick .mini-sel:focus { border-color:#58A6FF; }

/* Chart page toolbar: top line (day + view actions), then one labelled row per group */
.chart-bar.chart-top { justify-content:space-between; padding-bottom:12px; margin-bottom:10px; border-bottom:1px solid var(--border-soft); }
.chart-top-actions { gap:8px; flex-wrap:wrap; }
.chart-bar.chart-row { margin-top:8px; }
.row-lbl { width:86px; flex-shrink:0; font-size:10.5px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--text-faint); }
.ico-btn { display:inline-flex; align-items:center; gap:7px; }
.ico-btn svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* Market Pulse: the small print under the cards, with the discretion promise highlighted */
.pulse-line { margin-bottom:4px; }
.pulse-line b { color: var(--text); font-weight:600; }
.pulse-discreet { display:inline-flex; align-items:center; gap:8px; margin:6px 0 4px; padding:6px 12px; border:1px solid rgba(63,182,139,.45); background: var(--green-dim); border-radius:8px; color: var(--text); font-size:12.5px; }
.pulse-discreet b { color: var(--green); font-weight:600; }
.pulse-discreet svg { width:16px; height:16px; flex-shrink:0; fill:none; stroke: var(--green); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* side menu + top bar as one frame (same panel colour, no line between them); the page sits inside it,
   its edge running down the side menu and along the top bar with a rounded corner where they meet */
.sidebar { border-right: none; }
/* the frame edge is a soft light-blue glow rather than a hard grey line */
:root { --frame-edge: rgba(125,190,255,0.32); --frame-glow: rgba(125,190,255,0.24); --frame-shade: rgba(0,0,0,0.42); }
.main { box-shadow: inset 1px 0 0 var(--frame-edge), inset 8px 0 10px -7px var(--frame-glow), inset 18px 0 26px -22px var(--frame-shade); }
.main > .topbar { position:sticky; top:0; z-index:50; background: var(--panel); border-bottom: none; }
.main > .topbar::before { content:''; position:absolute; left:18px; right:0; bottom:0; height:1px; background: var(--frame-edge); box-shadow: 0 0 7px 1px var(--frame-glow), 0 8px 22px 2px var(--frame-shade); }
.main > .topbar::after { content:''; position:absolute; left:0; top:calc(100% - 1px); width:18px; height:18px; pointer-events:none;
  border-top:1px solid var(--frame-edge); border-left:1px solid var(--frame-edge); border-top-left-radius:18px; box-shadow:-12px -12px 0 12px var(--panel); }
.main > .aware-bar.show { margin: 14px 32px 0; }
/* menu items: the selected one gets a soft white edge with a faint glow (same idea as the frame edge); hover shows a fainter edge */
:root { --menu-edge: rgba(255,255,255,0.22); --menu-glow: rgba(255,255,255,0.10); }
.nav-item:hover{ border-color: rgba(255,255,255,0.10); }
.nav-item.active{ border-color: var(--menu-edge); box-shadow: 0 0 8px 1px var(--menu-glow), inset 0 0 6px var(--menu-glow); }
/* the box holding the menu items: same soft white edge and glow, a little fainter than the selected item */
.sidebar .nav{ padding:6px; border:1px solid rgba(255,255,255,0.14); border-radius:11px; box-shadow: 0 0 12px 1px rgba(255,255,255,0.06), inset 0 0 10px rgba(255,255,255,0.04); }

/* "Set up from its trades" window: wide enough for the index table */
.sure-box.acct-setup-box { border-color: rgba(201,162,92,.45); width:min(900px, calc(100vw - 48px)); max-width:none; max-height:calc(100vh - 60px); overflow:auto; }
.unprof-setup { font-weight:600; color: var(--brass-light); }
.acct-setup-box .sure-title { color: var(--brass-light); }
/* number boxes inside setup tables (Get started → What we found, Indices you trade, Set up from its trades) */
.acct-setup-box .trade-table input[type=number], .gs-fields .trade-table input[type=number] { background: var(--bg); color: var(--text); border:1px solid var(--border); border-radius:6px; padding:5px 8px; font-size:13px; font-family: var(--font-mono); }
.acct-setup-box .trade-table input[type=number]:focus, .gs-fields .trade-table input[type=number]:focus { outline:none; border-color: var(--brass); }


/* ---------- Scroll hints (shared/scrollhints.js): fade + glowing arrow, count pill on tables and alert lists ---------- */
.sh-fade{ position:fixed; pointer-events:none; z-index:9000; display:none; }
.sh-btn{ position:fixed; z-index:9001; display:none; align-items:center; justify-content:center; gap:6px;
  min-width:30px; height:30px; padding:0; border-radius:15px;
  border:1px solid rgba(125,190,255,0.45); background: rgba(28,42,58,0.92); color:#7DBEFF;
  box-shadow: 0 4px 14px rgba(0,0,0,0.45), 0 0 10px rgba(125,190,255,0.25);
  font-family: var(--font-body); font-size:12px; font-weight:600; transition: background .15s, box-shadow .15s; }
.sh-btn svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.sh-btn.sh-pill{ padding:0 14px 0 10px; color:#B5DAFF; }
.sh-btn:hover{ background: rgba(40,62,86,0.96); box-shadow: 0 4px 14px rgba(0,0,0,0.45), 0 0 14px rgba(125,190,255,0.45); }

/* menu foot: no divider line when nothing is showing in it (status lines hidden, not locked) */
.sidebar-foot:not(:has(> .status-pill:not([style*="display:none"]):not([style*="display: none"]), > .locked-note.show)){ border-top:none; padding:0; }


/* ---------- Page frame: the pages sit in a box with rounded top corners on both sides; its scrollbar stays inside it, under the top bar ---------- */
.main{ height:100vh; overflow:hidden; display:flex; flex-direction:column; background: var(--panel); box-shadow:none; }
.main > .topbar{ position:relative; flex-shrink:0; }
.main > .topbar::before, .main > .topbar::after{ display:none; }
.page-frame{ flex:1; min-height:0; display:flex; margin-right:10px; padding:10px 3px 0 0;
  background: var(--bg); border:1px solid var(--frame-edge); border-bottom:none; border-radius:18px 18px 0 0;
  box-shadow: 0 0 8px 1px var(--frame-glow), inset 0 12px 22px -18px var(--frame-shade), inset 16px 0 22px -20px var(--frame-shade); }
.page-scroll{ flex:1; min-width:0; overflow-y:auto; }
.page-scroll > .aware-bar.show{ margin: 4px 32px 0; }


/* top-right tray: "?", Be aware and status sit pressed into the top bar (debossed) */
.topbar-tray{ display:flex; align-items:center; gap:8px; padding:5px 6px; border-radius:14px;
  background: rgba(0,0,0,0.22); border:1px solid rgba(0,0,0,0.45);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.55), inset 0 -1px 0 rgba(255,255,255,0.05), 0 1px 0 rgba(255,255,255,0.05); }
/* passe-partout: a mat band around the tray, with a light bevel where the mat is cut, then the pressed-in tray */
.topbar-tray{ margin:8px; border-color: rgba(0,0,0,0.55);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.55), inset 0 -1px 0 rgba(255,255,255,0.05),
    0 0 0 1px rgba(255,255,255,0.10),
    0 0 0 7px #1E2630,
    0 0 0 8px rgba(255,255,255,0.07),
    0 2px 10px 8px rgba(0,0,0,0.30); }

/* ---------- Menu box and page box line up: same top (just under the top bar) and same bottom; page box closed with rounded corners at the bottom too ---------- */
:root{ --topbar-h: 76px; --frame-gap: 12px; }
.main > .topbar{ height: var(--topbar-h); box-sizing:border-box; padding-top:0; padding-bottom:0; }
.sidebar{ padding: 0 14px var(--frame-gap); }
.sidebar .brand{ height: var(--topbar-h); box-sizing:border-box; padding: 0 8px; flex-shrink:0; }
.sidebar .nav{ margin-top:0; flex:1 1 auto; min-height:0; }
.sidebar-foot{ margin-top: 10px; }
.page-frame{ margin: 0 10px var(--frame-gap) 0; border-bottom: 1px solid var(--frame-edge); border-radius: 18px; padding-bottom: 10px; }
.sidebar-foot:not(:has(> .status-pill:not([style*="display:none"]):not([style*="display: none"]), > .locked-note.show)){ display:none; }

/* Emotion gauge line: clock along the bottom (dots sit at the time each trade closed) */
.emo-times{ position:relative; height:16px; margin-top:4px; }
.emo-times span{ position:absolute; transform:translateX(-50%); font-family: var(--font-mono); font-size:10.5px; color: var(--text-faint); white-space:nowrap; }
.emo-times span:first-child{ transform:none; }
.emo-times span:last-child{ transform:translateX(-100%); }
.emo-linebox .emo-pts{ inset:0 0 20px 0; }

/* ---------- Mouse-over help (shared/tooltips.js): same box as the "?" page explanation ---------- */
.tip-box{ position:fixed; z-index:10000; display:none; max-width:min(420px, calc(100vw - 20px)); pointer-events:none;
  background: var(--panel-raised); border:1px solid var(--brass); border-radius:12px; padding:10px 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.45); font-family: var(--font-body); font-size:13px; line-height:1.5; color: var(--text); text-align:left; }
.tip-box.on{ display:block; }
.tip-box .tip-head{ font-weight:700; color: var(--text); margin-bottom:2px; }
.tip-box .tip-body{ color: var(--text-dim); font-size:12.5px; white-space:pre-line; }
/* mouse-over body text brighter (was too faint) — also in the "?" page explanation */
.tip-box .tip-body, .gs-helptip .hint{ color: #D3D9E0; }

/* ---------- Traders Patrol logo in the side menu (smiling candles, logo 3) ---------- */
.sidebar .brand.brand-patrol{ justify-content:center; gap:8px; padding:0 4px; }
.brand-patrol .brand-candles{ height:54px; width:auto; flex-shrink:0; }
.brand-patrol .brand-words{ display:flex; flex-direction:column; align-items:center; line-height:1; }
.brand-patrol .brand-pre{ font-family: var(--font-mono); font-size:8.5px; font-weight:600; letter-spacing:.38em; padding-left:.38em; color: var(--brass-light); margin-bottom:2px; }
.brand-patrol .brand-name{ font-family: var(--font-display); font-size:25px; font-weight:700; letter-spacing:-.02em; color: var(--text); }
.brand-patrol .brand-payoff{ font-size:8.5px; letter-spacing:.02em; text-transform:none; color: var(--text-dim); margin-top:4px; white-space:nowrap; font-style:normal; }
/* calmer logo (version 1): TRADERS in white, payoff in soft grey — only the candles carry colour */
.brand-patrol .brand-pre{ color: var(--text); }
.brand-patrol .brand-payoff{ color: var(--text-dim); }

/* ---------- Logo: horizontal smiling formation (17 Oct 2026) + black frame (side menu and top bar) ---------- */
.sidebar .brand.brand-horiz{ height: var(--topbar-h); box-sizing:border-box; display:flex; flex-direction:row; align-items:center; justify-content:center; gap:10px; padding:0 4px; flex-shrink:0; }
.brand-horiz .brand-formation{ width:58px; height:auto; flex-shrink:0; }
.brand-horiz .brand-words{ display:flex; flex-direction:column; }
.brand-horiz .brand-name{ font-family: var(--font-display); font-size:20px; font-weight:700; letter-spacing:-.02em; color:#fff; white-space:nowrap; line-height:1; }
.brand-horiz .brand-name span{ font-weight:500; }
.brand-horiz .brand-payoff{ font-size:9.5px; font-style:normal; letter-spacing:.01em; text-transform:none; color: var(--text-dim); margin-top:5px; white-space:nowrap; }
.sidebar, .main, .main > .topbar{ background:#000; }
.sidebar .nav{ background:#05070A; }
.topbar-tray{ background: rgba(255,255,255,0.03);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.6), inset 0 -1px 0 rgba(255,255,255,0.05), 0 0 0 1px rgba(255,255,255,0.10), 0 0 0 7px #111418, 0 0 0 8px rgba(255,255,255,0.07), 0 2px 10px 8px rgba(0,0,0,0.30); }

/* ---------- Trade Log day calendar (scrolls sideways) ---------- */
.cal-card{ margin-bottom:16px; padding:14px 16px 10px; }
.cal-head{ display:flex; align-items:center; gap:10px; margin-bottom:10px; flex-wrap:wrap; }
.cal-month{ font-family: var(--font-display); font-size:17px; font-weight:600; }
.cal-mtot{ font-size:12px; color: var(--text-dim); font-family: var(--font-mono); }
.cal-strip{ display:flex; gap:8px; overflow-x:auto; overflow-y:hidden; padding:2px 2px 10px; scroll-snap-type:x proximity; }
.cal-day, .cal-week{ flex:0 0 124px; scroll-snap-align:start; box-sizing:border-box; text-align:left; border-radius:10px; padding:9px 11px; font-family: var(--font-body); }
.cal-day{ background: var(--panel-alt); border:1px solid var(--border-soft); color: var(--text); cursor:pointer; transition: border-color .15s, transform .15s; }
.cal-day:hover{ border-color: rgba(125,190,255,.45); }
.cal-day.win{ background: linear-gradient(rgba(63,182,139,var(--a)), rgba(63,182,139,var(--a))), var(--panel-alt); }
.cal-day.loss{ background: linear-gradient(rgba(229,99,106,var(--a)), rgba(229,99,106,var(--a))), var(--panel-alt); }
.cal-day.none{ opacity:.55; }
.cal-day.future{ opacity:.3; cursor:default; }
.cal-day.today{ border-color: #7DBEFF; box-shadow: 0 0 10px rgba(125,190,255,.25); }
.cal-day.on{ border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
.cal-top{ display:flex; align-items:baseline; gap:6px; }
.cal-num{ font-family: var(--font-display); font-size:16px; font-weight:600; }
.cal-dn{ font-size:11.5px; color: var(--text-dim); }
.cal-mark{ margin-left:auto; width:8px; height:8px; border-radius:50%; align-self:center; }
.cal-mark.green{ background: var(--green); } .cal-mark.amber{ background: var(--amber); } .cal-mark.red{ background: var(--red-strong); box-shadow:0 0 6px rgba(255,71,80,.6); }
.cal-res{ font-family: var(--font-mono); font-size:14px; font-weight:600; margin-top:12px; }
.cal-day.win .cal-res, .cal-week.win .cal-res{ color: var(--green); }
.cal-day.loss .cal-res, .cal-week.loss .cal-res{ color: var(--red); }
.cal-n{ font-size:11.5px; color: var(--text-dim); margin-top:2px; min-height:15px; }
.cal-week{ flex-basis:116px; border:1px dashed var(--border); background:transparent; margin-right:6px; }
.cal-wk{ font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--text-faint); font-weight:600; }
.dash-sec-cal .dash-sec-dot{background:#7DBEFF;} .dash-sec-cal .dash-sec-title{color:#B5DAFF;} .dash-sec-cal .dash-sec-sub{color:#B5DAFF;}

/* ---------- REVIEW pages: tab bar above the page (Discipline / Trades / Performance) ---------- */
.review-tabs-wrap{ padding: 22px 32px 0; }
.review-tabs{ display:inline-flex; gap:4px; background: var(--bg); border:1px solid var(--border); border-radius:10px; padding:4px; }
.review-tab{ border:none; background:transparent; color: var(--text-dim); font-size:13px; font-weight:600; padding:7px 16px; border-radius:7px; }
.review-tab:hover{ color: var(--text); background: var(--panel-alt); }
.review-tab.on{ background: var(--brass-dim); color: var(--brass-light); }
body.has-review-tabs .view.active{ padding-top:16px; }
.nav-item .nav-badge + .nav-badge{ margin-left:4px; }

/* Backup & restore dialog */
.bk-box{ width:min(560px, calc(100vw - 40px)); }
.bk-list-ul{ margin:10px 0 12px 18px; padding:0; line-height:1.6; }

/* candle mouse-over readout on the chart */
.candle-tip{ top:8px; z-index:6; min-width:190px; font-family:var(--font-mono); font-size:11.5px; }
.candle-tip b{ font-weight:600; color:var(--text); }
.candle-tip div{ margin-top:3px; }

/* chart pointer switch */
.seg.seg-sm{ padding:2px; }
.seg.seg-sm button{ padding:3px 9px; font-size:11.5px; }

/* chart only: the chart alone, full screen */
#chartWrap.chart-only:fullscreen{ padding:6px; }
#chartWrap.chart-only > .chart-bar, #chartWrap.chart-only .chart-legend, #chartWrap.chart-only .fib-hint:empty{ display:none !important; }
#chartWrap.chart-only .chart-card{ padding:4px; margin:0; position:relative; }
.chart-card{ position:relative; }
.only-btn{ position:absolute; top:10px; right:10px; z-index:8; width:30px; height:30px; padding:0; display:flex; align-items:center; justify-content:center; border-radius:7px; border:1px solid var(--border); background:rgba(0,0,0,.6); color:var(--text-dim); cursor:pointer; opacity:.7; transition:opacity .15s, color .15s, border-color .15s; }
.only-btn svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.only-btn{ right:84px; top:12px; opacity:1; color:#7FE0A8; border-color:rgba(63,182,139,.75); box-shadow:0 0 8px rgba(63,182,139,.55), 0 0 18px rgba(63,182,139,.25); }
.only-btn:hover{ color:#B4F2CE; border-color:#3FB68B; box-shadow:0 0 10px rgba(63,182,139,.85), 0 0 24px rgba(63,182,139,.4); }
.only-btn.only-on{ color:#FF9DA2; border-color:rgba(229,99,106,.8); box-shadow:0 0 8px rgba(229,99,106,.6), 0 0 18px rgba(229,99,106,.28); }
.only-btn.only-on:hover{ color:#FFC6C9; border-color:#E5636A; box-shadow:0 0 10px rgba(229,99,106,.9), 0 0 24px rgba(229,99,106,.45); }

/* My account: close account — visible but quiet (a thin line, muted text, the red only on hover) */
.danger-zone{ margin-top:34px; padding-top:16px; border-top:1px solid var(--border-soft); display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.danger-zone .dz-title{ font-size:13px; font-weight:600; color:var(--text-dim); margin-bottom:2px; }
.danger-zone .hint{ max-width:640px; font-size:12px; }
.dz-btn{ background:transparent; color:#D98A8F; border:1px solid rgba(229,99,106,.35); }
.dz-btn:hover{ color:#fff; background:rgba(229,99,106,.18); border-color:var(--red); }
.emo-pick{gap:10px;}
.emo-pick input[type=date]{ background: var(--bg); color: var(--text); border:1px solid var(--border); border-radius:7px; padding:6px 8px; font-family: var(--font-mono); font-size:12.5px; color-scheme: dark; }
/* all dashboard section headings in the same gold as "Selected period" (brass dot, brass-light title) */
.dash-sec .dash-sec-dot{background:var(--brass);box-shadow:none;}
.dash-sec .dash-sec-title{color:var(--brass-light);}
.dash-sec-all .dash-sec-sub, .dash-sec-cal .dash-sec-sub{color:var(--brass-light);}

/* ONE heading colour in the whole app (Traders Patrol + Tradeguard): the gold of the dashboard's "Selected period".
   Warnings keep their own colour on purpose: .alert-title (alarm pop-up), .sure-title (red "are you sure"), .dz-title (close account). */
.page-title, .topbar .page-title, .section-title, .period-title, .gauge-title, .edu-title, .ms-title, .ex-head,
.pulse-counts-title, .rv-title, .dash-sec-title, .drawer h3, main h1, main h2, main h3, .modal h2, .modal h3,
h1, h2, h3 { color: var(--brass-light); }

/* Trade Log fits the frame width (no sideways scroll): tighter cells; time, instrument, setup and execution wrap instead of widening the table */
table.trade-table.tl-fit{ font-size:12px; }
table.trade-table.tl-fit th{ padding:9px 6px; letter-spacing:.03em; white-space:nowrap; }
table.trade-table.tl-fit td{ padding:8px 6px; }
table.trade-table.tl-fit td:first-child{ white-space:normal; min-width:62px; }
table.trade-table.tl-fit td:nth-child(2){ white-space:normal; min-width:84px; }
table.trade-table.tl-fit td:nth-child(2) .legs-chip, table.trade-table.tl-fit td:nth-child(2) .acct-chip{ display:inline-block; margin:2px 4px 0 0; }
table.trade-table.tl-fit td:nth-child(9), table.trade-table.tl-fit td:nth-child(10){ white-space:normal; min-width:70px; }
table.trade-table.tl-fit td:nth-child(9) .tag-chip{ display:inline-block; line-height:1.35; }
table.trade-table.tl-fit .row-erase{ min-width:0; padding:2px 6px; }
table.trade-table.tl-fit tr.day-sep td{ white-space:nowrap; }

/* Rule Breaches: what the loss would have been with the limit kept — highlighted */
.kept-line{ margin-top:8px; padding:6px 9px; border-radius:7px; background: var(--brass-dim); border:1px solid rgba(224,188,74,.35); color: var(--brass-light); font-family: var(--font-body, inherit); font-weight:600; font-size:12px; line-height:1.4; }

/* chart: LOG scale toggle, on the chart beside the expand button */
.log-btn{ position:absolute; top:12px; right:120px; z-index:8; height:30px; padding:0 9px; border-radius:7px; border:1px solid var(--border); background:rgba(0,0,0,.6); color:var(--text-dim); font-family: var(--font-mono); font-size:11px; font-weight:600; letter-spacing:.06em; cursor:pointer; }
.log-btn:hover{ color: var(--text); border-color: var(--brass); }
.log-btn.on{ color: var(--brass-light); border-color: var(--brass); background: var(--brass-dim); box-shadow:0 0 8px rgba(224,188,74,.35); }

/* automatic profiles (made by Traders Patrol, not yet checked) */
.profile-table tr.auto-prof td{ background: var(--brass-dim); }
.profile-table tr.auto-prof td:first-child{ box-shadow: inset 3px 0 0 var(--brass); }
.auto-chip{ display:inline-block; padding:2px 8px; border-radius:10px; font-size:10.5px; font-weight:600; color: var(--brass-light); border:1px solid rgba(224,188,74,.5); background: rgba(224,188,74,.12); white-space:nowrap; }
.auto-ok{ border-color: rgba(224,188,74,.5); }
.auto-banner .auto-list{ line-height:1.7; }

/* Trading & broker setup: a Save button at the bottom right of every section */
.card-save{ display:flex; justify-content:flex-end; margin-top:12px; }
/* save bar on Trading & broker setup (29 Oct 2026): sticks to the bottom of the window once something is changed */
.save-bar{ display:none; position:sticky; bottom:0; z-index:30; margin-top:16px; padding:12px 18px; align-items:center; justify-content:flex-end; gap:14px;
  background: var(--panel-raised); border:1px solid var(--brass); border-radius:12px; box-shadow:0 -6px 18px rgba(0,0,0,.35); color: var(--text); }
.save-bar.show{ display:flex; }

/* Market calendar: when each gap price is from */
.gap-when{ font-size:11px; margin-top:2px; white-space:nowrap; }

/* point value check */
.pv-warn{ margin-top:3px; font-size:11px; color: var(--amber); white-space:nowrap; }
.pv-warn a{ color: var(--brass-light); }
.pv-banner .pv-list{ margin:4px 0 6px 18px; padding:0; line-height:1.9; }

/* ---------------------------------------------------------------- Welcome (front page) */
.wl{ max-width:1180px; margin:0 auto; padding:8px 4px 40px; }

.wl-hero{ position:relative; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:40px; align-items:center; padding:48px 48px 44px;
  border:1px solid var(--border); border-radius:22px; background: var(--panel); overflow:hidden; }
.wl-eyebrow{ font-family: var(--font-mono); font-size:12px; letter-spacing:.18em; text-transform:uppercase; color: var(--brass-light); margin-bottom:18px; }
.wl-h1{ font-family: var(--font-display); font-size:52px; line-height:1.05; letter-spacing:-.025em; font-weight:700; color:#fff; margin-bottom:20px; }
.wl-h1 span{ color: var(--brass-light); }
.wl-lead{ font-size:16.5px; line-height:1.6; color: var(--text); opacity:.86; max-width:580px; margin-bottom:14px; }
.wl-journal{ font-size:15px; line-height:1.55; color: var(--text); opacity:.72; max-width:580px; margin-bottom:28px; padding-left:12px; border-left:2px solid var(--brass); }
.wl-journal b{ opacity:1; font-weight:600; letter-spacing:.01em; }
.wl-cta{ display:flex; gap:12px; flex-wrap:wrap; }
.wl-btn{ height:46px; padding:0 26px; font-size:15px; font-weight:600; border-radius:11px; display:inline-flex; align-items:center; gap:9px; }
.wl-btn svg{ width:15px; height:15px; fill:currentColor; }
.wl-btn-ghost{ background:transparent; border:1px solid rgba(125,190,255,.45); color:#B5DAFF; }
.wl-btn-ghost:hover{ border-color:#7DBEFF; background: rgba(125,190,255,.08); }
.wl-note{ margin-top:14px; font-size:12.5px; color: var(--text-dim); }
.wl-trust{ grid-column:1 / -1; list-style:none; margin:4px 0 0; padding:16px 0 0; border-top:1px solid var(--border-soft); display:flex; flex-wrap:wrap; justify-content:center; gap:8px 20px; font-size:12px; color: var(--text-dim); }
.wl-trust li{ display:flex; align-items:center; gap:7px; white-space:nowrap; }
.wl-trust li::before{ content:'✓'; color: var(--green); font-weight:700; }
.wl-hero-art{ display:flex; flex-direction:column; align-items:center; gap:22px; }
.wl-logo-wrap{ width:100%; display:flex; justify-content:center; }
.wl-logo{ width:min(260px, 80%); height:auto; filter: drop-shadow(0 10px 30px rgba(201,162,39,.18)); }
.wl-mock{ width:100%; max-width:360px; background: rgba(0,0,0,.45); border:1px solid var(--border); border-radius:14px; padding:14px 16px; box-shadow:0 18px 40px rgba(0,0,0,.35); }
.wl-mock-label{ font-family: var(--font-mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color: var(--text-faint); margin-bottom:8px; }
.wl-mock-row{ display:flex; justify-content:space-between; font-size:12.5px; color: var(--text-dim); margin-bottom:6px; }
.wl-mock-row b{ color: var(--text); font-family: var(--font-mono); font-weight:500; }
.wl-bar{ height:7px; border-radius:6px; background: var(--panel-raised); overflow:hidden; margin-bottom:12px; }
.wl-bar i{ display:block; height:100%; border-radius:6px; background: linear-gradient(90deg, var(--green), var(--amber)); }
.wl-mock-chips{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.wl-chip{ font-size:11.5px; padding:4px 9px; border-radius:20px; border:1px solid var(--border); white-space:nowrap; }
.wl-chip-warn{ color: var(--amber); border-color: rgba(229,162,63,.4); background: var(--amber-dim); }
.wl-chip-ok{ color: var(--green); border-color: rgba(63,182,139,.4); background: var(--green-dim); }
.wl-over{ color: var(--red) !important; }
.wl-bar-over i{ background: linear-gradient(90deg, var(--amber), var(--red)); }
.wl-story{ list-style:none; margin:4px 0 0; padding:0 0 0 14px; border-left:1px dashed var(--border); display:flex; flex-direction:column; gap:10px; }
.wl-ev{ position:relative; display:flex; gap:10px; align-items:flex-start; font-size:12.5px; line-height:1.45; color: var(--text); }
.wl-ev::before{ content:''; position:absolute; left:-19px; top:5px; width:9px; height:9px; border-radius:50%; background: var(--c); box-shadow:0 0 0 3px var(--bg); }
.wl-ev-red{ --c: var(--red); } .wl-ev-amber{ --c: var(--amber); } .wl-ev-blue{ --c:#7DBEFF; } .wl-ev-green{ --c: var(--green); }
.wl-time{ font-family: var(--font-mono); font-size:11px; color: var(--text-faint); min-width:34px; padding-top:1px; }
.wl-msg{ display:flex; gap:8px; align-items:flex-start; background: rgba(125,190,255,.10); border:1px solid rgba(125,190,255,.30); border-radius:4px 12px 12px 12px; padding:8px 10px; }
.wl-msg svg{ flex:none; width:16px; height:16px; margin-top:1px; fill:none; stroke:#7DBEFF; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.wl-msg-who{ font-size:11px; color:#7DBEFF; margin-bottom:2px; }
.wl-msg-txt{ color:#D6EAFF; display:flex; flex-direction:column; gap:4px; }
.wl-msg-sign{ font-style:italic; color:#B5DAFF; }
.wl-ev-green span:last-child{ color: var(--green); }
.wl-mock-guard{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:#B5DAFF; }
.wl-mock-guard svg{ width:16px; height:16px; fill:none; stroke:#7DBEFF; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.wl-section{ margin-top:44px; }
.wl-h2{ font-family: var(--font-display); font-size:24px; font-weight:600; letter-spacing:-.01em; margin-bottom:18px; color: var(--brass-light); }
.wl-feats{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; }
.wl-feat{ background: var(--panel); border:1px solid var(--border); border-radius:16px; padding:22px 20px; transition: border-color .15s, transform .15s; }
.wl-feat:hover{ border-color: rgba(201,162,39,.45); transform: translateY(-2px); }
.wl-ic{ width:42px; height:42px; border-radius:11px; display:flex; align-items:center; justify-content:center; background: var(--brass-dim); border:1px solid rgba(201,162,39,.35); margin-bottom:14px; }
.wl-ic svg{ width:21px; height:21px; fill:none; stroke: var(--brass-light); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.wl-feat-t{ font-family: var(--font-display); font-size:16px; font-weight:600; color:#fff; margin-bottom:8px; }
.wl-feat-d{ font-size:13.5px; line-height:1.55; color: var(--text-dim); }
.wl-steps{ list-style:none; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; counter-reset:none; }
.wl-step{ display:flex; gap:14px; align-items:flex-start; padding:20px; border-radius:16px; border:1px solid var(--border-soft); background: rgba(255,255,255,.015); }
.wl-num{ flex:none; width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight:700; color:#0F1419; background: var(--brass-light); }
.wl-step-t{ font-family: var(--font-display); font-weight:600; font-size:15.5px; color:#fff; margin-bottom:5px; }
.wl-step-d{ font-size:13.5px; line-height:1.55; color: var(--text-dim); }
.wl-privacy{ margin-top:36px; display:flex; gap:14px; align-items:center; padding:16px 20px; border-radius:14px; border:1px solid rgba(63,182,139,.3); background: var(--green-dim); font-size:14px; color: var(--text); }
.wl-privacy svg{ flex:none; width:22px; height:22px; fill:none; stroke: var(--green); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.wl-final{ margin-top:36px; display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; padding:28px 32px; border-radius:18px; border:1px solid rgba(201,162,39,.35);
  background: var(--panel); }
.wl-final-t{ font-family: var(--font-display); font-size:22px; font-weight:600; color:#fff; }
.wl-final-d{ font-size:14px; color: var(--brass-light); margin-top:4px; }
@media (max-width: 1100px){ .wl-feats{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px){ .wl-hero{ grid-template-columns:1fr; padding:32px 26px; } .wl-h1{ font-size:40px; } .wl-steps{ grid-template-columns:1fr; } }

/* Welcome (front page): no Be aware line and no status / Be aware pills — just the landing page */
body.on-welcome #awareBar, body.on-welcome .topbar-tray{ display:none !important; }

/* Be aware as event cards + Caution/Stop status card (design C, 20 Oct 2026) */
.aw-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.aw-eye{ color: var(--brass-light); display:inline-flex; }
.aw-title{ font-family: var(--font-display); font-weight:600; font-size:16px; color: var(--text); }
.aw-subtitle{ color: var(--text-dim); font-size:13px; flex:1; }
.aw-cal{ display:inline-flex; align-items:center; gap:8px; color: var(--text); text-decoration:none; font-size:13px; font-weight:500; padding:3px 10px 3px 3px; border-radius:9px; }
.aw-cal:hover{ background: var(--panel-alt); }
.aw-cal-ic{ width:28px; height:28px; border-radius:8px; background: rgba(108,182,255,.12); color:#6CB6FF; display:inline-flex; align-items:center; justify-content:center; }
.aw-hide-btn{ display:inline-flex; align-items:center; gap:7px; height:32px; padding:0 14px; border-radius:9px; border:1px solid var(--border); background: var(--panel-raised); color: var(--text); font: 600 12.5px var(--font-body); cursor:pointer; }
.aw-hide-btn:hover{ border-color: var(--brass); color: var(--brass-light); background: var(--brass-dim); }
.aware-bar .aw-card{ background: var(--panel); }
.aw-cards{ display:grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap:12px; }
.aw-card{ background: var(--panel); border:1px solid var(--border); border-radius:14px; padding:12px 14px 14px; display:flex; flex-direction:column; gap:5px; cursor:help; min-width:0; }
.aw-card.urgent{ border-color: rgba(229,162,63,.45); }
.aw-card-top{ display:flex; align-items:center; gap:8px; }
.aw-badge{ font-size:10.5px; font-weight:700; letter-spacing:.08em; color: var(--text-dim); background: var(--panel-raised); border-radius:5px; padding:2px 6px; text-transform:uppercase; }
.aw-card.urgent .aw-badge{ color:#1B1306; background: var(--amber); }
.aw-time{ display:inline-flex; align-items:center; gap:4px; font-family: var(--font-mono); font-size:12px; color: var(--text-dim); }
.aw-card.urgent .aw-time{ color: var(--amber); }
.aw-card .aw-x{ margin-left:auto; width:26px; height:26px; display:inline-flex; align-items:center; justify-content:center; border-radius:6px; padding:0; color: var(--text-faint); }
.aw-card .aw-x:hover{ background: var(--panel-alt); color: var(--text); }
.aw-head{ font-family: var(--font-display); font-size:22px; font-weight:700; line-height:1.15; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.aw-card.aw-long .aw-head{ font-size:17px; }
.aw-sub{ font-size:12.5px; color: var(--text-dim); line-height:1.4; }
.aw-foot{ display:flex; align-items:center; gap:6px; font-size:12px; color: var(--text-dim); margin-top:3px; }
.aw-dot{ width:6px; height:6px; border-radius:50%; background: var(--text-faint); flex-shrink:0; }
.aw-card.urgent .aw-dot{ background: var(--amber); }
.st-card{ display:flex; align-items:center; gap:18px; background: var(--panel); border:1px solid var(--border); border-radius:14px; padding:14px 18px; margin-bottom:18px; }
.st-card.st-stop, .st-card.st-dayoff{ border-color: rgba(229,99,106,.45); }
.st-count{ width:76px; height:64px; border-radius:12px; background: var(--amber-dim); display:flex; flex-direction:column; align-items:center; justify-content:center; flex-shrink:0; }
.st-num{ font-family: var(--font-display); font-size:24px; font-weight:700; color:#F0B860; line-height:1; }
.st-of{ font-size:15px; color:#B88536; }
.st-unit{ font-size:10.5px; color:#C99A50; margin-top:4px; }
.st-ic{ width:44px; height:44px; border-radius:12px; background: var(--amber-dim); color:#F0B860; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.st-stop .st-ic, .st-dayoff .st-ic{ background: var(--red-dim); color:#FF7A80; }
.st-body{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.st-title{ display:flex; align-items:center; gap:8px; font-family: var(--font-display); font-weight:600; font-size:14px; color:#F0B860; }
.st-stop .st-title, .st-dayoff .st-title{ color:#FF7A80; }
.st-reason{ font-size:14px; color: var(--text); }
.st-hint{ font-size:12px; color: var(--text-dim); }
.st-ack{ flex-shrink:0; background:none; border:1px solid rgba(229,162,63,.5); color:#F0B860; font-weight:600; }
.st-ack:hover{ background: var(--amber-dim); }
.st-stop .st-ack, .st-dayoff .st-ack{ border-color: rgba(229,99,106,.5); color:#FF7A80; }
.st-stop .st-ack:hover, .st-dayoff .st-ack:hover{ background: var(--red-dim); }
/* icon tiles and the acknowledge button: dark, slightly pressed-in like the "?" button — no yellow shading (20 Oct 2026) */
.aw-eye, .aw-cal-ic, .st-ic, .st-count{ background: var(--panel-raised); border:1px solid var(--border); box-shadow: inset 0 2px 4px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.04); }
.aw-eye{ width:32px; height:32px; border-radius:50%; align-items:center; justify-content:center; }
.aw-cal-ic{ border-radius:50%; }
.st-ic{ border-radius:50%; }
.st-stop .st-ic, .st-dayoff .st-ic{ background: var(--panel-raised); }
.st-count{ border-radius:14px; }
.st-ack, .st-stop .st-ack, .st-dayoff .st-ack{ background: var(--panel-raised); border:1px solid var(--border); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.04); }
.st-ack:hover, .st-stop .st-ack:hover, .st-dayoff .st-ack:hover{ background: var(--panel-raised); border-color: var(--brass); color: var(--brass-light); }
.aw-hide-btn:hover{ background: var(--panel-raised); }
/* top-right tray: Be aware and status pills dark like the "?" button — the colour stays in the text only (20 Oct 2026) */
.topbar-tray .discipline-pill, .topbar-tray .discipline-pill.green, .topbar-tray .discipline-pill.amber, .topbar-tray .discipline-pill.red,
.topbar-tray .aware-pill, .topbar-tray .aware-pill.has-items{ background: var(--panel-raised); border:1px solid var(--border); box-shadow: 0 1px 0 rgba(255,255,255,.04); }
.topbar-tray .aware-pill:hover, .topbar-tray .discipline-pill:hover{ border-color: var(--brass); }
.topbar-tray .aware-pill.is-open{ border-color: var(--brass); color: var(--brass-light); }
.topbar-tray .discipline-pill{ cursor:pointer; }
.topbar-tray .discipline-pill:focus-visible, .topbar-tray .aware-pill:focus-visible{ outline:2px solid var(--brass); outline-offset:2px; }
/* any broker: a new file layout waits, and the column check (20 Oct 2026) */
.fmt-banner{ display:flex; align-items:center; gap:14px; background: var(--panel); border:1px solid var(--border); border-radius:14px; padding:12px 16px; margin-bottom:14px; }
.fmt-ic{ width:40px; height:40px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#6CB6FF; background: var(--panel-raised); border:1px solid var(--border); box-shadow: inset 0 2px 4px rgba(0,0,0,.45); }
.sure-box.fmt-box{ max-width: min(1100px, 94vw); width: 94vw; max-height: 90vh; overflow:auto; }
.fmt-sample{ max-height:220px; border:1px solid var(--border-soft); border-radius:8px; }
.fmt-sample td, .fmt-sample th{ white-space:nowrap; font-size:12px; }
.fmt-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap:8px 12px; margin-top:6px; }
.fmt-grid select{ width:100%; }
.fmt-prev{ border:1px solid var(--border); border-radius:10px; padding:10px 12px; background: var(--panel-alt); font-size:13px; }
.fmt-prev .trade-table td, .fmt-prev .trade-table th{ font-size:12px; }
.fmt-box .sure-title{ color: var(--brass-light); }
/* phone with country code + billing address (20 Oct 2026) */
.phone-row{ display:flex; gap:6px; }
.phone-row select{ width:150px; flex-shrink:0; }
.phone-row input{ flex:1; min-width:0; }
.billing-title{ margin-top:16px; }
.billing-grid .span2{ grid-column: span 2; }
.phone-row select{ width:118px; } .phone-row input{ min-width:110px; }
/* start account choice when adding an account (20 Oct 2026) */
.start-choice-new{ grid-column: 1 / -1; }
.start-choice-new .check{ display:flex; align-items:center; gap:8px; margin:4px 0; }
.rec-chip{ font-size:10.5px; font-weight:700; letter-spacing:.04em; color: var(--green); border:1px solid rgba(63,182,139,.4); border-radius:999px; padding:1px 8px; margin-left:6px; }
.tip-i{ color: var(--text-faint); cursor:help; margin-left:4px; }
.start-mismatch{ margin-top:6px; }
.start-mismatch summary{ cursor:pointer; color: var(--brass-light); font-size:12.5px; }
.start-mismatch .hint{ margin-top:6px; }

/* Be aware (21 Oct 2026): eye icon on the top-right pill, red × next to Market calendar closes the box */
.aware-pill .aw-pill-eye{ display:inline-flex; vertical-align:-2px; margin-right:6px; }
.aw-close{ width:28px; height:28px; border-radius:50%; border:1px solid rgba(229,72,77,.45); background: rgba(229,72,77,.12); color: var(--red,#e5484d);
  display:inline-flex; align-items:center; justify-content:center; padding:0; cursor:pointer; }
.aw-close:hover{ background: var(--red,#e5484d); color:#fff; }
.aw-close:focus-visible{ outline:2px solid var(--red,#e5484d); outline-offset:2px; }

/* Trading & broker setup (21 Oct 2026): the profile table fits the page — no sideways scroll.
   Headers wrap, fields are narrower, "+ Pre-Market" and the row buttons share one column and wrap. */
.profile-table th{ white-space:normal; line-height:1.25; padding:6px 3px; vertical-align:bottom; }
.profile-table td{ padding:4px 3px; }
.profile-table input, .profile-table select{ padding:5px 4px; }
.profile-table td:first-child input{ min-width:96px; }
.profile-table td:nth-child(2) input{ min-width:64px; }
.profile-table select[data-k="session"], .profile-table td:nth-child(3) select{ min-width:108px; }
.profile-table td:nth-child(3) input, .profile-table td:nth-child(4) input{ min-width:48px; }   /* Start / End (no Session column since 21 Oct 2026) */
.profile-table td:nth-child(n+5) input{ min-width:36px; }
.profile-table .calc-val{ padding:0 2px; }
/* 21 Oct 2026 (2): the row buttons stay on one line; the Index name wraps onto two lines instead */
.profile-table td.pf-actions > div{ display:flex; flex-wrap:nowrap; gap:4px; justify-content:flex-end; align-items:center; }
.profile-table td:nth-child(2){ min-width:96px; max-width:118px; }
.profile-table td:nth-child(2) .calc-val{ white-space:normal; display:block; line-height:1.3; padding:0; }
.profile-table td.pf-actions .btn{ white-space:nowrap; padding:4px 7px; }
.profile-table td.pf-actions .auto-chip{ display:none; }   /* the brass row already marks an automatic profile; "Looks right" says the rest */

/* Welcome example (21 Oct 2026): design C — the number first, three calm steps, Jim's message as a chat bubble */
.wl-mock-c{ background: rgba(0,0,0,.35); padding:18px; box-shadow:0 18px 40px rgba(0,0,0,.30); }
.wl-mock-c .wl-mock-label{ margin-bottom:0; }
.wl-stat{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin:12px 0 6px; }
.wl-big{ font-family: var(--font-display); font-size:30px; font-weight:600; color: var(--text); font-variant-numeric: tabular-nums; }
.wl-of{ font-size:13px; color: var(--text-faint); }
.wl-line{ height:4px; border-radius:4px; background: var(--panel-raised); margin-bottom:16px; overflow:hidden; }
.wl-line i{ display:block; height:100%; width:100%; background: var(--red); }
.wl-beats{ list-style:none; margin:0; padding:0; }
.wl-beat{ display:flex; gap:12px; padding:12px 0; border-top:1px solid var(--border-soft); font-size:13px; line-height:1.5; color: var(--text); }
.wl-beat:first-child{ border-top:0; padding-top:0; }
.wl-beat:last-child{ padding-bottom:0; }
.wl-n{ flex:none; width:22px; height:22px; border-radius:50%; border:1px solid var(--border); color: var(--text-dim); display:grid; place-items:center; font-size:11px; font-family: var(--font-mono); }
.wl-beat-on .wl-n{ border-color: var(--brass); color: var(--brass-light); }
.wl-sub{ font-size:12px; color: var(--text-dim); margin-top:2px; }
.wl-grow{ flex:1; min-width:0; }
.wl-bubble{ margin-top:8px; background: var(--panel-raised); border:1px solid var(--border); border-radius:4px 14px 14px 14px; padding:10px 12px; font-size:12.5px; line-height:1.5; color: var(--text); }
.wl-bubble-who{ display:flex; align-items:center; gap:8px; font-size:11.5px; color: var(--brass-light); margin-bottom:5px; }
.wl-av{ width:20px; height:20px; border-radius:50%; background: var(--brass-dim); color: var(--brass-light); display:grid; place-items:center; font-size:10.5px; font-weight:600; }
.wl-av-me{ }   /* same colours as Jim (27 Oct 2026) */

/* Welcome example (21 Oct 2026, 2): warning headline, the loss ladder small with the red line, and the trader's reply */
.wl-warn{ font-family: var(--font-display); font-size:19px; font-weight:600; color: var(--text); margin:12px 0 8px; }
.wl-ladder{ display:flex; justify-content:space-between; gap:10px; font-size:11.5px; color: var(--text-dim); margin-bottom:6px; }
.wl-ladder-n{ font-family: var(--font-mono); color: var(--red); }
.wl-bubble-me{ margin-left:34px; border-radius:14px 4px 14px 14px; background: var(--brass-dim); border-color: rgba(201,162,39,.35); }
.wl-bubble-me .wl-bubble-who{ justify-content:flex-end; color: var(--brass-light); }

/* Patrol network page fits the page frame exactly, so only the network panels scroll — no second scroll (and scroll-hint arrow)
   for the page around them (21 Oct 2026). Narrow windows keep the normal page scroll. */
@media (min-width: 1101px){
  .page-scroll:has(> .view.tgnet-view.active > .net-wrap){ display:flex; flex-direction:column; overflow:hidden; }
  .page-scroll > .view.tgnet-view.active:has(> .net-wrap){ flex:1; min-height:0; display:flex; flex-direction:column; }
  .view.tgnet-view.active > .net-wrap{ flex:1; min-height:0; height:auto; }
  .view.tgnet-view.active > .net-wrap:not(.split){ display:flex; flex-direction:column; }
  .view.tgnet-view.active > .net-wrap:not(.split) > .net-main{ flex:1; min-height:0; display:flex; flex-direction:column; }
  .view.tgnet-view.active > .net-wrap:not(.split) .tg-frame{ flex:1; height:auto; min-height:0; }
}

/* big screens: the front page grows with the window instead of sitting in a narrow column (21 Oct 2026) */
@media (min-width: 1500px){
  .wl{ max-width:min(1500px, 94%); }
  .wl-hero{ padding:60px 64px 52px; gap:56px; }
  .wl-h1{ font-size:62px; }
  .wl-lead{ font-size:18px; max-width:680px; }
  .wl-journal{ font-size:16px; max-width:680px; }
  .wl-mock{ max-width:420px; }
  .wl-logo{ width:min(300px, 80%); }
}

/* Trade Log: Setup and Execution can be changed — brass tint, dashed underline and a pencil (21 Oct 2026) */
.trade-table th.th-edit{ color: var(--brass-light); }
.trade-table td.tl-edit{ position:relative; cursor:pointer; padding-left:12px; padding-right:24px; }
/* a box around every Setup / Execution cell, always visible — stronger on mouse-over (21 Oct 2026) */
.trade-table td.tl-edit::after{ content:''; position:absolute; inset:4px 3px; border:1px solid rgba(201,162,39,.45); border-radius:6px; background: rgba(201,162,39,.06); pointer-events:none; }
.trade-table tr:hover td.tl-edit::after{ background: rgba(201,162,39,.12); }
.trade-table td.tl-edit:hover::after{ border-color: var(--brass-light); background: rgba(201,162,39,.18); }
.tl-pen{ position:absolute; right:6px; top:50%; transform:translateY(-50%); font-size:11px; color: var(--brass-light); opacity:.8; right:9px; }
.trade-table td.tl-edit:hover .tl-pen{ opacity:1; }
.tl-edit-empty{ font-size:11.5px; color: var(--brass-light); opacity:.75; }
select.j-flash{ box-shadow: 0 0 0 2px var(--brass-light); transition: box-shadow .3s; }

/* My statistics → Claude settings: the agree box is plain to see (unticked until the trader ticks it) (21 Oct 2026) */
.ms-consent{ font-weight:600; }
.ms-consent input{ width:18px; height:18px; margin-top:0; accent-color: var(--brass); cursor:pointer; }
.ms-agreed{ margin-top:8px; font-size:13px; color: var(--green); }


/* Take a tour — slide show of an example account (21 Oct 2026, tourshow.js) */
.tps{ position:fixed; inset:0; z-index:10000; background: rgba(8,11,15,.94); backdrop-filter: blur(6px); display:flex; flex-direction:column; padding: 14px 22px 16px; color: var(--text); }
.tps-top{ display:flex; align-items:center; gap:10px; min-height:34px; }
.tps-spacer{ flex:1; }
.tps-badge{ font-family: var(--font-mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color: var(--brass-light); border:1px solid rgba(201,162,39,.35); background: var(--brass-dim); padding:4px 10px; border-radius:20px; }
.tps-x{ background:none; border:1px solid var(--border); color: var(--text-dim); width:34px; height:34px; border-radius:8px; font-size:20px; line-height:1; cursor:pointer; }
.tps-x:hover{ color: var(--text); border-color: var(--brass); }
.tps-main{ flex:1; min-height:0; display:grid; grid-template-columns: minmax(0,1fr) 300px; gap:24px; align-items:stretch; margin-top:12px; }
.tps-main-wide{ grid-template-columns: minmax(0,1fr) 420px; align-items:center; }
.tps-stage{ min-width:0; min-height:0; display:flex; align-items:center; justify-content:center; }
.tps-frame{ width:100%; height:100%; display:flex; flex-direction:column; background: var(--bg); border:1px solid var(--border); border-radius:12px; overflow:hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.tps-bar{ display:flex; align-items:center; gap:6px; padding:8px 12px; background: var(--panel); border-bottom:1px solid var(--border); }
.tps-bar i{ width:9px; height:9px; border-radius:50%; background: var(--panel-raised); }
.tps-bar span{ margin-left:8px; font-family: var(--font-mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase; color: var(--text-faint); }
.tps-scroll{ flex:1; min-height:0; overflow:auto; }
.tps-page{ pointer-events:none; user-select:none; }
.tps-hero{ display:flex; align-items:center; justify-content:center; }
.tps-brand{ display:flex; flex-direction:column; align-items:center; gap:14px; text-align:center; }
.tps-brand .tps-logo{ width:clamp(130px, 28vh, 240px); height:auto; filter: drop-shadow(0 12px 32px rgba(201,162,39,.22)); }
.tps-word{ font-family: var(--font-display); font-size:clamp(24px, 4vh, 36px); letter-spacing:.08em; color: var(--text); }
.tps-word b{ color: var(--brass-light); font-weight:700; }
.tps-pay{ font-family: var(--font-mono); font-size:12px; letter-spacing:.16em; text-transform:uppercase; color: var(--text-dim); }
.tps-mockwrap{ display:flex; justify-content:center; width:100%; }
.tps-mockwrap .wl-mock{ max-width:440px; transform: scale(1.15); transform-origin:center; }
.tps-text{ display:flex; flex-direction:column; justify-content:center; padding-bottom:20px; }
.tps-count{ font-family: var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color: var(--text-faint); margin-bottom:10px; }
.tps-h{ font-family: var(--font-display); font-size:30px; line-height:1.15; margin:0 0 14px; color: var(--text); }
.tps-d{ font-size:15px; line-height:1.6; color: var(--text-dim); margin:0 0 14px; }
.tps-hint{ font-size:12.5px; color: var(--text-faint); margin:0 0 6px; }
.tps-nav{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }
.tps-skip{ align-self:flex-start; margin-top:14px; background:none; border:none; padding:0; color: var(--text-faint); font-size:12.5px; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.tps-skip:hover{ color: var(--brass-light); }
.tps-dots{ display:flex; justify-content:center; gap:8px; margin-top:12px; }
.tps-dots button{ width:8px; height:8px; padding:0; border-radius:50%; border:none; background: var(--panel-raised); cursor:pointer; }
.tps-dots button.on{ background: var(--brass); width:22px; border-radius:4px; }
@media (max-width: 980px){ .tps-main, .tps-main-wide{ grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) auto; gap:14px; } .tps-text{ padding-bottom:0; } .tps-h{ font-size:22px; } }

/* radio / tick rows inside a form field (21 Oct 2026): not stretched like text inputs, text next to the button */
.field .check{ display:flex; align-items:center; gap:8px; margin:6px 0; font-size:13px; font-weight:400; color: var(--text); }
.field .check input[type="radio"], .field .check input[type="checkbox"]{ width:auto; flex:0 0 auto; margin:0; }
.field .check input[type="number"]{ width:140px; flex:0 0 auto; margin-left:4px; }
.field .check > span{ white-space:normal; }

/* Get started → Loss limits (21 Oct 2026) */
.gl-total{ padding:9px 0; font-family: var(--font-mono); font-size:14px; color: var(--text); }
input.gs-num{ background: var(--bg); color: var(--text); border:1px solid var(--border); border-radius:7px; padding:7px 10px; font-family: var(--font-mono); }
input.gs-num:focus{ outline:none; border-color: var(--brass); }
.gl-explain{ margin-top:5px; font-size:11.5px; line-height:1.45; }
.nav-test-reset{ color: var(--red, #e5534b) !important; opacity:.85; margin-top:6px; border:1px dashed rgba(229,83,75,.4); }

/* Choose the import folder (21 Oct 2026) */
.folder-box{ max-width:560px; }
.folder-opt{ display:flex; align-items:center; gap:12px; margin:8px 0; flex-wrap:wrap; }
.folder-opt .path-hint{ font-family: var(--font-mono); font-size:11.5px; word-break:break-all; }

/* no faded yellow on filled-in fields (21 Oct 2026): Chromium paints remembered (autofill) values yellow — keep our own clean look */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active,
select:-webkit-autofill, textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--panel-alt) inset !important; box-shadow: 0 0 0 1000px var(--panel-alt) inset !important;
  -webkit-text-fill-color: var(--text) !important; caret-color: var(--text); transition: background-color 99999s ease-out 0s;
}
.field input, .field select, .field textarea{ border-color: #36404C; }
.field input:hover, .field select:hover, .field textarea:hover{ border-color: #46515F; }

/* Trading profiles: plain explanation above the table instead of a list of found instruments (21 Oct 2026) */
.auto-intro{ border-left:3px solid var(--brass); padding:4px 0 4px 14px; margin:0 0 14px; }
.auto-intro-t{ font-family: var(--font-display); font-size:15px; font-weight:600; color: var(--text); margin-bottom:6px; }
.auto-intro p{ font-size:13px; line-height:1.55; color: var(--text-dim); margin:0 0 6px; max-width:900px; }
.gs-cluster{ border:1px solid var(--border); border-radius:10px; padding:10px 12px; margin:0 0 12px; background: var(--panel-alt); }

/* Get started → What we found: no scroll bar, every field dark with white text (21 Oct 2026) */
.gs-found-wrap{ overflow: visible; }
table.gs-found{ width:100%; table-layout:auto; }
table.gs-found th{ white-space:normal; line-height:1.25; vertical-align:bottom; font-size:11px; }
table.gs-found td{ padding:6px 6px; }
table.gs-found td:first-child{ min-width:150px; }
.gs-fields .trade-table input[type=text], .gs-fields .trade-table input[type=number]{
  background: var(--bg); color: var(--text); border:1px solid #36404C; border-radius:6px; padding:5px 7px; font-size:13px; font-family: var(--font-mono);
}
.gs-fields .trade-table input[type=text]:focus, .gs-fields .trade-table input[type=number]:focus{ outline:none; border-color: var(--brass); }
.gs-fields .trade-table input:disabled{ opacity:.45; }
table.gs-found input[type=number]::-webkit-inner-spin-button, table.gs-found input[type=number]::-webkit-outer-spin-button{ -webkit-appearance:none; margin:0; }
.bad-in{ border-color: var(--red, #e5534b) !important; box-shadow: 0 0 0 2px rgba(229,83,75,.25); }

/* new logo (21 Oct 2026): the TP shield replaces the candle mark — in the menu and on the front page */
.brand-horiz .brand-formation.brand-shield{ width:46px; height:auto; display:block; }
.wl-logo.brand-shield{ width:min(230px, 70%); filter: drop-shadow(0 12px 32px rgba(47,123,240,.28)); }

/* logo no. 2 (22 Oct 2026): shield without the arrow, name and payoff beside it — TRADERS silver, PATROL blue, spaced capitals */
.brand-horiz .brand-formation.brand-shield{ width:44px; }
.brand-horiz .brand-name.brand-lockup{ font-family: var(--font-display); font-size:15.5px; font-weight:800; letter-spacing:.1em; line-height:1; white-space:nowrap; }
.brand-lockup .bn-t{ font-weight:800; background:linear-gradient(180deg,#FFFFFF 0%,#E8ECF2 55%,#9AA3B2 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.brand-lockup .bn-p{ font-weight:800; background:linear-gradient(180deg,#E0BC4A 0%,#C9A227 60%,#A8851C 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.brand-horiz .brand-words .brand-payoff{ font-style:normal; text-transform:uppercase; letter-spacing:.2em; font-size:8.5px; font-weight:500; color:#9AA3B2; margin-top:6px; }
.sidebar .brand.brand-horiz{ padding-left:12px; gap:9px; }

/* logo colour B (22 Oct 2026): blue replaced by the app's deep brass #C9A227 — shield, icons and PATROL. Front-page logo made smaller */
.wl-logo.brand-shield{ width:min(150px, 45%); filter: drop-shadow(0 10px 28px rgba(201,162,39,.22)); }
@media (min-width: 1500px){ .wl-logo.brand-shield{ width:min(170px, 45%); } }

/* Trading & broker setup (23 Oct 2026): every section framed in brass, like the steps in Get started */
#tv-profiles .card{ border:1px solid var(--brass); border-radius:12px; }   /* 31 Oct 2026: no yellow tint — plain dark like every page */
#tv-profiles .card > .section-title{ color: var(--brass-light); }

/* Welcome (24 Oct 2026): no logo — text and example centred on each other; fine yellow ring around the warning, fine yellow lines between steps 1-2-3 */
.wl-hero{ align-items:center; }
.wl-hero-art{ justify-content:center; }
.wl-warn-ring{ border:1px solid var(--brass); border-radius:22px; padding:10px 16px 12px; margin:12px 0 14px; box-shadow:0 0 0 3px rgba(201,162,39,.08); }
.wl-warn-ring .wl-warn{ margin-top:0; }
.wl-warn-ring .wl-line{ margin-bottom:0; }
.wl-mock-c .wl-beat{ border-top:1px solid rgba(201,162,39,.55); }
.wl-mock-c .wl-beat:first-child{ border-top:0; }

/* ---- trade reviews (doc 22) and thanks (25 Oct 2026) */
.rv-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap:14px; }
.rv-card { cursor:pointer; display:flex; flex-direction:column; gap:10px; padding:14px; transition: border-color .15s; }
.rv-card:hover { border-color: var(--brass); }
.rv-thumb { height:90px; background: var(--panel-raised, #1C232C); border-radius:6px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.rv-thumb svg { height:90px; }
.rv-body { display:flex; flex-direction:column; gap:4px; min-width:0; }
.rv-q { font-style:italic; color: var(--text); margin:6px 0; line-height:1.45; }
.rv-big { margin:12px 0 8px; background: var(--panel-raised, #1C232C); border-radius:8px; padding:6px; }
.rv-big svg { height:300px; display:block; }
.rv-verdict { display:inline-block; padding:2px 8px; border-radius:10px; font-size:12px; font-weight:600; }
.rv-verdict.agree { background: var(--green-dim); color: var(--green); }
.rv-verdict.disagree { background: rgba(229,99,106,0.14); color: var(--red); }
.rv-verdict.unsure { background: rgba(139,148,158,0.16); color: var(--text-dim, #8B949E); }
.rv-answer { border-top:1px solid var(--border-soft); padding:10px 0; }
.rv-comment { margin-top:6px; line-height:1.5; white-space:pre-wrap; }
.rv-sum { font-size:12.5px; }
.tag-chip.exec { border-color: rgba(125,190,255,0.4); color:#7DBEFF; }
.thanks-done { color: var(--brass-light, #E0BC4A); font-weight:500; }
.thanks-btn { white-space:nowrap; }
.crowd-card .rv-big svg { height:220px; }
.crowd-concl { display:grid; grid-template-columns: 1fr 2fr; gap:10px; margin-top:8px; }
@media (max-width: 700px) { .crowd-concl { grid-template-columns: 1fr; } .rv-grid { grid-template-columns: 1fr; } }
/* ---- setups, plans and the AI trade review (doc 21) */
.plan-bar { display:flex; align-items:center; gap:12px; margin-bottom:12px; flex-wrap:wrap; }
.su-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.su-card { display:flex; flex-direction:column; gap:6px; }
.su-name { font-family:'Space Grotesk', sans-serif; font-size:15px; }
.su-row { display:grid; grid-template-columns: 110px 1fr; gap:8px; font-size:13px; line-height:1.45; }
.su-stats { margin-top:6px; padding-top:8px; border-top:1px solid var(--border-soft); font-size:12.5px; color: var(--text-dim, #8B949E); }
.rv-plan.ok { color: var(--green); margin:4px 0 6px; }
.rv-plan.warn { color: var(--amber); margin:4px 0 6px; }   /* plan vs trade differs (14 Nov 2026) */
.pc-level { display:inline-block; padding:2px 9px; border-radius:10px; font-size:12px; font-weight:600; }
.pc-level.likely { background: var(--green-dim); color: var(--green); }
.pc-level.possible { background: rgba(201,162,39,0.16); color: var(--brass-light, #E0BC4A); }
.pc-level.unlikely { background: rgba(229,99,106,0.14); color: var(--red); }
.pc-level.none { background: rgba(139,148,158,0.16); color: var(--text-dim, #8B949E); }
.pc-reasons { margin:6px 0 4px 18px; padding:0; font-size:13px; line-height:1.55; }
.ai-review { margin-top:12px; padding:12px 14px; border:1px solid rgba(125,190,255,0.35); border-radius:8px; background: rgba(125,190,255,0.06); }
.ai-verdict { display:inline-block; padding:2px 9px; border-radius:10px; font-size:12px; font-weight:600; background: rgba(125,190,255,0.14); color:#7DBEFF; }
.ai-verdict.good, .ai-verdict.validloss { background: var(--green-dim); color: var(--green); }
.ai-verdict.wrongread, .ai-verdict.notsetup, .ai-verdict.poorexec { background: rgba(229,99,106,0.14); color: var(--red); }
.ai-rule { margin-top:8px; font-size:13px; }
#tradeRvBox .rv-big svg { height:240px; }
/* sharing & connection on My communities (26 Oct 2026) */
.desk-card { margin-bottom:14px; padding:14px 16px; }
.desk-row { display:grid; grid-template-columns: 1.3fr 1fr; gap:18px; align-items:start; }
.desk-row .desk-cell + .desk-cell { border-left:1px solid var(--border); padding-left:24px; }
@media (max-width: 900px) { .desk-row .desk-cell + .desk-cell { border-left:0; padding-left:0; border-top:1px solid var(--border); padding-top:12px; } }
.desk-cell .seg { margin:4px 0 6px; }
.desk-cell .mini-sel { margin:4px 0 6px; max-width:100%; }
@media (max-width: 900px) { .desk-row { grid-template-columns: 1fr; } }
.ex-never { margin:0 0 12px; padding:9px 12px; border-radius:8px; border:1px solid rgba(201,162,39,0.45); background: rgba(201,162,39,0.12); color: var(--brass-light, #E0BC4A); font-weight:600; font-size:13px; }
.ex-pick { cursor:pointer; border:2px solid transparent; border-radius:10px; padding:6px; transition:border-color .15s; }
.ex-pick:hover { border-color: rgba(201,162,39,0.35); }
.ex-pick.picked { border-color: var(--brass, #C9A227); background: rgba(201,162,39,0.06); }
.ex-radio { display:flex; align-items:center; gap:8px; font-weight:600; margin:2px 0 8px 4px; cursor:pointer; }
/* My patrol status (26 Oct 2026) */
.pst-card { margin-bottom:16px; }
.pst-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.pst-row { display:flex; gap:12px; align-items:flex-start; }
.pst-row.dis { opacity:.5; }
.pst-row .toggle { flex:0 0 auto; margin-top:2px; }
@media (max-width: 900px) { .pst-grid { grid-template-columns: 1fr; } }
.conn-card { margin-top:16px; }
.gr-big { font-family:'Space Grotesk', sans-serif; font-size:20px; font-weight:600; color: var(--brass-light, #E0BC4A); margin:4px 0 6px; }
/* the "educational only" line beside the Patrol community tabs (26 Oct 2026) */
.ct-row { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.ct-edu { flex:1; min-width:280px; max-width:760px; padding:8px 14px; border-radius:8px; background: var(--panel); border:1px solid var(--border-soft); color: var(--text-faint); font-size:11.5px; line-height:1.5; }
.ct-edu::before { content:'ⓘ '; color: var(--brass-light); }
/* My communities side by side (26 Oct 2026) */
.comm-split { display:grid; grid-template-columns: 1fr 1fr; gap:16px; align-items:start; }
.comm-col .comm-grid.one { grid-template-columns: 1fr; }
@media (max-width: 900px) { .comm-split { grid-template-columns: 1fr; } }
.plan-in { display:flex; gap:8px; align-items:center; }
.plan-in input { flex:1; min-width:0; }
.seg-sm button { padding:4px 10px; font-size:12px; }
.plan-price { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:6px; }
.plan-price-v { color: var(--brass-light, #E0BC4A); font-weight:600; font-size:13px; }
/* card tabs (26 Oct 2026) — the tabs under Patrol community, Discipline, Performance and Education */
.card-tabs { display:grid; gap:14px; max-width:1180px; }
.card-tab { display:flex; gap:14px; align-items:flex-start; text-align:left; padding:14px 16px; border:1px solid var(--border); border-radius:12px; background: var(--panel); color: var(--text); cursor:pointer; font:inherit; transition: border-color .15s, background .15s; }
.card-tab:hover { border-color:#46515F; background: var(--panel-alt, #1C232C); }
.card-tab.on { border-color: var(--brass-light, #E0BC4A); background: linear-gradient(0deg, rgba(224,188,74,.08), rgba(224,188,74,.08)), var(--panel); box-shadow: inset 0 3px 0 var(--brass-light, #E0BC4A); }
.card-tab:focus-visible { outline:2px solid var(--brass-light, #E0BC4A); outline-offset:2px; }
.ct-ic { display:grid; place-items:center; width:42px; height:42px; border-radius:10px; flex:0 0 auto; background: var(--panel-alt, #1C232C); color: var(--text-dim, #9AA3AE); }
.card-tab.on .ct-ic { background: rgba(224,188,74,.18); color: var(--brass-light, #E0BC4A); }
.ct-txt { display:flex; flex-direction:column; gap:4px; min-width:0; }
.ct-title { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-family:'Space Grotesk', sans-serif; font-size:16px; font-weight:600; }
.ct-desc { font-size:12.5px; line-height:1.45; color: var(--text-dim, #9AA3AE); }
.ct-badge { padding:1px 8px; border-radius:10px; background: var(--panel-alt, #2A323C); color: var(--text); font: 600 11.5px Inter, sans-serif; }
.ct-badge.red { background:#E5636A; color:#fff; }
#reviewTabs .ct-edu { margin-top:12px; max-width:1180px; }
@media (max-width: 900px) { .card-tabs { grid-template-columns: 1fr !important; } .ct-desc { display:none; } }
/* sub-tabs: underlined text */
.sub-tabs { display:flex; gap:24px; flex-wrap:wrap; border-bottom:1px solid var(--border); margin-bottom:18px; }
.sub-tab { padding:8px 0 10px; margin-bottom:-1px; border:0; border-bottom:2px solid transparent; background:none; color: var(--text-dim, #9AA3AE); font: 500 14px Inter, sans-serif; cursor:pointer; }
.sub-tab:hover { color: var(--text); }
.sub-tab.on { color: var(--text); font-weight:600; border-bottom-color: var(--brass-light, #E0BC4A); }
/* the Clusters row in a yellow frame (26 Oct 2026) */
.tl-cluster-row{ border:1.5px solid var(--brass-light, #E0BC4A); }
.tl-cluster-row .tl-cluster-t{ color: var(--brass-light, #E0BC4A); }
.ai-box { max-width:860px; }
.ai-verdict.big { font-size:15px; padding:6px 14px; border-radius:12px; margin-bottom:12px; }
.ai-text { font-size:14.5px; line-height:1.65; white-space:pre-wrap; }
.ai-box .ai-rule { margin-top:12px; padding:10px 12px; border-radius:8px; background: rgba(224,188,74,.10); border:1px solid rgba(224,188,74,.35); }
/* interactive review chart (26 Oct 2026) */
.ic-bar { display:flex; align-items:center; gap:4px; flex-wrap:wrap; margin-bottom:6px; }
.ic-tf, .ic-btn { border:1px solid var(--border); background: var(--panel); color: var(--text-dim, #9AA3AE); font: 600 12px Inter, sans-serif; padding:4px 10px; border-radius:6px; cursor:pointer; }
.ic-tf:hover, .ic-btn:hover { color: var(--text); border-color:#46515F; }
.ic-tf.on { background: rgba(224,188,74,.16); border-color: var(--brass-light, #E0BC4A); color: var(--brass-light, #E0BC4A); }
.ic-sp { flex:1; }
.ic-plot { cursor:grab; touch-action:none; user-select:none; overflow:hidden; }
.ic-plot.grab { cursor:grabbing; }
.ic-plot svg { width:100%; height:100%; display:block; }
.ic-hint { font-size:11px; color: var(--text-faint); margin-top:4px; }
/* My conclusion (Community review in the trade drawer) and other loose inputs: the same look as every form field (26 Oct 2026) */
.crowd-concl select, .crowd-concl textarea, .link-card .inp, .plan-in input, #rv_exit {
  background: var(--panel-alt); border:1px solid #36404C; border-radius:8px; padding:9px 11px;
  color: var(--text); font-family: var(--font-body); font-size:13px; width:100%; box-sizing:border-box; }
.crowd-concl textarea { resize: vertical; min-height:60px; }
.crowd-concl select:hover, .crowd-concl textarea:hover { border-color:#46515F; }
.crowd-concl select:focus, .crowd-concl textarea:focus { outline:none; border-color: var(--brass); }
.crowd-concl .setup-add input { background: var(--panel-alt); border:1px solid #36404C; border-radius:8px; padding:7px 10px; color: var(--text); font-size:13px; flex:1; min-width:0; }

/* Trade Log: View button before Delete, and no sideways scroll bar (26 Oct 2026) */
.row-view { background:none; border:1px solid var(--border); color: var(--text-dim); border-radius:6px; padding:2px 7px; font-size:11.5px; cursor:pointer; margin-right:4px; }
.row-view:hover { border-color: var(--brass-light); color: var(--brass-light); background: rgba(201,162,39,.08); }
.table-scroll.tl-noscroll{ overflow-x:hidden; overflow-y:auto; }
.table-scroll.tl-noscroll table.trade-table{ width:100%; }
table.trade-table.tl-fit th, table.trade-table.tl-fit td{ padding-left:5px; padding-right:5px; }
table.trade-table.tl-fit td.tl-edit{ padding-left:9px; padding-right:20px; }
table.trade-table.tl-fit .row-erase, table.trade-table.tl-fit .row-view{ padding:2px 5px; }
table.trade-table.tl-fit th{ white-space:normal; }
table.trade-table.tl-fit td.row-erase-cell{ white-space:normal; text-align:center; }
table.trade-table.tl-fit td.row-erase-cell button{ display:block; width:100%; margin:2px 0; text-align:center; }
table.trade-table.tl-fit td:nth-child(10){ min-width:64px; }
/* narrower windows: tighter Trade Log so it never needs a sideways scroll bar */
@media (max-width: 1240px){
  table.trade-table.tl-fit{ font-size:11px; }
  table.trade-table.tl-fit th{ font-size:9.5px; letter-spacing:.02em; }
  table.trade-table.tl-fit th, table.trade-table.tl-fit td{ padding-left:3px; padding-right:3px; }
  table.trade-table.tl-fit td.tl-edit{ padding-left:7px; padding-right:16px; }
  table.trade-table.tl-fit td:nth-child(2){ min-width:62px; }
  table.trade-table.tl-fit td:nth-child(8){ white-space:normal; }
  table.trade-table.tl-fit td:nth-child(9), table.trade-table.tl-fit td:nth-child(10){ min-width:50px; }
}
@media (max-width: 1080px){
  table.trade-table.tl-fit{ font-size:10.5px; }
  table.trade-table.tl-fit th{ letter-spacing:0; }
  table.trade-table.tl-fit th, table.trade-table.tl-fit td{ padding-left:2px; padding-right:2px; }
  table.trade-table.tl-fit td.tl-edit{ padding-left:6px; padding-right:13px; }
  table.trade-table.tl-fit .tl-pen{ right:4px; }
  table.trade-table.tl-fit td:nth-child(9), table.trade-table.tl-fit td:nth-child(10){ min-width:44px; }
}
/* Cluster buttons sit on the left, right after "Clusters" (26 Oct 2026) */
.tl-cluster-row:not(.on) .btn:first-of-type{ margin-left:0; }
.tl-cluster-row:not(.on) .hint{ flex:1; min-width:200px; }

/* Trade Log: Setup / Execution boxes lower — a slim 24px box centred in the row instead of filling the full row height (26 Oct 2026) */
.trade-table td.tl-edit::after{ top:max(3px, calc(50% - 12px)); bottom:max(3px, calc(50% - 12px)); }
.trade-table td.tl-edit .tag-chip{ padding:1px 6px; line-height:1.3; }

/* Review chart: full screen (26 Oct 2026) */
.ic-full { position:fixed; inset:0; z-index:10000; background: var(--bg); padding:14px 18px; display:flex; flex-direction:column; }
.ic-full .ic-plot { flex:1; min-height:0; }
.ic-fs { margin-left:6px; }
.rv-mount .ic-plot svg, #tradeRvBox .rv-mount .ic-plot svg, .crowd-card .rv-mount .ic-plot svg { height:100%; }
.rv-mount.ic-full { margin:0; border-radius:0; }

/* Trade journal (27 Oct 2026): full screen option + a yellow frame around each section */
.drawer.full{ width:100vw; border-left:none; }
.drawer .full-x{ position:absolute; top:18px; right:52px; background:none; border:none; color: var(--text-dim); font-size:17px; cursor:pointer; line-height:1; }
.drawer .full-x:hover, .drawer .close-x:hover{ color: var(--brass-light, #E0BC4A); }
.drawer .j-sec, .drawer > .card{ border:1.5px solid var(--brass-light, #E0BC4A); border-radius:10px; padding:14px 16px; margin:0 0 14px 0 !important; }
.drawer .j-head{ margin-top:26px !important; }
.drawer .j-sec .form-actions{ margin-bottom:0; }
.drawer .j-sec .kv{ margin-bottom:0; }

/* AI trade review window (27 Oct 2026): never taller than the window — it scrolls inside, and the ✕ stays at the top */
.sure-box.ai-box { max-height:calc(100vh - 40px); overflow-y:auto; }
.sure-box.ai-box > .row:first-child { position:sticky; top:0; z-index:2; background: var(--panel); margin:-20px -22px 0 !important; padding:14px 22px 10px; border-bottom:1px solid var(--border); }

/* own reason: "most like which library pattern" on its own line under the name + Add (27 Oct 2026) */
.setup-add{ flex-wrap:wrap; }
.setup-add select{ order:3; flex:1 1 100%; min-width:0; }

/* one Setup / reason table (27 Oct 2026): clickable reasons, ✓ = checked by the app, ★ = your own rules */
.reason-chip.pick-open{ cursor:pointer; }
.reason-chip.pick-open:hover{ border-color: var(--brass-light, #E0BC4A); color: var(--text); }
.reason-chip.checked{ color: var(--text); }
.chk{ color: var(--green, #3FB68B); font-weight:700; margin-right:2px; }
.reason-chip .own{ font-style:normal; color: var(--brass-light, #E0BC4A); }

/* Trade Nation page (27 Oct 2026): toolbar on top, the broker's site fills the rest (a view from the main process lies over .broker-slot) */
.broker-page{ display:flex; flex-direction:column; height:calc(100vh - 120px); min-height:400px; }
.broker-bar{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.broker-url{ flex:1; min-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; color: var(--text-dim); padding:5px 10px; border:1px solid var(--border); border-radius:7px; background: var(--panel-alt); }
.broker-note{ margin:6px 0 8px; font-size:11.5px; }
.broker-slot{ flex:1; min-height:300px; border:1px solid var(--border); border-radius:10px; background: var(--panel); }
/* Delete and backup window (27 Oct 2026): erase, undo and backup under one tab row on the Trade Log */
.range-box.db-box { width:min(1180px, calc(100vw - 40px)); min-height:min(620px, calc(100vh - 60px)); max-height:calc(100vh - 40px); overflow:hidden; display:flex; flex-direction:column; }
/* 28 Oct 2026: the window itself never scrolls — only the list of fills inside it */
.db-box .db-body { flex:1; min-height:0; display:flex; flex-direction:column; overflow:auto; }
.db-box .db-body > .seg { align-self:flex-start; }
.db-box .erase-groups { flex:1; min-height:0; display:flex; flex-direction:column; }
.db-box .erase-groups:not(.many) .erase-group { flex:1; min-height:0; display:flex; flex-direction:column; margin-bottom:8px; }
.db-box .erase-groups:not(.many) .undo-scroll { flex:1; min-height:120px; max-height:none; }
.db-box .erase-groups.many { overflow:auto; }
.db-box .seg-btn { padding:9px 20px; font-size:14px; }
.db-box .undo-scroll { max-height:calc(100vh - 340px); }
.db-box .sure-title { width:100%; color: var(--brass-light); }
.db-box .db-tabs .seg { margin:4px 0 12px; }
.db-box .db-body .seg { margin-top:0; }
/* search box in the Trade Log toolbar, right after "Needs journal" (27 Oct 2026) */
.filters.tl-bar .tl-search{ width:240px; max-width:100%; height:30px; margin-left:6px; }
.filters.tl-bar .tl-act.db-btn{ width:auto; padding:0 12px; }
.db-box .seg-sub .seg-btn { padding:6px 14px; font-size:12.5px; }
.db-box .db-body > *, .db-box .erase-head { flex-shrink:0; }
.db-box .db-body > .erase-groups { flex-shrink:1; }

/* the erased-fills table fits the window: tighter cells, no sideways scrolling (28 Oct 2026) */
.erase-group .undo-scroll { overflow-x:hidden; }
.erase-group .trade-table { width:100%; }
.erase-group .trade-table th, .erase-group .trade-table td { padding-left:8px; padding-right:8px; }
.erase-group .trade-table td:last-child { white-space:normal !important; min-width:96px; }
.erase-group .trade-table td:last-child .btn { margin:2px 0; }

/* notices inside Delete and backup: top right of its title row, never over buttons or text (28 Oct 2026) */
.db-box .sure-title .db-note { flex:1; min-width:0; display:flex; justify-content:flex-end; margin:0 10px 0 16px; }
.db-box .sure-title .close-x { position:static; flex-shrink:0; line-height:1; padding:0 2px; }
.db-note-msg { display:flex; align-items:center; gap:8px; max-width:100%; font-size:12.5px; font-weight:500; color: var(--text); background: var(--panel-raised); border:1px solid var(--border); border-left:3px solid var(--brass); border-radius:8px; padding:6px 12px; animation: dbNoteIn .18s ease-out; }
.db-note-msg.green { border-left-color: var(--green); } .db-note-msg.amber { border-left-color: var(--amber); } .db-note-msg.red { border-left-color: var(--red-strong); }
.db-note-text { min-width:0; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; line-height:1.35; }
.db-note-msg .toast-action { margin-left:4px; flex-shrink:0; }
@keyframes dbNoteIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }

.erase-all-count { margin:12px 0 8px; padding:10px 12px; border:1px solid var(--border); border-radius:8px; background:rgba(255,255,255,.035); font-size:14px; }

.erase-help { list-style:none; margin:2px 0 10px; padding:0; font-size:12.5px; line-height:1.6; color: var(--text-dim); }
.erase-help b { color: var(--text); font-weight:600; }

/* Index movers (30 Oct 2026) */
.mv-head{ display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; margin-top:14px; }
.mv-ix{ font-family: var(--font-display); font-size:20px; font-weight:600; }
.mv-table td{ padding-top:6px; padding-bottom:6px; }
.mv-bar{ height:8px; border-radius:4px; min-width:2px; }
.mv-bar.up{ background: var(--green); } .mv-bar.down{ background: var(--red); margin-left:auto; }

/* Card tabs everywhere (30 Oct 2026): a smaller card for second-level and window tabs; same look */
.card-tabs.ct-sub { margin-bottom:16px; }
/* 31 Oct 2026 (Henrik): second-level menus in the Patrol community (My patrol, Communities) smaller than the main menu above them */
.card-tabs.ct-sub { gap:14px; }   /* full width like the main menu (31 Oct 2026); only the height is smaller */
.card-tabs.ct-sub .card-tab { padding:7px 12px; gap:10px; border-radius:10px; align-items:center; }
.card-tabs.ct-sub .card-tab.on { box-shadow: inset 0 2px 0 var(--brass-light, #E0BC4A); }
.card-tabs.ct-sub .ct-ic { width:28px; height:28px; border-radius:8px; }
.card-tabs.ct-sub .ct-ic svg { width:16px; height:16px; }
.card-tabs.ct-sub .ct-txt { gap:1px; }
.card-tabs.ct-sub .ct-title { font-size:13.5px; }
.card-tabs.ct-sub .ct-desc { font-size:11.5px; line-height:1.35; }
.card-tabs.ct-compact { gap:10px; margin-bottom:14px; }
.card-tabs.ct-compact .card-tab { padding:10px 12px; gap:10px; }
.card-tabs.ct-compact .ct-ic { width:34px; height:34px; }
.card-tabs.ct-compact .ct-title { font-size:14.5px; }
.card-tabs.ct-compact .ct-desc { font-size:12px; }

/* Restore erased: the help sits with each set of buttons (30 Oct 2026) */
.erase-cap{ font-size:12px; color: var(--text-dim); }
.erase-acts .erase-cap{ text-align:right; margin:2px 0; }
.erase-cap-one{ margin:8px 0 6px; }
.erase-acts{ flex-direction:column; align-items:flex-end; gap:4px; }

/* ---- profile photos (30 Oct 2026, doc 29): a photo where its owner turned it on, initials otherwise */
.trader-avatar, .detail-avatar{ flex-shrink:0; overflow:hidden; }
.has-photo{ cursor:zoom-in; padding:0; }
.has-photo img{ width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.mini-avatar{ display:inline-flex; width:20px; height:20px; border-radius:50%; overflow:hidden; vertical-align:middle; margin-right:6px; border:1px solid var(--border); background: var(--panel-raised); font-size:8px; font-family:var(--font-mono); align-items:center; justify-content:center; }
.msg .t .mini-avatar{ width:16px; height:16px; margin-right:5px; }
.photo-view{ text-align:center; }
.photo-view img{ width:min(320px, 70vw); height:auto; aspect-ratio:1; object-fit:cover; border-radius:14px; border:1px solid var(--border); }
.rep-photo{ width:72px; height:72px; object-fit:cover; border-radius:10px; border:1px solid var(--border); flex-shrink:0; }
.rep-photo.big{ width:120px; height:120px; }
.photo-card .photo-row{ display:flex; gap:16px; align-items:flex-start; }
.photo-preview{ width:88px; height:88px; border-radius:50%; overflow:hidden; flex-shrink:0; background: var(--panel-raised); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-size:24px; color: var(--text-dim); }
.photo-preview img{ width:100%; height:100%; object-fit:cover; display:block; }
.photo-switch{ margin-top:14px; }
.photo-switch.off{ opacity:.55; }
.photo-nick{ margin-top:10px; }
.photo-rules ul{ margin:8px 0 10px 18px; line-height:1.6; }
.photo-rules-box{ max-width:560px; }

/* My day bar and learning quiz — Patrol community page (doc 25, 1 Nov 2026) */
#mydayBars{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; margin:0 0 14px; align-items:stretch; }
#mydayBars > .md-bar:only-child, #mydayBars.one-col > .md-bar{ grid-column:1 / -1; }
#mydayBars .md-figs{ gap:18px; }
@media (max-width: 1150px){ #mydayBars{ grid-template-columns:1fr; } }
.md-bar{ background: var(--panel); border:1px solid var(--border); border-left:3px solid var(--green); border-radius:12px; padding:12px 16px; }
.md-bar.md-amber{ border-left-color: var(--amber); } .md-bar.md-red{ border-left-color: var(--red-strong); }
.qz-bar{ border-left-color: var(--brass); }
.md-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.md-title{ font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--text-faint); }
.md-msg{ font-size:13.5px; color: var(--text); flex:1; min-width:200px; }
.md-link{ font-size:12.5px; color: var(--brass-light); }
.md-figs{ display:flex; align-items:flex-end; gap:26px; margin-top:10px; flex-wrap:wrap; }
.md-num{ font-family: var(--font-mono); font-size:18px; font-weight:600; }
.md-lab{ font-size:11px; color: var(--text-faint); margin-top:2px; }
.md-ladders{ flex:1; min-width:240px; display:flex; flex-direction:column; gap:6px; }
.md-lad .md-track{ height:7px; margin-top:4px; }
.qz-rank{ font-family: var(--font-mono); font-size:12px; color: var(--brass-light); border:1px solid rgba(201,162,39,.35); background: var(--brass-dim); padding:2px 9px; border-radius:20px; }
.qz-prog{ width:90px; height:5px; border-radius:4px; background: var(--panel-raised); overflow:hidden; display:inline-block; }
.qz-prog span{ display:block; height:100%; background: var(--brass); }
.qz-tools{ margin-left:auto; display:flex; gap:14px; font-size:12px; } .qz-tools a{ color: var(--text-dim); } .qz-tools a:hover{ color: var(--brass-light); }
.qz-meta{ font-size:11px; color: var(--text-faint); margin:10px 0 4px; text-transform:uppercase; letter-spacing:.05em; }
.qz-q{ font-size:14.5px; font-weight:600; margin-bottom:10px; line-height:1.45; }
.qz-opts{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.qz-opts .quiz-opt{ padding:9px 12px; font-size:13px; }
.qz-bar .quiz-explain{ margin-top:10px; padding:10px 14px; font-size:13px; }
.qz-delta{ font-family: var(--font-mono); font-size:12px; margin-left:8px; }
.qz-more-link{ color: var(--brass-light); font-size:12.5px; display:inline-block; margin-top:6px; }
.qz-more{ margin-top:6px; line-height:1.6; color: var(--text-dim); } .qz-more a{ color: var(--brass-light); }
.qz-foot{ display:flex; align-items:center; gap:14px; margin-top:10px; flex-wrap:wrap; }
.qz-stats{ display:flex; gap:22px; flex-wrap:wrap; align-items:baseline; margin-top:10px; padding:10px 12px; background: var(--panel-alt); border-radius:8px; }
.qz-stats > div b{ font-family: var(--font-mono); font-size:15px; margin-right:5px; }
.qz-tps{ flex:1; min-width:220px; font-size:12.5px; } .qz-private{ width:100%; font-size:11.5px; }
@media (max-width: 700px){ .qz-opts{ grid-template-columns:1fr; } }

/* quiet count for things that can wait, e.g. new thanks (1 Nov 2026, doc 32) */
.ct-badge.gold { background: var(--brass-dim); color: var(--brass-light); border:1px solid rgba(201,162,39,.35); }

/* space between a menu and its sub-menu, everywhere (1 Nov 2026) */
.card-tabs.ct-sub { margin-top:14px; }

/* My day in one line (1 Nov 2026): message cut with … (full text on hover), short ladder bars */
.md-line{ display:flex; align-items:center; gap:10px; flex-wrap:nowrap; white-space:nowrap; overflow:hidden; padding:9px 14px; }
.md-line .md-it{ display:inline-flex; align-items:center; gap:6px; flex-shrink:0; }
.md-line .md-it b{ font-family: var(--font-mono); font-size:14px; font-weight:600; }
.md-line .md-sep{ color: var(--text-faint); flex-shrink:0; }
.md-line .md-k{ font-size:11.5px; color: var(--text-faint); }
.md-mini{ display:inline-block; width:56px; height:6px; border-radius:4px; background: var(--panel-raised); overflow:hidden; }
.md-mini > span{ display:block; height:100%; background: linear-gradient(90deg, var(--green), var(--amber) 70%, var(--red-strong) 100%); }
.md-line .md-msg{ flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; font-size:12.5px; color: var(--text-dim); }
.md-line .md-link{ flex-shrink:0; }
.md-line .discipline-pill{ flex-shrink:0; padding:2px 9px; font-size:12px; }
#mydayBars{ align-items:start; }

/* 1 Nov 2026: My day and the quiz on one row — the hidden quiz is a small bar to the right of My day;
   "Show quiz" opens the full quiz on its own row below, as before */
#mydayBars{ display:flex !important; flex-wrap:wrap; gap:12px; align-items:stretch; }
#mydayBars > .md-line{ flex:1 1 420px; min-width:0; }
#mydayBars > .qz-bar{ flex:1 1 100%; }
#mydayBars > .qz-bar.qz-collapsed{ flex:0 0 auto; display:flex; align-items:center; padding:9px 12px; min-width:0; }
#mydayBars > .qz-bar.qz-collapsed .md-head{ gap:10px; }
#mydayBars > .qz-bar.qz-collapsed .md-head{ flex-wrap:nowrap; white-space:nowrap; }
#mydayBars > .qz-bar.qz-collapsed .qz-tools{ margin-left:12px; }

/* Patrol status in one line (1 Nov 2026) */
.pst-line{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding:10px 16px; margin-bottom:12px; }
.pst-line .pst-title{ font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--text-faint); }
.pst-line .hint{ margin-right:auto; }
.pst-sw{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; cursor:help; }
.pst-sw .toggle{ cursor:pointer; }
.pst-sw.dis{ opacity:.5; }

/* date of the shown data — Index movers, Divergence (1 Nov 2026) */
.mv-date{ font-size:13px; } .mv-date b{ color: var(--text); }

/* chart: Reset view sits just left of LOG (1 Nov 2026) — exact place set by chart.js from the price axis width */
.log-btn.reset-btn{ right:178px; }

/* quiz header (1 Nov 2026): My progress next to the rank, Hide / Show as a real button at the right */
.qz-stat-btn{ background:none; border:1px solid var(--border); color: var(--text-dim); font-size:12px; padding:3px 10px; border-radius:14px; cursor:pointer; }
.qz-stat-btn:hover, .qz-stat-btn.on{ color: var(--brass-light); border-color: var(--brass); background: var(--brass-dim); }
.qz-head .qz-toggle{ margin-left:auto; font-weight:700; border-color: var(--brass); color: var(--brass-light); }
.qz-head .qz-toggle:hover{ background: var(--brass-dim); }
#mydayBars > .qz-bar.qz-collapsed .qz-toggle{ margin-left:12px; }

/* educational-only statement as the last line of the Patrol status bar (1 Nov 2026) */
.pst-line .pst-edu{ flex-basis:100%; font-size:11.5px; color: var(--text-faint); border-top:1px solid var(--border); padding-top:6px; margin-top:-4px; }
.pst-line .pst-edu-i{ color: var(--brass-light); font-weight:700; font-size:13px; }

/* "Educational only" in the top bar, left of Be aware / On track — every page (1 Nov 2026); full statement on hover */
.edu-pill{ display:inline-flex; align-items:center; gap:5px; font-size:11.5px; color: var(--text-faint); padding:3px 9px; border:1px solid var(--border); border-radius:20px; cursor:help; white-space:nowrap; }
.edu-pill .edu-i{ color: var(--brass-light); font-weight:700; font-size:13px; }
.edu-pill:hover{ color: var(--text-dim); border-color: rgba(201,162,39,.35); }

/* Open now — live open positions and orders from the broker extension (2 Nov 2026, doc 38) */
.on-card{ margin-bottom:12px; padding:12px 16px; border-left:3px solid var(--brass); }
.on-card.on-old{ border-left-color: var(--text-faint); opacity:.85; }
.on-head{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:8px; }
.on-head .section-title{ margin:0; }
.on-priv{ margin-left:auto; font-size:12px; }
.on-live{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color: var(--text-dim); }
.on-dot{ width:8px; height:8px; border-radius:50%; background:#3fa66b; box-shadow:0 0 0 3px rgba(63,166,107,.18); }
.on-stale{ font-size:12.5px; color: var(--text-faint); }
.on-sub{ font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--text-faint); margin:12px 0 4px; }
.on-table td, .on-table th{ padding:6px 10px; }
.on-nostop{ color:#e05a4f; font-weight:600; font-size:12px; }
.on-money{ font-size:11px; font-weight:600; line-height:1.3; }
/* Live data pill in the top bar (12 Nov 2026): the link to the broker through the browser extension */
.feed-pill{ cursor:pointer; text-decoration:none; white-space:nowrap; }
/* Co-pilot (12 Nov 2026): a monitor that slides in from the right, with a tab fixed to the right edge on every page */
.cp-tab{ position:fixed; right:0; top:50%; transform:translateY(-50%); z-index:351; display:flex; flex-direction:column; align-items:center; gap:8px; padding:14px 7px; cursor:pointer;
  background:#0B0E12; color: var(--brass-light); border:1px solid rgba(201,162,39,.55); border-right:none; border-radius:10px 0 0 10px; box-shadow:-4px 4px 18px rgba(0,0,0,.45); transition:right .28s ease; font:inherit; }
.cp-tab:hover{ background:#12171d; }
.cp-tab .cp-tab-txt{ writing-mode:vertical-rl; transform:rotate(180deg); font-size:11.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; }
.cp-tab .cp-led, .cp-head .cp-led{ width:8px; height:8px; border-radius:50%; background: var(--green); box-shadow:0 0 8px var(--green); flex-shrink:0; }
.cp-tab.has-new .cp-led, .cp-head.has-new .cp-led{ background: var(--amber); box-shadow:0 0 10px var(--amber); animation:cp-blink 1.2s ease-in-out infinite; }
.cp-tab.has-red .cp-led, .cp-head.has-red .cp-led{ background: var(--red-strong); box-shadow:0 0 10px var(--red-strong); }
.cp-tab .cp-tab-n{ min-width:18px; height:18px; border-radius:9px; background: var(--amber); color:#000; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; padding:0 4px; }
.cp-tab.has-red .cp-tab-n{ background: var(--red-strong); color:#fff; }
@keyframes cp-blink{ 50%{ opacity:.35; } }
.cp-panel{ position:fixed; top:0; right:0; bottom:0; width:400px; max-width:92vw; z-index:350; transform:translateX(100%); transition:transform .28s ease; padding:14px 12px 14px 0; pointer-events:none; }
.cp-panel.open{ transform:none; pointer-events:auto; }
.cp-tab.open{ right:400px; }
.cp-monitor{ height:100%; display:flex; flex-direction:column; background:#07090c; border:2px solid #2a323d; border-radius:16px; box-shadow:0 0 0 4px #10151b, -18px 0 50px rgba(0,0,0,.6), inset 0 0 40px rgba(88,166,255,.05); overflow:hidden; }
.cp-head{ display:flex; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid #1d242d; background:linear-gradient(#10151b,#0a0d11); }
.cp-head .cp-title{ font-family: var(--font-mono); font-size:12.5px; font-weight:700; letter-spacing:.22em; color: var(--brass-light); }
.cp-head .cp-sub{ font-family: var(--font-mono); font-size:11px; color: var(--text-faint); margin-right:auto; }
.cp-head .cp-x{ background:none; border:1px solid #2a323d; color: var(--text-dim); border-radius:6px; width:26px; height:26px; cursor:pointer; font-size:15px; line-height:1; }
.cp-head .cp-x:hover{ color: var(--text); border-color: var(--text-faint); }
.cp-screen{ flex:1 1 auto; overflow-y:auto; padding:12px; display:flex; flex-direction:column; gap:10px;
  background-image:repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); }
.cp-msg{ border:1px solid #232b35; border-left:3px solid var(--text-faint); border-radius:9px; padding:10px 12px; background:#0d1116; }
.cp-msg.amber{ border-left-color: var(--amber); } .cp-msg.red{ border-left-color: var(--red-strong); } .cp-msg.info{ border-left-color: var(--green); }
.cp-msg.pending{ background:#111821; border-color:#3a4553; box-shadow:0 0 18px rgba(229,162,63,.10); }
.cp-msg.pending.red{ box-shadow:0 0 18px rgba(229,99,106,.16); }
.cp-msg .cp-meta{ display:flex; align-items:center; gap:8px; font-family: var(--font-mono); font-size:10.5px; color: var(--text-faint); margin-bottom:4px; }
.cp-msg .cp-newtag{ color:#000; background: var(--amber); border-radius:4px; padding:0 5px; font-weight:700; } .cp-msg.red .cp-newtag{ background: var(--red-strong); color:#fff; }
.cp-msg .cp-mt{ font-weight:700; font-size:13.5px; color: var(--text); margin-bottom:3px; }
.cp-msg .cp-mb{ font-size:12.5px; line-height:1.5; color: var(--text-dim); white-space:pre-wrap; }
.cp-msg:not(.pending) .cp-mt{ color: var(--text-dim); font-weight:600; }
.cp-msg .cp-btns{ display:flex; justify-content:flex-end; gap:8px; margin-top:10px; }
.cp-sep{ font-family: var(--font-mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color: var(--text-faint); margin:6px 2px 0; }
.cp-empty{ color: var(--text-faint); font-size:12.5px; line-height:1.6; padding:18px 8px; text-align:center; }
.cp-foot{ padding:8px 14px 10px; border-top:1px solid #1d242d; font-size:10.5px; line-height:1.4; color: var(--text-faint); }
.cp-ackall{ margin:10px 12px 0; width:calc(100% - 24px); padding:10px 14px; font-weight:700; }
/* two tabs inside the monitor: Warnings · Plan a trade */
.cp-tabs{ display:flex; gap:0; border-bottom:1px solid #1d242d; background:#0a0d11; }
.cp-tabs button{ flex:1; background:none; border:none; border-bottom:2px solid transparent; color: var(--text-faint); font:inherit; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:9px 8px; cursor:pointer; }
.cp-tabs button.active{ color: var(--brass-light); border-bottom-color: var(--brass); }
.cp-tabs .cp-tabs-n{ display:inline-block; min-width:16px; border-radius:8px; background: var(--amber); color:#000; font-size:10.5px; padding:0 4px; }
.cp-plan{ gap:8px; background-image:none; }
.cp-plan .field{ display:flex; flex-direction:column; gap:3px; } .cp-plan .field label{ font-size:11px; color: var(--text-faint); }
.cp-plan input, .cp-plan select{ width:100%; } .cp-plan .plan-in{ display:flex; gap:6px; align-items:center; } .cp-plan .plan-in input{ flex:1; min-width:0; }
.cp-plan-intro{ font-size:12px; line-height:1.5; color: var(--text-dim); }
.cp-pl{ border:1px solid #232b35; border-radius:9px; padding:8px 10px; background:#0d1116; font-size:12px; }
.cp-pl-top{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; color: var(--text-dim); } .cp-pl-top b{ color: var(--text); }
.cp-pl-st{ margin-left:auto; font-size:11px; font-weight:600; border-radius:10px; padding:1px 8px; border:1px solid var(--border); }
.cp-pl-st.ok{ color: var(--green); border-color: rgba(63,182,139,.4); } .cp-pl-st.wait{ color: var(--amber); border-color: rgba(229,162,63,.4); } .cp-pl-st.off{ color: var(--text-faint); }
.cp-pl-lv{ font-family: var(--font-mono); font-size:11px; color: var(--text-faint); margin-top:3px; }
/* plan advice (reward against risk, stop against the profile) and "the app does not place the trade" — both plan forms */
.cp-adv{ font-size:12px; line-height:1.5; color: var(--text-dim); } .cp-adv .warn{ color: var(--amber); } .cp-adv:empty{ display:none; }
.cp-plan-noexec, .plan-noexec{ font-size:12px; line-height:1.5; color: var(--brass-light); border-left:2px solid var(--brass); padding:2px 0 2px 8px; margin:6px 0; }
.aw-kinds{ margin-bottom:14px; }
.plan-price-v.old{ color: var(--amber); }
.cp-editing{ font-size:12px; color: var(--brass-light); border:1px dashed var(--brass); border-radius:8px; padding:6px 8px; display:flex; align-items:center; gap:8px; justify-content:space-between; }
.cp-pl-why{ display:flex; flex-wrap:wrap; gap:5px; align-items:center; margin-top:7px; font-size:11px; color: var(--text-faint); }
/* Notifications inside the platform (12 Nov 2026): the usual warning popup in the middle of the screen, with a title; several stack */
.notices{ position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); display:flex; flex-direction:column; gap:10px; z-index:410; pointer-events:none; max-height:86vh; }
.notices .toast{ pointer-events:auto; max-width:480px; min-width:340px; font-size:14px; line-height:1.5; padding:16px 20px 14px; border:1px solid var(--amber); border-left:4px solid var(--amber); background:#0B0E12; box-shadow:0 14px 44px rgba(0,0,0,.6); }
.notices .toast.red{ border-color: var(--red-strong); border-left-color: var(--red-strong); }
.notices .toast.green{ border-color: var(--green); border-left-color: var(--green); }
.notices .notice-title{ font-weight:700; font-size:14.5px; margin-bottom:4px; color: var(--text); }
.notices .notice-body{ white-space:pre-wrap; color: var(--text-dim); }
.notices .toast-btns{ margin-top:12px; }
.feed-pill.grey{ color: var(--text-faint); border-color: var(--border); background: transparent; }
.md-line .md-open{ cursor:pointer; gap:6px; }
.md-line .md-open:hover b{ color: var(--brass-light); }
.md-line .md-open-old{ opacity:.6; }
.tl-closed-title{ margin:4px 0 8px; }

/* Rule journey (doc 39, 2 Nov 2026) — appended to shared/ui.css */
.rj-page{ display:flex; flex-direction:column; gap:16px; }
.rj-head{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:14px; }
.rj-h1{ font-family:var(--font-display); font-size:26px; font-weight:700; margin:4px 0; }
.rj-h3{ font-family:var(--font-display); font-size:17px; font-weight:700; }
.rj-eyebrow{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.08em; color:var(--text-dim); margin-top:10px; text-transform:uppercase; }
.rj-filters{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.rj-chip-link{ display:inline-flex; align-items:center; gap:7px; font-size:12.5px; color:var(--text-dim); border:1px solid var(--border); border-radius:8px; padding:6px 10px; text-decoration:none; }
.rj-chip-link:hover{ color:var(--text); }
.rj-dot{ display:inline-block; width:13px; height:13px; border-radius:50%; flex-shrink:0; }
.rj-k-c{ background:var(--green); } .rj-k-w{ background:var(--brass); } .rj-k-s{ border:2.5px solid #7DBEFF; } .rj-k-off{ background:var(--text-faint); }
.rj-kpis{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.rj-kpi{ display:flex; flex-direction:column; gap:6px; }
.rj-big{ font-family:var(--font-display); font-size:30px; font-weight:700; display:flex; align-items:baseline; gap:8px; }
.rj-big.rj-mid{ font-size:22px; }
.rj-was{ font-size:20px; color:var(--text-dim); } .rj-arrow{ font-size:18px; color:var(--text-dim); } .rj-of{ font-size:16px; color:var(--text-dim); font-weight:500; }
.rj-blue{ color:#7DBEFF; }
.rj-bar,.rj-lad{ height:6px; background:var(--border); border-radius:3px; overflow:hidden; } .rj-bar span,.rj-lad span{ display:block; height:100%; background:var(--green); }
.rj-lad span{ background:var(--brass); } .rj-lad span.warn{ background:var(--amber); } .rj-lad span.over{ background:var(--red); }
.rj-card{ display:flex; flex-direction:column; gap:12px; }
.rj-cardhead{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; align-items:center; }
.rj-legend{ display:flex; flex-wrap:wrap; gap:16px; font-size:12.5px; color:var(--text-dim); } .rj-legend span{ display:inline-flex; align-items:center; gap:6px; }
.rj-scroll{ overflow-x:auto; }
.rj-row{ display:grid; grid-template-columns:200px minmax(0,1fr) 160px; column-gap:18px; align-items:center; }
.rj-lane{ min-height:48px; border-bottom:1px solid var(--border-soft); }
.rj-caprow{ margin-top:16px; padding-bottom:6px; border-bottom:1px solid var(--border); }
.rj-cap{ font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; color:var(--text-dim); text-transform:uppercase; }
.rj-ln{ font-size:13.5px; font-weight:600; }
.rj-flags{ position:relative; height:58px; }
.rj-flag{ position:absolute; transform:translateX(-50%); white-space:nowrap; font-size:11.5px; font-weight:500; background:var(--bg); border:1px solid var(--border); border-radius:999px; padding:3px 9px; }
.rj-flag-good{ border-color:rgba(63,182,139,.5); } .rj-flag-new{ border-color:rgba(125,190,255,.5); }
.rj-chart{ position:relative; height:140px; border-left:1px solid var(--border); }
.rj-chart svg{ position:absolute; inset:0; width:100%; height:100%; }
.rj-gl{ position:absolute; left:0; right:0; border-top:1px dashed var(--border); }
.rj-yax{ display:flex; flex-direction:column; justify-content:space-between; height:140px; font-family:var(--font-mono); font-size:11px; color:var(--text-dim); }
.rj-cells{ display:flex; align-items:center; }
.rj-cell{ flex:1 1 0; min-width:0; display:flex; justify-content:center; align-items:center; }
.rj-days .rj-cell{ height:40px; }
.rj-daybtn{ background:none; border:0; padding:0; width:100%; height:40px; display:flex; align-items:center; justify-content:center; cursor:pointer; border-radius:6px; }
.rj-daybtn:hover,.rj-daybtn:focus-visible{ background:var(--panel-raised); outline:none; }
.rj-axis{ border-top:1px solid var(--border); padding-top:5px; } .rj-axis .rj-cell{ height:16px; overflow:visible; }
.rj-ax{ font-family:var(--font-mono); font-size:10.5px; color:var(--text-dim); white-space:nowrap; }
.rj-lane .rj-cell{ height:34px; }
.rj-mark{ width:7px; height:20px; border-radius:3px; background:var(--red); }
.rj-empty{ width:3px; height:3px; border-radius:50%; background:var(--border); }
.rj-na{ width:100%; height:1px; background:var(--border-soft); }
.rj-trend{ font-size:11.5px; font-weight:600; border-radius:999px; padding:2px 9px; border:1px solid; display:inline-block; margin-bottom:3px; }
.rj-tr-fixed{ color:var(--green); border-color:rgba(63,182,139,.45); } .rj-tr-improving{ color:#7DBEFF; border-color:rgba(125,190,255,.45); }
.rj-tr-slipping{ color:var(--red); border-color:rgba(229,99,106,.45); } .rj-tr-never,.rj-tr-none{ color:var(--text-dim); border-color:var(--border); }
.rj-insights{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:14px; }
.rj-ins{ display:flex; flex-direction:column; gap:8px; } .rj-ins p{ font-size:13.5px; line-height:1.5; color:#B8BFC8; }
.rj-ins-cap{ display:flex; align-items:center; gap:7px; font-family:var(--font-mono); font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; }
.rj-ins-good .rj-ins-cap{ color:var(--green); } .rj-ins-bad .rj-ins-cap{ color:var(--red); } .rj-ins-blue .rj-ins-cap{ color:#7DBEFF; } .rj-brass{ color:var(--brass); }
.rj-ins-t{ font-family:var(--font-display); font-size:16px; font-weight:700; }
.rj-link{ font-size:13.5px; font-weight:600; color:#7DBEFF; text-decoration:none; }
.rj-foot{ font-size:12px; }
.rj-pill{ display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:600; border:1px solid var(--border); border-radius:999px; padding:6px 12px; }
.rj-pill-b{ color:var(--red); border-color:rgba(229,99,106,.5); } .rj-pill-c{ color:var(--green); } .rj-pill-s{ color:#7DBEFF; } .rj-pill-w{ color:var(--brass); }
.rj-strip{ position:relative; height:28px; } .rj-strip-line{ position:absolute; left:0; right:0; top:13px; height:2px; background:var(--border); }
.rj-sdot{ position:absolute; top:6px; transform:translateX(-50%); }
.rj-strip-ax{ display:flex; justify-content:space-between; font-size:11px; color:var(--text-dim); }
.rj-daygrid{ display:flex; flex-wrap:wrap; gap:16px; align-items:flex-start; }
.rj-evs{ flex:999 1 560px; min-width:0; } .rj-aside{ flex:1 1 300px; min-width:0; display:flex; flex-direction:column; gap:14px; }
.rj-side{ display:flex; flex-direction:column; gap:8px; } .rj-side p{ font-size:13.5px; line-height:1.5; }
.rj-evlist{ list-style:none; display:flex; flex-direction:column; }
.rj-ev{ display:grid; grid-template-columns:52px 24px minmax(0,1fr); column-gap:10px; }
.rj-ev-time{ font-size:12.5px; color:#B8BFC8; padding-top:13px; }
.rj-rail{ display:flex; flex-direction:column; align-items:center; } .rj-rail-l{ width:2px; flex:1; min-height:14px; background:var(--border); } .rj-rail-l.off{ background:transparent; }
.rj-node{ width:13px; height:13px; border-radius:50%; flex:none; background:var(--green); }
.rj-ev-broken .rj-node{ background:var(--red); } .rj-ev-look .rj-node,.rj-ev-warn .rj-node{ background:var(--brass); } .rj-ev-stop .rj-node{ background:var(--bg); border:2.5px solid #7DBEFF; } .rj-ev-alarm .rj-node{ background:var(--bg); border:2.5px solid var(--red); }
.rj-ev-card{ margin:5px 0 9px; padding:11px 13px; border-radius:11px; border:1px solid var(--border); background:var(--panel-alt); display:flex; flex-direction:column; gap:7px; }
.rj-ev-broken .rj-ev-card{ border-color:rgba(229,99,106,.45); background:rgba(229,99,106,.07); } .rj-ev-look .rj-ev-card{ border-color:rgba(201,162,39,.45); }
.rj-ev-stop .rj-ev-card{ border-color:rgba(125,190,255,.4); background:rgba(125,190,255,.06); } .rj-ev-alarm .rj-ev-card,.rj-ev-warn .rj-ev-card{ background:transparent; }
.rj-ev-top{ display:flex; justify-content:space-between; gap:10px; align-items:baseline; } .rj-ev-title{ font-size:14px; font-weight:600; }
.rj-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.rj-chip{ display:inline-flex; align-items:center; gap:5px; font-size:12px; border-radius:999px; padding:3px 9px; background:var(--bg); color:#B8BFC8; }
.rj-look{ font-size:12.5px; color:var(--brass); } .rj-look a,.rj-open{ font-size:12.5px; color:#7DBEFF; }
.rj-kbar{ display:flex; gap:4px; } .rj-kbar span{ flex:1; height:8px; border-radius:2px; background:var(--green); } .rj-kbar span.b{ background:var(--red); }
.rj-own{ display:flex; justify-content:space-between; gap:10px; align-items:center; font-size:13.5px; padding:6px 0; border-bottom:1px solid var(--border-soft); }
.rj-no-on{ background:var(--red-dim) !important; border-color:var(--red) !important; color:var(--text) !important; }
.rj-rulesgrid{ display:flex; flex-wrap:wrap; gap:16px; align-items:flex-start; } .rj-rulesmain{ flex:999 1 600px; min-width:0; display:flex; flex-direction:column; gap:16px; }
.rj-tag b{ font-weight:600; margin-left:4px; font-size:11px; } .rj-tag-on b{ color:var(--green,#3b6d11); } .rj-tag-off{ opacity:.55; border-style:dashed; cursor:help; } .rj-tag-on{ cursor:help; }
.rj-tags{ display:flex; flex-wrap:wrap; gap:8px; } .rj-tag{ font-size:12.5px; padding:6px 11px; border-radius:999px; background:var(--bg); border:1px solid var(--border); }
.rj-badge{ font-size:11.5px; font-weight:600; border-radius:999px; padding:2px 9px; border:1px solid; white-space:nowrap; }
.rj-badge-exact{ color:var(--green); border-color:rgba(63,182,139,.45); } .rj-badge-estimate{ color:var(--brass); border-color:rgba(201,162,39,.45); } .rj-badge-tick{ color:#B8BFC8; border-color:var(--border); }
.rj-badge-txt{ display:block; font-size:11.5px; font-weight:500; margin-top:3px; } .rj-badge-txt.rj-badge-exact{ color:var(--green); } .rj-badge-txt.rj-badge-estimate{ color:var(--brass); } .rj-badge-txt.rj-badge-tick{ color:#B8BFC8; }
.rj-rc{ border:1px solid var(--border); border-radius:12px; padding:14px 16px; background:var(--panel-alt); display:flex; flex-direction:column; gap:12px; margin-top:10px; }
.rj-rc.off{ opacity:.6; }
.rj-rc-head{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; align-items:flex-start; } .rj-rc-t{ font-size:15px; font-weight:600; }
.rj-rc-body{ display:flex; flex-wrap:wrap; gap:14px; align-items:flex-end; }
.rj-field{ display:flex; flex-direction:column; gap:6px; border:0; } .rj-field label,.rj-field legend{ font-size:12.5px; color:#B8BFC8; }
.rj-field input[type=number]{ width:100px; } .rj-field-wide{ flex:1 1 320px; } .rj-field-wide input{ width:100%; }
.rj-checks{ display:flex; flex-wrap:wrap; gap:6px 14px; font-size:13px; } .rj-checks label{ display:inline-flex; align-items:center; gap:6px; color:var(--text); }
.rj-checks-wide{ max-height:180px; overflow:auto; padding:8px; border:1px solid var(--border); border-radius:8px; background:var(--bg); }
.rj-on{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:#B8BFC8; }
.rj-how{ list-style:none; display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:8px; width:100%; }
.rj-how li{ background:var(--bg); border-radius:9px; padding:10px; display:flex; flex-direction:column; gap:3px; } .rj-how-t{ font-size:13px; font-weight:600; }
.rj-outcomes{ display:flex; flex-wrap:wrap; gap:14px; font-size:12.5px; width:100%; } .rj-outcomes span{ display:inline-flex; align-items:center; gap:6px; }
.rj-howline{ width:100%; }
.rj-adds{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:10px; margin-top:8px; }
.rj-add{ text-align:left; min-height:58px; padding:10px 13px; border:1px dashed var(--border); border-radius:10px; background:transparent; color:var(--text); font:600 13.5px var(--font-body); cursor:pointer; }
.rj-add:hover{ border-color:var(--brass); }
.rj-switch{ display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:44px; cursor:pointer; } .rj-switch span{ display:flex; flex-direction:column; gap:2px; font-size:14px; }
.rj-switch input{ width:20px; height:20px; accent-color:var(--brass); }
.rj-pv{ border:1px solid var(--border); border-radius:10px; padding:10px; display:flex; flex-direction:column; gap:8px; font-size:13px; opacity:.55; } .rj-pv.on{ border-color:var(--brass); opacity:1; }
.rj-pv-row{ display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"k k" "v c"; align-items:center; column-gap:10px; row-gap:3px; padding:9px 12px; border:1px solid var(--border); border-radius:8px; background:rgba(255,255,255,0.03); }
.rj-pv-k{ grid-area:k; font-size:11px; letter-spacing:.02em; } .rj-pv-v{ grid-area:v; font-size:15px; } .rj-pv-row .rj-st{ grid-area:c; justify-self:end; }
.rj-st{ display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:600; line-height:1.4; padding:1px 8px 1px 6px; border-radius:999px; white-space:nowrap; } .rj-st{ cursor:help; } .rj-st i{ width:8px; height:8px; border-radius:50%; background:currentColor; display:inline-block; }
.rj-st-g{ color:var(--green); background:var(--green-dim); } .rj-st-y{ color:var(--amber); background:var(--amber-dim); } .rj-st-n{ color:var(--text-dim); background:rgba(128,128,128,0.14); } .rj-st-r{ color:var(--red); background:rgba(229,99,106,0.14); }
.rj-mini-parts{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; } .rj-mini-part{ display:inline-flex; align-items:center; gap:8px; padding:3px 8px; border:1px solid var(--border); border-radius:8px; background:rgba(255,255,255,0.03); }
/* the patrol's view of a trader (community member list) */
.rj-mini{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; font-size:12px; } .rj-mini-days{ display:inline-flex; gap:3px; } .rj-mini-days span{ width:8px; height:8px; border-radius:50%; background:var(--green); }
.rj-mini-days span.w{ background:var(--brass); } .rj-mini-days span.s{ background:transparent; border:2px solid #7DBEFF; } .rj-mini-days span.b{ background:var(--red); }
.rj-fa-mid{ transform:translateX(-50%); } .rj-fa-end{ transform:translateX(-100%); } .rj-fa-start{ transform:none; }
.rj-field input[type=number],.rj-field input[type=text]{ background:var(--bg); color:var(--text); border:1px solid var(--border); border-radius:8px; padding:7px 10px; font:14px var(--font-body); min-height:36px; }
.rj-checks input,.rj-on input{ accent-color:var(--brass); }
.rj-cardhead .rj-link{ font-size:13px; }

/* Kept out of imports: the trades of one delete action (12 Nov 2026) */
.purged-group { border-bottom:1px solid var(--border); padding-bottom:4px; margin-bottom:4px; }
.purged-group .today-list-row { gap:8px; }
.purged-scroll { max-height:calc(100vh - 470px); min-height:120px; border:1px solid var(--border); border-radius:8px; margin-top:6px; }

/* Trading temperament (doc 57, 13 Nov 2026) — a tab under Discipline */
.tm-page{ display:flex; flex-direction:column; gap:16px; }
.tm-head{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:14px; }
.tm-h1{ font-family:var(--font-display); font-size:26px; font-weight:700; margin:4px 0; }
.tm-sub{ color:var(--text-dim); font-size:13.5px; }
.tm-h3{ font-family:var(--font-display); font-size:17px; font-weight:700; }
.tm-p{ font-size:14px; line-height:1.55; color:var(--text); }
.tm-card{ display:flex; flex-direction:column; gap:12px; }
.tm-cardhead,.tm-areahead{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; align-items:center; }
.tm-list{ margin:0; padding-left:18px; color:var(--text-dim); font-size:13.5px; line-height:1.7; }
.tm-actions{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.tm-count{ font-family:var(--font-mono); font-size:12px; color:var(--text-dim); }
.tm-q{ display:flex; flex-direction:column; gap:9px; padding:14px 0; border-top:1px solid var(--border-soft); }
.tm-qtext{ font-size:14.5px; line-height:1.5; display:flex; gap:10px; }
.tm-qno{ flex-shrink:0; width:22px; height:22px; border-radius:50%; border:1px solid var(--border); color:var(--text-dim); font-family:var(--font-mono); font-size:11px; display:inline-flex; align-items:center; justify-content:center; margin-top:1px; }
.tm-q.done .tm-qno{ border-color:var(--brass); color:var(--brass-light); }
.tm-scale{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-left:32px; }
.tm-scale.tm-tones{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.tm-card > .tm-scale{ margin-left:0; }
.tm-opt{ border:1px solid var(--border); background:var(--panel-raised); color:var(--text-dim); padding:9px 8px; border-radius:8px; font-size:12.5px; font-weight:600; cursor:pointer; transition:all .15s; display:flex; flex-direction:column; gap:4px; align-items:center; text-align:center; }
.tm-opt:hover{ border-color:var(--brass); color:var(--text); }
.tm-opt.on{ background:var(--brass-dim); border-color:var(--brass); color:var(--brass-light); }
.tm-opt b{ font-weight:700; } .tm-opt span{ font-weight:500; font-size:12px; color:var(--text-dim); }
.tm-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:14px; }
.tm-area{ display:flex; flex-direction:column; gap:10px; border-left:3px solid var(--border); }
.tm-area.tm-low{ border-left-color:var(--green); } .tm-area.tm-mid{ border-left-color:var(--brass); } .tm-area.tm-high{ border-left-color:var(--amber); }
.tm-chip{ font-family:var(--font-mono); font-size:11px; letter-spacing:.04em; text-transform:uppercase; padding:3px 8px; border-radius:6px; }
.tm-chip.tm-low{ background:var(--green-dim); color:var(--green); } .tm-chip.tm-mid{ background:var(--brass-dim); color:var(--brass-light); } .tm-chip.tm-high{ background:var(--amber-dim); color:var(--amber); }
.tm-row{ display:flex; align-items:center; gap:10px; font-size:13px; }
.tm-lab{ width:118px; flex-shrink:0; color:var(--text-dim); }
.tm-val{ color:var(--text); } .tm-val.dim{ color:var(--text-faint); }
.tm-meter{ display:inline-flex; gap:3px; }
.tm-meter i{ width:16px; height:6px; border-radius:3px; background:var(--border); display:block; }
.tm-meter i.on{ background:var(--brass); }
.tm-gap{ font-size:13px; padding:8px 10px; border-radius:8px; }
.tm-gap.more{ background:var(--amber-dim); color:var(--amber); } .tm-gap.less{ background:var(--green-dim); color:var(--green); }
@media (max-width: 900px){ .tm-scale{ grid-template-columns:repeat(2,minmax(0,1fr)); margin-left:0; } .tm-scale.tm-tones{ grid-template-columns:1fr; } }

/* Total open P&L row under Open positions (13 Nov 2026) */
.on-table tfoot .on-total td { border-top: 2px solid var(--line, #8884); padding-top: 8px; }

/* overnight range drawn as a box on the chart (14 Nov 2026) */
.night-box{position:absolute;box-sizing:border-box;background:rgba(143,168,255,.10);border:1px solid rgba(143,168,255,.55);border-radius:2px;pointer-events:none;}
.night-box .night-lbl{position:absolute;left:4px;top:2px;font-size:10px;line-height:1;color:var(--text-dim);white-space:nowrap;}

/* co-pilot clip (15 Nov 2026) */
.cp-vbtn{ margin-top:8px; background:transparent; border:1px solid var(--border,#3a4553); color:var(--text,#e6edf3); border-radius:8px; padding:5px 10px; font-size:12px; cursor:pointer; }
.cp-vbtn:hover{ border-color: var(--amber); }
.cp-video{ position:fixed; inset:0; background:rgba(0,0,0,.65); z-index:10050; display:flex; align-items:center; justify-content:center; }
.cp-video-box{ background:#0d1116; border:1px solid #3a4553; border-radius:12px; width:min(720px,92vw); max-height:92vh; overflow:auto; }
.cp-video-top{ display:flex; justify-content:space-between; align-items:center; padding:10px 14px; }
.cp-video-box video{ width:100%; display:block; background:#000; max-height:60vh; }
.cp-video-note{ padding:10px 14px; }

.cp-vid{ margin:2px 0 8px; } .cp-vid video{ width:100%; display:block; border-radius:8px; background:#000; max-height:220px; } .cp-vid .hint{ margin-top:4px; }

.cp-vopt{ display:flex; align-items:center; gap:8px; padding:8px 14px; font-size:12px; color:var(--text-dim,#9aa7b4); cursor:pointer; }

.cp-hist{ margin-top:8px; padding:7px 10px; border:1px solid var(--red-strong,#e5636a); border-radius:7px; color:var(--red-strong,#e5636a); font-weight:700; font-size:12.5px; background:rgba(229,99,106,.08); }

/* fixed statement at the top of the co-pilot (16 Nov 2026) */
.cp-edu{ padding:6px 14px; font-size:11px; letter-spacing:.04em; color: var(--text-faint); background:#0a0d11; border-bottom:1px solid #1d242d; text-align:center; flex-shrink:0; }
/* the co-pilot statement glows softly, with a slow light sweep across the text (16 Nov 2026) */
.cp-edu{ font-weight:600; color: transparent; background: linear-gradient(100deg, #7d8794 0%, #7d8794 38%, #f0d9a0 50%, #7d8794 62%, #7d8794 100%) 0 0 / 250% 100% no-repeat; -webkit-background-clip: text; background-clip: text; border-bottom:0; animation: cp-edu-sweep 5s linear infinite, cp-edu-glow 3.2s ease-in-out infinite; }
@keyframes cp-edu-sweep{ from{ background-position: 120% 0; } to{ background-position: -120% 0; } }
@keyframes cp-edu-glow{ 0%,100%{ filter: drop-shadow(0 0 0 rgba(240,217,160,0)); } 50%{ filter: drop-shadow(0 0 4px rgba(240,217,160,.6)); } }
@media (prefers-reduced-motion: reduce){ .cp-edu{ animation:none; color:#9aa4b0; background:none; } }

/* 16 Nov 2026 (Henrik): the tabs inside a community are small — one line each, no description */
.card-tabs.ct-mini { display:flex !important; flex-wrap:nowrap; overflow-x:auto; gap:5px !important; margin:0 0 12px !important; max-width:none; }
.card-tabs.ct-mini .card-tab { padding:5px 8px; gap:5px; border-radius:8px; align-items:center; flex:1 1 auto; min-width:0; justify-content:center; white-space:nowrap; }
.card-tabs.ct-mini .card-tab.on { box-shadow: inset 0 2px 0 var(--brass-light, #E0BC4A); }
.card-tabs.ct-mini .ct-ic { width:18px; height:18px; border-radius:5px; }
.card-tabs.ct-mini .ct-ic svg { width:12px; height:12px; }
.card-tabs.ct-mini .ct-title { font-size:12px; gap:4px; flex-wrap:nowrap; }
.card-tabs.ct-mini .ct-desc { display:none; }
.card-tabs.ct-mini .ct-badge { padding:0 6px; font-size:10.5px; }

/* 16 Nov 2026: On patrol — My community and Communities I am a member of are two separate boxes */
.patrol-sec { border:1px solid var(--border); border-radius:12px; padding:14px 16px; background: var(--panel-alt, rgba(255,255,255,.02)); }
.patrol-sec .section-title { font-size:15px; }

/* 16 Nov 2026: community tabs one step smaller still, always one line */
.card-tabs.ct-mini .card-tab { padding:4px 7px; gap:4px; }
.card-tabs.ct-mini .ct-ic { display:none; }
.card-tabs.ct-mini .ct-title { font-size:11.5px; }
/* 16 Nov 2026: smallest size for the community tabs — they must fit one line */
.card-tabs.ct-mini { gap:3px !important; }
.card-tabs.ct-mini .card-tab { padding:3px 6px; gap:3px; border-radius:6px; font-size:11px; }
.card-tabs.ct-mini .ct-title { font-size:11px; gap:3px; }
.card-tabs.ct-mini .ct-badge { padding:0 5px; font-size:10px; }
.card-tabs.ct-mini .ct-txt { flex-direction:row; }
/* 16 Nov 2026: community tabs look like buttons — a little shade, an edge and a shadow, like .btn */
.card-tabs.ct-mini .card-tab { background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0) 70%), var(--panel-raised, #232B35); border:1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 3px rgba(0,0,0,.4); font-weight:600; }
.card-tabs.ct-mini .card-tab:hover { border-color: var(--brass); color: var(--brass-light); }
.card-tabs.ct-mini .card-tab:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.card-tabs.ct-mini .card-tab.on { background: linear-gradient(180deg, rgba(224,188,74,.22), rgba(224,188,74,.06)), var(--panel-raised, #232B35); border-color: var(--brass-light, #E0BC4A); color: var(--brass-light, #E0BC4A); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 3px rgba(0,0,0,.4); }
.card-tabs.ct-mini .ct-title { font-weight:600; }

/* 17 Nov 2026 (Henrik): My day must fit on ONE line with the P&L label, so everything in it is a little smaller */
.md-line{ gap:8px; padding:8px 12px; }
.md-line .md-it{ gap:5px; }
.md-line .md-it b{ font-size:12.5px; }
.md-line .md-k{ font-size:10.5px; }
.md-line .md-msg{ font-size:11.5px; }
.md-line .md-link{ font-size:11.5px; }
.md-line .discipline-pill{ font-size:11px; padding:2px 8px; }
.md-mini{ width:44px; }

/* 17 Nov 2026 (Henrik): the community that is shown (Hide button) has a yellow outline around its line and its panel */
.comm-block{ border:1.5px solid transparent; border-radius:12px; padding:0 14px; }
.comm-block.comm-shown{ border-color: var(--brass-light); background: rgba(224,183,58,.04); box-shadow: 0 0 0 3px rgba(224,183,58,.10); margin:6px 0; }
.comm-block.comm-shown > .comm-line{ border-bottom:none !important; }

/* the Hide button (community is shown): yellow outline; Show stays solid yellow */
.comm-hide{ background: transparent !important; border:1.5px solid var(--brass-light) !important; color: var(--brass-light) !important; font-weight:600; }
.comm-hide:hover{ background: rgba(224,188,74,.14) !important; }

/* 17 Nov 2026 (Henrik): Members — Rule journey and Alerts are two clearly separate sections under each member: own label, a divider line, a little air */
.roster-table .rj-mini, .roster-table .alert-mini{ font-size:12px; }
.roster-table .rj-mini > b, .roster-table .alert-mini > .sub-label{ display:inline-block; min-width:92px; font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--text-faint); }
.roster-table .alert-sub td{ border-top:1px dashed var(--border) !important; padding-top:9px !important; padding-bottom:12px !important; }
.roster-table tr.sub-row:has(.rj-mini) td{ padding-top:8px !important; padding-bottom:8px !important; }

/* 17 Nov 2026 (Henrik): the Rule journey summary under each member on ONE line (shorter texts, tighter chips; scrolls sideways if the window is very narrow) */
.roster-table .rj-mini{ flex-wrap:wrap; gap:8px; }
.roster-table .rj-mini-parts{ flex-wrap:wrap; gap:6px; }
.roster-table .rj-mini-part{ padding:2px 7px; font-size:11.5px; gap:6px; white-space:nowrap; }

/* 17 Nov 2026 (Henrik): the suggestion list of a field with a datalist (Post a trade → index) is drawn by the browser — dark like the rest of the app */
input[list], .tp-form input{ color-scheme: dark; }
datalist, datalist option{ background: var(--panel); color: var(--text); }

/* Post a trade → index: our own suggestion list, dark like the rest of the app */
.ix-wrap{ position:relative; display:inline-block; }
.ix-list{ position:absolute; top:100%; left:0; min-width:100%; z-index:60; margin-top:3px; background: var(--panel); border:1px solid var(--border); border-radius:8px; box-shadow:0 8px 22px rgba(0,0,0,.45); overflow:hidden; }
.ix-list[hidden]{ display:none; }
.ix-opt{ padding:7px 12px; color: var(--text); font-size:13px; cursor:pointer; }
.ix-opt:hover{ background: var(--brass-dim); color: var(--brass-light); }

/* co-pilot mute switch (20 Nov 2026) */
.cp-mute{ margin:10px 0 4px; padding:9px 12px; border:1px solid var(--border); border-radius:10px; background: var(--panel-alt); font-size:12.5px; }
.cp-mute label{ display:flex; align-items:center; gap:8px; cursor:pointer; }
.cp-mute-hint{ margin-top:4px; font-size:11.5px; color: var(--text-dim); line-height:1.45; }
.cp-mute.on{ border-color: var(--brass); }
.cp-tab.muted .cp-led{ background: var(--text-faint); box-shadow:none; animation:none; }
.cp-tab.muted .cp-tab-txt{ color: var(--text-faint); }

/* co-pilot settings behind a gear in the header (20 Nov 2026) */
.cp-head .cp-gear{ background:none; border:1px solid #2a323d; color: var(--text-dim); border-radius:6px; height:26px; padding:0 9px; cursor:pointer; font-size:12px; }
.cp-head .cp-gear:hover, .cp-head .cp-gear.on{ color: var(--brass-light); border-color: var(--brass); }
.cp-settings{ gap:14px; }
.cp-set-title{ font-family: var(--font-mono); font-size:11.5px; letter-spacing:.18em; text-transform:uppercase; color: var(--brass-light); }
.cp-set-row{ display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border:1px solid #1d242d; border-radius:10px; background:#0a0d11; cursor:pointer; font-size:13px; }
.cp-set-row input{ margin-top:3px; }
.cp-set-why{ display:block; margin-top:3px; font-size:11.8px; color: var(--text-dim); line-height:1.5; font-weight:400; }
.cp-mutebar{ margin:10px 12px 0; padding:8px 10px; border:1px solid var(--brass); border-radius:8px; font-size:12px; color: var(--text-dim); }
.confirm-back{ z-index:10000; }
.confirm-box{ max-width:420px; width:100%; }
.confirm-q{ font-size:15px; line-height:1.5; color: var(--text); }
.confirm-actions{ justify-content:flex-end; }

/* 22 Nov 2026 (Henrik): the three Patrol tabs (On patrol · Communities · Insights) are half as tall and run the full width of the page */
.card-tabs.ct-patrol { max-width:none; gap:10px; }
.card-tabs.ct-patrol .card-tab { padding:7px 14px; gap:10px; border-radius:10px; align-items:center; min-width:0; }
.card-tabs.ct-patrol .card-tab.on { box-shadow: inset 0 2px 0 var(--brass-light, #E0BC4A); }
.card-tabs.ct-patrol .ct-ic { width:28px; height:28px; border-radius:8px; }
.card-tabs.ct-patrol .ct-ic svg { width:16px; height:16px; }
.card-tabs.ct-patrol .ct-txt { flex-direction:column; align-items:flex-start; gap:1px; min-width:0; overflow:hidden; }   /* 26 Nov 2026: title above, one short line below — nothing cut off */
.card-tabs.ct-patrol .ct-title { flex-wrap:nowrap; white-space:nowrap; font-size:15px; }
.card-tabs.ct-patrol .ct-desc { flex:1 1 auto; min-width:0; white-space:normal; font-size:12px; line-height:1.3; }

/* Discipline tags (doc 102, 24 Nov 2026) */
.dt-card{ display:flex; flex-direction:column; gap:10px; }
.dt-score{ display:flex; align-items:baseline; gap:10px; } .dt-score b{ font-size:34px; }
.dt-mrow{ display:grid; grid-template-columns:minmax(180px,1.2fr) 2fr 56px; gap:10px; align-items:center; }
.dt-bar{ height:6px; border-radius:3px; background:var(--border); display:block; overflow:hidden; } .dt-bar i{ display:block; height:100%; background:var(--brass); }
.dt-tag{ display:grid; grid-template-columns:minmax(200px,2fr) minmax(140px,1fr) minmax(150px,1fr); gap:12px; align-items:center; padding:8px 0; border-top:1px solid var(--border); }
.dt-tag-name{ font-weight:600; } .dt-tag-sw{ display:flex; align-items:center; gap:8px; }
.dt-chip{ display:inline-block; padding:1px 8px; border-radius:10px; font-size:11px; font-weight:600; border:1px solid var(--border); white-space:nowrap; }
.dt-bronze{ color:#c98a52; border-color:#c98a52; } .dt-silver{ color:#b9c3d3; border-color:#b9c3d3; } .dt-gold{ color:#e6b73a; border-color:#e6b73a; }
@media (max-width:760px){ .dt-tag,.dt-mrow{ grid-template-columns:1fr; } }

/* Discipline medal beside the name (doc 102, 24 Nov 2026) */
.dt-namerow{ display:flex; align-items:center; gap:8px; } .dt-medal{ display:inline-flex; align-items:center; line-height:0; cursor:pointer; }
.dt-ladder{ width:100%; border-collapse:collapse; } .dt-ladder th{ text-align:left; font-weight:500; color:var(--text-faint); font-size:12px; padding:4px 8px; }
.dt-ladder td{ padding:8px; border-top:1px solid var(--border); vertical-align:top; } .dt-ladder tr.dt-here td{ background:rgba(230,183,58,.08); }

.dt-medal-big{ display:inline-flex; align-items:center; gap:8px; line-height:0; } .dt-medal-big b{ line-height:1.2; }

.sub-link{ color:inherit; text-decoration:underline dotted; text-underline-offset:2px; cursor:pointer; } .sub-link:hover{ color:var(--text, inherit); text-decoration:underline; }

/* Top bar stays on one line on every page (24 Nov 2026): on the Patrol pages the longer line under the name squeezed the pills on the right,
   so "Be aware" and "Acknowledged" wrapped to two lines and the bar looked misaligned until another page was opened.
   The right side keeps its size; the name block gives way and cuts its lines with … instead of wrapping. */
.main > .topbar{ gap:16px; }
#traderId{ flex:1 1 0; min-width:0; }
#traderId .page-title, #traderId .tagline, #traderId .page-sub{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#traderId .dt-namerow .page-title{ min-width:0; }
.topbar-right{ flex:0 0 auto; }
.topbar-tray{ flex-shrink:0; }
.topbar-tray .discipline-pill, .topbar-tray .aware-pill, .topbar-tray .feed-pill{ white-space:nowrap; flex-shrink:0; }
.topbar-tray .edu-pill{ flex-shrink:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.sub-eye{ display:inline-flex; vertical-align:-2px; margin-right:5px; opacity:.85; }

/* Index cards: points line under the kr line (24 Nov 2026) */
.ix-pts{ margin-top:2px; color: var(--text-faint); }
/* Results by period (Performance, last tab) */
.res-wrap .res-controls{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin-bottom:14px; }
.res-wrap .res-table{ width:100%; border-collapse:collapse; font-size:13px; }
.res-wrap .res-table th{ text-align:left; font-weight:600; color: var(--text-dim); font-size:11.5px; padding:6px 10px; border-bottom:1px solid var(--border); }
.res-wrap .res-table th.num, .res-wrap .res-table td.num{ text-align:right; font-family: var(--font-mono); white-space:nowrap; }
.res-wrap .res-table td{ padding:7px 10px; border-bottom:1px solid var(--border-soft); }
.res-wrap .res-table tr.res-total td{ font-weight:700; background: var(--panel-alt); }
.res-wrap .res-table tr.res-sub td{ color: var(--text-dim); font-size:12px; }
.res-wrap .res-table tr.res-sub td:first-child{ padding-left:28px; }
/* Results by period: header row stays visible while the list scrolls */
.res-wrap .table-scroll{ max-height: calc(100vh - 330px); min-height: 260px; }
.res-wrap .res-table thead th{ position:sticky; top:0; z-index:2; background: var(--panel); box-shadow: 0 1px 0 var(--border); }

/* Alert card: grey background, dark text (25 Nov 2026) */
.alert-card{ background:#cfd3d9; color:#14181d; border:1px solid #aeb4bd; border-radius:10px; padding:10px 12px; margin:6px 0 2px; }
.alert-card .card-label{ display:block; color:#4a525c; font-size:11px; }
.alert-card b{ display:block; font-size:15px; font-weight:600; color:#14181d; }
.alert-card b small{ font-weight:400; color:#4a525c; font-size:11px; }
.alert-card .ac-bad{ color:#9b1c24; }
.alert-card .ac-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.alert-card .ac-chip{ font-size:12px; padding:2px 9px; border-radius:8px; background:#e6e9ed; color:#14181d; }
.alert-card .ac-long{ background:#bfe3d0; color:#0f4a33; } .alert-card .ac-short{ background:#f1c9cc; color:#7a141b; }
.alert-card .ac-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(105px,1fr)); gap:10px; padding:10px 0; border-top:1px solid #aeb4bd; border-bottom:1px solid #aeb4bd; }
.alert-card .ac-bar{ position:relative; height:8px; border-radius:4px; background:#e6e9ed; margin:12px 0 8px; }
.alert-card .ac-fill{ position:absolute; left:0; top:0; height:8px; border-radius:4px; background:#9b1c24; }
.alert-card .ac-mark{ position:absolute; top:-3px; height:14px; width:2px; background:#14181d; }
.alert-card .ac-foot{ font-size:12px; color:#4a525c; }
.alert-card .ac-crit{ background:#9b1c24; color:#fff; font-weight:600; } .alert-card .ac-warn{ background:#b7791f; color:#fff; font-weight:600; }
.alert-card .ac-note{ font-size:12px; color:#14181d; margin:8px 0 0; padding:5px 8px; background:#e6e9ed; border-radius:6px; }
.alert-card .ac-barlbl{ position:relative; height:14px; font-size:11px; color:#4a525c; margin-bottom:6px; }
.alert-card .ac-barlbl span{ position:absolute; top:0; transform:translateX(-50%); white-space:nowrap; } .alert-card .ac-barlbl span.r{ right:0; left:auto; transform:none; }

/* Ticket chat drops down inside the ticket (25 Nov 2026) */
.tk-inline{ margin:10px 0 4px; padding:12px 14px; border:1px solid var(--border); border-radius:10px; background: var(--panel-alt); width:100%; box-sizing:border-box; }
.tk-inline .section-title{ margin-bottom:4px; }

/* Ticket chat editor: same black field with the gold edge as Post a message (25 Nov 2026) */
.tk-inline .chat-input textarea, #tkText{ background:#070A0E; border:2px solid rgba(224,188,74,.60); color:#F2F5F9; min-height:96px; font-size:14.5px; padding:11px 13px; border-radius:10px; line-height:1.5; box-shadow: inset 0 2px 6px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.4); transition: border-color .15s, box-shadow .15s; }
#tkText::placeholder{ color:#8C97A6; opacity:1; }
#tkText:hover{ border-color: rgba(224,188,74,.85); }
#tkText:focus{ outline:none; border-color:#E0BC4A; box-shadow: 0 0 0 3px rgba(224,188,74,.20), inset 0 2px 6px rgba(0,0,0,.6); }
.tk-inline .chat-input{ align-items:flex-end; }

/* trader's ticket: who took it */
.taken-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:6px 0 8px;padding:6px 10px;border-radius:8px;background:rgba(46,160,90,.14);border:1px solid rgba(46,160,90,.45);color:#5fd68a;font-weight:600;font-size:13px;}
.taken-line .tl-in{color:#8fbf9f;font-weight:400;}
.taken-line .btn{margin-left:auto;}

/* 25 Nov 2026: patrol switches — green when on / online, red when off / offline ("Appear offline" is red when it is on) */
.pst-sw.sw-good{ color: var(--green); } .pst-sw.sw-bad{ color: var(--red); }
.pst-sw.sw-good .toggle.on{ background: var(--green-dim); border-color: rgba(63,182,139,.55); }
.pst-sw.sw-good .toggle.on::after{ background: var(--green); }
.pst-sw.sw-bad .toggle{ background: var(--red-dim); border-color: rgba(229,99,106,.5); }
.pst-sw.sw-bad .toggle::after{ background: var(--red); }

/* 25 Nov 2026: community online switches — green online, red offline */
.toggle.sw-good.on{ background: var(--green-dim); border-color: rgba(63,182,139,.55); } .toggle.sw-good.on::after{ background: var(--green); }
.toggle.sw-bad{ background: var(--red-dim); border-color: rgba(229,99,106,.5); } .toggle.sw-bad::after{ background: var(--red); }
.sw-txt-good{ color: var(--green) !important; font-weight:600; } .sw-txt-bad{ color: var(--red) !important; font-weight:600; }

/* 25 Nov 2026: a clearer line between alert tickets — thicker, brass-tinted, with room above and below */
.alert-feed-item{ padding:18px 0; border-bottom:2px solid rgba(201,162,39,.38); }
.alert-feed-item:first-child{ padding-top:6px; }
.alert-feed-item:last-child{ border-bottom:none; }

/* 25-26 Nov 2026: Copy button in the headline of each Results section (same small look as the buttons on the statistic cards) */
.res-copy{ margin-left:10px; padding:1px 8px; font-size:11px; line-height:1.6; border-radius:6px; border:1px solid var(--border); background:var(--panel-alt); color:var(--text-dim); cursor:pointer; font-weight:500; }
.res-copy:hover{ color:var(--brass-light); border-color:var(--brass); }

/* 27 Nov 2026: Be aware master switch (green on, red off) */
.aw-kinds .section-title{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.aw-kinds .aw-master{ margin-left:auto; }
.aw-kinds .aw-master .toggle:not(.on){ background:rgba(214,69,80,.18); border-color:rgba(214,69,80,.55); }
.aw-kinds .aw-master .toggle:not(.on)::after{ background:var(--red); }
.aw-kinds.master-off .aw-kinds-row{ opacity:.45; }
.aw-kinds .aw-master-note{ margin:0 0 8px; color:var(--red); }
#awarePill.is-off{ color:var(--red); border-color:rgba(214,69,80,.5); }

/* 27 Nov 2026 (Henrik): writing boxes are no longer gold — dark recessed box, blue-grey outline, blue focus (gold stays for buttons/active tabs) */
.field textarea,
.chat-input textarea,
.ms-input textarea,
.crowd-concl textarea,
.msg-compose textarea,
.msg-reply-box textarea,
.faq-item textarea,
.modal textarea,
.ied textarea,
.sv-card textarea,
.tk-inline .chat-input textarea,
#tkText,
#mp_text{ background:#070A0E; border:1.5px solid #4A5565; box-shadow: inset 0 1px 3px rgba(0,0,0,.55); }
.field textarea:focus,
.chat-input textarea:focus,
.ms-input textarea:focus,
.crowd-concl textarea:focus,
.msg-compose textarea:focus,
.msg-reply-box textarea:focus,
.faq-item textarea:focus,
.modal textarea:focus,
.ied textarea:focus,
.sv-card textarea:focus,
.tk-inline .chat-input textarea:focus,
#tkText:focus,
#mp_text:focus{ outline:none; border-color:#6C86A8; box-shadow: inset 0 1px 3px rgba(0,0,0,.55), 0 0 0 3px rgba(108,134,168,.22); }

/* Small corner note for alerts from other traders: no pop-up to press away, fades after 6 seconds (28 Nov) */
.soft-alert{ position:fixed; right:20px; bottom:20px; z-index:9000; display:flex; align-items:center; gap:10px; max-width:420px; padding:11px 14px; background: var(--panel-raised, #1C232D); border:1px solid var(--border); border-left:3px solid var(--brass-light, #E0BC4A); border-radius:10px; font-size:13px; color: var(--text); opacity:0; transform:translateY(8px); pointer-events:none; transition:opacity .25s, transform .25s; }
.soft-alert.show{ opacity:1; transform:none; pointer-events:auto; }
.soft-alert .sa-dot{ width:9px; height:9px; border-radius:50%; background:#E0A93B; flex:none; }
.soft-alert .sa-dot.crit{ background:#F25C54; }
.soft-alert .sa-text{ flex:1; }

/* full screen wrapper: the frame and the app's windows share one full-screen element (28 Nov 2026) */
#tgFsHost{ display:flex; flex-direction:column; flex:1; min-height:0; }
#tgFsHost .tg-frame{ flex:1; }
#tgFsHost:fullscreen{ background:var(--bg); }
#tgFsHost:fullscreen .tg-frame{ height:100vh; }

/* X in the upper right corner of the share windows (29 Nov 2026) */
.ex-x-row{ position:sticky; top:0; height:0; z-index:5; text-align:right; }
.ex-x{ position:relative; top:2px; width:34px; height:34px; border-radius:50%; border:1px solid var(--border,#3c4a5b); background:#1b232d; color:#F2F5F9; font-size:16px; line-height:1; cursor:pointer; }
.ex-x:hover{ background:#2a3441; border-color:#E0BC4A; }

/* the tagline under Share my tagline stands out (29 Nov 2026) */
.tag-now{ margin:4px 0 2px 24px; font-size:15px; font-weight:700; font-style:italic; color:#F2F5F9; text-transform:none; letter-spacing:0; }
.tag-now .tag-none{ font-size:12.5px; font-weight:500; font-style:normal; color:var(--text-faint,#8E99A8); }

/* Community view of the Rule journey (30 Nov 2026): overall meter (Full picture) + four measures, red / amber / green */
.rjc{ display:flex; flex-direction:column; gap:10px; padding:4px 0; }
.rjc-title{ font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--text-dim); } .rjc-title .hint{ text-transform:none; letter-spacing:0; font-weight:500; }
.rjc-meter-h{ display:flex; justify-content:space-between; align-items:baseline; font-size:12px; color:var(--text-dim); margin-bottom:4px; } .rjc-meter-h b{ font-size:16px; }
.rjc-bar{ position:relative; height:12px; border-radius:999px; background:linear-gradient(90deg, var(--red) 0%, var(--amber) 50%, var(--green) 100%); }
.rjc-bar i{ position:absolute; top:-4px; width:6px; height:20px; margin-left:-3px; border-radius:3px; background:#fff; box-shadow:0 0 0 2px rgba(0,0,0,.55); }
.rjc-row{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:8px; }
@media (max-width:760px){ .rjc-row{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
.rjc-cell{ display:flex; flex-direction:column; gap:4px; padding:8px 10px; border:1px solid var(--border); border-left-width:4px; border-radius:8px; background:rgba(255,255,255,0.03); }
.rjc-cell .rjc-k{ font-size:11px; color:var(--text-dim); line-height:1.3; } .rjc-cell b{ font-size:17px; }
.rjc-cell.rjc-g{ border-left-color:var(--green); } .rjc-cell.rjc-g b, b.rjc-g{ color:var(--green); }
.rjc-cell.rjc-y{ border-left-color:var(--amber); } .rjc-cell.rjc-y b, b.rjc-y{ color:var(--amber); }
.rjc-cell.rjc-r{ border-left-color:var(--red); } .rjc-cell.rjc-r b, b.rjc-r{ color:var(--red); }
.rjc-cell.rjc-n b, b.rjc-n{ color:var(--text-dim); }

.rj-pv .rjc-row{ grid-template-columns:repeat(2, minmax(0,1fr)); }
.rj-pv.on, .rj-pv.dim{ gap:10px; }
/* 1 Dec 2026 (Henrik): name and tagline in the top bar in dark grey */
#traderId .page-title, .topbar #traderId .page-title{ color:#6B7480 !important; }
#traderId .tagline, .topbar #traderId .tagline{ color:#5B6472 !important; opacity:1; }

/* Sector rotation (1 Dec 2026) */
.sec-bar{ gap:10px; flex-wrap:wrap; align-items:center; margin:12px 0 8px; }
.sec-intro{ margin:0 0 12px; line-height:1.5; color:#C3CAD3; max-width:980px; }
.sec-table td, .sec-table th{ white-space:nowrap; }
.sec-table td.sec-c{ text-align:right; font-family:var(--font-mono); font-size:12.5px; color:var(--text); }
.sec-table th.sec-h{ cursor:pointer; text-align:right; } .sec-table th.sec-h:first-child{ text-align:left; }
.sec-table th.sec-h.on{ color:var(--brass-light, #E0BC4A); }
.sec-up{ color:var(--green); font-weight:700; } .sec-dn{ color:var(--red); font-weight:700; }
.sec-table tr.sec-bench td{ border-top:2px solid var(--border); color:var(--text-dim); }

/* Trade score (doc 117, 1 Dec 2026) */
.ts-bar{ display:inline-flex; width:140px; height:8px; border-radius:4px; background:var(--panel-raised); overflow:hidden; vertical-align:middle; }
.ts-bar i{ display:block; height:100%; }
.ts-bar .ts-rules{ background:#3FB68B; } .ts-bar .ts-plan{ background:#5B9BD5; } .ts-bar .ts-levels{ background:#C9A227; } .ts-bar .ts-exec{ background:#A78BFA; } .ts-bar .ts-journal{ background:#8B949E; }
.ts-score{ font-family:var(--font-mono); font-size:14px; } .ts-score.green{ color:var(--green); } .ts-score.amber{ color:var(--amber); } .ts-score.red{ color:var(--red); }
.num-lg.green{ color:var(--green); } .num-lg.amber{ color:var(--amber); } .num-lg.red{ color:var(--red); }
.ts-how summary{ cursor:pointer; }
