.owner-counts-button{display:inline-flex;align-items:center;gap:8px;padding:11px 14px;border:1px solid #dce5f4;border-radius:10px;color:#1f416d;background:#fff;font:inherit;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}.owner-counts-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.owner-counts-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 28px));max-width:720px;max-height:88dvh;overflow:auto;padding:28px;border:1px solid #dce5f4;border-radius:22px;color:#1b2b44;background:#fff;box-shadow:0 24px 90px #152e5130}.owner-counts-dialog::backdrop{background:#12243e77;backdrop-filter:blur(3px)}.owner-counts-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.owner-counts-label{display:block;color:#61738d;font-size:12px;margin-bottom:5px}.owner-counts-head h2{margin:0;font-size:26px;letter-spacing:-.5px}.owner-counts-head button{background:#f1f5fc;border:0;border-radius:50%;width:42px;height:42px;min-height:42px;font-size:24px;color:#435a7d;cursor:pointer}.owner-counts-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.owner-counts-grid section{padding:22px;border:1px solid #e0e7f3;border-radius:15px;min-width:0;background:#fbfcff}.owner-counts-grid .owner-counts-total{background:#edf4ff;border-color:#d8e6ff}.owner-counts-grid span{display:block;font-size:14px;font-weight:600;color:#536987}.owner-counts-grid strong{display:block;font-size:42px;color:#0755ed;line-height:1.2;margin:14px 0 10px;letter-spacing:-1px}.owner-counts-grid small{font-size:11px;color:#7b8aa0;line-height:1.7}.owner-counts-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-top:22px;font-size:12px;color:#61738d}.owner-counts-footer button,.owner-counts-loading button{border:1px solid #d1dff7;border-radius:10px;padding:11px 15px;color:#0755ed;background:#f6f9ff;font:inherit;cursor:pointer}.owner-counts-time{font-size:11px;color:#7f8ca2;margin:18px 0 12px}.owner-counts-preview{color:#815500;background:#fff5d7;border-radius:10px;padding:12px;font-size:12px;line-height:1.7}.owner-counts-loading{text-align:center;color:#61738d;padding:50px 16px;line-height:1.8}.dark .owner-counts-button{background:#1c2c45;border-color:#354862;color:#c8d9f3}@media(max-width:580px){.owner-counts-dialog{padding:20px 16px;border-radius:17px}.owner-counts-grid{gap:10px}.owner-counts-grid section{padding:17px 13px}.owner-counts-grid strong{font-size:36px}.owner-counts-grid span{font-size:12px}.owner-counts-button{padding:9px 10px}.owner-counts-button span{font-size:11px}.owner-counts-grid small{font-size:10px}}

@media(max-width:580px){.owner-counts-button{width:38px;min-width:38px;min-height:40px;justify-content:center;flex-shrink:0;padding:8px}.owner-counts-button span{display:none}}

/* Compact owner handle and right-side drawer. */
.owner-counts-button{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:900;display:flex;flex-direction:column;justify-content:center;gap:9px;width:36px;min-width:36px;min-height:104px;padding:12px 7px;border-radius:12px 0 0 12px;border-right:0;box-shadow:-3px 3px 15px #183e6814;transition:background .15s}.owner-counts-button:hover{background:#edf4ff}.owner-counts-button span{display:block;writing-mode:vertical-rl;font-size:12px;letter-spacing:2px}.owner-counts-button:focus-visible{outline:3px solid #0755ed;outline-offset:-3px}.owner-counts-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(420px,calc(100vw - 28px));max-width:420px;height:100dvh;max-height:100dvh;padding:26px 22px;border-radius:20px 0 0 20px;border-top:0;border-bottom:0;border-right:0;box-shadow:-12px 0 50px #152e5125}.owner-counts-dialog[open]{animation:owner-counts-slide .18s ease-out}.owner-counts-dialog::backdrop{background:#12243e55;backdrop-filter:blur(2px)}.owner-counts-grid{gap:12px}.owner-counts-grid section{padding:19px 15px}.owner-counts-grid strong{font-size:36px}.owner-counts-grid span{font-size:13px}.owner-counts-footer{align-items:flex-start;flex-direction:column}.owner-counts-footer button{width:100%}.owner-counts-head h2{font-size:25px}@keyframes owner-counts-slide{from{transform:translateX(100%)}to{transform:translateX(0)}}@media(max-width:580px){.owner-counts-button{width:30px;min-width:30px;min-height:96px;padding:10px 5px}.owner-counts-button span{display:block;font-size:11px}.owner-counts-button svg{width:16px;height:16px}.owner-counts-dialog{padding:22px 16px}.owner-counts-grid section{padding:17px 12px}}@media(prefers-reduced-motion:reduce){.owner-counts-dialog[open]{animation:none}}

/* Icon-only owner tab. */
.owner-counts-button{min-height:44px;padding:10px 7px}.owner-counts-button span{display:none}@media(max-width:580px){.owner-counts-button{min-height:44px;padding:10px 5px}}

/* Keep the owner drawer readable independently of the page theme. */
#owner-counts-panel { color: #1b2b44; font-size: 18px; }
#owner-counts-panel .owner-counts-head h2 { color: #1b2b44; font-size: 27px; }
#owner-counts-panel .owner-counts-label { color: #4b607c; font-size: 14px; }
#owner-counts-panel .owner-counts-head button { color: #435a7d; font-size: 26px; }
#owner-counts-panel .owner-counts-grid span { color: #405775; font-size: 15px; }
#owner-counts-panel .owner-counts-grid strong { color: #0755ed; font-size: 38px; }
#owner-counts-panel .owner-counts-grid small { color: #52647e; font-size: 13px; }
#owner-counts-panel .owner-counts-footer { color: #4b607c; font-size: 14px; }
#owner-counts-panel .owner-counts-time { color: #52647e; font-size: 13px; }
#owner-counts-panel .owner-counts-preview { font-size: 14px; }
#owner-counts-panel .owner-counts-loading { color: #4b607c; }
#owner-counts-panel .owner-counts-loading h3 { color: #1b2b44; }
@media (max-width: 580px) {
  #owner-counts-panel .owner-counts-grid small { font-size: 12px; }
}
