/* Analytics only: independent layout and button sizing avoid cross-page overrides. */
.an-page{--an-blue:#3e6fe5;--an-teal:#21a58e;--an-gold:#b39460;--an-ink:#263a58;--an-muted:#8a99af;min-width:0}.an-page *{box-sizing:border-box}.an-page button{font-family:inherit}.an-hero{background:linear-gradient(115deg,#eaf0ff 0%,#f2f6ff 48%,#edf6f5 100%);border:1px solid #e1e9f6;border-radius:17px;min-height:136px;padding:25px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.an-hero h2{font-size:23px;letter-spacing:.2px;line-height:1.45;color:#233957;margin:8px 0}.an-hero p{font-size:12px;color:#8496af;margin:0;line-height:1.7}.an-eyebrow{font-size:9px;letter-spacing:2.6px;color:#6583ba}.an-local-badge{border:1px solid #d9e4ee;background:#ffffffb8;white-space:nowrap;border-radius:30px;padding:8px 13px;color:#708da3;font-size:11px;flex-shrink:0;display:flex;align-items:center;gap:7px}.an-local-badge i{width:6px;height:6px;background:#35a58d;border-radius:50%}.an-page>.toolbar{margin-bottom:0;border-radius:14px 14px 0 0;border-bottom:1px solid #edf1f6;padding:14px 17px;box-shadow:none}.an-page>.toolbar>div:last-child{font-size:10px}.an-page .toolbar .seg{max-width:100%;flex-wrap:wrap}.an-page .toolbar .seg button{flex:none;width:auto;white-space:nowrap;font-size:11px;padding:8px 11px}.an-page .toolbar .din{max-width:100%;flex-wrap:wrap}.an-filters{background:#fff;border:1px solid #e5ebf3;border-top:0;border-radius:0 0 14px 14px;padding:14px 17px;display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-bottom:22px}.an-filters label{display:flex;align-items:center;gap:10px;font-size:11px;color:#72849d;white-space:nowrap}.an-filters select{background:#f9fbff;border:1px solid #dfe7f3;border-radius:8px;padding:8px 26px 8px 10px;font-size:12px;width:146px;color:#4c6485;max-width:100%;height:35px}.an-filters select:focus{border-color:#80a4e8;outline:2px solid #e7effc}.an-page button.an-reset{font-size:11px;line-height:1.5;width:auto;flex:none;padding:8px 2px;color:#8398b8;background:transparent;border:0;border-radius:4px;white-space:nowrap}.an-export{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-left:auto;min-width:0;flex-wrap:wrap}.an-export>span{font-size:10px;color:#9aa8bd;max-width:210px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.an-export button.ghost-btn{width:auto;min-width:0;min-height:35px;margin:0;padding:8px 13px;font-size:11px;line-height:1.5;white-space:nowrap;flex:none}.an-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:16px}.an-page button.an-metric{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;width:100%;height:auto;margin:0;padding:21px 19px 16px;background:#fff;border:1px solid #e3eaf5;border-radius:14px;text-align:left;line-height:1.5;color:var(--an-ink);box-shadow:0 4px 12px #223b5b03;overflow:hidden;transition:border-color .16s,transform .16s}.an-page button.an-metric:hover{border-color:#a8c0ec;transform:translateY(-1px)}.an-page button.an-metric::before{content:'';position:absolute;left:0;top:23px;width:3px;height:19px;background:var(--an-blue);border-radius:0 3px 3px 0}.an-page button.an-metric.teal::before{background:var(--an-teal)}.an-page button.an-metric.gold::before{background:var(--an-gold)}.an-metric-label{font-size:12px;color:#7f90aa;line-height:1.5}.an-metric-value{font-size:clamp(21px,1.75vw,30px);font-weight:650;letter-spacing:-.5px;line-height:1.4;margin:15px 0 9px;max-width:100%;overflow-wrap:anywhere}.an-metric-value small{font-size:12px;font-weight:400;letter-spacing:0;margin-left:6px;color:#99a8bd}.an-metric-note{font-size:10px;color:#a0acc0;line-height:1.7;min-height:32px}.an-metric-more{margin-top:12px;padding-top:11px;border-top:1px solid #f0f3f8;width:100%;font-size:10px;color:#839cc3;display:flex;align-items:center;justify-content:space-between}.an-metric-more b{font-size:13px;font-weight:400;color:#acbed8}.an-context-strip{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#f7f9fd;border:1px solid #e4ebf5;padding:13px 20px;border-radius:12px;margin-bottom:23px}.an-context-strip>div{display:flex;align-items:center;gap:14px;min-width:0}.an-context-icon{display:flex;align-items:center;justify-content:center;width:35px;height:35px;border-radius:11px;color:#9e835a;background:#f4ebdc;font-size:13px;flex-shrink:0}.an-context-strip p{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:0;font-size:11px;color:#8696ac}.an-context-strip p>b{color:#9e7f4d;font-size:19px;font-weight:600}.an-context-strip small{font-size:10px;color:#9caac0}.an-page button.an-link{background:transparent;border:0;border-radius:4px;color:#7e9ac3;font-size:11px;line-height:1.5;margin:0;min-width:0;width:auto;max-width:100%;padding:4px 0;text-align:left;white-space:nowrap;flex:none}.an-page button.an-link:hover{color:#3468c9;text-decoration:underline}.an-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:20px;margin-bottom:20px;align-items:stretch}.an-grid>div{min-width:0}.an-panel{height:100%;border:1px solid #e3eaf4;background:#fff;border-radius:15px;overflow:hidden;min-width:0;padding:22px}.an-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:22px}.an-panel-head>div{min-width:0}.an-panel-head h3{font-size:14px;color:#30445f;line-height:1.6;font-weight:600;margin:0}.an-panel-head p{font-size:10.5px;line-height:1.7;color:#9ba9be;margin:6px 0 0}.an-panel-head>.an-link{margin-top:2px}.an-trend-tools{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin:0 0 10px}.an-legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:5px}.an-legend span{display:flex;align-items:center;gap:5px;font-size:10px;color:#8a9bb4;white-space:nowrap}.an-legend i{height:7px;width:7px;background:var(--an-blue);display:block;border-radius:2px}.an-legend i.teal{background:var(--an-teal)}.an-legend i.gold{background:var(--an-gold);width:12px;height:2px;border-radius:2px}.an-chart-seg{display:flex;padding:3px;gap:2px;flex:none;background:#eff3fa;border-radius:7px}.an-page .an-chart-seg>button{font-size:10px;background:transparent;width:auto;min-width:0;padding:5px 11px;line-height:1.5;color:#9aaac1;border-radius:5px;border:0;margin:0;white-space:nowrap}.an-page .an-chart-seg>button.on{background:#fff;color:#557ba9;box-shadow:0 1px 3px #1d385b0a}.an-trend-svg{display:block;width:100%;height:auto;min-height:220px;overflow:visible}.an-trend-svg g[role=button]{cursor:pointer;outline:none}.an-trend-svg g[role=button]:hover rect{opacity:.7}.an-trend-svg g[role=button]:focus rect{stroke:#244c8e;stroke-width:2}.an-trend-svg g[role=button]:focus circle{stroke:#244c8e;stroke-width:3}.an-chart-note{font-size:10px;line-height:1.8;color:#a0aec1;margin:15px 0 0}.an-page button.an-value-button{display:inline-block;color:#4c70a1;background:none;padding:0;margin:0;border:0;border-bottom:1px dashed #b0c4df;width:auto;min-width:0;font-size:13px;font-weight:550;line-height:1.6;white-space:nowrap}.an-type-list{display:flex;flex-direction:column;gap:20px}.an-page button.an-type-row{width:100%;max-width:100%;background:transparent;margin:0;padding:0;border:0;line-height:1.5;text-align:left;border-radius:5px;min-width:0}.an-type-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#5f7698}.an-type-top>span{display:flex;align-items:center;min-width:0;gap:8px}.an-rank{width:19px;height:19px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:5px;background:#f0f4fc;color:#9db2d3;font-size:10px;font-style:normal}.an-type-top>b{font-size:12px;font-weight:550;color:#465f84;white-space:nowrap}.an-type-track{height:6px;background:#f0f3f9;border-radius:9px;margin:10px 0 8px;overflow:hidden}.an-type-track i{height:100%;display:block;border-radius:9px}.an-type-sub{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#a0aec1}.an-page button.an-type-row:hover .an-type-top>span{color:#3768b0}.an-table-wrap{max-width:100%;width:100%;overflow-x:auto;border:1px solid #ecf0f6;border-radius:10px}.an-table{width:100%;border-collapse:collapse;font-size:11px;min-width:590px;background:#fff;line-height:1.7}.an-table th{background:#f7f9fd;color:#94a2b7;font-size:10px;font-weight:500;padding:12px 13px;text-align:left;white-space:nowrap}.an-table td{padding:14px 13px;border-top:1px solid #eef2f7;color:#6f829e;white-space:nowrap;vertical-align:middle}.an-table tbody tr:hover{background:#fbfcff}.an-table td:first-child b{color:#4c6486;font-size:11px;font-weight:550}.an-table small{display:block;font-size:10px;line-height:1.8;color:#9dacbf;font-weight:400;white-space:normal;word-break:break-all}.an-table button.an-link{font-size:10px}.an-definitions{padding:20px 24px;border:1px solid #e4ebf3;border-radius:14px;background:#f9fbfe;margin-top:3px}.an-definitions summary{font-size:12px;line-height:1.6;color:#7288a5;margin:0 0 12px;font-weight:550}.an-definitions>div{display:grid;grid-template-columns:1fr 1fr;gap:10px 25px}.an-definitions p{font-size:10px;color:#a0adc0;line-height:1.9;margin:0}.an-definitions b{color:#869ab6;display:block;font-weight:550}.an-empty{text-align:center;min-height:220px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:25px 12px;color:#9baac0}.an-empty>span{font-size:36px;line-height:1.4;color:#c6d3e5}.an-empty>b{font-size:12px;font-weight:500;margin-top:12px}.an-empty>p{font-size:10px;line-height:1.8;color:#afbacb;margin:7px 0 0}.an-detail-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:20px}.an-detail-toolbar p{font-size:11px;line-height:1.8;color:#96a5ba;margin:0 0 7px}.an-detail-toolbar strong{color:#48638a;font-size:17px;font-weight:600}.an-detail-toolbar button.ghost-btn{width:auto;flex:none;white-space:nowrap;padding:8px 14px;font-size:11px;min-height:34px}.an-detail-note{font-size:11px;color:#9aa9bc;line-height:1.9;margin:18px 0 0}.an-detail-table{min-width:850px}.an-detail-table td:nth-child(1){max-width:140px;white-space:normal}.an-detail-table td:nth-child(3){max-width:240px;white-space:normal}.an-detail-table td:nth-child(7){max-width:160px;white-space:normal;word-break:break-all}.an-page button:focus-visible{outline:2px solid #7d9fd6;outline-offset:3px}
@media(min-width:1700px){.an-panel{padding:25px}.an-trend-svg{min-height:260px}.an-metrics{gap:20px}.an-metric-value{font-size:31px}.an-hero{min-height:145px}}
@media(max-width:1250px){.an-grid,.an-lower-grid{grid-template-columns:minmax(0,1fr)}.an-metric-value{font-size:22px}.an-metrics{gap:11px}.an-page button.an-metric{padding:18px 14px 14px}.an-metric-note{min-height:34px}.an-export{width:100%;justify-content:space-between}}
@media(max-width:800px){.an-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.an-metric-value{font-size:26px}.an-hero{padding:22px;flex-wrap:wrap}.an-hero h2{font-size:21px}.an-local-badge{padding:6px 10px}.an-context-strip{align-items:flex-start}.an-context-strip p{display:block}.an-context-strip p>b{display:block;margin:3px 0}.an-context-strip small{display:block}.an-filters label{flex:1;min-width:0}.an-filters select{width:100%;min-width:0}.an-filters label>select{flex:1}.an-filters .an-reset{flex:none}.an-definitions>div{grid-template-columns:1fr}.an-panel{padding:20px}.an-trend-tools{flex-wrap:wrap}.an-chart-seg{margin-left:auto}.an-panel-head{gap:10px}.an-trend-svg{min-height:180px}}
/* Compact metrics and read-only drilldowns. */
.an-page button.an-metric{min-height:156px;padding-bottom:18px}
.an-metric-note{margin-top:auto;padding-right:16px;min-height:34px}
.an-metric-goto{position:absolute;right:16px;bottom:17px;font-size:15px;line-height:20px;color:var(--sy-muted,#7e899b);opacity:.55}
.an-metric:hover .an-metric-goto,.an-metric:focus-visible .an-metric-goto{color:var(--sy-primary,#6175fc);opacity:1}
#commerceModal .an-detail-modal{max-height:84vh}
#commerceModal .an-detail-modal.is-empty{width:560px;min-height:0}
#commerceModal .an-detail-modal .an-empty{min-height:140px;padding:22px 16px;gap:8px}
#commerceModal .an-detail-modal .an-empty>span{font-size:26px;line-height:32px;color:var(--sy-primary,#6175fc)}
#commerceModal .an-detail-modal .an-empty>b{font-size:13px;color:var(--sy-text,#303849)}
#commerceModal .an-detail-modal .an-empty>p{font-size:12px;color:var(--sy-text-secondary,#647187)}
#commerceModal .an-detail-toolbar{margin-bottom:14px;gap:16px;align-items:center}
#commerceModal .an-detail-toolbar p{margin:0 0 5px;font-size:11px;color:var(--sy-muted,#7e899b)}
#commerceModal .an-detail-toolbar strong{font-size:18px;line-height:26px;color:var(--sy-primary,#6175fc);font-weight:600}
#commerceModal .an-detail-toolbar .ghost-btn{font-size:12px;min-height:32px;margin:0;padding:5px 10px;width:auto}
#commerceModal .an-detail-toolbar button:disabled{opacity:.4;cursor:default}
#commerceModal .an-detail-note{margin:12px 0 0;font-size:11px;line-height:18px;color:var(--sy-text-secondary,#647187)}
#commerceModal .an-detail-modal.is-empty .an-detail-toolbar{margin-bottom:0}
#commerceModal .an-detail-modal.is-empty .an-detail-toolbar p{margin-bottom:0}
#commerceModal .an-detail-modal.is-empty .an-empty{min-height:112px;padding:20px 12px;gap:7px}
#commerceModal .an-detail-modal.is-empty .an-empty>span{font-size:22px;line-height:26px}
#commerceModal .an-detail-modal.is-empty .an-detail-note{font-size:11px;margin-top:8px}

.an-legend i.blue{background:#6574f7}
.an-legend i.teal{background:#14aa94}
.an-legend i.gold{background:#e99a36}
.an-empty>.ghost-btn{margin-top:8px}

.an-store-bars{
 --an-store-bars-name:minmax(72px,1fr);
 --an-store-bars-tracks:minmax(0,1.4fr) minmax(0,1.4fr);
 margin:0 0 16px;border:1px solid var(--sy-border,#e4e9f2);border-radius:8px;
 color:var(--sy-text,#344054);background:var(--sy-surface,#fff)
}
.an-store-bars-heading,.an-store-bars li{
 display:grid;grid-template-columns:var(--an-store-bars-name) var(--an-store-bars-tracks);
 gap:8px 14px;align-items:center;padding:8px 12px
}
.an-store-bars-heading{
 background:var(--sy-surface-alt,#f6f8fb);border-radius:8px 8px 0 0;
 color:var(--sy-text-secondary,#647187);font-size:12px
}
.an-store-bars-heading>span{min-width:0}
.an-store-bars-heading b{display:block;font-weight:600;color:var(--sy-text,#344054)}
.an-store-bars-heading b::before{content:"";display:inline-block;width:7px;height:7px;margin-inline-end:5px;border-radius:50%;background:var(--an-store-bar-color)}
.an-store-bars-heading small{display:block;margin-top:2px;font-size:11px;font-variant-numeric:tabular-nums}
.an-store-bars ul{margin:0;padding:0;list-style:none}
.an-store-bars li{border-top:1px solid var(--sy-border,#e4e9f2)}
.an-store-bars li>b{min-width:0;overflow-wrap:anywhere;font-size:12px;font-weight:500}
.an-store-bars-issued{--an-store-bar-color:#6574f7}
.an-store-bars-used{--an-store-bar-color:#14aa94}
.an-store-bar{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;min-width:0}
.an-store-bar strong{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.an-store-bar small{color:var(--sy-text-secondary,#647187);font-size:11px;font-weight:400}
.an-store-bar-track{grid-row:2;display:block;height:5px;border-radius:6px;overflow:hidden;background:var(--sy-border,#e4e9f2)}
.an-store-bar-track i{display:block;height:100%;border-radius:inherit;background:var(--an-store-bar-color)}
@media(max-width:520px){
 .an-store-bars{--an-store-bars-name:minmax(58px,1fr)}
 .an-store-bars-heading,.an-store-bars li{gap:7px;padding-inline:8px}
}

.an-definitions summary{cursor:pointer}
.an-store-bars .an-store-filter{min-width:0;text-align:left;white-space:normal;overflow-wrap:anywhere}

/* Operating performance dashboard */
.an-page .an-performance-grid{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);align-items:stretch}
.an-performance-grid>div,.an-lower-grid>div{min-width:0}
@media(min-width:1100px){
 .an-page .an-lower-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
[data-an-month-comparison]{white-space:nowrap}
.an-page .an-performance-grid .an-panel,.an-page .an-lower-grid .an-panel{height:100%}
.an-page .an-ranking-panel,.an-page .an-inventory-panel{display:flex;flex-direction:column}
.an-page .an-store-panel{margin-bottom:16px}
.an-page .an-metric{position:relative;isolation:isolate}
.an-metric-spark{position:absolute;inset:auto 14px 42px auto;width:min(28%,68px);height:25px;display:flex;gap:2px;align-items:end;color:var(--an-blue);pointer-events:none}
.an-metric-spark>i{display:block;flex:1 1 0;min-width:0;height:var(--an-spark);background:currentColor;opacity:.22;border-radius:2px 2px 0 0}
.an-metric.teal .an-metric-spark{color:var(--an-teal)}
.an-metric.gold .an-metric-spark{color:var(--an-gold)}
.an-ranking-panel .an-rank-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.an-ranking-panel .an-type-list:not(:empty){flex:1}
.an-ranking-panel .an-type-track i{background:var(--an-teal)}
.an-lower-summary{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;padding:13px 15px;border:1px solid var(--sy-border,#e2e9f3);border-radius:9px;background:var(--sy-surface-alt,#f5f7fc);margin:0 0 15px}
.an-lower-summary[data-tone=warning]{background:color-mix(in srgb,var(--sy-surface,#fff) 90%,#f2a325)}
.an-lower-summary[data-tone=conversion]{background:color-mix(in srgb,var(--sy-surface,#fff) 90%,#43b5a0)}
.an-lower-summary[data-tone=cost]{background:color-mix(in srgb,var(--sy-surface,#fff) 91%,#7181e4)}
.an-lower-summary>div{display:grid;gap:5px;min-width:0}
.an-lower-summary>div>span,.an-budget-usage span,.an-budget-facts dt{font-size:12px;color:var(--sy-text-secondary,#5e6c82)}
.an-lower-summary strong,.an-page .an-lower-summary .an-value-button{font-size:clamp(22px,2.3vw,28px);font-weight:700;line-height:1.25;letter-spacing:-.025em;text-align:left;font-variant-numeric:tabular-nums}
.an-lower-summary[data-tone=conversion] strong{color:var(--sy-success,#0a7c6b)}
.an-lower-summary[data-tone=warning] strong{color:var(--sy-warning,#a15c0c)}
.an-lower-summary small{font-size:12px;font-weight:500}
.an-summary-secondary{text-align:right}
.an-summary-secondary b{font-size:15px;font-variant-numeric:tabular-nums}
.an-lower-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:9px;margin-top:9px;border-top:1px solid var(--sy-border,#e5eaf2);font-size:12px;color:var(--sy-text-secondary,#5e6c82)}
.an-budget-status{--budget-tone:var(--sy-muted,#66748c);padding:4px 8px;border-radius:6px;background:color-mix(in srgb,var(--budget-tone) 12%,var(--sy-surface,#fff));color:var(--budget-tone);font-size:11px;white-space:nowrap}
.an-budget-status[data-tone=success],.an-budget-usage[data-tone=success]{--budget-tone:var(--sy-success,#078472)}
.an-budget-status[data-tone=warning],.an-budget-usage[data-tone=warning]{--budget-tone:var(--sy-warning,#a15c0c)}
.an-budget-status[data-tone=danger],.an-budget-usage[data-tone=danger]{--budget-tone:var(--sy-danger,#b84859)}
.an-budget-usage>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:6px}
.an-budget-usage strong,.an-budget-over{color:var(--budget-tone,var(--sy-danger,#b84859));font-variant-numeric:tabular-nums}
.an-budget-gauge{height:9px;border-radius:8px;overflow:hidden;background:var(--sy-border,#e3e9f4)}
.an-budget-gauge>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,color-mix(in srgb,var(--budget-tone) 56%,var(--sy-surface,#fff)),var(--budget-tone))}
.an-budget-facts{display:flex;flex-wrap:wrap;gap:14px 26px;margin:14px 0 2px}
.an-budget-facts>div{min-width:0;flex:1 1 125px}
.an-budget-facts dd{margin:4px 0 0;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.an-budget-empty,.an-budget-note{font-size:12px;line-height:1.6;color:var(--sy-text-secondary,#5e6c82)}
.an-budget-empty{padding:10px 12px;margin:0 0 6px;border:1px dashed var(--sy-border,#e3e9f4);border-radius:7px}
.an-budget-facts+.an-budget-empty{margin-top:10px}
.an-budget-note{margin:14px 0 0;padding-top:9px;border-top:1px solid var(--sy-border,#e5eaf2)}
.an-expiry-chart{display:grid;gap:13px;padding:0;margin:5px 0 8px;list-style:none}
.an-expiry-row{display:grid;grid-template-columns:7em minmax(30px,1fr) auto;align-items:center;gap:9px;color:var(--sy-text-secondary,#54647a);font-size:12px}
.an-expiry-row b{min-width:3.5em;text-align:right;white-space:nowrap;color:var(--sy-text,#334155);font-variant-numeric:tabular-nums}
.an-expiry-track{min-width:0;height:8px;border-radius:8px;overflow:hidden;background:var(--sy-border,#e2e9f3)}
.an-expiry-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--an-expiry-start),var(--an-expiry-end))}
.an-expiry-row[data-expiry-tone=urgent]{--an-expiry-start:#ef9f98;--an-expiry-end:#ce4c53}
.an-expiry-row[data-expiry-tone=soon]{--an-expiry-start:#f1c380;--an-expiry-end:#db831e}
.an-expiry-row[data-expiry-tone=next]{--an-expiry-start:#a4aaff;--an-expiry-end:#6368db}
.an-expiry-row[data-expiry-tone=later]{--an-expiry-start:#7bc7bc;--an-expiry-end:#138873}
.an-expiry-note{color:var(--sy-muted,#718096);margin:6px 0 0;font-size:11px}
.an-page .an-definitions:not([open]) summary{margin-bottom:0}
@media(max-width:1190px){.an-page .an-performance-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.an-metric-spark{display:none}.an-ranking-panel .an-chart-seg button{padding-inline:7px}}

.an-metric-comparison{display:block;margin-top:5px;font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums}
.an-comparison-context{margin:0 0 14px;color:var(--sy-text-secondary,var(--sy-muted,#66768a));font-size:12px}
.an-ranking-panel .an-type-track i{background:linear-gradient(90deg,#14aa949c,#14aa94)}
[data-rank-metric=issued] .an-type-track i{background:linear-gradient(90deg,#6574f79c,#6574f7)}
[data-rank-metric=cost] .an-type-track i{background:linear-gradient(90deg,#e99a369c,#e99a36)}
.an-ranking-panel [data-negative] .an-type-track i{background:linear-gradient(90deg,#bd5566,#bd5566a6)}
.an-compare-type{padding:12px 16px}
.an-compare-type p{margin:0 0 12px;font-weight:600}
.an-compare-type dl,.an-compare-actions{display:flex;flex-wrap:wrap;gap:8px 18px}
.an-compare-type dd{margin:4px 0 0;font-weight:600}

.an-store-comparison .an-value-button{color:inherit;font:inherit}

.an-report-menu{position:relative;flex:0 0 auto;margin:0;z-index:2}
.an-report-trigger{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-height:var(--sy-toolbar-control-height,32px);padding:4px 12px;border-radius:7px;background:#4d55bf;color:#fff;font-weight:600;white-space:nowrap;list-style:none;cursor:pointer}
.an-report-trigger::-webkit-details-marker{display:none}
.an-report-trigger:hover,.an-report-menu[open] .an-report-trigger{background:#3e459f}
.an-report-trigger svg{width:16px;height:16px}
.an-report-chevron{width:6px;height:6px;border:solid currentColor;border-width:0 1.4px 1.4px 0;transform:translateY(-2px) rotate(45deg);margin-left:3px}
.an-report-menu[open] .an-report-chevron{transform:translateY(1px) rotate(225deg)}
.an-report-options{position:absolute;inset-block-start:calc(100% + 7px);inset-inline-start:0;min-width:100%;width:max-content;display:grid;gap:4px;padding:6px;border:1px solid var(--sy-border,#dce5f2);border-radius:9px;background:var(--sy-surface,#fff);box-shadow:0 10px 28px #25375a25}
.an-report-options button{width:100%;padding:4px 12px;text-align:left;white-space:nowrap;color:var(--sy-text,#283751);background:transparent;border:0;border-radius:5px}
.an-report-options button:is(:hover,:focus-visible){background:var(--sy-surface-alt,#eef2fa)}

.an-conversion-funnel{display:grid;gap:4px;list-style:none;margin:5px 0 0;padding:0}
.an-conversion-funnel button{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:8px;font-size:12px;text-align:left}
.an-conversion-funnel i{width:8px;height:8px;border-radius:2px;background:#5259d5}
.an-conversion-funnel i.is-used{background:#0b8a76}
.an-conversion-funnel b{color:var(--sy-text,#354051);font-variant-numeric:tabular-nums;white-space:nowrap}
.an-page :is(.an-expiry-row,.an-conversion-funnel button,.an-store-bar){width:100%;min-width:0;margin:0;padding:4px;border:0;border-radius:5px;background:transparent;color:var(--sy-text-secondary,#54647a);text-align:left;cursor:pointer}
.an-page :is(.an-expiry-row,.an-conversion-funnel button,.an-store-bar):hover{background:var(--sy-surface-alt,#f1f5fb)}
.an-page :is(.an-expiry-row,.an-conversion-funnel button,.an-store-bar,.an-budget-gauge,.analysis-chart-host):focus-visible{outline:2px solid var(--sy-primary,#5269ed);outline-offset:2px}
.an-expiry-chart{gap:6px}
.an-page button.an-budget-gauge{display:block;width:100%;min-width:0;min-height:0;padding:0;margin:0;border:0;cursor:pointer;text-align:left}
.an-page button.an-budget-gauge:hover{filter:brightness(.94)}
.an-conversion-note{font-size:12px;line-height:1.6;color:var(--sy-text-secondary,#5e6c82);margin:12px 0 0}
