/* DOVYR Operations 2.0 / Patch 04 — Density standard for DAY + DETAIL only.
 * Refines sizing, rhythm, and visual markers without changing JS or the approved calendar.
 * Values are presentation only. No operations, P&L or storage logic is touched.
 */
.operations-shell.ops2-enabled .ops2-day-layout {
  --ops2-day-compact-pad: 16px;
  --ops2-day-compact-gap: 9px;
  --ops2-day-muted: #92999d;
}

/* Day View — bring heading and metrics down to the calendar's compact scale. */
.operations-shell .ops2-heading-day {
  margin: 4px 0 15px;
  align-items: center;
  gap: 14px;
}
.operations-shell .ops2-heading-day h1 {
  font-size: clamp(24px, 2vw, 30px);
  margin: 6px 0 5px;
  line-height: 1.12;
  letter-spacing: -.045em;
}
.operations-shell .ops2-heading-day p { font-size: 11px; }
.operations-shell .ops2-heading-day .ops2-controls { gap: 6px; }
.operations-shell .ops2-heading-day .ops2-action {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  font-size: 10px;
  border-radius: 6px;
}
.operations-shell .ops2-day-overview {
  padding: 0 0 14px;
  margin: 0 0 15px;
}
.operations-shell .ops2-day-overview > div { padding: 2px 15px; }
.operations-shell .ops2-day-overview > div:first-child { padding-left: 0; }
.operations-shell .ops2-day-overview span {
  font-size: 8.5px;
  margin-bottom: 7px;
  letter-spacing: .11em;
}
.operations-shell .ops2-day-overview strong {
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -.025em;
  line-height: 1.15;
}
.operations-shell .ops2-day-overview em {
  font-size: 10px;
  margin-top: 5px;
  line-height: 1.35;
}
.operations-shell .ops2-day-overview .ops2-meter {
  height: 5px;
  margin-top: 8px;
}

/* Both columns use the same compact spacing rhythm. */
.operations-shell .ops2-day-grid {
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 10px;
}
.operations-shell .ops2-day-card { border-radius: 10px; }
.operations-shell .ops2-day-card-head {
  padding: 15px 16px 12px;
  gap: 11px;
}
.operations-shell .ops2-day-card-head h2 {
  font-size: 16px;
  font-weight: 565;
  letter-spacing: -.025em;
  line-height: 1.25;
}
.operations-shell .ops2-day-card-head h2 small {
  font-size: 10px;
  margin-left: 7px;
}
.operations-shell .ops2-day-card-head p {
  font-size: 10px;
  margin-top: 4px;
  line-height: 1.45;
}
.operations-shell .ops2-card-actions { gap: 6px; }
.operations-shell .ops2-card-actions .ops2-action,
.operations-shell .ops2-context-card .ops2-mini-action {
  min-height: 29px;
  height: 29px;
  padding: 0 10px;
  font-size: 10px;
  border-radius: 7px;
}
.operations-shell .ops2-card-actions .ops2-find {
  font-size: 10px;
  gap: 5px;
}
.operations-shell .ops2-card-actions .ops2-find input {
  min-width: 0;
  width: 126px;
  height: 29px;
  font-size: 10px;
  padding: 0 8px;
}

