.op-workspace { display: grid; gap: 22px; min-width: 0; }
.op-workspace h2, .op-workspace h3, .op-workspace p { margin: 0; }
.op-workspace h2 { font-size: 21px; }
.op-workspace h3 { font-size: 17px; }
.op-heading, .op-section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.op-heading p, .op-section-heading p { color: var(--muted); margin-top: 6px; }
.op-heading .toolbar { flex-wrap: wrap; margin: 0; gap: 8px; }
.op-state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.op-tag { display: inline-block; padding: 5px 9px; border-radius: 5px; background: #f0f3f5; color: #54616b; font-size: 12px; white-space: nowrap; line-height: 1.4; }
.op-tag.good { background: var(--green-bg); color: var(--green); }
.op-tag.warn { background: var(--amber-bg); color: var(--amber); }
.op-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.op-metric { display: grid; align-content: start; gap: 10px; padding: 22px 18px; border-right: 1px solid var(--line); min-width: 0; }
.op-metric:last-child { border-right: 0; }
.op-metric > span { color: var(--muted); font-size: 13px; }
.op-metric strong { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.op-metric small { color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.op-workspace .op-caption { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 12px 0; }
.op-panel { border: 1px solid var(--line); border-radius: 10px; padding: 22px; min-width: 0; }
.op-section-heading { margin-bottom: 20px; }
.op-cash-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; background: #f6f8fa; border-radius: 8px; padding: 18px; }
.op-cash-summary > div { display: grid; gap: 9px; min-width: 0; }
.op-cash-summary span { color: var(--muted); font-size: 12px; }
.op-cash-summary strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.op-trade-group { border: 1px solid var(--line); border-radius: 8px; margin-top: 18px; overflow: hidden; }
.op-contract { display: flex; align-items: center; gap: 12px; padding: 18px; flex-wrap: wrap; min-width: 0; }
.op-contract strong { font-size: 15px; }
.op-contract small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.op-contract > div { min-width: 0; overflow-wrap: anywhere; }
.op-contract .op-symbol { color: #79858d; font-size: 11px; }
.op-contract-type { flex-shrink: 0; padding: 10px; border-radius: 7px; font-size: 13px; font-weight: 600; }
.op-contract-type.call { background: #edf3ff; color: #315ca8; }
.op-contract-type.put { background: #f3edfc; color: #7950a4; }
.op-group-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.op-order { border-top: 1px solid var(--line); }
.op-order > summary { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1fr auto; gap: 14px; padding: 16px 18px; align-items: center; cursor: pointer; list-style: none; color: #303b43; }
.op-order > summary::-webkit-details-marker, .op-transfer > summary::-webkit-details-marker { display: none; }
.op-order > summary:hover, .op-transfer > summary:hover { background: #fafbfc; }
.op-workspace summary:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.op-order > summary > span { min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; font-size: 13px; }
.op-order small, .op-transfer small { display: block; color: var(--muted); font-size: 11px; margin: 5px 0; line-height: 1.5; }
.op-order > summary > span:last-child { text-align: right; }
.op-detail-hint { text-decoration: underline; text-underline-offset: 3px; }
.op-order-detail { background: #fafbfc; padding: 16px 18px; border-top: 1px dashed var(--line); }
.op-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; }
.op-facts dt { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.op-facts dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; }
.op-evidence { margin-top: 18px; color: var(--muted); font-size: 12px; }
.op-evidence summary { cursor: pointer; }
.op-evidence pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; padding: 12px; background: #f0f3f5; }
.op-transfer { border-top: 1px solid var(--line); }
.op-transfer > summary { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; padding: 18px 0; cursor: pointer; list-style: none; }
.op-transfer strong { font-size: 15px; overflow-wrap: anywhere; }
.op-transfer > summary > span { min-width: 0; }
.op-transfer-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #f0f4f3; color: var(--green); }
.op-transfer-icon svg { width: 18px; height: 18px; }
.op-empty { padding: 28px 18px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.op-empty strong { color: #48565e; font-weight: 500; }
.op-empty p { margin-top: 8px; font-size: 13px; line-height: 1.7; }
.op-pagination { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.op-pagination:has(button:disabled + button:disabled) { display: none; }
.op-error { color: var(--red); line-height: 1.7; overflow-wrap: anywhere; }
.op-live-list { display: grid; gap: 12px; margin-top: 16px; }
.op-position { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-top: 12px; }
.op-position .op-contract { padding: 0 0 18px; }
.op-open-orders > summary { cursor: pointer; margin-top: 18px; }
@media (max-width: 1000px) {
  .op-overview, .op-cash-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op-metric:nth-child(2) { border-right: 0; }
  .op-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .op-order > summary { grid-template-columns: 1.4fr 1fr 1fr; }
  .op-order > summary > span:last-child { text-align: left; }
}
@media (max-width: 600px) {
  .op-workspace { gap: 18px; }
  .op-heading .toolbar .btn { padding: 8px 10px; font-size: 12px; }
  .op-panel { padding: 14px; }
  .op-metric { padding: 16px 12px; }
  .op-metric strong { font-size: 17px; }
  .op-cash-summary { padding: 14px; gap: 18px 12px; }
  .op-cash-summary strong { font-size: 14px; }
  .op-contract { padding: 14px; gap: 9px; }
  .op-contract strong { font-size: 14px; }
  .op-contract small { font-size: 11px; }
  .op-group-count { display: none; }
  .op-order > summary { grid-template-columns: 1fr 1fr; padding: 14px; gap: 8px 12px; }
  .op-order > summary > span:first-child { grid-column: 1; grid-row: 1; }
  .op-order > summary > span:last-child { grid-column: 2; grid-row: 1; text-align: right; }
  .op-order-detail { padding: 14px; }
  .op-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op-transfer > summary { grid-template-columns: 1fr auto; gap: 8px; }
  .op-transfer-icon { display: none; }
  .op-transfer > summary > span:nth-child(2) { grid-column: 1 / -1; }
  .op-transfer > summary > .op-tag { justify-self: end; }
}
