/* Shared refinement layer, loaded after each screen's incumbent stylesheet. */
:root {
  --action: #b83e08;
  --action-hover: #923006;
  --text-secondary: #566174;
  --focus: #964007;
  --control-size: 44px;
  --text-accent: #c74b12;
  --text-success: #08752e;
}
::selection { background: #ffe0cb; color: #17191c; }
input, textarea { caret-color: var(--action); }
:is(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sidebar :is(a, button):focus-visible { outline-color: #ffab77; }
.search-box:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 24px; }
input::placeholder { color: var(--text-secondary); opacity: 1; }
:is(.primary:not(.pending), .search-submit, .category.active, .momentum-tab.is-active, .momentum-primary, .discovery-primary, .discovery-chip.active, .op-primary, .op-filter.active, .bh-primary-action) { background: var(--action); border-color: var(--action); color: #fff; }
:is(.primary:not(.pending), .momentum-primary, .discovery-primary, .op-primary, .bh-primary-action):hover { background: var(--action-hover); border-color: var(--action-hover); }
:is(.primary, .secondary, .category, .save, .filter-button, .search-submit, .insights-button, .dialog-close, .momentum-tab, .momentum-primary, .momentum-secondary, .discovery-primary, .discovery-secondary, .discovery-chip, .op-primary, .op-secondary, .op-filter, .bh-small-action, .bh-primary-action) { min-height: var(--control-size); }
.save { width: var(--control-size); height: var(--control-size); }
.save.saved { background: var(--action); }
.nav-item { padding-inline: 17px; gap: 14px; }
.nav-item.active:before { width: 1px; }
h1 { letter-spacing: -.035em; text-wrap: balance; }
h2 { letter-spacing: -.025em; }
.business-identity h3 { font-size: 14px; line-height: 1.4; }
.business-identity p, .business-identity small { font-size: 12px; color: var(--text-secondary); }
.business-identity { align-items: flex-start; }
.health-line { flex-wrap: wrap; gap: 7px; }
.health-label { font-size: 11px; color: var(--text-secondary); }
.primary, .secondary { font-size: 12px; }
.feed-row p { font-size: 13px; }
.feed-row small, .feed-row .time, .health-ring small, .health-overview li, .demo-note { font-size: 12px; }
.feed-row .time { white-space: normal; text-align: right; }
.health-overview { flex-wrap: wrap; justify-content: center; }
.health-overview li { white-space: normal; line-height: 1.5; }
.demo-note { line-height: 1.65; color: var(--text-secondary); }
.health-summary { padding: 22px; }
.view-all { min-height: 44px; color: var(--action); }
.score, .health-ring strong { font-variant-numeric: tabular-nums; }
dialog { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.request-feedback { position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: min(420px, calc(100vw - 32px)); padding: 16px 20px; color: #fff; background: #17191c; border-radius: 12px; box-shadow: 0 8px 24px #0002; line-height: 1.6; }
.request-feedback:empty { display: none; }
.htmx-request { cursor: progress; }
button.htmx-request { opacity: .7; }
@media (max-width: 760px) {
  .bottom-nav { gap: 0; padding-inline: 4px; }
  .bottom-nav a { flex: 1 1 0; min-width: 0; font-size: 10px; gap: 7px; }
  .bottom-nav .icon { width: 20px; height: 20px; }
  .business-card { flex-basis: min(310px, calc(100vw - 56px)); }
  .business-identity h3 { font-size: 14px; }
  .category { font-size: 12px; padding: 10px 16px; }
  .health-overview { flex-wrap: nowrap; }
  .health-overview li { font-size: 11px; }
  .request-feedback { bottom: calc(92px + env(safe-area-inset-bottom)); right: 16px; }
}
@media (max-width: 380px) { .bottom-nav a { font-size: 9px; } .health-overview { flex-wrap: wrap; } }
/* Namespaced controls use the same contrast and target-size rules. */
:is(.dc-orange:not(:disabled), .dc-pill.active, .dc-more-filters button[aria-pressed=true], .momentum-profile-button, .op-pill.active, .op-search-submit) { background: var(--action); border-color: var(--action); color: #fff; }
:is(.dc-orange, .dc-profile-button, .dc-chip, .dc-filter-toggle, .dc-carousel-controls button, .momentum-connect-button, .momentum-profile-button, .momentum-save, .momentum-network-controls button, .op-pill, .op-engagement button, .op-engagement>a, .op-trending button, .bh-view-details) { min-height: 44px; }
:is(.dc-orange, .dc-profile-button, .dc-chip, .op-pill, .op-business-card .op-primary) { font-size: 12px; }
.dc-carousel-controls button, .momentum-network-controls button, .momentum-save { min-width: 44px; }
:is(.dc-identity p, .dc-identity small, .dc-reasons li, .dc-opportunity p, .dc-demo-note, .op-demo-note, .op-business-card p, .op-business-card small, .op-ai-panel li small, .momentum-industry, .momentum-explanation) { font-size: 12px; line-height: 1.6; color: var(--text-secondary); }
:is(.dc-search, .op-search, .momentum-search) input::placeholder { color: var(--text-secondary); }
.insync-opportunities-page :is(button,a,textarea,input,select,[tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.op-business-card .op-primary { min-height: 44px; }
.op-primary:disabled { background: #fff0e4; color: #8a3b10; border-color: #f4d5bb; }
.op-primary:disabled:hover { background: #fff0e4; color: #8a3b10; border-color: #f4d5bb; }
.dc-reasons li { align-items: flex-start; }
.dc-reasons li>span { flex-shrink: 0; }
:is(.dc-identity, .op-business-card)>div { min-width: 0; }
.dc-pill { min-height: 44px; font-size: 12px; }
.dc-search-submit { background: transparent; color: var(--text); }
.momentum-connect-button { background: #fff; border-color: #e3e5e8; color: var(--text); }
.momentum-connect-button:disabled { background: #fff3e9; color: #8a3b10; }
.momentum-profile-button, .momentum-connect-button { font-size: 12px; }
.nav-item span { line-height: 1.4; }
.panel-navigation { display: grid; gap: 8px; margin-top: 16px; }
.dc-industry-note, .momentum-demo-note, .bh-demo-note { font-size: 12px; line-height: 1.6; color: var(--text-secondary); }
.bh-category-status, .bh-small-action, .bh-view-details { color: var(--action); }
.bh-tone-green .bh-category-status { color: #08752e; }
.bottom-nav a.active { color: var(--action); }
.op-search-row:focus-within, .momentum-search:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Reviewed cross-screen refinements: readable context, consistent actions and real hit areas. */
.demo-context { color: var(--text-secondary); font-size: 12px; line-height: 1.6; margin: 8px 0 12px; max-width: 70ch; }
.momentum-session-note { margin-inline: 20px; }
.hero h1 span, .momentum-hero h1 span, .dc-hero h1 span, .bh-hero h1 span, .op-hero h1 span { color: var(--text-accent); }
.momentum-activity-row p, .momentum-activity-row time, .momentum-date,
.dc-mobile-description, #dc-position, .dc-compact-business small,
.bh-since, .bh-signal-list p, .bh-attention .bh-signal-list p, .bh-recommendation-list p,
.op-description, .op-story-card time, .op-story-meta, .op-business-card time { color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.dc-match-badge, .op-new-badge, .bh-point-trend { color: var(--text-success); }
.dc-see-all, .momentum-mobile-see-all, .op-section-heading>a, .op-section-heading button { color: var(--action); }
.momentum-connect-button:not(:disabled) { background: var(--action); border-color: var(--action); color: white; }
.momentum-connect-button:not(:disabled):hover, .dc-orange:not(:disabled):hover { background: var(--action-hover); }
.momentum-featured .momentum-featured-actions .momentum-profile-button { background: white; border-color: #d8dde3; color: var(--text); }
.dc-card-actions { margin: 4px 0 16px; }
.insync-discovery-page :is(a,button,input,select,[tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.lower-dashboard>* { min-width: 0; }
.section-heading, .bh-section-heading { flex-wrap: wrap; }
.bh-section-heading>h2 { min-width: 0; }
.bh-view-details { flex-shrink: 0; }
.feed-row>div { min-width: 0; }
.bh-chart-range-label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 5px; }
.bh-trend select, .bh-range-form select, .bh-mobile-report-range select { min-height: 44px; font-size: 12px; }
.bh-trend .bh-section-heading form { max-width: 100%; }
.bh-mobile-report-range select { border: 1px solid #d8dde3; background: white; border-radius: 12px; padding: 8px 12px; color: var(--text); }
.bh-category, .bh-small-action { min-height: 44px; }
.momentum-health h2 button, .momentum-mobile-see-all, .dc-see-all, .op-section-heading>a, .op-primary { min-height: 44px; }
.momentum-mobile-see-all, .dc-see-all, .op-section-heading>a { display: inline-flex; align-items: center; }
.momentum-activity select { min-height: 44px; }
.op-story-main time { color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.op-ai-panel>a.op-primary { min-height: 44px; }
.op-engagement :is(a,button), .view-all, .bh-view-details, .momentum-mobile-see-all { min-width: 44px; }
.dc-matches-heading .dc-see-all { color: var(--action); }
.op-section-heading>a { color: var(--action); }
.notification.round, .mobile-avatar, .momentum-avatar, .dc-avatar, .bh-avatar, .op-avatar,
.business-select, .dc-business, .bh-business-select, .op-business-select,
.dc-industry-next, .dc-search-submit, .op-filter-toggle, .op-search-submit, .filter-button, .search-submit,
.momentum-health-mobile-arrow { min-width: 44px; min-height: 44px; }
.mobile-avatar img, .momentum-avatar img, .dc-avatar img, .bh-avatar img, .op-avatar img { width: 34px; height: 34px; border-radius: 50%; margin: auto; }
.momentum-carousel-dots, .dc-pagination { gap: 0; }
.momentum-carousel-dots button, .dc-pagination button { width: 44px; height: 44px; background: transparent; border-radius: 0; display: grid; place-items: center; }
.momentum-carousel-dots button::after, .dc-pagination button::after { content: ''; position: static; width: 7px; height: 7px; border-radius: 50%; background: #7c8795; }
.momentum-carousel-dots button.is-active, .dc-pagination button[aria-pressed=true] { background: transparent; }
.momentum-carousel-dots button.is-active::after, .dc-pagination button[aria-pressed=true]::after { background: var(--action); }
@media (max-width: 1000px) and (min-width: 761px) {
  .lower-dashboard { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .dc-pills { flex-wrap: wrap; justify-content: flex-start; }
  .dc-cover { height: 100px; }
  .dc-card-body { display: flex; flex-direction: column; }
  .dc-identity { min-height: 62px; }
  .dc-card-body>.demo-context { margin: 2px 0 4px; }
  .dc-relationship { margin-top: 4px; }
  .bh-mobile-report-range { margin: 0 0 16px; font-size: 12px; flex-wrap: wrap; }
  .bh-category-name { white-space: normal; }
  .bh-category { grid-template-columns: 30px minmax(0,1fr) 60px 36px 13px; }
  .momentum-activity-row p, .momentum-activity-row time, .dc-compact-business small,
  .bh-attention .bh-signal-list p, .bh-recommendation-list p { font-size: 12px; }
  .momentum-carousel-dots { margin-block: 0; }
}
