/* The Comp Study styles from Anchovy's web admin (admin-market.js injectStyles). */
  .mk-bar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:18px; }
  .mk-bar select, .mk-bar input[type=search] { background:var(--surface); color:var(--text); border:1.5px solid var(--border-strong); border-radius:var(--radius-sm); padding:8px 10px; font:inherit; font-size:14px; }
  .mk-bar select { max-width:100%; }
  .mk-meta { font-size:12px; color:var(--text-muted); margin-left:auto; }
  .mk-tabs { display:flex; gap:4px; border-bottom:1.5px solid var(--border); margin-bottom:18px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .mk-tab { background:none; border:none; color:var(--text-muted); font:inherit; font-weight:700; font-size:14px; padding:10px 14px; cursor:pointer; border-bottom:3px solid transparent; margin-bottom:-1.5px; white-space:nowrap; }
  .mk-tab.on { color:var(--text); border-bottom-color:var(--mustard); }
  .mk-chip { display:inline-block; font-size:11px; font-weight:700; padding:3px 8px; border-radius:999px; background:var(--surface-3); color:var(--text); white-space:nowrap; }
  .mk-chip.ready { background:rgba(92,192,142,.18); color:var(--teal); }
  .mk-chip.building { background:rgba(242,184,36,.2); color:var(--mustard-deep); }
  .mk-chip.soon { background:var(--purple-dim); color:var(--purple); }
  .mk-chip.cut { background:rgba(226,75,46,.14); color:var(--danger); }
  .mk-chip.claimed { background:var(--mustard); color:var(--ink); }
  .mk-chip.team { background:var(--purple-dim); color:var(--purple); }
  .mk-finding { background:var(--surface); border:1.5px solid var(--border); border-left-width:5px; border-radius:var(--radius); padding:16px 18px; margin-bottom:12px; }
  .mk-finding.l0 { border-left-color:var(--tomato); } .mk-finding.l1 { border-left-color:var(--mustard); }
  .mk-finding.l2 { border-left-color:var(--teal); } .mk-finding.l3 { border-left-color:var(--sea-soft); }
  .mk-level { font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); margin-bottom:4px; }
  .mk-ftitle { font-weight:700; font-size:15px; margin-bottom:6px; }
  .mk-fdetail { font-size:13px; color:var(--text-muted); white-space:pre-line; margin-bottom:8px; }
  .mk-faction { font-size:13px; } .mk-faction b { color:var(--text); }
  .mk-num, .data-table th.mk-num, .data-table td.mk-num { font-variant-numeric:tabular-nums; text-align:right; }
  .mk-up { color:var(--danger); font-weight:700; } .mk-down { color:var(--teal); font-weight:700; }
  .mk-settings { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px; background:var(--surface); border:1.5px solid var(--border); border-radius:var(--radius); padding:14px 16px; margin-bottom:18px; }
  .mk-settings label { font-size:12px; font-weight:600; color:var(--text-muted); display:flex; flex-direction:column; gap:4px; }
  .mk-settings input { background:var(--surface-2); color:var(--text); border:1.5px solid var(--border); border-radius:var(--radius-sm); padding:7px 8px; font:inherit; font-size:14px; }
  .mk-band { display:grid; grid-template-columns:110px 1fr 170px; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid var(--border); font-size:13px; }
  .mk-band:last-child { border-bottom:none; }
  .mk-band.mk-pace { grid-template-columns:minmax(0,220px) 1fr 120px; }
  .mk-axis { display:flex; justify-content:space-between; font-size:12px; color:var(--text-muted); padding:6px 182px 4px 122px; }
  .mk-track { position:relative; height:14px; background:var(--surface-2); border-radius:7px; }
  .mk-range { position:absolute; top:3px; height:8px; border-radius:4px; background:var(--sea-soft); opacity:.55; }
  .mk-med { position:absolute; top:0; width:3px; height:14px; background:var(--text); border-radius:2px; }
  .mk-dot { position:absolute; top:1px; width:12px; height:12px; margin-left:-6px; border-radius:50%; background:var(--mustard); border:2px solid var(--ink); }
  .mk-h2h { position:fixed; inset:0; z-index:400; display:flex; justify-content:flex-end; background:rgba(15,28,34,.45); }
  .mk-h2h-panel { width:min(640px,100%); height:100%; overflow-y:auto; background:var(--bg); padding:24px; box-shadow:-12px 0 32px rgba(0,0,0,.2); }
  .mk-edge-you { color:var(--teal); font-weight:700; } .mk-edge-them { color:var(--danger); font-weight:700; }
  .mk-talk li { margin-bottom:8px; font-size:14px; }
  .mk-link { color:var(--purple); text-decoration:none; font-weight:600; } .mk-link:hover { text-decoration:underline; }
  .mk-click { cursor:pointer; }
  .mk-note { font-size:13px; color:var(--text-muted); margin:-6px 0 16px; }
  /* Plan matchup: the app's range bar (low–high, middle half, median, your price as a diamond) */
  :root { --mk-rng:#1E6B7E; } :root:not(.light) { --mk-rng:#2B9BB8; }
  .mk-pm { background:var(--surface); border:1.5px solid var(--border); border-radius:var(--radius); margin-bottom:10px; }
  .mk-pm > summary { list-style:none; cursor:pointer; padding:14px 16px 12px; }
  .mk-pm > summary::-webkit-details-marker { display:none; }
  .mk-pm.mk-pm-none > summary { cursor:default; }
  .mk-pm-head { display:flex; align-items:baseline; gap:8px; }
  .mk-pm-name { font-weight:700; font-size:15px; }
  .mk-pm-price { margin-left:auto; font-weight:700; font-variant-numeric:tabular-nums; }
  .mk-pm-chev { color:var(--text-muted); font-size:12px; transition:transform .15s; display:inline-block; }
  .mk-pm[open] .mk-pm-chev { transform:rotate(90deg); }
  .mk-pm-bar { position:relative; height:22px; margin:8px 0 6px; }
  .mk-pm-bar > div { position:absolute; top:50%; transform:translateY(-50%); }
  .mk-pm-track { left:0; right:0; height:4px; border-radius:2px; background:var(--text-muted); opacity:.3; }
  .mk-pm-full { height:12px; border-radius:3px; background:color-mix(in srgb, var(--mk-rng) 18%, transparent); border:1px solid var(--mk-rng); box-sizing:border-box; }
  .mk-pm-mid { height:12px; background:color-mix(in srgb, var(--mk-rng) 45%, transparent); }
  .mk-pm-med { width:2px; height:20px; margin-left:-1px; background:var(--mk-rng); }
  .mk-pm-you { width:11px; height:11px; margin-left:-5.5px; background:var(--mustard); outline:2px solid var(--surface); transform:translateY(-50%) rotate(45deg) !important; }
  .mk-pm-foot { display:flex; font-size:12px; color:var(--text-muted); }
  .mk-pm-foot span:last-child { margin-left:auto; }
  .mk-pm-comps { border-top:1px solid var(--border); padding:4px 16px 8px; }
  .mk-pm-comp { display:flex; gap:12px; padding:8px 0; border-bottom:1px solid var(--border); font-size:13px; }
  .mk-pm-comp:last-child { border-bottom:none; }
  .mk-pm-comp > div:last-child { margin-left:auto; text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
  .mk-legend { display:flex; flex-wrap:wrap; gap:6px 16px; font-size:12px; color:var(--text-muted); margin:-6px 0 14px; align-items:center; }
  .mk-legend i { display:inline-block; vertical-align:middle; margin-right:6px; }
  /* Homes filters */
  .mk-chips { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-bottom:12px; }
  .mk-fchip { background:var(--surface-2); color:var(--text); border:1.5px solid var(--border); border-radius:var(--radius-sm); font:inherit; font-size:13px; font-weight:600; padding:6px 10px; cursor:pointer; }
  .mk-fchip.on { background:var(--sea); border-color:var(--sea); color:#fff; }
  /* Export menu */
  .mk-export { position:relative; }
  .mk-export > summary { list-style:none; } .mk-export > summary::-webkit-details-marker { display:none; }
  .mk-export-menu { position:absolute; right:0; top:calc(100% + 6px); z-index:50; min-width:240px; background:var(--surface); border:1.5px solid var(--border-strong); border-radius:var(--radius); box-shadow:0 8px 24px rgba(0,0,0,.18); padding:6px; }
  .mk-export-menu button { display:block; width:100%; text-align:left; background:none; border:none; color:var(--text); font:inherit; font-size:14px; padding:8px 10px; border-radius:var(--radius-sm); cursor:pointer; }
  .mk-export-menu button:hover { background:var(--surface-2); }
  .mk-export-menu .mk-level { padding:8px 10px 2px; margin:0; }
  .mk-export-menu hr { border:none; border-top:1px solid var(--border); margin:6px 0; }
  @media (max-width: 820px) {
    .mk-export-menu { left:0; right:auto; }
    .mk-settings { grid-template-columns:1fr 1fr; }
    .mk-band, .mk-band.mk-pace { grid-template-columns:80px 1fr; } .mk-band .mk-num { grid-column:1 / -1; text-align:left; }
    .mk-band.mk-pace { grid-template-columns:1fr 1fr; }
    .mk-meta { margin-left:0; width:100%; }
    .mk-axis { padding:6px 0 4px 92px; }
    .mk-h2h-panel { padding:18px 16px; }
    .mk-h2h-panel .table-card td, .mk-h2h-panel .table-card th { white-space:normal; }
  }
