/* OutcomeFlows Market Visual-First Quick Bar & 4-Tab Inspector Drawer */
.mk-logo-svg {
  width: 34px;
  height: 34px;
  display: block;
  flex: none;
}
.brand-mark.has-svg {
  background: transparent;
  clip-path: none;
  width: 36px;
  height: 36px;
}

.mk-quick-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.mk-qchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.14s ease, transform 0.12s ease;
}
.mk-qchip:hover,
.mk-qchip.is-active {
  border-color: var(--accent);
  color: var(--accent-2);
  transform: translateY(-1px);
}

.mk-card-inspect {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.mk-card-inspect:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.mk-top-jump {
  position: fixed;
  inset-inline-end: 16px;
  inset-block-end: 18px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--panel);
  color: var(--accent-2);
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  display: inline-grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.mk-top-jump.is-show { opacity: 1; pointer-events: auto; }
.mk-top-jump:hover { transform: translateY(-2px); }

/* 4-Tab Progressive-Disclosure Drawer */
.mk-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 10, 6, 0.56);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
}
.mk-drawer {
  width: min(450px, 100vw);
  height: 100%;
  background: var(--panel);
  color: var(--text);
  border-inline-start: 1px solid var(--line);
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.42);
  display: flex;
  flex-direction: column;
}
.mk-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.mk-drawer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.mk-drawer-status {
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(200, 135, 40, 0.18);
  color: var(--accent-2);
  border: 1px solid rgba(200, 135, 40, 0.4);
}
.mk-drawer-kicker {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  font-family: ui-monospace, Consolas, monospace;
}
.mk-drawer-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}
.mk-drawer-close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  flex: none;
}
.mk-drawer-close:hover { border-color: var(--accent); }
.mk-drawer-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 12px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.mk-dtab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.mk-dtab.is-active {
  background: var(--accent);
  color: #17120d;
}
[data-theme="light"] .mk-dtab.is-active {
  color: #fff8ec;
}
.mk-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.65;
}
.mk-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.mk-kv dt { color: var(--muted); font-weight: 700; font-size: 13px; }
.mk-kv dd { margin: 0; font-weight: 800; font-size: 13.5px; text-align: end; font-variant-numeric: tabular-nums; }
.mk-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #17120d;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
[data-theme="light"] .mk-cta-btn { color: #fff8ec; }
@media (max-width: 640px) {
  .mk-drawer-backdrop { align-items: flex-end; }
  .mk-drawer {
    width: 100vw;
    height: min(82vh, 620px);
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
  }
}
