/* Activity + Request logs */

/* ---------- Activity ---------- */
.act-head .acts{gap:10px}
.act-xm .bill-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.act-xm .bill-tab-ind{width:calc((100% - 10px) / 3)}
.act-body{display:flex;flex-direction:column;gap:20px;min-width:0}
.act-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
/* The console stat tile (console.css .stat): label 12/500, value 24/30/500, sub-line sans 12 --text-3. */
.act-stat{display:flex;flex-direction:column;gap:6px;padding:18px;min-width:0}
.act-stat .l{font-size:12px;font-weight:500;color:var(--text-3);line-height:15px}
.act-v{display:flex;align-items:flex-end;gap:8px;min-width:0;flex-wrap:wrap}
.act-v .v{font-size:24px;font-weight:500;letter-spacing:-.6px;line-height:30px;font-variant-numeric:tabular-nums;white-space:nowrap}
.act-x{font-size:11px;color:var(--text-3);line-height:22px;white-space:nowrap}
.act-d{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--text-3);line-height:15px;white-space:nowrap}
.act-d .i{width:13px;height:13px}
.act-d.up{color:var(--ok)}
.act-d.down{color:var(--err)}

.act-r2{align-items:stretch}
.act-daily{flex:1 1 auto;display:flex;flex-direction:column;gap:16px;min-width:0}
.act-plot{flex:1;min-height:310px;display:flex;flex-direction:column;position:relative}
.act-plot .bars{flex:1;min-height:310px;gap:var(--bar-gap)}
.act-plot .bars .b{gap:0}
.act-plot .bars .b > u{height:0;margin-top:5px;border-radius:0 0 1.5px 1.5px;flex:0 0 auto}
.act-plot .bars .b > u.none{height:0}
.act-daily .axis{margin-top:0}
.act-tel-slot{flex:0 0 530px;width:530px;display:flex;min-width:0}
.act-tel{flex:1;display:flex;flex-direction:column;gap:20px;min-width:0}
.act-scale{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--text-3);align-self:flex-start;margin-top:2px}
.act-scale i{width:11px;height:11px;border-radius:3px;display:inline-block}
.act-scale i:first-of-type{margin-left:4px}
.act-scale i:last-of-type{margin-right:4px}
.act-heat{display:flex;flex-direction:column;gap:3px}
.act-hr{display:flex;align-items:center;gap:3px}
.act-hr > span{width:27px;flex:0 0 27px;font-size:12px;color:var(--text-3);line-height:16px}
.act-hr > i{flex:1;height:16px;border-radius:3px;min-width:0}
.act-heat i.h0,.act-scale i.h0{background:var(--tint-2)}
.act-heat i.h1,.act-scale i.h1{background:var(--heat-2)}
.act-heat i.h2,.act-scale i.h2{background:var(--heat-3)}
.act-heat i.h3,.act-scale i.h3{background:var(--heat-4)}
.act-heat i.h4,.act-scale i.h4{background:var(--accent)}
.act-hr > i:hover{outline:1.5px solid var(--text-2);outline-offset:-1px}
.act-hx{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));padding:5px 0 0 30px;font-family:var(--font-code);font-size:11px;color:var(--text-3)}
.act-none{font-size:13px;color:var(--text-3);padding:24px 0}
.act-ts{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);padding-top:6px;margin-top:auto}
.act-ts > div{display:flex;flex-direction:column;gap:6px;padding:14px 10px 14px 0;min-width:0}
.act-ts > div:nth-child(-n+2){border-bottom:1px solid var(--line)}
.act-ts .l{font-size:12px;color:var(--text-2)}
.act-ts .v{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:500;line-height:24px;min-width:0;letter-spacing:-.3px}
.act-ts .v .mono{letter-spacing:0}
.act-ts .v .plogo.sm img{width:17px;height:17px}
.act-ts .s{font-size:12px;color:var(--text-3);line-height:16px}

