/* Guts AI v2 Apps pages (apps.html): the index, a category's page and an app's page.
   Load after theme.css, v2.css and pages.css. Every class is ax- so nothing here reaches another page. */

/* The app logo tiles keep a light ground in both themes: the marks are drawn for one. */
:root{--ax-logo-bg:#EEF1EE;--tint-bg:var(--accent-soft);--tint-line:#E6E8E6}

/* Hero: title and lead over the dot field */
.ax-hero{position:relative;overflow:hidden}
.ax-hero::before{content:"";position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(circle,var(--dots) 1px,transparent 1.4px);background-size:22px 22px;background-position:11px 11px;-webkit-mask-image:linear-gradient(180deg,#000,#000 55%,transparent),linear-gradient(90deg,transparent 4%,#000 40%);-webkit-mask-composite:source-in;mask-image:linear-gradient(180deg,#000,#000 55%,transparent),linear-gradient(90deg,transparent 4%,#000 40%);mask-composite:intersect;opacity:.6}
.ax-hero .shell{position:relative;padding-top:72px;padding-bottom:48px}
.ax-hero-narrow .shell{padding-top:56px;padding-bottom:40px}
.ax-hero-copy{display:flex;flex-direction:column;gap:16px;max-width:640px}
.ax-title{font-size:60px;font-weight:500;letter-spacing:-2.4px;line-height:78px;color:var(--text);overflow-wrap:anywhere}
.ax-lead{font-size:18px;line-height:27px;color:var(--text-2)}
.shell.ax-narrow{max-width:1280px}

/* Breadcrumb */
.ax-crumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;padding:0;list-style:none;font-size:13px;line-height:17px;color:var(--text-2)}
.ax-crumbs li{display:flex;align-items:center;min-width:0}
.ax-crumbs a{color:var(--text-2);transition:color .15s ease}
.ax-crumbs a:hover{color:var(--accent)}
.ax-crumbs [aria-current]{color:var(--text)}
.ax-crumbs .i{font-size:12px;color:var(--text-3)}

/* Sections and their heads */
.ax-index-body{display:flex;flex-direction:column;padding-bottom:120px}
.ax-section{display:flex;flex-direction:column;gap:16px;padding-bottom:56px}
.ax-section.ax-global{padding-bottom:16px}
.ax-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.ax-head-center{align-items:center}
.ax-titles{display:flex;flex-direction:column;gap:4px}
.ax-titles h2,.ax-icon-title{font-size:22px;font-weight:500;letter-spacing:-.5px;line-height:29px;color:var(--text)}
.ax-titles p{font-size:14px;line-height:18px;color:var(--text-2)}
.ax-head-note{font-size:13px;line-height:17px;color:var(--text-3)}
.ax-icon-title{display:flex;align-items:center;gap:8px}
.ax-icon-title .i{font-size:18px;color:var(--text-2)}
.ax-card{border-radius:14px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}

/* Logo tiles */
.ax-logo{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;background:var(--ax-logo-bg);color:#162022;font-weight:600;line-height:1}
/* The tile is light in both themes, so a mark that follows the colour scheme (pi, aura) draws its light-scheme colours. */
.ax-logo,.ax-logo img{color-scheme:light}
.ax-logo img{display:block;object-fit:contain;border-radius:4px}
.ax-logo.is-32{width:32px;height:32px;border-radius:8px;font-size:14px}
.ax-logo.is-32 img{width:20px;height:20px}
.ax-logo.is-36{width:36px;height:36px;border-radius:9px;font-size:15px}
.ax-logo.is-36 img{width:22px;height:22px}
.ax-logo.is-40{width:40px;height:40px;border-radius:10px;font-size:16px}
.ax-logo.is-40 img{width:25px;height:25px}
.ax-logo.is-64{width:64px;height:64px;border-radius:16px;font-size:26px;background:var(--tint-bg);box-shadow:inset 0 0 0 1.5px var(--tint-line)}
.ax-logo.is-64 img{width:40px;height:40px;border-radius:6px}
[data-theme=dark] .ax-logo.is-64{background:var(--ax-logo-bg);box-shadow:inset 0 0 0 1px var(--line-strong)}

/* Tags */
.ax-tags{display:flex;flex-wrap:wrap;gap:4px}
.ax-tag{padding:2px 6px;border-radius:4px;font-size:11px;font-weight:500;line-height:14px;white-space:nowrap}
.ax-tag[data-tone=teal]{background:#1875651A;color:#156B5C}
.ax-tag[data-tone=amber]{background:#E5B0121F;color:#8F6000}
.ax-tag[data-tone=green]{background:#2EA36B17;color:#2A6E45}
.ax-tag[data-tone=violet]{background:#57487C14;color:#57487C}
.ax-tag[data-tone=blue]{background:#355C7E14;color:#355C7E}
.ax-tag[data-tone=neutral]{background:var(--tint-2);color:var(--text-2)}
[data-theme=dark] .ax-tag[data-tone=teal]{background:#5FD9BF1F;color:#5FD9BF}
[data-theme=dark] .ax-tag[data-tone=amber]{background:#E8B7301F;color:#F0C445}
[data-theme=dark] .ax-tag[data-tone=green]{background:#46C38A1F;color:#8FD1A5}
[data-theme=dark] .ax-tag[data-tone=violet]{background:#CFC0EC1F;color:#CFC0EC}
[data-theme=dark] .ax-tag[data-tone=blue]{background:#AECDEA1F;color:#AECDEA}

/* Figures */
.ax-val{font-size:13px;line-height:17px;color:var(--text-3);white-space:nowrap}
.ax-val b{font-family:var(--font-code);font-weight:400;color:var(--text)}
.ax-change{font-family:var(--font-code);font-size:11px;line-height:14px;color:var(--text-3);white-space:nowrap}
.ax-change.is-up{color:var(--ok)}
.ax-change.is-down{color:var(--err)}
.ax-rank{flex-shrink:0;width:24px;font-family:var(--font-code);font-size:13px;line-height:17px;color:var(--text-3)}
.ax-rank.is-top{color:var(--accent)}
.ax-stats-col{display:flex;flex-direction:column;align-items:flex-end;gap:2px;flex-shrink:0;width:110px}

/* Most popular */
.ax-popular{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0;padding:0;list-style:none}
.ax-pop-card{display:flex;flex-direction:column;gap:10px;height:100%;padding:20px;border-radius:14px;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--tint-line);transition:box-shadow .15s ease,transform .15s ease}
.ax-pop-card .ax-logo{background:var(--tint-bg)}
[data-theme=dark] .ax-pop-card{box-shadow:inset 0 0 0 1px var(--line-strong)}
[data-theme=dark] .ax-pop-card .ax-logo{background:var(--ax-logo-bg)}
.ax-pop-card:hover{box-shadow:inset 0 0 0 1.5px var(--accent-line)}
.ax-pop-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ax-pop-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:500;line-height:20px;color:var(--text)}
.ax-pop-desc{display:-webkit-box;height:38px;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;line-height:19px;color:var(--text-2)}

/* Trending */
.ax-trending{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.ax-trend-tile{position:relative;display:flex;flex-direction:column;gap:14px;height:100%;padding:16px;border-radius:12px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);transition:box-shadow .15s ease}
.ax-trend-tile:hover{box-shadow:inset 0 0 0 1px var(--line-strong)}
.ax-trend-body{display:flex;flex-direction:column;gap:4px;min-width:0}
.ax-trend-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;line-height:18px;color:var(--text)}
.ax-trend-row{display:flex;justify-content:space-between;gap:8px;font-family:var(--font-code);font-size:12px;line-height:16px;color:var(--text-2);white-space:nowrap}
.ax-trend-up{color:var(--ok)}
.ax-trend-down{color:var(--err)}

/* Category cards */
.ax-cat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ax-cat-card{display:flex;flex-direction:column;padding:18px 20px 8px;border-radius:14px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.ax-cat-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:14px}
.ax-cat-head h3{font-size:16px;font-weight:500;line-height:20px;color:var(--text)}
.ax-cat-head a{font-size:13px;font-weight:500;line-height:17px;color:var(--accent);white-space:nowrap}
.ax-cat-head a:hover{text-decoration:underline;text-underline-offset:3px}
.ax-cat-cols{display:flex;justify-content:space-between;padding-bottom:8px;border-bottom:1px solid var(--line);font-family:var(--font-code);font-size:11px;line-height:13px;text-transform:uppercase;color:var(--text-3)}
.ax-cat-list{margin:0;padding:0;list-style:none}
.ax-cat-list li + li{border-top:1px solid var(--line)}
.ax-cat-list a{display:flex;align-items:center;gap:12px;padding:10px 0}
.ax-cat-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.ax-cat-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;line-height:18px;color:var(--text);transition:color .15s ease}
.ax-cat-list a:hover .ax-cat-name{color:var(--accent)}
.ax-cat-desc{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:15px;color:var(--text-2)}
.ax-cat-tok{flex-shrink:0;font-family:var(--font-code);font-size:13px;line-height:17px;color:var(--text)}

/* Period menu */
.ax-period{position:relative;flex-shrink:0}
.ax-period summary{display:flex;align-items:center;justify-content:space-between;gap:24px;min-width:122px;padding:8px 12px;border-radius:8px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-strong);font-size:13px;line-height:17px;color:var(--text);cursor:pointer;list-style:none;user-select:none}
.ax-period summary::-webkit-details-marker{display:none}
.ax-period summary .i{font-size:14px;color:var(--text-2);transition:transform .15s ease}
.ax-period[open] summary .i{transform:rotate(180deg);color:var(--accent)}
.ax-period summary:hover{box-shadow:inset 0 0 0 1px var(--tint-4)}
.ax-period-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:40;min-width:100%;margin:0;padding:5px;list-style:none;border-radius:10px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-strong),0 12px 30px var(--card-shadow)}
.ax-period-menu a{display:block;padding:8px 10px;border-radius:6px;font-size:13px;line-height:17px;color:var(--text-2);white-space:nowrap}
.ax-period-menu a:hover{background:var(--tint-2);color:var(--text)}
.ax-period-menu a[aria-current]{background:var(--accent-soft);color:var(--accent)}
.ax-controls .ax-period summary{padding:9px 14px;gap:20px;border-radius:10px}

/* Global ranking */
.ax-global-card{overflow:visible}
.ax-global-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;padding:16px 28px}
.ax-global-list{margin:0;padding:0;list-style:none}
.ax-grow{display:flex;align-items:center;gap:14px;padding:12px 0}
.ax-grow-text{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.ax-grow-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;line-height:18px;color:var(--text);transition:color .15s ease}
.ax-grow:hover .ax-grow-name{color:var(--accent)}
.ax-grow-desc{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:15px;color:var(--text-2)}
.ax-pager{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:13px;line-height:16px;color:var(--text-2)}
.ax-pager-btn{display:inline-flex;color:var(--text-2)}
.ax-pager-btn .i{font-size:16px}
.ax-pager a.ax-pager-btn:hover{color:var(--accent)}
.ax-pager-btn.is-off{opacity:.4}

/* Attribution note */
.ax-note{display:flex;align-items:center;gap:32px;padding:20px 24px;border-radius:14px;background:var(--bg-alt);box-shadow:inset 0 0 0 1px var(--line)}
.ax-note > div{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.ax-note h2{font-size:15px;font-weight:500;line-height:19px;color:var(--text)}
.ax-note p{font-size:13px;line-height:20px;color:var(--text-2)}
.ax-note code{font-family:inherit;font-size:inherit;color:inherit}
.ax-note-link{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;font-size:13px;font-weight:500;line-height:17px;color:var(--accent);white-space:nowrap}
.ax-note-link .i{font-size:14px}
.ax-note-link:hover{text-decoration:underline;text-underline-offset:3px}

/* Category and app pages */
.ax-body{display:flex;flex-direction:column;gap:20px;padding-bottom:120px}
.ax-chart-card{display:flex;flex-direction:column;gap:12px;padding:24px}
.ax-chart-head{display:flex;align-items:center;justify-content:space-between;gap:24px}
.ax-chart-titles{display:flex;flex-direction:column;gap:4px;min-width:0}
.ax-chart-titles h2{font-size:16px;font-weight:500;line-height:20px;color:var(--text)}
.ax-chart-total{display:flex;align-items:flex-end;gap:6px;font-size:13px;line-height:17px;color:var(--text-3)}
.ax-chart-total b{font-family:var(--font-code);font-size:24px;font-weight:400;line-height:28px;color:var(--text)}
.ax-chart-sub{font-size:13px;line-height:17px;color:var(--text-2)}
.ax-legend{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px 14px;margin:0;padding:0;list-style:none;font-size:12px;line-height:15px;color:var(--text-2)}
.ax-legend li{display:flex;align-items:center;gap:6px;white-space:nowrap}
.ax-legend li.is-mono{font-family:var(--font-code);font-size:11px;line-height:14px}
.ax-legend i{width:8px;height:8px;border-radius:2px}
.ax-usage .ax-legend{justify-content:flex-start}
.ax-plot{display:flex;gap:12px}
.ax-y{display:flex;flex-direction:column;justify-content:space-between;flex-shrink:0;width:40px;height:248px;padding-bottom:8px;font-family:var(--font-code);font-size:10px;line-height:12px;color:var(--text-3)}
.ax-usage .ax-y{width:36px;height:228px}
.ax-plot-col{display:flex;flex-direction:column;gap:8px;flex:1;min-width:0}
.ax-bars{display:flex;align-items:flex-end;gap:5px;height:240px;border-bottom:1px solid var(--line)}
.ax-usage .ax-bars{height:220px}
.ax-bar{display:flex;flex-direction:column;flex:1 1 0;min-width:0;overflow:hidden;border-radius:3px 3px 0 0;transition:filter .15s ease}
.ax-bar span{display:block;flex-shrink:0;width:100%}
.ax-bar.is-partial{opacity:.55}
.ax-bar:hover{filter:brightness(1.08)}
/* Bar tooltip (apps.html), as the console's chart tip (console.css .tip) and the model page's .md-tip:
   a head line, a row per model with its colour, then the total under a rule. */
.ax-tip{position:fixed;z-index:90;max-width:min(340px,calc(100vw - 16px));pointer-events:none;background:var(--surface);border:1px solid var(--line-strong);border-radius:8px;box-shadow:0 12px 32px var(--card-shadow);padding:9px 11px;font-size:12px;min-width:150px;opacity:0;transition:opacity .12s ease}
.ax-tip.show{opacity:1}
.ax-tip .th{font-weight:500;margin-bottom:6px;color:var(--text)}
.ax-tip .tr{display:flex;justify-content:space-between;gap:16px;color:var(--text-2);line-height:20px}
.ax-tip .tr span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ax-tip .tr b{flex-shrink:0;font-family:var(--font-code);font-weight:400;color:var(--text)}
.ax-tip .tr i{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:6px;vertical-align:1px}
.ax-tip .tr.is-total{margin-top:4px;padding-top:4px;border-top:1px solid var(--line);color:var(--text)}
@media (prefers-reduced-motion:reduce){.ax-tip{transition:none}}
.ax-x{display:flex;justify-content:space-between;font-family:var(--font-code);font-size:10px;line-height:12px;color:var(--text-3)}

/* Segmented controls */
.ax-controls{display:flex;align-items:center;justify-content:space-between;gap:16px}
.ax-controls-r{display:flex;align-items:center;gap:8px;flex-shrink:0}
.ax-seg{display:flex;gap:2px;padding:4px;border-radius:10px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-strong)}
.ax-seg > a,.ax-seg > button{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:0;border-radius:7px;background:none;font:inherit;font-size:14px;line-height:18px;color:var(--text-3);white-space:nowrap;cursor:pointer;transition:color .15s ease,background-color .15s ease}
.ax-seg > a:hover,.ax-seg > button:hover{color:var(--text)}
.ax-seg > [aria-current],.ax-seg > [aria-pressed=true]{background:var(--surface-2);font-weight:500;color:var(--text)}
/* The usage interval: one highlight slides between Daily and Weekly ([data-seg], landing.js), a
   touch quicker than the shared .3s; one weight for both, so no label moves on a switch. */
.ax-interval > button{font-weight:500}
.ax-interval .seg-ind{transition-duration:.24s}
.ax-count{font-family:var(--font-code);font-size:11px;font-weight:400;line-height:14px;color:var(--text-3)}
.ax-cat-pills{min-width:0;overflow-x:auto;scrollbar-width:none}
.ax-cat-pills::-webkit-scrollbar{display:none}

/* Category list */
.ax-list{margin:0;padding:0;list-style:none}
.ax-list li + li{border-top:1px solid var(--line)}
.ax-lrow{display:flex;align-items:center;gap:14px;padding:14px 24px}
.ax-lrow-text{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.ax-lrow-name{font-size:14px;font-weight:500;line-height:18px;color:var(--text);transition:color .15s ease}
.ax-lrow:hover .ax-lrow-name{color:var(--accent)}
.ax-lrow-desc{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:17px;color:var(--text-2)}
.ax-lrow .ax-stats-col{width:130px}

/* App page head */
.ax-hero-app .shell{padding-top:48px;padding-bottom:32px}
.ax-app-head{display:flex;flex-direction:column;gap:20px}
.ax-titlerow{display:flex;align-items:center;justify-content:space-between;gap:24px}
.ax-identity{display:flex;align-items:center;gap:18px;min-width:0}
.ax-identity-text{display:flex;flex-direction:column;gap:6px;min-width:0}
.ax-app-title{font-size:40px;font-weight:500;letter-spacing:-1.2px;line-height:48px;color:var(--text);overflow-wrap:anywhere}
.ax-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ax-meta .ax-tag{padding:2px 7px}
.ax-domain{font-family:var(--font-code);font-size:12px;line-height:15px;color:var(--text-3)}
.ax-actions{display:flex;gap:8px;flex-shrink:0}
.ax-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:8px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-strong);font-size:14px;font-weight:500;line-height:18px;color:var(--text);white-space:nowrap;transition:box-shadow .15s ease,background-color .15s ease}
.ax-btn:hover{box-shadow:inset 0 0 0 1px var(--tint-4)}
.ax-btn .i{font-size:14px}
.ax-btn-primary{background:var(--accent);box-shadow:none;font-weight:600;color:var(--on-accent)}
.ax-btn-primary:hover{box-shadow:none;background:color-mix(in srgb,var(--accent) 88%,#000)}
[data-theme=dark] .ax-btn-primary:hover{background:color-mix(in srgb,var(--accent) 88%,#fff)}
.ax-app-desc{max-width:720px;font-size:16px;line-height:25px;color:var(--text-2)}

/* Stats and rank chips */
.ax-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}
.ax-stat{display:flex;flex-direction:column;gap:6px;min-width:0;padding:16px 18px;border-radius:12px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.ax-stat dt{font-family:var(--font-code);font-size:11px;line-height:14px;text-transform:uppercase;color:var(--text-3)}
.ax-stat dd{margin:0}
.ax-stat-v{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:26px;font-weight:500;letter-spacing:-.6px;line-height:32px;color:var(--text)}
.ax-stat-s{font-family:var(--font-code);font-size:11px;line-height:14px;color:var(--text-3)}
.ax-stat-s.is-up{color:var(--ok)}
.ax-stat-s.is-down{color:var(--err)}
.ax-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.ax-chips a{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:var(--surface-2);font-size:13px;line-height:17px;color:var(--text);transition:color .15s ease}
.ax-chips a:hover{color:var(--accent)}
.ax-chips .i{font-size:13px;color:var(--text-2)}

/* Top models */
.ax-models{overflow:hidden}
.ax-models-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 24px;border-bottom:1px solid var(--line)}
.ax-models-head h2{font-size:16px;font-weight:500;line-height:20px;color:var(--text)}
.ax-models-cols{display:flex;gap:24px;flex-shrink:0;font-family:var(--font-code);font-size:11px;line-height:14px;text-transform:uppercase;color:var(--text-3)}
.ax-models-cols .ax-c-share{width:200px;text-align:right}
.ax-models-cols .ax-c-tok{width:100px;text-align:right}
.ax-models-list{margin:0;padding:0;list-style:none}
.ax-models-list li{border-bottom:1px solid var(--line)}
.ax-models-list li:last-child{border-bottom:0}
.ax-mrow{display:flex;align-items:center;gap:14px;padding:13px 24px}
/* A model with a page: the row is its link, named in the accent on hover as the other list rows. */
a.ax-mrow{color:inherit}
a.ax-mrow .ax-mname{transition:color .15s ease}
a.ax-mrow:hover .ax-mname{color:var(--accent)}
a.ax-mrow:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.ax-mlogo{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;border-radius:8px;background:var(--surface-2)}
.ax-mlogo img{width:18px;height:18px;object-fit:contain}
.ax-mtext{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.ax-mname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-code);font-size:14px;line-height:18px;color:var(--text)}
.ax-mprov{font-size:12px;line-height:15px;color:var(--text-2)}
.ax-share{display:flex;align-items:center;gap:10px;flex-shrink:0;width:200px}
.ax-track{position:relative;flex:1;height:6px;border-radius:3px;background:var(--tint-2)}
.ax-track span{position:absolute;left:0;top:0;height:6px;border-radius:3px}
.ax-pct{width:44px;font-family:var(--font-code);font-size:12px;line-height:15px;color:var(--text-2);text-align:right}
.ax-mrow .ax-c-tok{display:flex;justify-content:flex-end;flex-shrink:0;width:100px}
.ax-models-list li:not([hidden]):has(+ li[hidden]),.ax-models-list li:not([hidden]):last-child{border-bottom:0}
.ax-more{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:14px 0;border:0;border-top:1px solid var(--line);background:none;font:inherit;font-size:13px;font-weight:500;line-height:17px;color:var(--text-2);cursor:pointer}
.ax-more:hover{color:var(--text)}
.ax-more .i{font-size:14px;transition:transform .15s ease}
.ax-more[aria-expanded=true] .i{transform:rotate(180deg)}

/* Empty and error states */
.ax-state{display:flex;flex-direction:column;align-items:center;gap:6px;padding:48px 24px;text-align:center}
.ax-state-title{font-size:16px;font-weight:500;line-height:22px;color:var(--text)}
.ax-state p{font-size:14px;line-height:20px;color:var(--text-3)}
.ax-state .ax-btn{margin-top:14px}
.ax-section > .ax-state{border-radius:14px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}

/* Narrow desktop and tablet */
@media (max-width:1279px){
  .ax-trending{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:1100px){
  .ax-popular{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ax-global-cols{grid-template-columns:minmax(0,1fr);gap:0}
  .ax-controls{flex-direction:column;align-items:stretch}
  .ax-controls-r{justify-content:space-between}
}
@media (max-width:900px){
  .ax-cat-grid{grid-template-columns:minmax(0,1fr)}
  .ax-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ax-titlerow{flex-direction:column;align-items:flex-start}
  .ax-chart-head{flex-direction:column;align-items:flex-start;gap:12px}
  .ax-legend{justify-content:flex-start}
  .ax-models-cols .ax-c-share{display:none}
  .ax-share{width:120px}
}

/* Phones (390 frame) */
@media (max-width:640px){
  .ax-hero .shell{padding-top:40px;padding-bottom:32px}
  .ax-hero-narrow .shell{padding-top:32px;padding-bottom:28px}
  .ax-hero-app .shell{padding-top:28px;padding-bottom:24px}
  .ax-title{font-size:40px;letter-spacing:-1.4px;line-height:48px}
  .ax-lead{font-size:16px;line-height:24px}
  .ax-index-body,.ax-body{padding-bottom:72px}
  .ax-section{padding-bottom:40px}
  .ax-head{flex-direction:column;align-items:flex-start;gap:8px}
  .ax-head-center{flex-direction:row;align-items:center}
  .ax-popular{grid-template-columns:minmax(0,1fr);gap:12px}
  .ax-trending{display:flex;overflow-x:auto;margin:0 -20px;padding:0 20px;scrollbar-width:none;scroll-snap-type:x mandatory}
  .ax-trending::-webkit-scrollbar{display:none}
  .ax-trending li{flex:0 0 150px;scroll-snap-align:start}
  .ax-cat-card{padding:16px 16px 6px}
  .ax-global-cols{padding:4px 16px}
  .ax-grow{align-items:flex-start;gap:10px}
  .ax-grow .ax-rank{width:22px;padding-top:9px}
  .ax-grow .ax-stats-col{width:auto;padding-top:2px}
  .ax-grow-desc{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .ax-note{flex-direction:column;align-items:flex-start;gap:14px;padding:18px}
  .ax-chart-card{padding:18px 16px}
  .ax-y{width:32px;height:188px}
  .ax-usage .ax-y{width:32px;height:188px}
  .ax-bars,.ax-usage .ax-bars{height:180px;gap:2px}
  .ax-bar{border-radius:2px 2px 0 0}
  .ax-controls-r{flex-wrap:wrap}
  .ax-lrow{align-items:flex-start;gap:10px;padding:14px 16px}
  .ax-lrow .ax-rank{width:22px;padding-top:9px}
  .ax-lrow .ax-stats-col{width:auto;padding-top:2px}
  .ax-lrow-desc{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .ax-identity{gap:14px}
  .ax-logo.is-64{width:52px;height:52px;border-radius:13px}
  .ax-logo.is-64 img{width:32px;height:32px}
  .ax-app-title{font-size:30px;letter-spacing:-.9px;line-height:36px}
  .ax-actions{width:100%}
  .ax-actions .ax-btn{flex:1}
  .ax-stats{gap:10px}
  .ax-stat{padding:14px}
  .ax-stat-v{font-size:22px;line-height:28px}
  .ax-models-head{padding:16px}
  .ax-models-cols{display:none}
  .ax-mrow{flex-wrap:wrap;gap:10px;padding:12px 16px}
  .ax-mtext{flex:1 1 calc(100% - 80px)}
  .ax-share{order:3;width:auto;flex:1 1 auto;margin-left:66px}
  .ax-mrow .ax-c-tok{order:4;width:auto}
}
