/* Каналы и результаты · DESIGN_SYSTEM.md. Data first; no decorative hero. */
.am-dashboard{min-width:0;color:#1c1c24;font-size:14px;line-height:22px;font-variant-numeric:tabular-nums}
.am-dashboard .page-heading{margin-bottom:24px}
.am-dashboard .page-heading h1{font-size:28px;line-height:36px;font-weight:600;letter-spacing:-.6px;color:#1c1c24}
.am-dashboard .page-heading p{font-size:13px;line-height:20px;color:#656574}
.am-dashboard h2{font-size:16px;line-height:24px;font-weight:600;margin:0;color:#1c1c24;letter-spacing:0}
.am-dashboard h3{font-size:14px;line-height:20px;font-weight:600;margin:0;color:#1c1c24}
.am-dashboard .button{min-height:34px;padding:6px 12px;gap:8px;border:1px solid #888897;border-radius:6px;background:#fff;color:#1c1c24;font-size:13px;line-height:20px;font-weight:500;box-shadow:none;transform:none}
.am-dashboard .button:hover{background:#f0f0f5;transform:none}
.am-dashboard .button:active{background:#ebebf2}
.am-dashboard .button:disabled{background:#f0f0f5;border-color:#e7e7ee;color:#8a8a98;cursor:not-allowed}
.am-dashboard .button.primary{background:linear-gradient(120deg,#0147fd 0%,#295aed 65%,#5477ff 100%);border-color:transparent;color:#fff}
.am-dashboard .button.primary:hover{background:#064bff;border-color:#064bff}
.am-dashboard .button.primary:active{background:#0036c7;border-color:#0036c7}
.am-dashboard .button.ghost{background:none;border-color:transparent;color:#656574}
.am-dashboard .button.ghost:hover{background:#f0f0f5;color:#1c1c24}
.am-dashboard .button .icon{width:16px;height:16px}
.am-dashboard :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #0147fd;outline-offset:3px}
.am-toolbar{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:24px}
.am-toolbar .am-company-field{width:280px;max-width:100%;min-width:0;margin:0;font-size:13px;line-height:20px}
.am-toolbar .field select{width:100%;height:34px;min-height:34px;border:1px solid #888897;border-radius:6px;background-color:#fff;font-size:13px;line-height:20px;color:#1c1c24}
.am-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.am-tabs{display:flex;gap:24px;overflow:auto;margin:0 0 24px;padding:8px 0;border-bottom:1px solid #e7e7ee}
.am-tabs>button{flex:none;min-height:40px;padding:8px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:#656574;font-family:inherit;font-size:13px;line-height:20px;font-weight:500;white-space:nowrap;cursor:pointer;box-shadow:none}
.am-tabs>button[aria-current=page]{color:#1c1c24;border-bottom-color:#0147fd}
.am-result{display:grid;grid-template-columns:5fr 7fr;margin:0 0 24px;border-radius:12px;overflow:hidden;background:#fff}
.am-result-main{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:24px;background:linear-gradient(120deg,#0147fd 0%,#295aed 65%,#5477ff 100%);color:#fff}
.am-result-main>span{font-size:13px;line-height:20px}
.am-result-main>strong{font-size:38px;line-height:44px;font-weight:600;letter-spacing:-.6px}
.am-result-main>p{font-size:13px;line-height:20px;margin:0;color:#fff}
.am-result-main>.button{margin-top:8px;background:#fff;border-color:#fff;color:#0147fd}
.am-result-main>.button:hover{background:#edf3ff;border-color:#edf3ff}
.am-result-support{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:24px;align-content:space-between}
.am-result-support>div{display:flex;flex-direction:column;gap:8px}
.am-result-support>div>span{font-size:13px;line-height:20px;color:#656574}
.am-result-support>div>strong{font-size:26px;line-height:34px;font-weight:600}
.am-result-support>footer{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding-top:16px;border-top:1px solid #e7e7ee}
.am-status{display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;border-radius:4px;font-size:12px;line-height:18px;font-weight:500;white-space:nowrap;color:#656574;background:#f0f0f5}
.am-status-danger,.am-status-error{color:#af354b;background:#fcecf0}
.am-status-warning,.am-status-partial{color:#855d16;background:#fff5de}
.am-status-ready{color:#26745c;background:#eaf5ee}
.am-status-pending,.am-status-paused,.am-status-neutral{color:#656574;background:#f0f0f5}
.am-caption{font-size:12px;line-height:18px;color:#656574}
.am-analysis{display:grid;grid-template-columns:minmax(0,8fr) minmax(256px,4fr);gap:24px;align-items:start;margin-bottom:24px}
.am-comparison,.am-health,.am-workspace{min-width:0;background:#fff;border:1px solid #e7e7ee;border-radius:10px;padding:24px}
.am-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.am-section-heading p{font-size:12px;line-height:18px;color:#656574;margin:4px 0 0}
.am-plot-axis{display:flex;justify-content:space-between;gap:8px;margin:8px 96px 8px 208px;color:#656574;font-size:12px;line-height:18px}
.am-plot-row{display:grid;grid-template-columns:192px minmax(96px,1fr) 80px;gap:16px;align-items:center;padding:8px 0;border-bottom:1px solid #e7e7ee;min-height:54px}
.am-plot-row:last-child{border-bottom:0}
.am-plot-label{min-width:0}
.am-plot-label>strong{display:block;font-size:13px;line-height:20px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.am-plot-label>span{display:block;font-size:12px;line-height:18px;color:#656574;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.am-plot-row>svg{display:block;width:100%;height:20px;overflow:visible}
.am-plot-row svg line{stroke:#888897;stroke-width:1}
.am-bar-up{fill:#0147fd}.am-bar-down{fill:#af354b}
.am-plot-values{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:0;font-variant-numeric:tabular-nums}
.am-change{font-size:13px;line-height:20px;font-weight:600;color:#0147fd;white-space:nowrap}
.am-change.is-down{color:#af354b}
.am-plot-values>small{font-size:12px;line-height:18px;color:#656574;text-align:right;overflow-wrap:anywhere}
.am-chart-note{margin:16px 0 0;font-size:12px;line-height:18px;color:#656574}
.am-chart-empty{padding:24px 0;color:#656574;font-size:13px;line-height:20px}
.am-chart-empty p{margin:0 0 8px;color:#1c1c24}
.am-chart-empty span{font-size:12px;line-height:18px}
.am-chart-values{margin-top:16px}
.am-chart-values summary,.am-help summary{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;min-height:34px;cursor:pointer;color:#0147fd;font-size:13px;line-height:20px;list-style:none}
.am-chart-values summary::-webkit-details-marker,.am-help summary::-webkit-details-marker{display:none}
.am-chart-values summary .icon,.am-help summary .icon{width:12px;height:12px;flex:none}
.am-chart-values[open]>summary .icon,.am-help[open]>summary .icon{transform:rotate(90deg)}
.am-health>.am-caption{margin:0 0 16px}
.am-health dl{margin:0 0 16px}
.am-health dl>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e7e7ee}
.am-health dt{display:flex;align-items:center;gap:8px;font-size:13px;line-height:20px;color:#656574}
.am-health dd{font-size:16px;line-height:24px;font-weight:600;margin:0}
.am-dot{display:block;flex:none;width:6px;height:6px;border-radius:50%;background:#888897}
.am-dot-error{background:#af354b}.am-dot-partial{background:#855d16}.am-dot-ready{background:#26745c}.am-dot-pending{background:#0147fd}
.am-health>.button{margin-bottom:12px}
.am-table-scroll{overflow:auto;min-width:0;max-width:100%}
.am-table{width:100%;border-collapse:collapse;border-spacing:0;color:#1c1c24;font-size:14px;line-height:22px;text-align:left}
.am-table caption{padding:12px 16px;text-align:left;color:#656574;font-size:12px;line-height:18px}
.am-table th,.am-table td{padding:12px 16px;border:0;border-bottom:1px solid #e7e7ee;vertical-align:top;text-align:left}
.am-table thead th{height:40px;padding:10px 16px;background:#fff;color:#656574;font-size:12px;line-height:18px;font-weight:500;white-space:nowrap;vertical-align:middle}
.am-table tbody th{font-weight:500;min-width:160px}
.am-table tbody td{height:58px}
.am-table tbody tr:hover{background:#f0f0f5}
.am-table .numeric{text-align:right;font-variant-numeric:tabular-nums}
.am-table :is(td,th)>small{display:block;font-size:12px;line-height:18px;color:#656574;margin-top:4px}
.am-table td>span:not(.am-status):not(.am-caption){display:block}
.am-table td>strong{font-weight:500}
.am-table td>p{font-size:12px;line-height:18px;margin:4px 0 0;color:#656574;overflow-wrap:anywhere}
.am-incident-table{min-width:1000px}
.am-incident-table td:nth-child(2){min-width:240px;max-width:440px}
.am-source-table{min-width:1080px}
.am-provider{display:flex;align-items:center;gap:8px;min-width:0}
.am-provider img{width:24px;height:24px;object-fit:contain;border-radius:0;flex:none}
.am-provider>span{min-width:0;font-size:13px;line-height:20px}
.am-provider small{display:block;font-size:12px;line-height:18px;font-weight:400;color:#656574}
.am-company-link{display:inline-block;min-height:34px;padding:0;border:0;border-radius:0;background:none;color:#1c1c24;text-align:left;font-family:inherit;font-size:14px;line-height:22px;font-weight:500;cursor:pointer;overflow-wrap:anywhere}
.am-company-link:hover{color:#0147fd;text-decoration:underline}
.am-time{font-size:12px;line-height:18px;color:#656574;min-width:100px}
.am-table .am-stale{color:#855d16}
.am-details-toggle{white-space:nowrap}
.am-dashboard .am-details-toggle .icon{width:12px;height:12px}
.am-details-toggle[aria-expanded=true] .icon{transform:rotate(90deg)}
.am-expanded-row>td{background:#f6f6f9;padding:16px}
.am-source-details{display:grid;grid-template-columns:1fr 1fr;gap:24px;text-align:left;white-space:normal}
.am-source-details h3{font-size:14px;line-height:20px;margin:0 0 8px}
.am-source-details p{font-size:13px;line-height:20px;margin:8px 0;color:#1c1c24;overflow-wrap:anywhere}
.am-source-details p.am-caption{font-size:12px;line-height:18px;color:#656574}
.am-notice{margin:12px 0;padding:12px 16px;border-radius:6px;background:#fff5de;color:#855d16;font-size:13px;line-height:20px;overflow-wrap:anywhere}
.am-error{color:#af354b;background:#fcecf0}
.am-pagination{display:flex;justify-content:flex-end;align-items:center;gap:16px;flex-wrap:wrap;margin-top:16px;font-size:12px;line-height:18px;color:#656574}
.am-empty{padding:24px 0;text-align:left;color:#656574}
.am-empty h3,.am-empty h2{margin:0 0 8px}
.am-empty p{font-size:13px;line-height:20px;margin:0 0 16px;max-width:600px}
.am-loading{padding:24px;background:#fff;border:1px solid #e7e7ee;border-radius:10px;color:#656574;font-size:13px;line-height:20px}
.am-loading>div{display:grid;gap:16px;margin-top:24px}
.am-loading i{display:block;height:48px;border-radius:4px;background:#f0f0f5}
.am-help{margin-top:24px;padding:16px 0;border-top:1px solid #e7e7ee;color:#656574;font-size:13px;line-height:20px}
.am-help>div{max-width:900px;padding-top:8px}
.am-help p{margin:8px 0}
#agency-monitor [hidden]{display:none}
/* Existing settings, connections and pixel workflows retain their handlers. */
#modal .am-settings,#modal .am-connections{max-width:none}
#modal .am-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}
#modal .am-settings .check-label{display:flex;align-items:center;gap:8px;min-height:34px;font-size:13px;line-height:20px}
#modal .am-settings .field input{width:100%;min-width:0}
#modal .am-connection-cards{display:grid;gap:24px}
#modal .am-connection-cards h3{display:flex;align-items:center;gap:8px;font-size:16px;line-height:24px}
#modal .am-connection-cards .button{margin:8px 8px 0 0}
#modal .am-connection-cards .am-provider img{width:24px;height:24px}
#modal .am-auth-box{padding:16px;background:#f0f0f5;border-radius:6px;color:#1c1c24}
#modal .am-auth-box strong{font-size:20px;line-height:28px;letter-spacing:2px}
#modal .am-counter-binding{border-top:1px solid #e7e7ee;padding:16px 0;display:flex;flex-direction:column;gap:8px}
#modal .am-counter-binding small{display:block;color:#656574;font-size:12px;line-height:18px;margin-top:4px;overflow-wrap:anywhere}
#modal .am-counter-binding form{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#modal .am-counter-binding select{max-width:100%;width:180px}
#modal .am-counter-binding .chip{align-self:start}
#agency-pixel-panel{min-width:0}
.am-dashboard .am-counters{display:flex;gap:24px;flex-wrap:wrap;margin:24px 0;padding:16px 0;border-block:1px solid #e7e7ee}
.am-dashboard .am-counter{display:flex;flex-direction:column;gap:8px;min-width:120px;background:none;border:0;border-radius:0;padding:0}
.am-dashboard .am-counter>span{font-size:12px;line-height:18px;color:#656574}
.am-dashboard .am-counter>strong{font-size:26px;line-height:34px;color:#1c1c24;font-weight:600}
.am-dashboard .am-sources{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}
.am-dashboard .am-source{padding:16px;border:1px solid #e7e7ee;border-radius:8px;min-width:0;background:#fff}
.am-dashboard .am-source h3{margin-bottom:16px}
.pixel-settings{display:grid;gap:16px;max-width:650px;margin-top:24px}
.pixel-settings textarea,.pixel-code{width:100%;box-sizing:border-box;padding:12px;border:1px solid #888897;border-radius:6px;background:#f0f0f5;color:#1c1c24;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.pixel-code{font-family:ui-monospace,monospace;font-size:12px;line-height:18px}
.pixel-table{display:grid;gap:12px}
.pixel-table>div{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #e7e7ee;padding-bottom:8px}
.pixel-table span{overflow-wrap:anywhere;min-width:0;font-size:13px;line-height:20px}
.pixel-table b{flex-shrink:0;font-size:13px;line-height:20px;font-weight:500}
.pixel-settings label:not(.field){display:flex;gap:8px;align-items:center;min-height:34px;font-size:13px;line-height:20px}
#agency-pixel-panel h2{margin-top:0}
@media(max-width:1100px){.am-analysis{grid-template-columns:minmax(0,1fr)}.am-health dl{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.am-health dl>div{align-items:flex-start;flex-direction:column;gap:8px;border-bottom:0;padding:8px 0}.am-health dt{align-items:flex-start;font-size:12px;line-height:18px}.am-health .am-dot{margin-top:6px}}
@media(max-width:760px){.am-result{grid-template-columns:minmax(0,1fr)}.am-result-support{gap:16px}.am-toolbar-actions{width:100%}.am-toolbar .am-company-field{width:100%}.am-dashboard .am-sources{grid-template-columns:minmax(0,1fr)}.am-source-details{grid-template-columns:minmax(0,1fr)}.am-pagination{justify-content:flex-start}.am-help summary{width:auto}}
@media(max-width:600px){.am-dashboard .page-heading h1{font-size:26px;line-height:34px}.am-dashboard .button,.am-tabs>button,.am-company-link{min-height:44px}.am-toolbar .field select{height:44px;min-height:44px}.am-toolbar-actions>.button{flex:1 1 auto}.am-tabs{gap:24px}.am-result-main,.am-result-support,.am-comparison,.am-health,.am-workspace{padding:16px}.am-plot-row{grid-template-columns:minmax(112px,1fr) minmax(88px,1fr) 64px;gap:8px}.am-plot-axis{margin-left:calc((100% - 80px)/2 + 8px);margin-right:72px}.am-plot-label>strong{font-size:12px;line-height:18px}.am-plot-values>small{font-size:12px;line-height:18px}.am-health dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.am-health dl>div{padding:0}.am-chart-values summary,.am-help summary{min-height:44px}#modal .am-settings-grid{grid-template-columns:minmax(0,1fr)}#modal .am-settings .check-label,.pixel-settings label:not(.field){min-height:44px}}
@media(prefers-reduced-motion:no-preference){.am-dashboard :is(.button,.am-tabs>button){transition:background-color 120ms cubic-bezier(.2,0,0,1),border-color 120ms cubic-bezier(.2,0,0,1)}}
@media(prefers-reduced-motion:reduce){.am-dashboard *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Company context and section tabs share a row; only the overview carries a result band. */
.am-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.am-context-row{display:flex;align-items:flex-end;gap:24px;margin-bottom:24px;flex-wrap:wrap}
.am-filter-controls{display:flex;align-items:flex-end;gap:16px;min-width:0}
.am-filter-controls .am-company-field{width:260px;max-width:100%;min-width:0;margin:0;font-size:13px;line-height:20px}
.am-filter-controls select{width:100%;height:34px;min-height:34px;border:1px solid #888897;border-radius:6px;background-color:#fff;font-size:13px;line-height:20px;color:#1c1c24}
.am-context-row>.am-tabs{flex:1 1 auto;margin:0;padding:0;min-width:0}
.am-context-menu{position:relative;flex:none;margin:0}
.am-context-menu>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;white-space:nowrap}
.am-context-menu>summary::-webkit-details-marker{display:none}
.am-context-menu>div{position:absolute;left:0;top:calc(100% + 8px);display:flex;flex-direction:column;gap:4px;min-width:240px;padding:8px;background:#fff;border:1px solid #e7e7ee;border-radius:6px;box-shadow:0 8px 24px #1c1c2410;z-index:20}
.am-context-menu>div>.button{justify-content:flex-start;text-align:left}
.am-dashboard details>summary::after{content:none!important;display:none!important}
.am-result-main{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;align-items:start;gap:8px 16px}
.am-result-main>span{grid-column:1/-1}
.am-result-main>strong{grid-column:1;grid-row:2}
.am-result-main>p{grid-column:1/-1;grid-row:3}
.am-result-main>.button{grid-column:2;grid-row:2;align-self:center;margin:0}
.am-health dl>div{padding:8px 0}
.am-health>.am-caption{margin-bottom:8px}
.am-health dl{margin-bottom:12px}
.am-health>.button{margin:0}
@media(max-width:760px){.am-context-row{align-items:stretch;gap:16px}.am-filter-controls{flex:1 1 100%;justify-content:space-between}.am-context-row>.am-tabs{flex-basis:100%;max-width:100%}.am-filter-controls .am-company-field{flex:1;min-width:0;width:auto}.am-context-menu>div{left:auto;right:0}.am-context-row .am-tabs{overflow:auto}.am-result-main{gap:8px 16px}}
@media(max-width:600px){.am-filter-controls select{height:44px;min-height:44px}.am-context-menu>summary{min-height:44px}.am-dashboard .page-heading{align-items:flex-start;gap:16px}.am-header-actions{flex-wrap:nowrap}.am-result-main>.button{padding-inline:8px}}
/* Website analytics uses the same compact data primitives as channel monitoring. */
.am-dashboard #agency-pixel-panel{background:#fff;border:1px solid #e7e7ee;border-radius:10px;padding:24px;min-width:0}
.am-dashboard .pixel-table{display:table;width:100%;border-collapse:collapse;font-size:14px;line-height:22px}
.am-dashboard .pixel-table thead th{height:40px;color:#656574;font-size:12px;line-height:18px;font-weight:500;border-bottom:1px solid #e7e7ee;text-align:left}
.am-dashboard .pixel-table tbody th,.am-dashboard .pixel-table td{height:48px;padding:8px 12px 8px 0;border-bottom:1px solid #e7e7ee;vertical-align:top;font-weight:400;text-align:left;overflow-wrap:anywhere}
.am-dashboard .pixel-table .numeric{text-align:right;white-space:nowrap;width:90px;padding-right:0;font-variant-numeric:tabular-nums}
.am-dashboard .pixel-table-scroll{overflow:auto;max-height:400px}
.am-dashboard .pixel-table-scroll thead{position:sticky;top:0;background:#fff}
.am-dashboard .pixel-data{min-width:0}
.am-dashboard .pixel-data h3{margin-bottom:16px}
.am-dashboard #agency-pixel-panel .am-sources{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.am-dashboard #agency-pixel-panel .am-counters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.am-dashboard #agency-pixel-panel .am-counter{min-width:0}
.am-dashboard #agency-pixel-panel .am-counter strong{font-size:26px;line-height:34px;font-weight:600}
.am-dashboard #agency-pixel-panel .am-counter span{font-size:12px;line-height:18px;color:#656574}
.am-dashboard #agency-pixel-panel .am-help{border-top:1px solid #e7e7ee;padding-top:16px;margin-top:24px}
.am-dashboard #agency-pixel-panel .am-help>summary{position:relative;padding:0;justify-content:flex-start}
.am-dashboard #agency-pixel-panel .pixel-settings{max-width:560px;padding-top:16px}
.am-dashboard #agency-pixel-panel .pixel-code{max-width:100%;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap;background:#f0f0f5;border:1px solid #e7e7ee;border-radius:6px;padding:12px}
.am-dashboard #agency-pixel-panel [role=alert]{color:#af354b}
@media(max-width:1100px){.am-dashboard #agency-pixel-panel .am-counters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.am-dashboard #agency-pixel-panel .am-sources{grid-template-columns:minmax(0,1fr)}.am-dashboard #agency-pixel-panel .am-counters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.am-dashboard #agency-pixel-panel{padding:16px}.am-dashboard #agency-pixel-panel .am-toolbar{align-items:stretch}.am-dashboard #agency-pixel-panel .am-toolbar>.field{width:100%}}
.am-dashboard #agency-pixel-panel .pixel-data{border:0;border-radius:0;background:none;padding:0}
#modal .am-connections .am-connection-cards{display:grid;gap:16px}
#modal .am-connections .am-connection-cards>.card{border:1px solid #e7e7ee;border-radius:10px;padding:16px;background:#fff;box-shadow:none}
#modal .am-connections h3{display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px;font-weight:600;margin:0}
#modal .am-connections h3 img{width:20px;height:20px}
#modal .am-connections .spaced{margin-top:16px}
#modal .am-settings input:not([type=checkbox]),#modal .am-connections input:not([type=checkbox]),#modal .am-connections select{font-size:13px;line-height:20px}
.am-dashboard details>summary>.icon:last-child{display:block!important;flex:none}
.am-dashboard :is(.am-chart-values,.am-help)>summary{padding-right:0!important;min-height:34px}
.am-dashboard .am-context-menu>summary{padding-right:12px!important}
@media(max-width:600px){.am-dashboard :is(.am-chart-values,.am-help)>summary{min-height:44px}}
/* Consolidated agency operations table. */
.am74-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:16px;margin-bottom:16px}.am74-toolbar label{display:grid;gap:6px;font:400 12px/18px Manrope,system-ui,sans-serif;color:#656574}.am74-toolbar select{min-width:180px;height:38px;padding:8px 12px;border:0;border-radius:6px;background:#fff;box-shadow:0 1px 12px #1c1c2408;color:#1c1c24;font:400 13px/20px Manrope,system-ui,sans-serif}.am74-toolbar p{margin:0 0 9px auto;font-size:11px;color:#888897}.am74-table-scroll{max-height:72vh;overflow:auto;border-radius:10px;background:#fff}.am74-table{min-width:1700px;font-size:12px}.am74-table thead th{position:sticky;top:0;background:#fafafb;z-index:2}.am74-table th:first-child{position:sticky;left:0;min-width:210px;max-width:270px;background:#fff;border-right:1px solid #ececf2;z-index:1;box-shadow:none}.am74-table thead th:first-child{background:#fafafb;z-index:3}.am74-table :is(td,th){vertical-align:top;padding:14px 12px}.am74-table small{display:block;margin-top:4px;color:#888897;font-size:11px;line-height:16px;font-weight:400}.am74-table .am-provider{margin-top:8px;font-size:11px;gap:6px}.am74-table .am-provider img{width:18px;height:18px}.am74-signals{min-width:240px;max-width:340px}.am74-signals ul{padding:0;margin:0;list-style:none;display:grid;gap:12px}.am74-signals strong{font-size:12px;font-weight:500}.am74-actions{display:grid;gap:8px;min-width:120px}.am74-actions details .am-source-details{min-width:300px;display:block}.am74-priority-3{color:#b42318;background:#fff0ee}.am74-priority-2{color:#9a6700;background:#fff8df}.am74-priority-1{color:#0147fd;background:#edf2ff}.am74-priority-0{color:#1a7f37;background:#edf8f0}@media(max-width:700px){.am74-toolbar{gap:12px}.am74-toolbar label{flex:1;min-width:140px}.am74-toolbar select{min-width:0;min-height:44px;width:100%}.am74-toolbar p{margin:0;width:100%}.am74-table-scroll{max-height:none}.am74-table th:first-child{min-width:160px;max-width:180px}}

/* Compact operational rows: details never expand the table. */
.am74-table{border-collapse:separate;border-spacing:0;line-height:18px;min-width:1640px}.am74-table :is(th,td){padding:10px 12px;vertical-align:middle}.am74-table thead th{font-size:11px;line-height:16px;font-weight:500;white-space:nowrap}.am74-table .numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.am74-table th:first-child{width:220px;min-width:220px;max-width:220px}.am74-table .am-company-link{font-size:12px;line-height:18px;text-align:left;max-width:100%;overflow-wrap:anywhere}.am74-table .am-provider{margin-top:4px}.am74-table .am77-campaigns{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;max-width:196px}.am74-signals{min-width:180px;max-width:220px}.am77-signal{border:0;background:none;padding:0;text-align:left;color:#1c1c24;font:inherit;cursor:pointer;max-width:196px}.am77-signal>span,.am77-error{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.am77-signal small{color:#0147fd}.am74-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-width:104px}.am-dashboard .am77-action{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:6px;background:#f6f6f9;color:#656574;box-shadow:none;cursor:pointer}.am77-action .icon{width:16px;height:16px}.am-dashboard .am77-action:hover{background:#edf2ff;color:#0147fd}.am77-action:focus-visible,.am77-signal:focus-visible{outline:2px solid #0147fd;outline-offset:2px}.am74-table tr>:last-child{position:sticky;right:0;background:#fff;border-left:1px solid #ececf2;z-index:1;box-shadow:none}.am74-table thead tr>:last-child{background:#fafafb;z-index:3;text-align:right}.am77-details{max-width:960px}.am77-detail-scroll{max-height:65vh;overflow:auto;padding-right:8px}.am77-details .am-source-details{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding-top:16px}.am77-details h3{font-size:14px;line-height:20px;margin:0 0 8px}.am77-details p{font-size:13px;line-height:20px;margin:4px 0 12px}.am77-details ul{padding:0;list-style:none;display:grid;gap:12px}.am77-details li{border-bottom:1px solid #e7e7ee80;padding-bottom:8px}.am77-details strong{font-size:13px;font-weight:600}
@media(max-width:700px){.am-dashboard .am77-action{width:44px;height:44px;min-height:44px}.am74-actions{min-width:140px}.am74-table th:first-child{width:160px;min-width:160px;max-width:160px}.am74-table .am77-campaigns{max-width:136px}.am77-details .am-source-details{grid-template-columns:1fr}.am77-detail-scroll{max-height:65dvh}}
.am78-hint{position:fixed;z-index:10050;max-width:min(290px,calc(100vw - 16px));padding:8px 12px;border:0;border-radius:6px;background:#1c1c24;color:#fff;box-shadow:0 3px 12px #1c1c2418;font:400 12px/18px Manrope,system-ui,sans-serif;text-align:left;pointer-events:none;white-space:normal;overflow-wrap:anywhere}
.am79-table{min-width:1250px}.am79-table td{max-width:270px}.am79-logos{display:flex;gap:6px;margin-top:6px}.am79-logos img{width:18px;height:18px}.am79-metric{display:flex;justify-content:space-between;gap:12px;white-space:nowrap;margin:4px 0}.am79-metric span{color:#656574;font-size:11px}.am79-metric strong{font-weight:500}.am79-counter+.am79-counter,.am79-signals>div+div{margin-top:10px;padding-top:8px;border-top:1px solid #e7e7ee80}.am79-counter>strong,.am79-signals strong{font-size:12px;font-weight:500}.am79-delta{margin-left:6px;font-size:10px;font-variant-numeric:tabular-nums;color:#888897}.am79-delta.is-down{color:#b42318}.am79-delta.is-up{color:#1a7f37}.am79-detail{padding:16px 0;border-bottom:1px solid #e7e7ee80}

.am80-ai{min-width:260px;width:300px}.am80-copy{font-size:12px;line-height:18px;overflow-wrap:anywhere}.am80-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.am80-meta small{margin:0}.am79-table{min-width:1560px}.am-dashboard .am77-action:disabled{cursor:wait;opacity:.5}
/* Company row architecture: metrics, signals and actionable analysis remain separate. */
.am79-table{min-width:1820px}.am79-table thead th{padding-block:12px}.am79-table tbody td,.am79-table tbody th{vertical-align:top;padding-block:16px}.am79-table tbody tr:last-child>:is(td,th){border-bottom:0}.am79-table .am79-metric{display:grid;grid-template-columns:minmax(80px,1fr) auto;align-items:baseline;gap:12px;padding-block:5px;margin:0;border-bottom:1px solid #e7e7ee80}.am79-table .am79-metric:last-child{border-bottom:0}.am79-table .am79-counter small{line-height:17px}.am79-table .am79-signals>div{padding:6px 0}.am79-table .am79-signals strong{display:block;font-weight:500}.am79-table .am80-ai{min-width:300px;max-width:360px;background:#fff;border-left:1px solid #e7e7ee80}.am81-label{display:block;color:#888897;font-size:10px;line-height:16px;letter-spacing:.03em;margin-bottom:4px}.am81-diagnosis strong{display:block;font-size:12px;line-height:18px;font-weight:600}.am81-hypothesis{margin-top:12px}.am81-hypothesis p,.am81-proof p{margin:0;font-size:12px;line-height:18px}.am81-proof{margin-top:12px;border-top:1px solid #e7e7ee80;padding-top:8px}.am-dashboard .am81-proof>summary{display:block!important;min-height:28px!important;padding:4px 0!important;color:#0147fd;font-size:11px;line-height:18px;cursor:pointer}.am81-proof ul{padding-left:16px;margin:8px 0;font-size:11px;line-height:17px}.am81-task{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:10px;padding:7px 10px;border:0;border-radius:6px;background:#edf2ff;color:#0147fd;font:500 12px/18px Manrope,system-ui;cursor:pointer}.am81-task .icon{width:14px;height:14px}.am81-task:focus-visible{outline:2px solid #0147fd;outline-offset:2px}.am81-task:hover{background:#e4ecff}@media(max-width:700px){.am81-task{min-height:44px}}
/* Full-width client cards replace the operational table on phones and tablets. */
@media(max-width:900px){
 .am-mobile-clients{display:grid;gap:16px;min-width:0}
 .am-mobile-client{min-width:0;padding:16px;border:1px solid #e7e7ee;border-radius:16px;background:#fff;overflow-wrap:anywhere}
 .am-mobile-client-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
 .am-mobile-client-identity{min-width:0;flex:1}.am-mobile-client-identity .am-company-link{font-size:16px;line-height:23px;font-weight:600;min-height:44px;width:100%;white-space:normal}
 .am-mobile-client-identity>small{display:block;color:#656574;font-size:12px;margin-top:4px}
 .am-mobile-client .am79-logos{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}.am-mobile-client .am79-logos img{width:22px;height:22px}
 .am-mobile-priority{flex-shrink:0;padding-top:8px}.am-mobile-priority .am-status{white-space:normal;max-width:86px}
 .am-mobile-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
 .am-mobile-metrics>div{min-width:0;padding:12px;border-radius:12px;background:#f6f7fb}
 .am-mobile-metrics>div:first-child{grid-column:1/-1}
 .am-mobile-metrics dt{font-size:12px;line-height:18px;color:#656574;margin-bottom:8px}
 .am-mobile-metrics dd{margin:0;font-size:17px;line-height:25px;font-weight:600;overflow-wrap:anywhere}
 .am-mobile-client .am79-metric{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:6px}
 .am-mobile-client .am79-metric span{font-size:12px;line-height:18px;font-weight:400;color:#656574;white-space:normal}
 .am-mobile-client .am79-metric strong{font-size:16px;line-height:24px;white-space:normal}
 .am-mobile-signals{padding:16px 0;border-bottom:1px solid #e7e7ee}.am-mobile-signals h3{margin-bottom:8px}.am-mobile-signals>div{margin:8px 0}.am-mobile-signals small{display:block;color:#656574}
 .am-mobile-analysis>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;min-height:52px;cursor:pointer;color:#0147fd;font-weight:500}
 .am-mobile-analysis>summary::-webkit-details-marker{display:none}.am-mobile-analysis[open]>summary>.icon{transform:rotate(90deg)}
 .am-mobile-analysis>section{padding:12px 0;border-top:1px solid #e7e7ee}.am-mobile-analysis>section>h3{margin-bottom:12px}
 .am-mobile-client .am80-copy,.am-mobile-client .am81-hypothesis p{font-size:14px;line-height:22px;max-width:none}
 .am-mobile-client :is(.am81-task,.am81-proof>summary){min-height:44px;white-space:normal}
 .am-mobile-client-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid #e7e7ee}
 .am-mobile-client-actions .am74-actions{min-width:0;gap:8px;flex-wrap:wrap}
 .am-dashboard .am-mobile-client .am77-action{width:48px;height:48px;min-height:48px;border-radius:12px}
 .am-dashboard .am-workspace{padding:0;border:0;background:transparent}
 .am-dashboard .am-section-heading{display:block}.am-section-heading>.am-caption{display:block;margin-top:8px}
 .am74-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.am74-toolbar label{min-width:0}.am74-toolbar select{min-width:0;width:100%;height:48px;font-size:16px;box-sizing:border-box}.am74-toolbar p{grid-column:1/-1;line-height:18px}
 .am-dashboard .am-filter-controls select{font-size:16px;min-height:48px}
 .am-dashboard .am-pagination{justify-content:space-between;gap:8px}.am-pagination>.button{min-height:44px}.am-pagination>span{order:3;flex-basis:100%;text-align:center}
 #modal:has(.am77-details){width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;box-sizing:border-box}
 #modal .am77-details{padding:16px!important;max-width:none}#modal .am77-detail-scroll{max-height:none;overflow:visible;padding-right:0}#modal .am77-details .am-source-details{grid-template-columns:minmax(0,1fr);gap:16px}
}
@media(max-width:900px){
 #modal:has(.am77-details){width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border-radius:0!important}
 .am-dashboard .am-mobile-client .am81-proof>summary{min-height:44px!important;font-size:13px!important;display:flex!important;align-items:center}
}
@media(max-width:900px){.am-mobile-client .am79-counter{padding:8px 0}.am-mobile-client .am79-counter small{display:block;margin-top:6px;line-height:20px}.am-mobile-client .am79-counter strong{display:block}.am-mobile-client .am79-delta{margin-left:6px}}
