/* Vote panel: bottom sheet on phones, floating card on desktop. #panel itself is only a positioning box;
   the visible card is .zb-card (so on desktop #panel has height 0 and map.js refreshPadding adds no bottom padding). */
#panel.zb-panel { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; max-height: none; overflow: visible; padding: 0; background: none; box-shadow: none; border-radius: 0; }
#panel.zb-panel[hidden] { display: none; }
.zb-card { position: relative; display: flex; flex-direction: column; gap: 16px; max-height: 75dvh; overflow: auto; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--surface, #fff); color: var(--ink); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(15, 27, 45, .18); font-family: var(--font-body); }
.zb-card button { font-family: var(--font-body); min-height: 0; }
.zb-card button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.zb-card button:disabled { opacity: .5; cursor: wait; }
.zb-handle { align-self: center; flex: none; width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.zb-head { display: flex; align-items: flex-start; gap: 12px; }
.zb-title { flex: 1; min-width: 0; }
.zb-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
#panel .zb-title h2 { margin: 4px 0 0; font: 700 28px/32px var(--font-head); color: var(--ink); overflow-wrap: anywhere; }
#panel .zb-title h2:focus { outline: none; }
.zb-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.zb-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.zb-pill { color: #fff; border-radius: 999px; padding: 5px 10px; font-size: 13px; font-weight: 700; }
.zb-close { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 22px; border: 0; background: var(--soft); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.zb-q { font-size: 17px; font-weight: 600; }
.zb-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.zb-tile { height: 112px; padding: 0 4px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface, #fff); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 16px; cursor: pointer; }
.zb-tile.zb-both { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.zb-note { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 18px; color: var(--ink); }
.zb-note svg { flex: none; margin-top: 1px; }
.zb-kinds { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.zb-kind { display: flex; align-items: center; gap: 12px; padding: 14px; border: 0; border-radius: 0; background: none; color: var(--ink); text-align: left; font-size: 16px; width: 100%; }
button.zb-kind { cursor: pointer; }
.zb-kind + .zb-kind { border-top: 1px solid var(--line); }
.zb-kind[aria-pressed="true"] { background: var(--blue-soft); box-shadow: inset 4px 0 0 var(--blue); }
.zb-kind b { display: block; font-weight: 600; }
.zb-kind small { display: block; font-size: 13px; color: var(--muted); }
.zb-dot { flex: none; width: 12px; height: 12px; border-radius: 6px; }
.zb-progress { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.zb-progress > div:first-child { display: flex; justify-content: space-between; }
.zb-progress small { font-size: 12px; color: var(--muted); }
.zb-bar { height: 10px; border-radius: 5px; background: var(--soft); overflow: hidden; }
.zb-bar div { height: 100%; background: var(--green); border-radius: 5px; }
.zb-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.zb-actions button { height: 56px; border-radius: 16px; font-weight: 700; font-size: 15px; cursor: pointer; }
.zb-keep { border: 0; background: var(--ink); color: #fff; }
.zb-clear { border: 2px solid var(--green); background: var(--surface, #fff); color: var(--green-text); }
.zb-more { font-size: 14px; color: var(--muted); }
.zb-more button { padding: 0; border: 0; background: none; color: var(--blue); font-weight: 600; font-size: inherit; text-decoration: underline; cursor: pointer; }
.zb-share { height: 44px; padding: 0; border: 0; background: none; color: var(--blue); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }

@media (min-width: 900px) {
  #panel.zb-panel { left: auto; right: 16px; bottom: 16px; width: 360px; height: 0; }
  .zb-card { position: absolute; right: 0; bottom: 0; width: 100%; max-height: calc(100dvh - 120px); padding: 18px 20px 20px; border-radius: 22px; box-shadow: 0 24px 60px rgba(15, 27, 45, .28); gap: 14px; }
  .zb-handle { display: none; }
  #panel .zb-title h2 { font-size: 24px; line-height: 28px; }
  .zb-actions button { height: 48px; font-size: 14px; }
}
