/* Small shared feedback and page-level refinements; existing layout is retained. */
#toast { position: fixed; inset: 24px 24px auto auto; margin: 0; width: max-content; max-width: min(440px,calc(100vw - 32px)); height: auto; padding: 14px 20px; border: 1px solid #d7e7de; border-left: 3px solid #449477; border-radius: 10px; background: #fff; color: #334155; box-shadow: 0 8px 28px #2230471f; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; z-index: 1001; transform: translateY(-8px); pointer-events: none; }
#toast.show { transform: translateY(0); }
#toast[data-tone=error] { border-color: #efd5da; border-left-color: #c75264; color: #9d3447; }
#toast[data-tone=info] { border-color: #d7e0f3; border-left-color: #5e82c7; }
.empty-state { display: flex; flex-wrap: wrap; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 0; padding: 32px 24px; text-align: center; color: #64748b; }
.empty-state>svg { color: #94a3b8; }
.empty-state h3 { margin: 0; color: #475569; font-size: 14px; line-height: 1.7; }
.empty-state p { margin: 0; max-width: 58ch; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.empty-state>.button { margin-top: 4px; }
.customer-empty .empty-state { padding: 8px 0; }
.customer-assets .customer-extra-actions { gap: 0; }
.customer-assets .customer-extra-actions>.customer-action { border-left: 1px solid #e5eaf1; border-radius: 0; }
.customer-assets .customer-extra-actions { border-left: 1px solid #e5eaf1; }
.customer-assets .customer-extra-actions>.customer-action:first-child { border-left: 0; }
.customer-assets .customer-action[data-action=customer-followups] { background: #edf3fc; border-radius: 6px; margin-left: 4px; }
.customer-assets .customer-identity>button.avatar { padding: 0; cursor: pointer; }
.customer-assets .customer-name-more { display: inline-grid; place-items: center; flex-shrink: 0; width: 24px; height: 28px; padding: 0; border: 0; background: transparent; color: #748299; border-radius: 4px; }
.customer-assets .customer-name-more svg { transform: rotate(90deg); }
.customer-assets .customer-name-more:hover { background: #edf2fa; color: #4263bc; }
.customer-assets .customer-table [data-customer-cell=source] .customer-shop-tag, .customer-assets .customer-source-tag { background: #f0f2f5; color: #657184; }
.customer-assets .customer-action:disabled, .customer-assets .customer-bulk-bar .button:disabled { opacity: .5; }
.customer-bulk-bar.is-idle { padding: 8px 12px; background: #f7f8fa; border-color: #edf0f4; }
.overview-page .metric.has-overdue { border-color: #efccd2; background: #fffafb; }
.overview-page .metric.has-overdue>strong, .overview-page .metric.has-overdue .overdue-warning { color: #b83d50; font-weight: 650; }
.overview-page .metric .overdue-warning { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.analytics-page { min-width: 0; max-width: 100%; }
.analytics-page .business-summary { grid-template-columns: repeat(4,minmax(0,1fr)); }
.analytics-page .business-summary>div, .analytics-page .business-stores, .analytics-page .business-links>button { min-width: 0; }
.analytics-page .business-summary strong, .analytics-page .business-store strong { display: block; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.analytics-page .business-store { display: grid; grid-template-columns: minmax(100px,1fr) repeat(3,minmax(0,1fr)); gap: 16px; }
.analytics-page .business-store>* { min-width: 0; overflow-wrap: anywhere; }
.analytics-page .cohort-bar { flex-wrap: wrap; }
.opportunity-board-page .empty-state { align-items: flex-start; text-align: left; }
.opportunity-board-page .opportunity-column.drop-target, .opportunity-board-page .opportunity-column-head.drop-target { border-color: #8ba5df; background: #eef3ff; }
.opportunity-board-page .opportunity-card.is-dragging { opacity: .45; }
.opportunity-board-page .board-drag-handle { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 16px; border: 0; border-bottom: 1px solid #eef1f5; background: transparent; border-radius: 12px 12px 0 0; color: #8290a2; cursor: grab; font-size: 11px; line-height: 20px; text-align: left; }
.opportunity-board-page .board-drag-handle:active { cursor: grabbing; }
@media(max-width:760px) {
 #toast { top: 16px; right: 16px; }
 .analytics-page .business-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .analytics-page .business-store { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .customer-assets .customer-name-more { width: 32px; height: 36px; }
}
@media(prefers-reduced-motion:reduce) { #toast { transition: none; } }

.customer-assets .customer-table tbody tr[data-customer-id] { cursor: pointer; }
.customer-assets .customer-table tbody tr[data-customer-id]:focus-visible { outline: 2px solid #8ba5df; outline-offset: -2px; }

.customer-assets .customer-result-heading>label { min-width: 0; }
.customer-assets .customer-result-heading select { width: 240px; max-width: 100%; }

.analytics-page .business-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media(max-width:760px) { .analytics-page .business-links { grid-template-columns: minmax(0,1fr); } }
