.bd-shell { min-height: 100vh; font-family: var(--font-ui); }
.bd-shell :is(button, a, [role="button"]):not(:disabled) { cursor: pointer; }
.bd-hero { min-height: auto; padding-bottom: 0; background: radial-gradient(circle at top right, rgba(137,169,255,.28), transparent 30%), radial-gradient(circle at bottom left, rgba(212,245,223,.55), transparent 34%), var(--yma-paper); }
.bd-hero-copy { max-width: 920px; padding-top: 2rem; position: relative; z-index: 1; }
.bd-hero-copy h1 { font-family: var(--font-display); font-weight: 100; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; margin: .18em 0 .28em; letter-spacing: -.03em; }
.bd-hero-copy p:last-child { max-width: 760px; margin: 0; font-size: 1rem; line-height: 1.65; color: var(--gray-600); }
.bd-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; position: relative; z-index: 1; }
.bd-main { padding: 1.5rem clamp(1rem, 3vw, 3rem) 4rem; }
.bd-metrics { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 1rem; }
.bd-metric { padding: 1.15rem; border: 1px solid rgba(148,163,184,.25); border-radius: 24px; background: var(--card); }
.bd-metric span { display: block; text-transform: uppercase; letter-spacing: .08em; color: #667085; font-weight: 700; font-size: .75rem; }
.bd-metric strong { display: block; font-size: 2rem; margin-top: .4rem; }
.bd-toolbar { display: grid; gap: 1rem; margin: 1rem 0; padding: 1rem; }
.bd-toolbar-filters { display: grid; grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(175px, 1fr)); gap: 1rem; align-items: end; }
.bd-toolbar-actions { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.bd-toolbar-actions > .ghost-btn { flex: 0 0 auto; }
.bd-toolbar label, .bd-form-grid label, .bd-agreement-grid label, .bd-crm-form label, .bd-import-controls label { display: grid; gap: .4rem; }
.bd-toolbar label span, .bd-form-grid label span, .bd-agreement-grid label span, .bd-crm-form label span, .bd-import-controls label span { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #667085; }
.bd-toolbar :is(input,select), .bd-form-grid :is(input,select,textarea), .bd-agreement-grid :is(input,select,textarea), .bd-crm-form :is(input,select), .bd-import-controls :is(input,select), .bd-inline-form :is(input,select,textarea) { width: 100%; border: 1px solid rgba(148,163,184,.34); background: var(--card); color: inherit; border-radius: 14px; padding: .8rem .9rem; font: inherit; }
.bd-scope-control-wrap { width: min(100%, 680px); display: grid; gap: .4rem; align-content: end; justify-self: end; }
.bd-scope-control-wrap > span { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #667085; }
.bd-scope-toggle { position: relative; width: 100%; display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid rgba(15,23,42,.1); border-radius: 999px; background: rgba(255,255,255,.78); }
.bd-scope-toggle > button { flex: 1; border: 0; border-radius: 999px; padding: 9px 13px; background: transparent; color: var(--gray-600); font: 750 .76rem var(--font-ui); cursor: pointer; white-space: nowrap; }
.bd-scope-toggle > button.active { background: #111; color: #fff; box-shadow: 0 6px 14px rgba(17,17,17,.16); }
.bd-owner-filter { position: absolute; z-index: 24; top: calc(100% + 10px); right: 0; width: min(340px, calc(100vw - 40px)); max-height: 360px; overflow-y: auto; display: grid; gap: 5px; padding: 9px; border: 1px solid var(--yma-line); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 22px 54px rgba(15,23,42,.18); }
.bd-owner-filter button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--gray-600); text-align: left; cursor: pointer; }
.bd-owner-filter button:hover, .bd-owner-filter button.active { border-color: var(--yma-line); background: var(--yma-surface); }
.bd-owner-filter strong { font-size: .72rem; white-space: nowrap; }
.bd-card-type { display: inline-flex; border-radius: 99px; padding: .3rem .55rem; background: #edf2ff; color: #315ecf; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.bd-partner-type-reseller { background: #fff0c2; color: #9a4d08; }
.bd-partner-type-investor { background: #e8ddff; color: #5d438c; }
.bd-partner-type-media { background: #ffdfe9; color: #973652; }
.bd-partner-type-technology { background: #dff0ff; color: #24577e; }
.bd-partner-type-consultancy { background: #e2f6e9; color: #24643c; }
.bd-dialog { width: min(1180px, 96vw); max-height: 94vh; border: 0; border-radius: 32px; padding: 0; background: var(--card); color: inherit; box-shadow: 0 30px 100px rgba(15,23,42,.28); }
.bd-dialog::backdrop { background: rgba(15,23,42,.52); backdrop-filter: blur(8px); }
.bd-compact-dialog { width: min(840px, 94vw); }
.bd-dialog-shell { padding: clamp(1rem, 3vw, 2rem); overflow: auto; max-height: 94vh; }
.bd-dialog-head, .bd-section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.bd-dialog-head h2 { font-size: clamp(2rem, 5vw, 4rem); margin: 0; letter-spacing: -.04em; }
.bd-form-grid, .bd-agreement-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.25rem; }
.bd-span-2 { grid-column: span 2; }
.bd-dialog-actions { display: flex; justify-content: flex-end; padding: 1rem 0; }
.bd-detail-section { border-top: 1px solid rgba(148,163,184,.25); padding-top: 1.5rem; margin-top: 1.5rem; }
.bd-section-head h3 { margin: 0; font-size: 1.5rem; }
.bd-section-head p { color: #667085; }
.bd-inline-form { display: grid; grid-template-columns: 170px 150px 1fr 2fr auto; gap: .75rem; align-items: start; }
.bd-timeline { margin-top: 1rem; display: grid; gap: .65rem; }
.bd-timeline-item, .bd-record { border: 1px solid rgba(148,163,184,.22); border-radius: 18px; padding: .9rem; background: rgba(248,250,252,.55); }
.bd-timeline-item strong, .bd-record strong { display: block; }
.bd-timeline-item small, .bd-record small { color: #667085; }
.bd-activity-mention { color: #315ecf; font-weight: 800; }
.bd-record-list { display: grid; gap: .7rem; margin-top: 1rem; }
.bd-obligation-form { grid-template-columns: 1fr 2fr 1fr auto; margin-top: 1rem; }
.bd-crm-form { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; align-items: end; }
.bd-crm-search-field { position: relative; }
.bd-search-results { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; background: var(--card); border: 1px solid rgba(148,163,184,.35); border-radius: 14px; padding: .35rem; box-shadow: 0 15px 40px rgba(15,23,42,.16); }
.bd-search-results button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: .7rem; border-radius: 10px; color: inherit; }
.bd-search-results button:hover { background: #edf2ff; }
.bd-import-controls { display: grid; grid-template-columns: 2fr 1fr auto auto; gap: 1rem; align-items: end; }
.bd-import-health { margin-top: 1rem; padding: 1rem; border-radius: 18px; background: #edf2ff; }
.bd-import-preview { max-height: 320px; overflow: auto; margin-top: 1rem; }
.bd-import-preview table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.bd-import-preview th, .bd-import-preview td { text-align: left; padding: .6rem; border-bottom: 1px solid rgba(148,163,184,.2); }
.bd-result { position: sticky; top: 1rem; z-index: 10; padding: .8rem 1rem; border-radius: 14px; background: #dff7e8; color: #146c3d; margin-bottom: 1rem; }
.bd-dialog-result { position: sticky; top: calc(var(--bd-profile-sticky-head, 0px) - 1rem); z-index: 20; margin: .75rem 0; padding: .8rem 1rem; border: 1px solid rgba(148,163,184,.25); border-radius: 14px; box-shadow: 0 12px 28px rgba(15,23,42,.12); }
.bd-partner-view { padding: clamp(1rem, 2.5vw, 1.75rem); }
.bd-partner-view .bd-section-head h2 { font-family: var(--font-display); font-weight: 100; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; margin: .2rem 0 .65rem; }
.bd-partner-view .bd-section-head p:last-child { max-width: 780px; margin: 0; color: var(--gray-600); line-height: 1.6; }
.bd-partner-table-wrap { overflow-x: auto; margin-top: 1rem; }
.bd-partner-table { width: 100%; min-width: 1360px; border-collapse: collapse; }
.bd-partner-table th { text-align: left; padding: .75rem; color: #667085; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.bd-partner-table td { padding: 1rem .75rem; border-top: 1px solid rgba(148,163,184,.22); vertical-align: top; }
.bd-sort-heading { display: inline-flex; align-items: center; gap: .35rem; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; text-transform: inherit; }
.bd-sort-heading:hover, .bd-sort-heading.is-active { color: var(--black); }
.bd-sort-heading [data-sort-indicator] { min-width: 1em; font-size: .9rem; }
.bd-relationship-stage { display: inline-flex; align-items: center; border-radius: 999px; padding: .34rem .58rem; background: #edf2ff; color: #315ecf; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.bd-stage-live { background: #dcf7e6; color: #17673a; }
.bd-stage-signing { background: #e8ddff; color: #5d438c; }
.bd-stage-negotiating { background: #fff0c2; color: #8a4b08; }
.bd-stage-dormant, .bd-stage-unqualified, .bd-stage-discarded, .bd-stage-none { background: #eef1f5; color: #667085; }
.bd-stage-discarded { color: #a22a2a; }
.bd-partner-row { transition: opacity .16s ease, background .16s ease; }
.bd-partner-row:hover { background: rgba(139,167,255,.09); }
.bd-partner-row.is-opening { opacity: .62; background: rgba(139,167,255,.12); }
.bd-partner-row strong, .bd-partner-row small { display: block; }
.bd-partner-row small { color: #667085; margin-top: .2rem; }
.bd-partner-row td:nth-child(2) strong { font-size: 1rem; color: var(--black); }
.bd-partner-open-cell { width: 88px; }
.bd-open-profile { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 76px; min-height: 38px; border: 1px solid var(--yma-line); border-radius: 999px; background: var(--card); color: var(--black); font: 800 .72rem var(--font-ui); transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.bd-open-profile:hover { transform: translateY(-1px); border-color: #8ba7ff; background: #edf2ff; }
.bd-open-profile:focus-visible { outline: 3px solid rgba(91, 136, 255, .3); outline-offset: 2px; }
.bd-profile-dialog { width: min(1120px, calc(100vw - 56px)); height: 100vh; max-height: 100vh; margin: 0 0 0 auto; border-radius: 24px 0 0 24px; }
.bd-profile-shell { --bd-profile-sticky-head: 132px; max-height: 100vh; min-height: 100vh; padding: 1.25rem; }
.bd-profile-head { position: sticky; top: -1.25rem; z-index: 8; min-height: var(--bd-profile-sticky-head); margin: -1.25rem -1.25rem 0; padding: 1.25rem 1.25rem 1rem; background: var(--card); border-bottom: 1px solid var(--yma-line-soft); }
.bd-profile-head h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.8rem); font-weight: 100; line-height: 1; }
.bd-profile-head p:last-child { margin: .45rem 0 0; color: var(--gray-600); }
.bd-profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.danger-btn { border: 1px solid #ef4444; border-radius: 999px; background: transparent; color: #c62828; padding: .72rem 1rem; font: 700 .82rem var(--font-ui); cursor: pointer; }
.danger-btn:hover { background: #fff0ef; }
.danger-btn:disabled { cursor: not-allowed; opacity: .45; }
.bd-profile-tabs { position: sticky; top: calc(var(--bd-profile-sticky-head) - 1.25rem); z-index: 7; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; padding: 1rem .2rem .85rem; background: var(--card); box-shadow: 0 12px 18px -18px rgba(15,23,42,.35); }
.bd-profile-tabs button { min-height: 44px; border: 1px solid var(--yma-line); border-radius: 999px; background: transparent; color: var(--gray-600); font: 700 .85rem var(--font-ui); cursor: pointer; }
.bd-profile-tabs button.is-active { background: var(--yma-rail); border-color: var(--yma-rail); color: #fff; }
.bd-profile-tabs.is-company-contact { grid-template-columns: minmax(0, 1fr); }
.bd-profile-panel { display: block; scroll-margin-top: calc(var(--bd-profile-sticky-head) + 74px); padding: 1.1rem; margin-top: .75rem; border: 1px solid var(--yma-line-soft); border-radius: 22px; background: var(--yma-surface-strong); }
.bd-panel-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.bd-panel-heading h3 { margin: 0; font-size: 1.25rem; }
.bd-panel-heading p { margin: .3rem 0 0; color: var(--gray-600); font-size: .86rem; }
.bd-profile-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; gap: .7rem; }
.bd-profile-form-grid .bd-span-2 { grid-column: span 2; }
.bd-profile-form-grid .bd-span-4 { grid-column: 1 / -1; }
.bd-profile-form-grid label { gap: .3rem; }
.bd-profile-form-grid label > span { font-size: .66rem; }
.bd-profile-form-grid :is(input,select,textarea) { border-radius: 12px; padding: .7rem .75rem; font-size: .86rem; }
.bd-profile-form-grid textarea { min-height: 88px; }
.bd-field-muted { opacity: .58; }
.bd-type-row { width: min(100%, 900px); max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bd-type-row label, .bd-type-row select { width: 100%; }
.bd-profile-subsection { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--yma-line-soft); }
.bd-subsection-heading { margin-bottom: .8rem; }
.bd-subsection-heading h4 { margin: 0; font-size: 1rem; }
.bd-subsection-heading p { margin: .25rem 0 0; color: var(--gray-600); font-size: .82rem; }
.bd-employment-card { margin-top: 1rem; padding: 1rem; border: 1px solid var(--yma-line-soft); border-radius: 18px; background: var(--card); }
.bd-employment-history { margin-top: .8rem; }
.bd-employment-history:empty { display: none; }
.bd-linked-company-summary { margin-top: .8rem; }
.bd-linked-company-summary:empty { display: none; }
.bd-linked-company-summary button { width: 100%; text-align: left; border: 1px solid var(--yma-line-soft); border-radius: 14px; background: var(--yma-surface-strong); color: inherit; padding: .8rem; cursor: pointer; }
.bd-linked-company-summary strong, .bd-linked-company-summary small { display: block; }
.bd-linked-company-summary small { margin-top: .25rem; color: var(--gray-600); }
.bd-company-managed-note { margin: .55rem 0 0; color: var(--gray-600); font-size: .82rem; line-height: 1.5; }
.bd-employment-history h5 { margin: 0 0 .45rem; font-size: .8rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: .06em; }
.bd-employment-history ul { margin: 0; padding-left: 1.1rem; color: var(--gray-600); font-size: .82rem; }
.bd-related-contacts { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--yma-line-soft); }
.bd-related-contacts:empty { display: none; }
.bd-contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.bd-contact-card { overflow: hidden; border: 1px solid var(--yma-line-soft); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease; }
.bd-contact-card:hover, .bd-contact-card:focus-visible { border-color: #8ba7ff; box-shadow: 0 10px 24px rgba(15,23,42,.07); outline: none; }
.bd-contact-card.is-expanded { grid-column: 1 / -1; }
.bd-contact-card-toggle { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; text-align: left; border: 0; background: transparent; color: inherit; padding: .8rem; cursor: pointer; }
.bd-contact-card-toggle:hover { background: #edf2ff; }
.bd-contact-card-toggle strong, .bd-contact-card-toggle small { display: block; }
.bd-contact-card-toggle small { margin-top: .25rem; color: var(--gray-600); }
.bd-contact-chevron { font-size: 1.15rem; transition: transform .16s ease; }
.bd-contact-card-toggle[aria-expanded="true"] .bd-contact-chevron { transform: rotate(180deg); }
.bd-contact-inline-detail { padding: 0 .8rem .8rem; border-top: 1px solid var(--yma-line-soft); }
.bd-contact-inline-detail dl { display: grid; gap: .55rem; margin: .75rem 0; }
.bd-contact-inline-detail dl div { min-width: 0; }
.bd-contact-inline-detail dt { color: var(--gray-600); font: 700 .62rem var(--font-ui); text-transform: uppercase; letter-spacing: .05em; }
.bd-contact-inline-detail dd { margin: .15rem 0 0; overflow-wrap: anywhere; font: .78rem var(--font-ui); }
.bd-contact-inline-detail a { color: #2459d3; }
.bd-contact-read-actions { display: flex; justify-content: flex-end; gap: .5rem; }
.bd-edit-company-contact, .bd-delete-company-contact { width: auto; min-height: 34px; padding: .48rem .78rem; }
.bd-delete-company-contact { border-color: rgba(239,68,68,.34); background: #fff5f5; color: #c62828; box-shadow: none; }
.bd-delete-company-contact:hover { border-color: rgba(239,68,68,.58); background: #fee2e2; color: #991b1b; }
.bd-contact-inline-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: .8rem; }
.bd-contact-inline-editor label { display: grid; gap: .3rem; min-width: 0; }
.bd-contact-inline-editor label > span { color: var(--gray-600); font: 700 .62rem var(--font-ui); text-transform: uppercase; letter-spacing: .05em; }
.bd-contact-inline-editor :is(input,textarea) { min-width: 0; width: 100%; border: 1px solid rgba(148,163,184,.34); background: var(--card); color: inherit; border-radius: 12px; padding: .72rem; font: .82rem var(--font-ui); }
.bd-contact-inline-editor .bd-span-2 { grid-column: 1 / -1; }
.bd-contact-inline-actions { display: flex; justify-content: flex-end; gap: .55rem; }
.bd-contact-create { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: .6rem; margin-top: .8rem; }
.bd-contact-create input { min-width: 0; border: 1px solid rgba(148,163,184,.34); background: var(--card); color: inherit; border-radius: 12px; padding: .72rem; font: .82rem var(--font-ui); }
.bd-entity-activity-form { display: grid; grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(120px, .7fr)) auto; gap: .65rem; align-items: start; }
.bd-mention-composer { position: relative; grid-column: 1 / -2; }
.bd-entity-activity-form textarea { min-height: 76px; }
.bd-entity-activity-form :is(input,select,textarea) { width: 100%; border: 1px solid rgba(148,163,184,.34); background: var(--card); color: inherit; border-radius: 12px; padding: .72rem; font: .86rem var(--font-ui); }
.bd-mention-results { position: absolute; z-index: 12; left: .4rem; bottom: calc(100% - .25rem); width: min(420px, calc(100% - .8rem)); max-height: 220px; overflow-y: auto; padding: .35rem; border: 1px solid var(--yma-line); border-radius: 14px; background: var(--card); box-shadow: 0 16px 42px rgba(15,23,42,.18); }
.bd-mention-results button { display: block; width: 100%; border: 0; border-radius: 10px; padding: .65rem .75rem; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.bd-mention-results button:hover, .bd-mention-results button.is-active { background: #edf2ff; }
.bd-mention-results strong, .bd-mention-results small { display: block; }
.bd-mention-results small { margin-top: .15rem; color: var(--gray-600); }
.bd-opportunity-record { display: block; width: 100%; text-align: left; color: inherit; cursor: pointer; }
.bd-opportunity-record:hover { border-color: #8ba7ff; transform: translateY(-1px); }
.bd-opportunity-record strong { margin-top: .55rem; font-size: 1rem; }
.bd-opportunity-record p, .bd-record p { margin: .45rem 0; color: var(--gray-600); line-height: 1.5; }
.bd-opportunity-record em { display: block; margin-top: .65rem; color: var(--gray-700); font-size: .82rem; font-style: normal; }
.bd-inline-opportunity { margin: 0 0 1rem; padding: 1rem; border: 1px solid rgba(139,167,255,.42); border-radius: 18px; background: linear-gradient(135deg, rgba(139,167,255,.09), rgba(247,217,255,.1)); }
.bd-inline-opportunity-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
.bd-inline-opportunity-actions .danger-btn { margin-right: auto; }
.hidden { display: none !important; }
html[data-theme="dark"] :is(.bd-timeline-item,.bd-record,.bd-profile-panel,.bd-inline-opportunity) { background: rgba(25,30,42,.82); }
html[data-theme="dark"] .bd-card-type { background: rgba(49,94,207,.25); color: #b9c9ff; }
html[data-theme="dark"] .bd-scope-toggle { background: rgba(25,30,42,.88); border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .bd-owner-filter { background: rgba(25,30,42,.98); }
html[data-theme="dark"] .bd-activity-mention { color: #b9c9ff; }
html[data-theme="dark"] .bd-mention-results button:hover, html[data-theme="dark"] .bd-mention-results button.is-active { background: rgba(49,94,207,.25); }
html[data-theme="dark"] :is(.bd-profile-head,.bd-profile-tabs) { background: var(--card); }
html[data-theme="dark"] .danger-btn:hover { background: rgba(239,68,68,.12); }
html[data-theme="dark"] .bd-delete-company-contact { border-color: rgba(248,113,113,.52); background: rgba(127,29,29,.22); color: #fca5a5; }
html[data-theme="dark"] .bd-delete-company-contact:hover { border-color: rgba(248,113,113,.76); background: rgba(153,27,27,.34); color: #fecaca; }
@media (max-width: 900px) {
  .bd-profile-shell { --bd-profile-sticky-head: 150px; }
  .bd-metrics { grid-template-columns: repeat(2,1fr); }
  .bd-toolbar-filters { grid-template-columns: 1fr 1fr; }
  .bd-form-grid, .bd-agreement-grid, .bd-crm-form { grid-template-columns: 1fr; }
  .bd-span-2 { grid-column: auto; }
  .bd-inline-form, .bd-obligation-form, .bd-import-controls { grid-template-columns: 1fr; }
  .bd-profile-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-type-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-profile-form-grid .bd-span-4 { grid-column: 1 / -1; }
  .bd-entity-activity-form { grid-template-columns: 1fr 1fr; }
  .bd-entity-activity-form textarea { grid-column: 1 / -1; }
  .bd-profile-tabs { overflow-x: auto; grid-template-columns: repeat(5, minmax(145px, 1fr)); }
  .bd-contact-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bd-metrics { grid-template-columns: 1fr; }
  .bd-toolbar-filters { grid-template-columns: 1fr; }
  .bd-toolbar-actions { align-items: stretch; flex-direction: column-reverse; }
  .bd-toolbar-actions > .ghost-btn { width: 100%; }
  .bd-scope-toggle { width: 100%; }
  .bd-scope-toggle > button { flex: 1; }
  .bd-dialog { width: 100vw; max-height: 100vh; border-radius: 0; }
  .bd-dialog-shell { max-height: 100vh; }
  .bd-profile-form-grid, .bd-entity-activity-form { grid-template-columns: 1fr; }
  .bd-type-row { grid-template-columns: 1fr; }
  .bd-profile-form-grid .bd-span-2, .bd-profile-form-grid .bd-span-4, .bd-entity-activity-form textarea { grid-column: auto; }
  .bd-profile-shell { --bd-profile-sticky-head: 176px; }
  .bd-profile-head { align-items: center; }
  .bd-profile-actions { width: 100%; justify-content: flex-start; }
  .bd-contact-cards { grid-template-columns: 1fr; }
  .bd-contact-create { grid-template-columns: 1fr; }
  .bd-contact-inline-editor { grid-template-columns: 1fr; }
  .bd-contact-inline-editor .bd-span-2 { grid-column: auto; }
  .bd-inline-opportunity-actions { align-items: stretch; flex-direction: column-reverse; }
}