/* Lightweight asset identification: tickers only, no decorative emoji/coin bubble. */
.operations-shell .ops2-trade-redesign .ops2-market-avatar { display: none !important; }
.operations-shell .ops2-trade-redesign .ops2-market-cell { gap: 0; }
.operations-shell .ops2-trade-redesign .ops2-market-meta { gap: 3px; }
.operations-shell .ops2-trade-redesign .ops2-market-meta strong {
  font-size: 12px;
  font-weight: 610;
}
.operations-shell .ops2-trade-redesign .ops2-market-meta small {
  font-size: 9px;
  color: #838e93;
}
.operations-shell .ops2-day-table-head,
.operations-shell .ops2-trade-redesign {
  grid-template-columns: minmax(112px,1.2fr) 64px 52px minmax(91px, .95fr) 66px minmax(76px,.75fr) 12px;
  gap: 9px;
  padding: 0 var(--ops2-day-compact-pad,16px);
}
.operations-shell .ops2-day-table-head {
  min-height: 35px;
  height: 35px;
  font-size: 8.5px;
  letter-spacing: .07em;
}
.operations-shell .ops2-trade-redesign {
  min-height: 55px;
  font-size: 10.5px;
  transition: background-color 75ms ease-out;
}
.operations-shell .ops2-trade-redesign .ops2-value { font-size: 10.5px; }
.operations-shell .ops2-trade-redesign .ops2-direction {
  min-width: 0;
  height: 23px;
  padding: 0 7px;
  font-size: 9px;
  border-radius: 6px;
}
.operations-shell .ops2-trade-redesign .ops2-tag-pill {
  min-height: 24px;
  max-width: 100%;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 9px;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.operations-shell .ops2-trade-redesign .ops2-open-arrow {
  font-size: 16px;
}

/* Quiet context rail — information, not another oversized dashboard. */
.operations-shell .ops2-context-card .ops2-day-card-head {
  padding: 15px 14px 12px;
  align-items:center;
}
.operations-shell .ops2-context-block {
  padding: 13px 14px;
}
.operations-shell .ops2-context-block > span {
  font-size: 9px;
  margin-bottom: 8px;
}
.operations-shell .ops2-context-block p,
.operations-shell .ops2-chip-row em {
  font-size: 10.5px;
  line-height: 1.55;
}
.operations-shell .ops2-chip-row { gap: 6px; }
.operations-shell .ops2-chip {
  min-height: 25px;
  padding: 0 9px;
  font-size: 10px;
  border-radius: 999px;
}
.operations-shell .ops2-day-layout .ops2-footnote {
  padding-top: 11px;
  font-size: 10px;
}

/* Detail drawer inherits the same density standard; preserve the existing native logic. */
.operations-shell .ops2-drawer-panel {
  width: min(640px, calc(100vw - 24px));
  border-radius: 11px;
}
.operations-shell .ops2-drawer-content { padding: 14px 15px 12px; }
.operations-shell .ops2-drawer-close {
  height: 28px;
  width: 28px;
  top: 12px;
  right: 12px;
  border-radius: 7px;
}
.operations-shell .ops2-drawer .detail-head {
  padding-right: 35px;
}
.operations-shell .ops2-drawer .detail-head-title span { font-size: 9px !important; }
.operations-shell .ops2-drawer .detail-head small { font-size: 9px !important; }
.operations-shell .ops2-drawer .detail-head-actions .edit-trade-operation,
.operations-shell .ops2-drawer .detail-head-actions .expand-detail {
  height: 28px;
  padding: 0 9px;
  font-size: 10px;
  border-radius: 7px;
}
.operations-shell .ops2-drawer .detail-title {
  margin: 9px 0 10px;
}
.operations-shell .ops2-drawer .detail-title h2 {
  font-size: 27px !important;
}
.operations-shell .ops2-drawer .detail-title h2 span {
  font-size: 14px !important;
  margin-top: 6px;
}
.operations-shell .ops2-drawer .detail-title p {
  font-size: 11px !important;
  margin-top: 7px;
}
.operations-shell .ops2-drawer .win-pill {
  min-width: 85px;
  height: 29px;
  padding: 0 10px;
  font-size: 10px;
  border-radius: 7px;
}
.operations-shell .ops2-drawer .detail-tags {
  margin-bottom: 10px;
  gap: 5px;
}
.operations-shell .ops2-drawer .detail-tags span,
.operations-shell .ops2-drawer .detail-tags button {
  height: 26px;
  border-radius: 7px;
  padding: 0 9px;
  font-size: 10px;
}
.operations-shell .ops2-drawer .trade-chart {
  height: 260px !important;
  border-radius: 9px;
}
.operations-shell .ops2-drawer .detail-tabs {
  height: 36px;
  margin-top: 10px;
  gap: 14px;
}
.operations-shell .ops2-drawer .detail-tabs button { font-size: 10px !important; }
.operations-shell .ops2-drawer .detail-tab-pane { padding-top: 10px; }
.operations-shell .ops2-drawer .trade-note-text,
.operations-shell .ops2-drawer .setup-context p,
.operations-shell .ops2-drawer .detail-notes p {
  font-size: 11.5px !important;
  line-height: 1.58;
}
.operations-shell .ops2-drawer .detail-two section { padding: 10px; }
.operations-shell .ops2-drawer .detail-two span,
.operations-shell .ops2-drawer .setup-context > span {
  font-size: 9px !important;
}
.operations-shell .ops2-drawer .detail-two strong { font-size: 11px; }

/* Responsive: don't squeeze data labels until unreadable. */
@media (min-width: 1101px) and (max-width: 1280px) {
  .operations-shell .ops2-day-grid { grid-template-columns: minmax(0,1fr) 230px; }
}
@media (max-width: 1100px) {
  .operations-shell .ops2-day-grid { grid-template-columns: minmax(0,1fr); }
  .operations-shell .ops2-day-overview { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .operations-shell .ops2-day-overview > div:first-child { grid-column: 1/-1; }
  .operations-shell .ops2-context-card { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .operations-shell .ops2-context-card > header { grid-column:1/-1; }
  .operations-shell .ops2-context-card .ops2-context-block { border-top:1px solid rgba(242,240,233,.07); }
  .operations-shell .ops2-day-card-head { flex-wrap:wrap; }
  .operations-shell .ops2-trades-card { overflow-x: auto; }
  .operations-shell .ops2-day-table-head,
  .operations-shell .ops2-trade-redesign { min-width: 620px; }
}
@media (max-width: 760px) {
  .operations-shell .ops2-heading-day { align-items:flex-start; margin-bottom:13px; }
  .operations-shell .ops2-heading-day h1 { font-size:24px; }
  .operations-shell .ops2-day-overview > div { padding:10px 0; }
  .operations-shell .ops2-context-card { grid-template-columns: 1fr; }
  .operations-shell .ops2-drawer .trade-chart { height:235px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .operations-shell .ops2-trade-redesign { transition:none !important; }
}
