/* Day desk page — compact chrome + viewport scroll split */
.cf2-main--day-desk {
  height: 100vh;
  overflow: hidden;
}

.cf2-main--day-desk .cf2-content--flush.daydesk-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 6px;
  padding-bottom: 0;
}

.daydesk-page-foot {
  flex-shrink: 0;
  padding: 10px var(--page-pad-x) 14px;
  border-top: 1px solid #1a2332;
  background: #0b0f14;
}
.daydesk-page-foot .daydesk-meta { margin: 0 0 6px; }
.daydesk-page-foot .daydesk-disclaimer { margin: 0; }

.cf2-topbar--day-desk {
  height: auto;
  min-height: 40px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.daydesk-topbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}
.daydesk-topbar-title {
  color: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.daydesk-topbar-sep {
  color: #374151;
  flex-shrink: 0;
}
#daydesk-meta {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.daydesk-strip {
  flex-shrink: 0;
  margin-bottom: 0;
  padding: 6px 10px;
  border-radius: 6px 6px 0 0;
  background: #0f1419;
  border: 1px solid #2a3749;
  border-bottom: none;
}
.daydesk-strip--trade { border-color: #166534; box-shadow: inset 3px 0 0 #22c55e; }
.daydesk-strip--caution { border-color: #a16207; box-shadow: inset 3px 0 0 #fbbf24; }
.daydesk-strip--notrade { border-color: #991b1b; box-shadow: inset 3px 0 0 #f87171; }

.daydesk-strip-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.daydesk-strip-row::-webkit-scrollbar { display: none; }

.daydesk-strip-status {
  display: contents;
}

.daydesk-state {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.daydesk-state--trade { color: #4ade80; }
.daydesk-state--caution { color: #fbbf24; }
.daydesk-state--notrade { color: #f87171; }

.daydesk-why {
  font-size: 10px;
  color: #9ca3af;
  white-space: nowrap;
  flex-shrink: 0;
}

.daydesk-strip-sep {
  color: #374151;
  font-size: 10px;
  flex-shrink: 0;
  user-select: none;
}

.daydesk-meta { font-size: 0.84rem; color: var(--muted2); margin: 0; }

.daydesk-safety-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.daydesk-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: #1a2332;
  font-size: 9px;
  color: #94a3b8;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.06);
  line-height: 1.5;
}

.daydesk-sectors-inline {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.daydesk-sectors-inline:empty { display: none; }

.daydesk-sectors-inline::before {
  content: "Sectors";
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-right: 2px;
}

.daydesk-sector-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 9px;
  color: #9ca3af;
  white-space: nowrap;
  line-height: 1.5;
}
.daydesk-sector-chip strong {
  color: #e5e7eb;
  font-weight: 700;
  font-size: 10px;
}

/* legacy sector cards — unused on desk page */
.daydesk-sector-row {
  display: none;
}

.daydesk-empty {
  padding: 2rem;
  text-align: center;
  color: #9ca3af;
  border: 1px dashed #374151;
  border-radius: 10px;
}

.daydesk-disclaimer { margin-top: 1rem; font-size: 0.75rem; color: #6b7280; }

.daydesk-rr-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(251,191,36,0.15);
  color: #fcd34d;
  border: 1px solid rgba(251,191,36,0.35);
  flex-shrink: 0;
  white-space: nowrap;
}
.daydesk-rr-pill.daydesk-rr--high {
  background: rgba(52,211,153,0.15);
  color: #6ee7b7;
  border-color: rgba(52,211,153,0.35);
}

/* Trade board */
.daydesk-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid #2a3749;
  border-radius: 0 0 12px 12px;
  background: #0c1017;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}
.daydesk-table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.daydesk-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}
.daydesk-trade-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}
.daydesk-trade-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
.daydesk-trade-table th {
  text-align: left;
  padding: 10px 14px;
  background: #141c28;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #2a3749;
  box-shadow: 0 1px 0 #2a3749;
}
.daydesk-th-rank { width: 36px; }
.daydesk-th-trade { width: 248px; }
.daydesk-trade-table td {
  padding: 14px;
  border-bottom: 1px solid #1a2332;
  vertical-align: top;
}
.daydesk-trade-row:hover td { background: rgba(255,255,255,0.02); }
.daydesk-td-rank {
  width: 36px;
  color: #6b7280;
  font-weight: 700;
  font-size: 11px;
  text-align: center;
  padding-right: 0;
}
.daydesk-td-context { width: auto; }
.daydesk-td-trade {
  width: 248px;
  background: rgba(52,211,153,0.04);
  border-left: 1px solid rgba(52,211,153,0.12);
}
.daydesk-trade-row--short .daydesk-td-trade {
  background: rgba(248,113,113,0.05);
  border-left-color: rgba(248,113,113,0.2);
}

/* Identity row — single line: symbol · price · votes */
.daydesk-identity {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.daydesk-identity::-webkit-scrollbar { display: none; }
.daydesk-sym {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f9fafb;
  text-decoration: none;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  white-space: nowrap;
}
.daydesk-sym:hover { color: #6ee7b7; }
.daydesk-name {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.daydesk-identity-sep {
  color: #374151;
  font-size: 12px;
  flex-shrink: 0;
  user-select: none;
}
.daydesk-identity-sep--votes { margin-left: 2px; }
.daydesk-price {
  font-size: 13px;
  color: #e5e7eb;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.daydesk-chg {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.daydesk-group {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
  background: #141c28;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Signal votes — inline on identity row */
.daydesk-votes {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  flex-shrink: 0;
}
.daydesk-sig {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #1f2a37;
  color: #94a3b8;
  white-space: nowrap;
}
.daydesk-sig--buy { background: rgba(52,211,153,0.2); color: #6ee7b7; }
.daydesk-sig--sell { background: rgba(248,113,113,0.2); color: #fca5a5; }
.daydesk-sig--hold { background: rgba(251,191,36,0.15); color: #fcd34d; }

/* Two-column context grid: cycle | sentiment + commentary */
.daydesk-context-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .daydesk-context-grid { grid-template-columns: 1fr; }
  .daydesk-context-block--commentary { max-height: 200px; }
}

.daydesk-context-block--commentary {
  display: flex;
  flex-direction: column;
  min-height: 140px;
  max-height: 220px;
  padding: 0;
  overflow: hidden;
}
.daydesk-commentary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.daydesk-commentary-head .daydesk-context-label { margin-bottom: 0; }
.daydesk-commentary-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 12px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,0.35) transparent;
}
.daydesk-commentary-scroll::-webkit-scrollbar { width: 5px; }
.daydesk-commentary-scroll::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,0.35);
  border-radius: 999px;
}
.daydesk-commentary-item { padding: 6px 0; }
.daydesk-commentary-item--sent + .daydesk-commentary-item--sent {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 4px;
  padding-top: 10px;
}
.daydesk-commentary-divider {
  height: 1px;
  margin: 10px 0 8px;
  background: rgba(125,211,252,0.2);
}
.daydesk-commentary-sub {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 6px;
}
.daydesk-commentary-meta {
  font-size: 10px;
  color: #6b7280;
  margin-top: 4px;
}
.daydesk-commentary-tag {
  color: #6ee7b7;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 9px;
}

.daydesk-context-block {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  min-height: 100%;
}
.daydesk-context-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 8px;
}

/* Compact cycle (inside context block) */
.daydesk-cycle-compact { font-size: 11px; }
.daydesk-cycle-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.daydesk-cycle-line {
  display: grid;
  grid-template-columns: minmax(72px, 42%) 1fr;
  gap: 6px;
  padding: 4px 0;
  font-size: 11px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  align-items: baseline;
}
.daydesk-cycle-line:last-child { border-bottom: none; }
.daydesk-cycle-line span {
  color: #6b7280;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.daydesk-cycle-line strong {
  color: #e5e7eb;
  font-weight: 600;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
}
.daydesk-cycle-line em {
  font-style: normal;
  color: #6b7280;
  font-size: 10px;
  display: block;
  margin-top: 2px;
}
.daydesk-cycle-fallback {
  margin: 0;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.45;
}

/* Sentiment block */
.daydesk-sent-head {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.4;
}
.daydesk-sent-body {
  margin: 0;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.45;
}
.daydesk-sent-rec { margin-top: 8px; }

.daydesk-sent-more {
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.daydesk-sent-more:hover { text-decoration: underline; }

/* Contributor block */
.daydesk-contrib { font-size: 11px; line-height: 1.4; color: #d1d5db; }
.daydesk-contrib strong {
  display: block;
  color: #7dd3fc;
  font-size: 12px;
  margin-bottom: 4px;
}
.daydesk-contrib-head {
  margin: 0 0 6px;
  font-size: 11px;
  color: #d1d5db;
  line-height: 1.4;
}
.daydesk-contrib-meta { font-size: 10px; color: #6b7280; }
.daydesk-muted { font-size: 11px; color: #6b7280; margin: 0; }

/* Suggested trade column */
.daydesk-trade-panel { text-align: left; }
.daydesk-trade-setup {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.4;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.daydesk-trade-entry { margin-bottom: 12px; }
.daydesk-trade-entry-k {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6ee7b7;
  font-weight: 700;
  margin-bottom: 4px;
}
.daydesk-trade-entry-v {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #f9fafb;
  line-height: 1.25;
}
.daydesk-trade-gain {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.daydesk-trade-gain.daydesk-gain--pos { color: #4ade80; }
.daydesk-trade-gain.daydesk-gain--neg { color: #f87171; }
.daydesk-trade-cell.daydesk-gain--pos strong { color: #4ade80; }
.daydesk-trade-cell.daydesk-gain--neg strong { color: #f87171; }
.daydesk-trade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin-bottom: 12px;
}
.daydesk-trade-cell span {
  display: block;
  color: #6b7280;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.03em;
}
.daydesk-trade-cell strong {
  display: block;
  color: #e5e7eb;
  font-size: 12px;
  margin-top: 2px;
}
.daydesk-trade-cell.daydesk-rr--high strong { color: #6ee7b7; }
.daydesk-trade-cell.daydesk-rr--ok strong { color: #fcd34d; }
.daydesk-trade-note {
  font-size: 9px;
  color: #6b7280;
  margin-top: 8px;
  line-height: 1.35;
}

.daydesk-trade-btn {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(167, 139, 250, 0.45);
  border-radius: 8px;
  background: linear-gradient(180deg, #ddd6fe 0%, #c4b5fd 55%, #a78bfa 100%);
  color: #4c1d95;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}
.daydesk-trade-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.35);
}
.daydesk-trade-btn:active { transform: scale(0.98); }

.daydesk-trade-btn .daydesk-mock-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(76, 29, 149, 0.2);
  color: #5b21b6;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: lowercase;
}

.daydesk-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #1a2332;
  border: 1px solid #34d399;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
.daydesk-toast span { color: #9ca3af; font-size: 11px; }
.daydesk-toast-close {
  margin-top: 10px;
  padding: 4px 10px;
  border: 1px solid #374151;
  border-radius: 6px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 11px;
}

/* Side, actionability, thesis, conflict */
.daydesk-side {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.daydesk-side--long {
  background: rgba(52,211,153,0.18);
  color: #6ee7b7;
  border: 1px solid rgba(52,211,153,0.35);
}
.daydesk-side--short {
  background: rgba(248,113,113,0.18);
  color: #fca5a5;
  border: 1px solid rgba(248,113,113,0.35);
}

.daydesk-action {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
}
.daydesk-action--in-zone { background: rgba(52,211,153,0.2); color: #6ee7b7; }
.daydesk-action--approaching { background: rgba(251,191,36,0.18); color: #fcd34d; }
.daydesk-action--wait { background: rgba(148,163,184,0.15); color: #94a3b8; }
.daydesk-action--invalid { background: rgba(248,113,113,0.2); color: #fca5a5; }

.daydesk-conflict {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(251,146,60,0.2);
  color: #fdba74;
  border: 1px solid rgba(251,146,60,0.35);
  flex-shrink: 0;
  white-space: nowrap;
}

.daydesk-conf-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(96,165,250,0.15);
  color: #93c5fd;
  border: 1px solid rgba(96,165,250,0.3);
  flex-shrink: 0;
  white-space: nowrap;
}

.daydesk-bucket {
  font-size: 9px;
  color: #a78bfa;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(167,139,250,0.12);
  flex-shrink: 0;
  white-space: nowrap;
}

.daydesk-thesis {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid #34d399;
  font-size: 11px;
  line-height: 1.45;
  color: #d1d5db;
}

.daydesk-trade-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.daydesk-conviction {
  font-size: 9px;
  color: #94a3b8;
  text-transform: capitalize;
}

.daydesk-trade-panel--short .daydesk-trade-setup { color: #fca5a5; }

.daydesk-trade-note--warn {
  color: #fdba74;
  font-size: 10px;
}
