:root{color-scheme:light;--ink:#1e293b;--muted:#5b6678;--page:#f7f2f8;--line:#ebe5ef;--slate:#334155;--pink:#db2777;--pink-dark:#be185d;--pink-tint:#fdf2f8;--violet:#7c3aed;--brand:linear-gradient(90deg,#db2777,#7c3aed);--shadow:0 1px 2px rgba(60,40,90,.05),0 8px 24px rgba(60,40,90,.08);--s0:#db2777;--s1:#7c3aed;--s2:#2563eb;--s3:#c2410c;--s4:#0f766e;--s5:#475569;--s6:#7c8798}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--page);color:var(--ink);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif}
h1,h2,p,ul,ol,dl,dd,figure{margin:0}
ul,ol{padding:0;list-style:none}
a{color:var(--pink-dark)}
:focus-visible{outline:2px solid var(--violet);outline-offset:2px}
code{font:12.5px ui-monospace,SFMono-Regular,Menlo,monospace}
.i{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sub{color:var(--muted);font-size:12.5px}

/* shell: a fixed sidebar, a slim top bar, the page */
.side{position:fixed;inset:0 auto 0 0;z-index:30;display:flex;flex-direction:column;width:240px;background:#fff;border-right:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:12px;height:64px;padding:0 22px;color:#fff;text-decoration:none;background:var(--brand)}
.mark{display:block;width:auto;height:36px;flex:none}
.name b{display:block;font-size:17px;line-height:1.25}
.name small{display:block;font-size:12px;line-height:1.25}
.nav{display:grid;padding:14px 0}
.nav a{display:flex;align-items:center;gap:12px;padding:11px 22px;border-left:3px solid transparent;color:#475569;font-weight:600;text-decoration:none}
.nav a:hover{background:#faf6fb;color:var(--ink)}
.nav a.active{border-left-color:var(--pink);background:var(--pink-tint);color:var(--pink-dark)}
.side-foot{margin-top:auto;padding:16px 22px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}
.main{margin-left:240px;min-height:100vh}
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:16px;height:56px;padding:0 32px;background:#fff;border-bottom:1px solid var(--line)}
.spacer{flex:1}
.envs{display:inline-flex;padding:3px;border-radius:999px;background:#f3eef6}
.envs a{padding:3px 14px;border-radius:999px;color:#475569;font-size:13px;font-weight:600;text-decoration:none}
.envs a.current{background:var(--brand);color:#fff}
.me{display:flex;align-items:center;gap:10px;min-width:0}
.me-email{overflow:hidden;max-width:260px;text-overflow:ellipsis;white-space:nowrap}
.avatar{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,var(--pink),var(--violet));color:#fff;font-size:13px;font-weight:700}
.avatar.big{width:60px;height:60px;font-size:24px}
.logout{margin:0}
.content{max-width:1320px;margin:0 auto;padding:28px 32px 56px}
.content:has(.board){max-width:1600px}
.head{margin-bottom:22px}
.head h1{font-size:22px;line-height:1.3;overflow-wrap:anywhere}
.head .sub{margin-top:2px;font-size:13px}
.back{display:inline-block;margin-bottom:6px;font-size:13px;font-weight:600;text-decoration:none}

/* buttons, badges */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 16px;border:1px solid transparent;border-radius:8px;font:inherit;font-weight:600;line-height:1.4;text-decoration:none;cursor:pointer}
.btn.primary{background:var(--pink);color:#fff}
.btn.primary:hover{background:var(--pink-dark)}
.btn.ghost{border-color:var(--line);background:#fff;color:var(--ink)}
.btn.ghost:hover{border-color:var(--pink);color:var(--pink-dark)}
.btn.small{padding:4px 14px;font-size:13px}
.badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.6;white-space:nowrap}
.badge.pro{background:#fce7f3;color:#9d174d}
.badge.shared{background:#ede9fe;color:#5b21b6}
.badge.free{background:#eef2f6;color:#475569}
.badge.apple{background:#e2e8f0;color:#0f172a}
.badge.google{background:#dbeafe;color:#1e40af}
.badge.email{background:#dcfce7;color:#166534}
.badges{display:flex;flex-wrap:wrap;gap:6px}

/* stat cards */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-bottom:24px}
.stats.kpi{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:20px}
.stat{position:relative;min-height:124px;padding:18px 20px;border-radius:12px;color:#fff;box-shadow:var(--shadow)}
.stat::after{content:"";position:absolute;right:0;bottom:0;width:104px;height:104px;border-radius:100% 0 12px 0;background:rgba(20,10,40,.12);pointer-events:none}
.stat.pink{background:linear-gradient(135deg,#db2777,#be185d)}
.stat.purple{background:linear-gradient(135deg,#7c3aed,#5b21b6)}
.stat.blue{background:linear-gradient(135deg,#0369a1,#2563eb)}
.stat.orange{background:linear-gradient(135deg,#c2410c,#b45309)}
.stat.teal{background:linear-gradient(135deg,#0f766e,#115e59)}
.stat .label{font-size:13px;font-weight:600}
.stat .num{margin-top:6px;font-size:30px;font-weight:700;line-height:1.15}
.stat .note{margin-top:6px;font-size:12.5px}
.stat .ico{position:absolute;top:12px;right:16px;z-index:1;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.22)}

/* cards, tables, pager */
.card{position:relative;margin-bottom:24px;padding:22px 24px;border-radius:12px;background:#fff;box-shadow:var(--shadow)}
.card-head{margin-bottom:16px}
.card h2{font-size:16px;line-height:1.4}
.table-wrap{overflow-x:auto}
table.data{width:100%;min-width:680px;border-collapse:separate;border-spacing:0}
table.data th{padding:12px 16px;background:var(--slate);color:#fff;font-size:13px;font-weight:600;text-align:left;white-space:nowrap}
table.data th:first-child{border-radius:8px 0 0 8px}
table.data th:last-child{border-radius:0 8px 8px 0}
table.data td{padding:14px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
table.data tbody tr:hover td{background:#fcf8fd}
table.data tbody tr:last-child td{border-bottom:0}
table.data .n{text-align:right}
table.data.compact{min-width:0}
table.data.compact th,table.data.compact td{white-space:nowrap}
.usercell{display:flex;align-items:center;gap:12px;min-width:0}
.usercell a{font-weight:600;text-decoration:none;overflow-wrap:anywhere}
.usercell a:hover{text-decoration:underline}
.usercell small{display:block;color:var(--muted);font-size:12.5px;line-height:1.4}
.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}
.round{display:inline-flex;align-items:center;gap:6px;padding:8px 20px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-weight:600;text-decoration:none}
a.round:hover{border-color:var(--pink);color:var(--pink-dark)}
a.round.next{border-color:var(--pink);background:var(--pink);color:#fff}
a.round.next:hover{background:var(--pink-dark);color:#fff}
.round.off{background:#f8f5fa;color:#6b7686}
.empty{padding:28px 0;color:var(--muted);text-align:center}
.notice{max-width:520px;margin:56px auto;padding:40px 28px;text-align:center}
.notice h1{font-size:20px;line-height:1.4}
.notice p{margin:8px 0 22px;color:var(--muted)}

/* one user */
.detail{display:grid;grid-template-columns:380px minmax(0,1fr);gap:24px;align-items:start}
.detail .card{margin-bottom:24px}
.who-head{display:flex;align-items:center;gap:16px;margin-bottom:18px}
.who-head strong{display:block;font-size:16px;overflow-wrap:anywhere}
.profile{position:sticky;top:76px}
.profile h2{margin:22px 0 10px;font-size:14px}
.facts{display:grid;grid-template-columns:80px minmax(0,1fr);gap:10px 12px}
.facts dt{color:var(--muted)}
.facts dd{overflow-wrap:anywhere}
.idlist{display:grid;gap:6px}
.idlist li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.usage{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px;align-items:center}
.donut{display:block;width:100%;height:auto}
.donut .ring{stroke:#f1ebf4}
.donut .num{fill:var(--ink);font-size:4.4px;font-weight:700}
.donut .lab{fill:var(--muted);font-size:2.8px}
.donut .s0{stroke:var(--s0)}
.donut .s1{stroke:var(--s1)}
.donut .s2{stroke:var(--s2)}
.donut .s3{stroke:var(--s3)}
.donut .s4{stroke:var(--s4)}
.donut .s5{stroke:var(--s5)}
.donut .s6{stroke:var(--s6)}
.legend{display:grid;gap:10px}
.legend li{display:flex;align-items:center;gap:10px}
.legend .dot{width:10px;height:10px;border-radius:50%;flex:none}
.dot.s0{background:var(--s0)}
.dot.s1{background:var(--s1)}
.dot.s2{background:var(--s2)}
.dot.s3{background:var(--s3)}
.dot.s4{background:var(--s4)}
.dot.s5{background:var(--s5)}
.dot.s6{background:var(--s6)}
.legend .what{flex:1}
.legend .cost{font-weight:600}
.legend .pct{min-width:40px;color:var(--muted);text-align:right}
.usage-table{margin-top:20px}
.timeline li{position:relative;display:flex;gap:14px;padding-bottom:10px}
.timeline li:last-child{padding-bottom:0}
.timeline li::before{content:"";position:absolute;top:34px;bottom:2px;left:15px;width:2px;background:var(--line)}
.timeline li:last-child::before{display:none}
.tdot{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:#64748b;color:#fff}
.tdot .i{width:15px;height:15px}
.signup .tdot{background:var(--pink)}
.signin .tdot{background:#2563eb}
.tbody{min-width:0;line-height:1.4}
.tbody strong{margin-right:8px}
.tbody .when{color:var(--muted);font-size:12.5px}
.tbody p{overflow-wrap:anywhere}
.tbody .meta{color:var(--muted);font-size:12.5px}

/* the overview */
.head.row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.head.row .btn{flex:none}
.refreshing [data-refresh]{opacity:.6}
.board{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:20px;margin-bottom:20px}
.board>.card{display:flex;flex-direction:column;min-width:0;margin-bottom:0}
.w4{grid-column:span 4}
.w8{grid-column:span 8}
.w12{grid-column:span 12}
.card-head.row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.tabs{display:inline-flex;flex:none;gap:2px;padding:3px;border-radius:999px;background:#f3eef6}
.tabs a{padding:3px 12px;border-radius:999px;color:#475569;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}
.tabs a:hover{color:var(--ink)}
.tabs a.current{background:var(--brand);color:#fff}
.sums{display:flex;flex-wrap:wrap;gap:6px 36px;margin-bottom:6px}
.sums .big{font-size:26px;font-weight:700;line-height:1.25}
.key{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:6px;color:var(--muted);font-size:12.5px}
.k{display:inline-flex;align-items:center;gap:6px}
.k .dot{width:10px;height:10px;border-radius:50%;flex:none}
.chart{display:block;width:100%;height:auto;margin-top:6px}
.chart .grid-line{stroke:var(--line);stroke-width:1}
.chart .axis{fill:var(--muted);font-size:11px}
.chart .axis-right{fill:var(--violet)}
.cover{margin-top:8px;color:var(--muted);font-size:12.5px}
.nw{white-space:nowrap}
.tip{display:inline-flex;vertical-align:-3px;margin:-5px -5px -5px 0;padding:5px;border:0;border-radius:50%;background:none;font:inherit;color:#64748b;cursor:help}
.tip .i{width:15px;height:15px}
.tip:hover,.tip:focus,.tip.open{color:var(--violet)}
.stat .tip{color:rgba(255,255,255,.9)}
.stat .tip:hover,.stat .tip:focus,.stat .tip.open{color:#fff}
.stat .tip:focus-visible{outline-color:#fff}
.tip-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.tip:not(.off):hover::before{content:"";position:absolute;width:25px;height:14px;margin:7px 0 0 -5px}
.tip:not(.off):hover::after{content:"";position:absolute;left:0;right:0;height:8px;margin-top:20px}
.tip:not(.off):hover .tip-text,.tip:not(.off):focus .tip-text,.tip.open:not(.off) .tip-text,.tip.kept:not(.off) .tip-text{z-index:40;left:14px;width:max-content;max-width:min(380px,calc(100% - 28px));height:auto;margin:25px 0 0;padding:10px 12px;overflow:visible;clip-path:none;white-space:normal;border:1px solid transparent;border-radius:10px;background:var(--ink);color:#fff;box-shadow:0 8px 24px rgba(30,20,60,.28);font-size:12.5px;font-weight:400;line-height:1.6;text-align:left;cursor:auto}
.stale{margin:0 0 12px;padding:6px 10px;border-radius:8px;background:#fff7ed;color:#9a3412;font-size:12.5px;font-weight:600}
.stats>.stale,.stats>.empty{grid-column:1/-1;margin:0}
.spark{display:block;flex:none;width:84px;height:auto}
.meter{display:block;width:100%;height:8px;border-radius:4px;overflow:hidden}
.meter .track{fill:#f1ebf4}
.meter .fill{fill:var(--pink)}
.meter.muted .fill{fill:#64748b}
.meter.warn .fill{fill:#c2410c}
.meter.bad .fill{fill:#b91c1c}
.stat .meter{margin-top:10px}
.meter.light .track{fill:rgba(255,255,255,.32)}
.meter.light .fill{fill:#fff}
.geo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 48px;align-items:start}
.rank{display:grid;grid-template-columns:minmax(64px,104px) minmax(40px,1fr) auto 42px;gap:11px 10px}
.rank li{display:grid;grid-template-columns:subgrid;grid-column:1/-1;align-items:center}
.rank .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank .n{font-weight:600;text-align:right}
.rank .pct{color:var(--muted);text-align:right}
.card h3{margin:22px 0 12px;font-size:14px}
.geo h3{margin:0 0 12px}
.foot{margin-top:16px;color:var(--muted);font-size:12.5px}
.minis{display:grid;flex:1;grid-template-columns:repeat(auto-fit,minmax(min(100%,max(280px,calc(50% - 4px))),1fr));grid-auto-rows:1fr;gap:8px}
.usage.stack{flex:1;align-content:center;grid-template-columns:minmax(0,1fr);gap:14px}
.usage.stack .donut{max-width:150px;margin:0 auto}
.usage.stack .legend{gap:6px}
.mini{display:flex;align-items:center;gap:14px;padding:9px 12px;border-radius:10px;background:#fbf8fc}
.mini>div{min-width:0}
.mini .ico{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:50%;color:#fff}
.mini .ico.pink{background:linear-gradient(135deg,#db2777,#be185d)}
.mini .ico.purple{background:linear-gradient(135deg,#7c3aed,#5b21b6)}
.mini .ico.blue{background:linear-gradient(135deg,#0369a1,#2563eb)}
.mini .ico.orange{background:linear-gradient(135deg,#c2410c,#b45309)}
.mini .label{color:var(--muted);font-size:12.5px;line-height:1.3}
.mini .num{font-size:19px;font-weight:700;line-height:1.2}
.mini .note{color:var(--muted);font-size:12px;line-height:1.35}
.mini .spark{margin-left:auto}
.gone{color:var(--muted)}
.ops-head{position:relative;margin:6px 0 14px}
.ops-head h2{font-size:18px;line-height:1.4}
.ops-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:20px;margin-bottom:20px}
.ops-card{display:flex;flex-direction:column;min-width:0;margin-bottom:0}
.ops-card h3{margin:0 0 10px;font-size:15px}
.ops-card .big{font-size:26px;font-weight:700;line-height:1.3}
.oc-cost{grid-column:1/9;grid-row:1}
.oc-r2{grid-column:9/13;grid-row:1}
.oc-d1{grid-column:1/5;grid-row:2}
.oc-workers{grid-column:5/9;grid-row:2}
.oc-do{grid-column:9/13;grid-row:2}
.oc-ai{grid-column:1/7;grid-row:3}
.oc-vectorize{grid-column:7/13;grid-row:3}
.mrow{margin-top:14px}
.mline{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:6px}
.mline .nm{min-width:0;overflow-wrap:break-word}
.mline .amt{flex:none;font-weight:700;white-space:nowrap}
.mnote{margin-top:6px;color:var(--muted);font-size:12.5px}
.alarm{margin-top:4px;color:#9a3412;font-size:12.5px;font-weight:600}
.lines{display:grid;grid-template-columns:minmax(0,1fr);column-gap:36px;margin-top:10px;font-size:13px}
.lines li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.lines .nm{min-width:0;overflow-wrap:break-word}
.lines .amt{font-weight:600;text-align:right;white-space:nowrap}
.lines .dt{grid-column:1/-1;color:var(--muted);font-size:12px}
.unavail{display:grid;gap:8px;margin-top:12px}
.unavail li{padding:8px 10px;border-radius:8px;background:#f8f5fa;font-size:13px}
.unavail small{display:block;color:var(--muted);font-size:12px}
.src{margin-top:auto;padding-top:14px;color:var(--muted);font-size:12px}
.oc-cost .src{margin-top:0}

/* signed out: one card on the brand gradient */
body.auth{display:grid;place-items:center;min-height:100vh;padding:24px;background:linear-gradient(135deg,#db2777,#7c3aed)}
.auth-box{width:100%;max-width:420px}
.auth-card{padding:34px 32px 28px;border-radius:16px;background:#fff;box-shadow:0 24px 60px rgba(40,10,70,.35);text-align:center}
.auth-logo{display:flex;justify-content:center;margin-bottom:24px}
.auth-mark{display:block;width:auto;height:64px}
.auth-card h1{font-size:21px;line-height:1.4}
.auth-card p{margin-top:8px;color:var(--muted);text-wrap:balance}
.auth-card ul{margin:16px 0 0;text-align:left}
.auth-card li{padding:8px 12px;border-radius:8px;background:var(--pink-tint);color:var(--pink-dark)}
.auth-card li+li{margin-top:6px}
.auth-card .btn{margin-top:22px;width:100%}
.google-btn{padding:11px 16px;border-color:#cbd5e1;background:#fff;color:#1f2937}
.google-btn:hover{border-color:var(--violet);background:#faf7ff}
.google-btn .g{width:20px;height:20px}
.auth-env{display:flex;justify-content:center;margin-top:18px}
.auth-env .envs{background:rgba(20,10,40,.3)}
.auth-env .envs a{color:#fff}
.auth-env .envs a.current{background:#fff;color:var(--pink-dark)}

@media (max-width:1280px){
.board{grid-template-columns:minmax(0,1fr)}
.board>.card{grid-column:auto}
.stats.kpi{grid-template-columns:repeat(6,minmax(0,1fr))}
.stats.kpi .stat{grid-column:span 2}
.stats.kpi .stat:nth-last-child(-n+2){grid-column:span 3}
.usage.stack{grid-template-columns:190px minmax(0,1fr);gap:24px}
.usage.stack .donut{max-width:none;margin:0}
.ops-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.ops-card{grid-column:auto;grid-row:auto}
.oc-cost{grid-column:1/-1}
}
@media (min-width:1000px){
.oc-cost .lines:has(li:nth-child(3)){grid-template-columns:repeat(2,minmax(0,1fr))}
.board .timeline{column-count:2;column-gap:48px}
.board .timeline li{break-inside:avoid}
}
@media (min-width:1281px){
.w4 .geo{grid-template-columns:minmax(0,1fr)}
}
@media (min-width:1281px) and (max-width:1439px){
.stats.kpi .num{font-size:26px}
}
@media (max-width:1000px){
.stats.kpi{grid-template-columns:repeat(2,minmax(0,1fr))}
.stats.kpi .stat,.stats.kpi .stat:nth-last-child(-n+2){grid-column:auto}
.stats.kpi .stat:last-child{grid-column:1/-1}
.geo{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:800px){
.side{position:static;flex-direction:row;align-items:stretch;width:auto;border-right:0;border-bottom:1px solid var(--line)}
.brand{flex:none;height:auto;min-height:56px;padding:0 16px}
.mark{height:30px}
.nav{display:flex;padding:0;overflow-x:auto}
.nav a{align-items:center;padding:0 16px;border-bottom:3px solid transparent;border-left:0;white-space:nowrap}
.nav a.active{border-bottom-color:var(--pink)}
.side-foot{display:none}
.main{margin-left:0}
.top{position:static;gap:12px;padding:0 16px}
.me-email{max-width:150px}
.content{padding:20px 16px 40px}
table.data.cards{min-width:0}
table.data.cards thead{display:none}
table.data.cards tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;padding:16px 0;border-bottom:1px solid var(--line)}
table.data.cards tbody tr:last-child{border-bottom:0}
table.data.cards td{display:block;padding:0;border:0}
table.data.cards td:first-child{grid-column:1/-1}
table.data.cards td.n{text-align:left}
table.data.cards.three tr{grid-template-columns:repeat(3,minmax(0,1fr))}
table.data.cards td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px}
table.data.cards tbody tr:hover td{background:none}
.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.stats .stat:last-child:nth-child(odd){grid-column:1/-1}
.board,.ops-grid{gap:12px}
.ops-grid{grid-template-columns:minmax(0,1fr)}
.oc-cost{grid-column:auto}
.stat{min-height:112px;padding:14px 16px}
.stat .num{font-size:24px}
.stat .ico{top:10px;right:12px;width:28px;height:28px}
.card{padding:18px 16px}
.head.row,.card-head.row{flex-wrap:wrap}
.detail{grid-template-columns:minmax(0,1fr)}
.profile{position:static}
.usage,.usage.stack{grid-template-columns:minmax(0,1fr)}
.usage.stack .donut{max-width:200px;margin:0 auto}
.donut{max-width:200px;margin:0 auto}
}
@media (max-width:560px){
.chart .axis{font-size:16px}
.me-email{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
