.bm-profile-dialog { width:min(680px,94vw); max-height:92dvh; padding:0; border:1px solid var(--fd-border,#d8dfd9); border-radius:18px; background:var(--fd-bg,#faf9f5); color:var(--fd-text,#1e3335); font:14px/1.5 var(--fd-body,sans-serif); }
.bm-profile-dialog::backdrop { background:#102a2bb5; backdrop-filter:blur(5px); }
.bm-profile-form { padding:26px; }
.bm-profile-head { display:flex; align-items:start; justify-content:space-between; gap:20px; }
.bm-profile-head small { color:var(--fd-sage-soft,#4b6651); text-transform:uppercase; letter-spacing:.1em; font-size:10px; }
.bm-profile-head h2 { margin:8px 0 10px; font:700 29px/1.1 var(--fd-display,sans-serif); letter-spacing:-.7px; }
.bm-profile-head button { border:1px solid #879d8b55; border-radius:50%; width:36px; height:36px; flex:none; background:transparent; color:inherit; font-size:23px; cursor:pointer; }
.bm-profile-form > p { color:var(--fd-text-soft,#63726d); margin:10px 0 22px; }
.bm-profile-fields { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.bm-profile-fields label { display:flex; flex-direction:column; gap:6px; font-size:12px; }
.bm-profile-fields :is(input,select) { width:100%; min-width:0; min-height:44px; padding:9px 12px; border:1px solid #879d8b55; border-radius:8px; background:var(--fd-surface,#fff); color:inherit; font:inherit; box-sizing:border-box; }
.bm-profile-priorities { display:flex; flex-wrap:wrap; gap:12px 20px; border:1px solid #879d8b55; border-radius:10px; padding:15px; margin:22px 0 15px; }
.bm-profile-priorities legend { padding:0 7px; font-size:12px; }
.bm-profile-priorities label { display:flex; align-items:center; gap:7px; font-size:12px; }
.bm-profile-priorities input { accent-color:var(--fd-teal,#245957); }
.bm-profile-form .bm-profile-note { font-size:11px; line-height:1.6; margin-bottom:16px; }
.bm-profile-error { color:var(--fd-terracotta,#984b34) !important; }
.bm-profile-actions { display:flex; gap:14px; align-items:center; justify-content:space-between; }
.bm-profile-actions button { min-height:44px; border:0; border-radius:8px; padding:10px 15px; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.bm-profile-actions [type="submit"] { background:var(--fd-terracotta,#984b34); color:white; font-weight:600; }
.bp-match-strip { display:flex; align-items:center; gap:12px; padding:10px 0 14px; font-size:11px; color:var(--fd-text-soft); }
.bp-match-strip > span { flex:1; }
.bp-match-strip b { display:block; color:var(--fd-text); margin-bottom:3px; font-size:12px; }
.bp-match-strip button { display:flex; align-items:center; gap:6px; background:transparent; border:1px solid var(--bp-border); border-radius:7px; min-height:32px; padding:6px 11px; color:inherit; font:inherit; cursor:pointer; }
.bp-match-strip .bp-match-symbol { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:color-mix(in srgb,var(--fd-teal) 12%,transparent); color:var(--fd-teal); font:600 11px var(--fd-body); }
.bp-zone-notice { padding:13px 15px; margin:0 0 18px; border:1px solid var(--bp-border); border-radius:8px; background:var(--fd-surface); color:var(--fd-text-soft); font-size:11px; line-height:1.6; }
.bp-zone-notice button { display:block; padding:7px 0 0; border:0; background:none; text-decoration:underline; color:var(--fd-teal); cursor:pointer; }
.bp-match-dialog { width:min(660px,94vw); }
.bp-match-dialog .bm-detail { margin:22px; }
.bp-uncertain-dialog .bp-cards { padding:20px; }
@media (min-width:900px) {
 .bp-search { padding-top:18px; }
 .bp-search-heading { margin-bottom:17px; }
 .bp-search h1 { font-size:28px; }
 .bp-filter-row { min-height:51px; }
 .bp-match-strip { padding:0 0 13px; }
 .bp-map-tools { flex-wrap:wrap; align-items:flex-start; }
 .bp-zone-toolbar { width:100%; order:2; }
 .bp-map-tools:has(.bz-toolbar.is-editing) > :is(label,button) { display:none; }
 .bp-map-tools .bz-editor { max-width:calc(100% - 28px); padding:10px; }
 .bp-map-tools .bz-editor .bz-editor-actions { gap:5px; }
 .bp-map-tools .bz-editor .bz-instruction { margin:6px 0 8px; font-size:11px; }
 .bp-map-tools .bz-editor .bz-editor-actions button { min-height:30px; padding:4px 7px; font-size:10px; }
 .bp-card-body > .bm-badge { width:100%; margin:0 0 12px; }
 .bp-match-strip .bp-match-symbol { flex:none; }
 .bp-quick-filters { flex-wrap:wrap; }
 .bp-filter-row { padding:8px 0; }
}
@media (max-width:899px) {
 .bm-profile-form { padding:21px 18px; }
 .bm-profile-head h2 { font-size:25px; }
 .bm-profile-fields { gap:12px; }
 .bm-profile-fields label { font-size:11px; }
 .bm-profile-actions { gap:6px; font-size:12px; }
 .fm-preferences { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:5px 14px 7px; color:var(--fd-text-soft); font-size:10px; }
 .fm-preferences button { border:1px solid var(--fd-border); border-radius:20px; background:var(--fd-surface); color:var(--fd-text); font:inherit; padding:7px 11px; min-height:34px; }
 .fm-preferences > span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
 .fm-profile-example { color:var(--fd-terracotta); }
 .fd-summary .bm-badge { align-self:flex-start; }
 .fd-summary .fm-score { display:flex; gap:8px; align-items:center; padding-bottom:8px; }
 .fd-summary .fm-score small { color:var(--fd-text-soft); font-size:10px; }
 .fm-zone-dialog { width:96vw; max-width:96vw; height:90dvh; max-height:90dvh; padding:0; border:1px solid var(--fd-border); border-radius:15px; background:var(--fd-bg); color:var(--fd-text); }
 .fm-zone-dialog::backdrop { background:#102a2bc0; }
 .fm-zone-head { display:flex; justify-content:space-between; padding:14px; align-items:center; font:600 16px var(--fd-body); }
 .fm-zone-head button { width:34px; height:34px; border:1px solid var(--fd-border); border-radius:50%; background:transparent; color:inherit; }
 .fm-zone-tools { padding:0 12px 9px; }
 .fm-zone-map { height:calc(100% - 155px); min-height:250px; }
 .fm-zone-help { padding:8px 14px; margin:0; font:11px/1.5 var(--fd-body); color:var(--fd-text-soft); }
 .fd-sheet .bm-detail { margin:18px 0; }
}
@media (max-width:360px) { .bm-profile-fields { grid-template-columns:1fr; } }