.act-card{display:flex;flex-direction:column;min-width:0;overflow:hidden}
.act-th{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 22px;flex-wrap:wrap;min-height:64px}
.act-th h2{font-size:16px;font-weight:500;line-height:20px}
.act-thr{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.act-tbl th{padding-left:16px;padding-right:16px;border-top:1px solid var(--line)}
.act-tbl td{padding-left:16px;padding-right:16px}
.act-tbl th:first-child,.act-tbl td:first-child{padding-left:22px}
.act-tbl th:last-child,.act-tbl td:last-child{padding-right:22px}
.act-tbl td.mono{font-size:13px}
.act-models tr.act-x{display:none}
.act-models.all tr.act-x{display:table-row}
.act-models .card-foot{color:var(--text-2)}
.act-tbl .namecell b{white-space:nowrap}
.act-tbl .act-cost{font-size:14px;font-weight:500;color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums}
.act-tbl .ok{color:var(--ok)}
.act-tbl td.warn{color:var(--warn)}
.act-tbl td.err{color:var(--err)}
.act-share .track{flex:0 0 120px}
.act-share span{text-align:left;width:auto;font-size:12px}
.act-keys .act-share .track,.act-provs .act-share .track{flex-basis:72px}
.act-r4{align-items:stretch}
.act-r4 > .card{flex:1 1 0}
.act-keys .act-tbl,.act-provs .act-tbl{table-layout:fixed}
.act-keys .namecell > div,.act-provs .namecell > div{min-width:0}
.act-keys .plogo .i{color:var(--text-2)}
.act-idle .namecell b,.act-idle .act-cost{color:var(--text-2)}
.act-idle .plogo .i{color:var(--text-3)}
.act-prov td{padding-top:8px;padding-bottom:8px}
.act-psub{font-size:12px;color:var(--text-3);margin-top:2px}
.act-grow{flex:1}
.act-foot{justify-content:flex-end}
/* As tall as a provider row (8px + 40px logo + 8px), so beside "By provider" its rule lines up with the one above that table's last row. */
.act-keys .act-foot{box-sizing:border-box;min-height:56.7px;padding-top:8px;padding-bottom:8px}
.act-mlist{display:none}
.act-empty{min-height:460px;display:flex;align-items:center;justify-content:center}

/* Export / recap drawers: a side sheet, fades only (never moves) */
.scrim:has(.act-drawer){justify-content:flex-end;padding:0}
.modal.act-drawer{width:min(460px,100%);height:100vh;max-height:none;border-radius:0;display:flex;flex-direction:column;border:0;border-left:1px solid var(--line-strong);box-shadow:var(--sh-sheet)}
.act-drawer .modal-h{padding:20px 24px;border-bottom:1px solid var(--line)}
.act-drawer .modal-h p{max-width:360px;line-height:19px}
.act-drawer .modal-b{flex:1;overflow:auto;gap:22px}
.act-drawer .modal-f{margin-top:auto}
.act-drawer .fld{gap:8px}
.act-drawer .fld-h{line-height:17px}
/* share card (p-share.js): the preview is the canvas, scaled down; its box keeps the card's shape while loading */
.shr-prev{display:flex;justify-content:center;align-items:center;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--tint-1);flex:0 0 auto;box-sizing:content-box}
.shr-prev[data-fmt=landscape]{aspect-ratio:1200/630}
.shr-prev[data-fmt=square]{aspect-ratio:1/1}
.shr-prev[data-fmt=story]{height:min(560px,64vh)}
.shr-prev canvas{display:block;width:100%;height:auto}
.shr-prev[data-fmt=story] canvas{width:auto;height:100%}
.shr-msg{width:100%;height:100%;padding:16px;display:flex;flex-direction:column;justify-content:center}
.shr-sk{display:block;width:100%;height:100%}
.shr-none{font-size:13px;color:var(--text-3);text-align:center;padding:0 12px}
.shr-dates{display:flex;align-items:center;gap:8px;margin-top:2px}
.shr-dates > .i{width:14px;height:14px;flex:0 0 14px;color:var(--text-3)}
.dp.shr-date{flex:1}
.shr-date .c-in.dp-btn{padding:0 10px 0 12px;gap:8px}
.shr-date .pre{font-family:inherit;font-size:12px}
.shr-hd{display:flex;align-items:center;font-size:12px;color:var(--text-3);cursor:text}
.shr-hd input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:inherit;font:inherit;padding:0}
.shr-hd input:focus{color:var(--text)}
.shr-hd input:focus-visible{outline:none}
.shr-hd:focus-within{box-shadow:0 1px 0 var(--accent)}
.act-tgls{display:flex;flex-direction:column;background:var(--bg-alt);border:1px solid var(--line);border-radius:10px;padding:0 16px}
.act-tg{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);cursor:pointer}
.act-tg:last-child{border-bottom:0}
.act-tg > span:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.act-tg b{font-size:13px;font-weight:400;color:var(--text)}
.act-tg em{font-style:normal;font-size:12px;color:var(--text-3)}
.act-note{display:flex;gap:10px;font-size:12px;color:var(--text-3);line-height:17px}
.act-note .i{width:14px;height:14px;flex:0 0 14px;margin-top:1px}

