/* ai-usage page styles (2026-10-23 redesign). The shared ui- classes from assets/ui.css do most of it; this file holds only
   the AI usage page's own pieces, all scoped to .au-page. */
.au-page{min-width:0}
.au-page .ui-page-head{align-items:flex-end}
/* the month picker: a calendar icon in the field */
.au-month{position:relative;display:flex;flex-direction:row;align-items:center;gap:0;min-width:0;margin:0}
.au-month>svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--ui-muted);pointer-events:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.au-month .ui-input{padding-left:38px;width:auto;min-width:190px;font-weight:500;cursor:pointer}
/* the four stat cards: tinted, icon on top */
.au-stats{display:grid;gap:16px;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 var(--ui-gap)}
.au-stat{display:flex;flex-direction:column;gap:2px;min-width:0;border:1px solid var(--ui-border);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow);padding:18px 20px;background:var(--ui-surface)}
.au-stat.au-tone-blue{background:linear-gradient(180deg,#F3F6FF,#fff 75%)}
.au-stat.au-tone-green{background:linear-gradient(180deg,#EEFBF4,#fff 75%)}
.au-stat.au-tone-orange{background:linear-gradient(180deg,#FFF3EC,#fff 75%)}
.au-stat.au-tone-purple{background:linear-gradient(180deg,#F5F3FF,#fff 75%)}
.au-stat-icon,.au-tile{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex:none;margin-bottom:12px}
.au-stat-icon svg,.au-tile svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.au-tone-blue .au-stat-icon,.au-tile.au-tone-blue{background:#E0E8FF;color:#3559E9}
.au-tone-green .au-stat-icon,.au-tile.au-tone-green{background:#D7F5E5;color:#067647}
.au-tone-orange .au-stat-icon,.au-tile.au-tone-orange{background:#FFE4D5;color:#D9480F}
.au-tone-purple .au-stat-icon,.au-tile.au-tone-purple{background:#EAE6FF;color:#6941C6}
.au-stat-label{font-size:14px;color:var(--ui-text)}
.au-stat-value{font-size:30px;line-height:1.15;font-weight:700;letter-spacing:-.6px;color:var(--ui-ink);margin:4px 0 6px;overflow-wrap:anywhere}
.au-stat-sub{display:flex;align-items:center;gap:6px;font-size:13.5px;color:var(--ui-text)}
/* sections */
.au-section .ui-card-title{margin-bottom:16px}
.au-sub-title{margin-top:24px}
.au-table td small.au-cost{display:block;font-size:12px;font-weight:400;color:var(--ui-muted);margin-top:1px}
.au-table tfoot td{background:#EEF2FB;border-top:1px solid var(--ui-border)}
.au-table tfoot td small.au-cost{color:var(--ui-muted)}
/* provider cards */
.au-provider{border:1px solid var(--ui-border);border-radius:var(--ui-radius);padding:18px 20px;min-width:0;background:#fff;display:flex;flex-direction:column}
.au-provider-head{display:flex;align-items:center;gap:14px;margin-bottom:10px}
.au-provider-head .au-tile{margin:0;border-radius:12px}
.au-provider-head h3{margin:0;font-size:16px;font-weight:700;color:var(--ui-ink)}
.au-provider-head p{margin:2px 0 0;font-size:13px;color:var(--ui-muted)}
.au-dl{grid-template-columns:1fr auto;font-size:14px}
.au-dl dt{color:var(--ui-text)}.au-dl dd{text-align:right;padding-left:12px}
.au-dl dt:first-of-type,.au-dl dd:first-of-type{border-bottom-color:var(--ui-border)}
.au-price{margin:auto 0 0;padding-top:10px;font-size:12.5px;color:var(--ui-muted)}
/* billing links */
.au-link{display:flex;align-items:center;gap:14px;border:1px solid var(--ui-border);border-radius:var(--ui-radius);padding:14px 18px;background:#fff;text-decoration:none;color:var(--ui-text);min-width:0;transition:border-color .12s,background .12s}
.au-link:hover{border-color:var(--ui-accent-line);background:var(--ui-surface-2)}
.au-link:focus-visible{outline:none;box-shadow:var(--ui-focus);border-color:var(--ui-accent)}
.au-link .au-tile{margin:0;border-radius:12px}
.au-link b{display:inline-flex;align-items:center;gap:6px;font-size:15px;color:var(--ui-accent)}
.au-link b svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.au-link:hover b{text-decoration:underline}
.au-link small{display:block;font-size:13px;color:var(--ui-muted);margin-top:3px}
.au-note{margin-top:16px;background:var(--ui-accent-soft);border-color:var(--ui-accent-line);color:var(--ui-text)}
.au-note .ui-ico{color:var(--ui-accent);margin-top:1px}
@media(max-width:1100px){.au-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
 .au-page .ui-page-head{align-items:stretch}
 .au-page .ui-actions,.au-month,.au-month .ui-input{width:100%}
 .au-stats{gap:10px}
 .au-stat{padding:14px}
 .au-stat-icon{width:36px;height:36px;margin-bottom:8px}.au-stat-icon svg{width:18px;height:18px}
 .au-stat-value{font-size:23px}
 .au-stat-sub{font-size:12.5px}
 .au-table td small.au-cost{display:inline;margin-left:6px}
 .au-table tfoot tr{background:#EEF2FB}
 .au-table--stack tfoot,.au-table tfoot,.au-table tfoot tr,.au-table tfoot td{display:block;width:100%}
 .au-table tfoot td{display:flex;justify-content:space-between;gap:12px;border:0;padding:5px 14px}
 .au-table tfoot td[data-label]::before{content:attr(data-label);color:var(--ui-muted);font-size:12px;font-weight:600}
 .au-table tfoot td:first-child::before{content:none}
 .au-table td.ui-num{text-align:right}
}
.au-v{display:inline-block}
@media(max-width:340px){.au-stats{grid-template-columns:1fr}}
/* the Inbox AI card (2026-11-19): its mode on the right of the title, wrapping under it on a phone */
.au-ib-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px 20px;margin-bottom:12px}
.au-ib-head .ui-card-title{margin-bottom:4px}
.au-ib-head>div:first-child{min-width:0;flex:1 1 260px}
.au-ib-dl{margin:0}
.au-ib-msg{margin:12px 0 0;font-size:13.5px;font-weight:600}
.au-ib-msg.is-ok{color:var(--ui-ok,#067647)}
.au-ib-msg.is-err{color:var(--ui-bad,#B42318)}
