.mp-person-view > .panel { display: none; }
.mp-person-view, .mp-workbench, .mp-content { min-width: 0; }
.mp-workbench { display: grid; gap: 16px; color: var(--ui-text); }
.mp-workbench .mp-caption { color: var(--ui-text-secondary); font-size: 13px; line-height: 1.6; margin: 6px 0 14px; }
.mp-filters { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr auto; gap: 24px; align-items: end; padding: 20px 24px; background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: 12px; }
.mp-field, .mp-fixed-field { display: grid; gap: 9px; min-width: 0; }
.mp-field > span, .mp-fixed-field > span { color: var(--ui-text-secondary); font-size: 13px; font-weight: 600; }
.mp-fixed-field strong { display: flex; align-items: center; min-height: 44px; font-size: 14px; }
.mp-field input { width: 100%; min-height: 44px; box-sizing: border-box; }
.mp-person-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.mp-person-tab { background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: 8px; padding: 11px 24px; min-height: 44px; color: var(--ui-text-secondary); cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; }
.mp-person-tab[aria-selected="true"] { background: var(--ui-color-primary); border-color: var(--ui-color-primary); color: var(--ui-surface); }
.mp-person-tab:hover { border-color: var(--ui-color-primary); }
.mp-person-tab:active { transform: translateY(1px); }
.mp-workbench button:focus-visible, .mp-country-products summary:focus-visible, .mp-source summary:focus-visible { outline: 3px solid var(--ui-color-primary); outline-offset: 3px; }
.mp-status { margin: -8px 0 0; font-size: 12px; color: var(--ui-text-secondary); }
.mp-status-error { padding: 12px; background: var(--ui-color-surface-subtle); color: var(--ui-color-danger); border-radius: 8px; }
.mp-content { display: grid; gap: 16px; }
.mp-section { padding: var(--component-card-padding); min-width: 0; background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: 12px; }
.mp-section > h3 { margin: 0 0 16px; color: var(--ui-text); font-size: 16px; font-weight: 600; }
.mp-section:first-child > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mp-identity { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--ui-border); }
.mp-person-name { display: flex; gap: 14px; align-items: center; }
.mp-avatar { display: grid; place-items: center; background: var(--ui-color-primary-soft); color: var(--ui-color-primary); border-radius: 50%; width: 44px; height: 44px; font-weight: 700; }
.mp-person-name h2 { margin: 0; font-size: 20px; }
.mp-person-name .mp-caption { margin: 4px 0 0; }
.mp-badge { background: var(--ui-color-surface-muted); color: var(--ui-color-warning); border-radius: 20px; padding: 7px 15px; font-size: 12px; white-space: nowrap; }
.mp-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 22px; }
.mp-metric { display: grid; gap: 10px; min-width: 0; padding: 0 20px; border-left: 1px solid var(--ui-border); }
.mp-metric:first-child { padding-left: 0; border-left: 0; }
.mp-metric > span { color: var(--ui-text-secondary); font-size: 13px; font-weight: 600; }
.mp-metric > strong { font-size: clamp(20px, 2vw, 30px); line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: -.4px; overflow-wrap: anywhere; }
.mp-metric > small { font-size: 12px; color: var(--ui-text-secondary); line-height: 1.5; }
.mp-accent > strong { color: var(--ui-color-primary); }
.mp-success > strong { color: var(--ui-color-success); }
.mp-table-wrap { width: 100%; min-width: 0; overflow-x: auto; }
.mp-table-wrap table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: auto; margin: 0; }
.mp-table-wrap th { white-space: nowrap; padding: var(--component-table-cell-y) var(--component-table-cell-x); background: var(--ui-color-surface-muted); color: var(--ui-text-secondary); font-size: 12px; font-weight: 600; text-align: right; }
.mp-table-wrap td { padding: var(--component-table-cell-y) var(--component-table-cell-x); border-bottom: 1px solid var(--ui-border); vertical-align: middle; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.mp-table-wrap th:first-child, .mp-table-wrap td:first-child { text-align: left; }
.mp-table-wrap td:first-child { font-weight: 600; min-width: 100px; }
.mp-table-wrap td:last-child, .mp-table-wrap th:last-child { color: var(--ui-text-secondary); }
.mp-table-wrap tfoot td { background: var(--ui-color-surface-subtle); font-weight: 650; }
.mp-table-wrap .mp-empty-cell { text-align: center; color: var(--ui-text-secondary); font-weight: 400; padding: 24px; }
.mp-funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 16px 0 12px; }
.mp-stage { position: relative; display: grid; gap: 8px; background: var(--ui-color-surface-subtle); padding: 18px; border-radius: 10px; }
.mp-stage:not(:last-child)::after { content: "→"; position: absolute; right: -23px; top: 38%; color: var(--ui-text-secondary); }
.mp-stage span { color: var(--ui-text-secondary); font-size: 13px; font-weight: 600; }
.mp-stage strong { font-size: clamp(18px, 1.8vw, 25px); font-variant-numeric: tabular-nums; }
.mp-stage small { color: var(--ui-text-secondary); font-size: 11px; line-height: 1.5; }
.mp-stage-1, .mp-stage-2 { background: var(--ui-color-surface-subtle); }
.mp-stage-3 { background: var(--ui-color-primary-soft); color: var(--ui-color-primary); }
.mp-country-products { margin-top: 16px; border: 1px solid var(--ui-border); border-radius: 8px; overflow: hidden; }
.mp-country-products summary { padding: 15px 16px; background: var(--ui-color-surface-subtle); cursor: pointer; color: var(--ui-text); }
.mp-country-products summary span { margin-left: 16px; font-size: 12px; color: var(--ui-text-secondary); }
.mp-country-products td:first-child { max-width: 320px; overflow-wrap: anywhere; }
.mp-source { color: var(--ui-text-secondary); font-size: 12px; line-height: 1.7; padding: 0 4px 16px; }
.mp-source summary { cursor: pointer; }
.mp-pager { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 14px 0 0; }
.mp-country-products .mp-pager { padding: 14px; }
@media (max-width: 1100px) { .mp-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .mp-metric { padding: 0 12px; } .mp-section { padding: 20px; } }
@media (max-width: 700px) { .mp-metrics, .mp-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } .mp-metric { padding: 0; border: 0; } .mp-stage::after { display: none; } .mp-identity { align-items: flex-start; } .mp-section { padding: 16px; } .mp-person-tab { padding: 10px 18px; } }

.mp-notice { margin: 0 0 12px; color: var(--ui-color-warning); font-size: 13px; line-height: 1.5; }
.mp-workbench .mp-section > .mp-caption:last-child { margin-bottom: 0; }
.mp-table-wrap tbody tr:hover { background: var(--ui-color-surface-subtle); }
.mp-country-products summary:hover { background: var(--ui-color-primary-soft); }
.mp-country-products table { table-layout: fixed; }
.mp-country-products th:first-child { width: 34%; }
.mp-country-products td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