@media (max-width:1280px){
  .act-r2{flex-direction:column}
  .act-tel-slot{width:auto;flex:1 1 auto}
}
@media (max-width:1180px){
  .act-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .act-r4{flex-direction:column}
  .act-tbl .act-hs{display:none}
}
@media (max-width:1024px){
  .act-models .act-tbl th:nth-child(5),.act-models .act-tbl td:nth-child(5),.act-models .act-tbl th:nth-child(6),.act-models .act-tbl td:nth-child(6){display:none}
}
@media (max-width:720px){
  .act-head .acts{width:100%;flex-wrap:nowrap}
  .act-seg.seg{flex:1;display:flex}
  .act-seg.seg > button{flex:1;padding-left:6px;padding-right:6px}
  .act-hb{padding:0 10px}
  .act-hb span{display:none}
  .act-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;background:var(--surface);border-radius:16px;box-shadow:var(--sh-card);overflow:hidden}
  .act-stat{box-shadow:none;border-radius:0;padding:14px 16px;gap:6px}
  .act-stat:nth-child(odd){border-right:1px solid var(--line)}
  .act-stat:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .act-v .v{font-size:20px;line-height:26px;letter-spacing:-.5px}
  .act-v{flex-direction:column;align-items:flex-start;gap:2px}
  .act-x{line-height:14px}
  .act-d{white-space:normal}
  .act-plot,.act-plot .bars{min-height:150px}
  .act-hr > i{height:12px}
  .act-hx{font-size:10px}
  .act-ts .v{font-size:16px}
  .act-models .act-th,.act-models .act-wide{display:none}
  .act-mlist{display:flex;flex-direction:column;gap:12px;padding:16px}
  .act-mlh{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px}
  .act-mlh h2{font-size:16px;font-weight:500}
  .act-ml{display:flex;flex-direction:column;gap:6px}
  .act-mlt{display:flex;align-items:center;gap:8px;font-size:12px}
  .act-mlt .ell{flex:1}
  .act-th{padding:14px 16px;min-height:0}
  .act-tbl th:first-child,.act-tbl td:first-child{padding-left:16px}
  .act-tbl th:last-child,.act-tbl td:last-child{padding-right:16px}
  .act-tbl td{padding:12px 10px}
  .act-tbl th{padding-left:10px;padding-right:10px}
  .act-empty{min-height:360px}
  .scrim:has(.act-drawer){align-items:flex-end}
  .modal.act-drawer{height:auto;max-height:92dvh;border-radius:16px 16px 0 0;border:0;border-top:1px solid var(--line-strong);box-shadow:var(--sh-modal)}
  .act-drawer .modal-h{padding:18px 16px 14px}
  .act-drawer .modal-b{padding:16px}
  .act-drawer .modal-f{padding:14px 16px 18px}
  .shr-date .pre{display:none}
  .shr-date .c-in.dp-btn{padding:0 8px 0 10px;gap:6px}
  .shr-date .dp-v{font-size:12px}
  .shr-dates{gap:6px}
  .shr-prev[data-fmt=story]{height:min(440px,52vh)}
}

/* ---------- Request logs ---------- */
.lg-head{margin-bottom:-4px}
.lg-filters{display:flex;gap:10px;align-items:center;min-width:0}
.lg-search{flex:1 1 auto;height:34px;padding:0 8px 0 12px}
.lg-search .i{width:14px;height:14px}
.lg-search input{font-size:13px}
.lg-search input::-webkit-search-cancel-button{display:none}
.lg-f{position:relative;flex:0 0 auto}
.lg-f .dd-btn{color:var(--text-2);gap:7px}
.lg-f .dd-btn > .i:first-child{color:var(--text-2)}
.lg-f .dd-btn .plogo.sm img{width:13px;height:13px}
.lg-f .menu .plogo.sm img{width:14px;height:14px}
.lg-dots{display:inline-flex;gap:2px}
.lg-dots .dot,.lg-f .dot{width:6px;height:6px;flex:0 0 6px}
.lg-f .dd-btn > .dot,.lg-f .menu .dot{margin:0 1px}
.lg-x{display:none;position:absolute;right:6px;top:50%;transform:translateY(-50%);width:22px;height:22px;border-radius:6px;place-items:center;color:var(--text-2)}
.lg-x:hover{background:var(--accent-soft);color:var(--text)}
.lg-x .i{width:13px;height:13px}
.lg-on .lg-x{display:grid}
.lg-on .dd-btn{background:var(--accent-soft);border-color:var(--accent-line);color:var(--text);padding-right:34px}
.lg-on .dd-btn .chev{visibility:hidden;width:0;margin-left:-8px}
.lg-on[data-f=key] .dd-btn span,.lg-on[data-f=model] .dd-btn span{font-family:var(--font-code)}
.lg-body{display:flex;gap:16px;align-items:stretch;min-width:0}
.lg-card{flex:1 1 auto;display:flex;flex-direction:column;min-width:0;overflow:hidden;position:relative;min-height:200px}
.lg-tbl{table-layout:auto}
.lg-tbl th{padding-left:6px;padding-right:6px}
.lg-tbl td{padding:10px 6px;font-size:12px}
.lg-tbl tr:last-child td{border-bottom:1px solid var(--line)}
.lg-tbl td.mono{font-size:12px}
.lg-tbl td.lg-c-cost{color:var(--text)}
.lg-tbl tbody tr:not(.sel):not(.lg-sk):hover{background:var(--tint-2)}

.lg-model{display:flex;align-items:center;gap:9px;min-width:0}
.lg-model .mono{color:var(--text);font-size:12px}
.lg-model .plogo.sm img{width:15px;height:15px}
.lg-tbl td.lg-c-app{max-width:140px;color:var(--text-2)}
.lg-tbl td.lg-c-app .ell{display:block}
/* The open detail panel shows the selected request's client, cached input and saving. */
.lg-open .lg-c-app,.lg-open .lg-c-cache,.lg-open .lg-c-saved{display:none}
.lg-sk td{padding-top:14px;padding-bottom:14px}
.lg-sk .sk{display:inline-block}
.lg-skdot{width:15px;height:15px!important;border-radius:50%!important}
.lg-tbl .badge{font-size:12px}
/* The console pager (GC.pager) in the card's footer, as on Billing. */
.lg-pager{display:flex;padding:12px 22px;border-top:1px solid var(--line);margin-top:auto}
.lg-pager:empty{display:none}
.lg-pad{padding:16px 18px}
.lg-list{display:none}

.lg-panel{flex:0 0 320px;width:320px;gap:12px;align-self:stretch;position:sticky;top:calc(var(--top-h) + 16px);max-height:calc(100vh - var(--top-h) - 32px);overflow:auto}
.lg-dh{display:flex;justify-content:space-between;align-items:center}
.lg-dh h2{font-size:16px;font-weight:500}
.lg-did{display:flex;flex-direction:column;gap:6px;min-width:0}
.lg-dm{display:flex;align-items:center;gap:8px;min-width:0}
.lg-dm .mono{font-size:14px}
.lg-dm .plogo.sm img{width:16px;height:16px}
.lg-dt{font-size:11px;color:var(--text-3)}
.lg-kv{gap:6px}
.lg-kv > div > span:last-child{font-size:12px}
.lg-kv .copy{width:20px;height:20px;flex:0 0 20px;margin-right:-3px}
.lg-kv .copy .i{width:12px;height:12px}
.lg-err{flex-direction:row}
.lg-err > div{display:flex;flex-direction:column;gap:6px;min-width:0}
.lg-err b{color:var(--err);font-weight:500}
.callout.warn.lg-err b{color:var(--warn)}
.lg-err p{color:var(--text-2);font-size:12px;line-height:18px}
.lg-err p.mono{color:var(--text);word-break:break-word;font-size:12px}
.lg-err-a{display:flex;gap:10px;align-items:center;margin-top:4px}
.lg-grow{flex:1}
.lg-note{display:flex;gap:8px;font-size:12px;color:var(--text-3);line-height:17px;border-top:1px solid var(--line);padding-top:12px}
.lg-note .i{width:14px;height:14px;flex:0 0 14px;margin-top:1px}
.modal.lg-sheet{width:min(520px,100%)}
.lg-sheet .modal-b{gap:12px}

@media (max-width:1280px){
  .lg-open .lg-c-tps{display:none}
}
@media (max-width:1180px){
  .lg-c-ttft,.lg-c-tps,.lg-c-app{display:none}
  .lg-open .lg-c-tok,.lg-open .lg-c-lat{display:none}
  .lg-search{flex:1 1 160px;min-width:0}
  .lg-search kbd{display:none}
}
@media (max-width:1024px){
  .lg-head p{display:none}
  .lg-f .dd-btn > .i:first-child{display:none}
  .lg-f .dd-btn{padding:0 10px}
}
@media (max-width:720px){
  .lg-head p{display:block}
  .lg-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
  .lg-search{grid-column:span 4;height:38px}
  .lg-search kbd{display:none}
  .lg-f[data-f=key]{grid-column:span 2}
  .lg-f[data-f=model],.lg-f[data-f=status]{grid-column:span 2}
  .lg-f-range{grid-column:span 2}
  .lg-f .dd,.lg-f{min-width:0}
  .lg-f .dd-btn{width:100%;height:38px;justify-content:space-between;padding:0 10px}
  .lg-f .dd-btn > span{overflow:hidden;text-overflow:ellipsis;flex:1;text-align:left}
  .lg-f .dd-btn > .i:first-child,.lg-f .dd-btn > .lg-dots,.lg-f .dd-btn > .plogo{display:none}
  .lg-f[data-f=key] .dd-btn > .i:first-child{display:inline-block}
  .lg-f .menu{min-width:200px}
  .lg-f-range .menu,.lg-f[data-f=key] .menu{left:auto;right:0}
  .lg-card{background:transparent;box-shadow:none;overflow:visible;min-height:0}
  .lg-card .tbl-wrap{display:none}
  .lg-list{display:flex;flex-direction:column;background:var(--surface);border-radius:16px;box-shadow:var(--sh-card);overflow:hidden}
  .lg-list:empty{display:none}
  .lg-li{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;width:100%}
  .lg-li:last-child{border-bottom:0}
  .lg-li:active{background:var(--tint-2)}
  .lg-li-t{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px}
  .lg-li-t .ell{flex:1;color:var(--text)}
  .lg-li-t b{font-weight:500;font-size:13px}
  .lg-li-s{display:flex;justify-content:space-between;align-items:center;gap:8px}
  .lg-li-s .mono{font-size:11px;color:var(--text-3);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #lg-state:not(:empty){background:var(--surface);border-radius:16px;box-shadow:var(--sh-card)}
  .lg-pager{padding:14px 2px 0;border-top:0}
  .lg-panel{display:none}
}
.lg-tbl th.lg-c-time{width:96px}.lg-tbl th.lg-c-tok{width:124px}.lg-tbl th.lg-c-ttft,.lg-tbl th.lg-c-lat{width:66px}.lg-tbl th.lg-c-tps{width:84px}.lg-tbl th.lg-c-saved,.lg-tbl th.lg-c-cost{width:76px}.lg-tbl th.lg-c-st{width:96px}.lg-tbl th.lg-c-app{width:128px}.lg-tbl th.lg-c-cache{width:96px}
