/* Signed-in pages (account, delete, admin, callback), from the approved Account, Delete and Admin references. */
[hidden]{display:none !important}
.stack{display:flex;flex-direction:column;gap:12px}
.stack:not(:empty){margin-bottom:20px}
.panel.center-card,.panel[aria-busy]{padding:24px}
.center-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.center-card h2{font-size:17px;font-weight:600}
.center-card p{font-size:14px;color:var(--body)}

/* skeletons */
.skel{display:flex;flex-direction:column;gap:0}
.skel-row{display:grid;grid-template-columns:40px 1fr;gap:16px;align-items:center;padding:14px 0}
.skel-row + .skel-row{border-top:1px solid var(--line)}
.sk{display:block;background:#ECE7DC;border-radius:6px;height:12px}
.sk-ico{width:40px;height:40px;border-radius:10px}
.sk-lines{display:flex;flex-direction:column;gap:8px}
.sk-lines .sk:first-child{width:44%}
.sk-lines .sk:last-child{width:64%;height:10px}
.skel-admin .skel{gap:12px}
.skel-admin .sk:nth-child(1){width:40%}
.skel-admin .sk:nth-child(2){width:22%;height:28px}
.skel-admin .sk:nth-child(3){width:100%;height:10px}
.skel-admin .sk:nth-child(4){width:70%}

/* account */
.list{list-style:none;margin:0;padding:0}
.row{display:grid;grid-template-columns:40px minmax(0,1fr) auto auto;align-items:center;gap:6px 16px;padding:16px 20px}
.row + .row{border-top:1px solid var(--line)}
.dev-ico{width:40px;height:40px;border-radius:10px;background:var(--paper);display:flex;align-items:center;justify-content:center;color:var(--body)}
.dev-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.dev-name{font-weight:600}
.stale{color:var(--warn)}
.btn-2[aria-expanded="true"]{background:var(--hover);border-color:var(--soft)}
.btn-2[disabled],.btn-ghost[disabled],.btn-danger-2[disabled]{opacity:.6;cursor:not-allowed;transform:none}
.confirm{grid-column:2/-1;margin-top:8px;background:var(--paper);border:1px solid var(--line-2);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px}
.confirm p{font-size:14px;color:var(--body);line-height:1.65}
.confirm b{color:var(--ink);font-weight:600}
.hint{margin-top:10px}
.hist{margin-top:4px}
.hist summary{cursor:pointer;display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px;color:var(--body);list-style:none;border-radius:8px;padding:0 6px;margin-left:-6px}
.hist summary::-webkit-details-marker{display:none}
.hist summary:hover{color:var(--ink)}
.hist summary svg{transition:transform .15s ease-out}
.hist[open] summary svg{transform:rotate(180deg)}
.hist-list{list-style:none;margin:4px 0 0;padding:0 20px;border:1px dashed var(--line-2);border-radius:12px}
.hist-list li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:12px 0;font-size:14px;color:var(--muted)}
.hist-list li + li{border-top:1px solid var(--line)}
.ctl{list-style:none;margin:20px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 28px}
.ctl li{display:flex;gap:12px;align-items:flex-start}
.ctl-ico{flex:none;width:32px;height:32px;border-radius:8px;background:var(--accent-wash);color:var(--accent);display:flex;align-items:center;justify-content:center}
.ctl h3{font-size:15px;font-weight:600;line-height:1.4}
.ctl p{font-size:13px;color:var(--muted);margin-top:2px;line-height:1.55}
.panel-danger{border-color:var(--danger-line);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px 24px;padding:24px}
.pd-text{display:flex;flex-direction:column;gap:6px;max-width:34em}
.pd-text p{font-size:14px;color:var(--body)}

/* delete */
.back{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:14px;color:var(--muted) !important;text-decoration:none;margin:-8px 0 12px}
.back:hover{color:var(--ink) !important}
.flow-steps{list-style:none;margin:0 0 28px;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;font-size:13px;color:var(--muted)}
.flow-steps li{display:flex;align-items:center;gap:8px}
.flow-steps li + li::before{content:"";width:24px;height:1px;background:var(--line-2);margin-right:2px}
.flow-steps .n{width:24px;height:24px;border-radius:50%;border:1.5px solid var(--line-2);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:var(--muted)}
.flow-steps .cur{color:var(--ink);font-weight:600}
.flow-steps .cur .n{background:var(--ink);border-color:var(--ink);color:#fff}
.flow-steps .done .n{background:var(--ok);border-color:var(--ok);color:#fff}
.effect{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);overflow:hidden}
.eff-col{padding:24px;display:flex;flex-direction:column;gap:12px}
.eff-del{background:var(--danger-wash)}
.eff-col h2{font-size:15px;font-weight:600}
.eff-del h2{color:var(--danger)}
.eff-col ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:9px;font-size:14px;line-height:1.55;color:var(--body)}
.eff-col li{display:flex;gap:10px}
.eff-col li::before{content:"";flex:none;margin-top:.7em}
.eff-del li::before{width:9px;height:2px;border-radius:1px;background:var(--danger)}
.eff-keep li::before{width:6px;height:6px;border-radius:50%;border:1.5px solid var(--ok);margin-top:.5em}
.unplug{display:flex;align-items:center;gap:18px;margin-top:16px;padding:16px 20px}
.unplug p{font-size:14px;color:var(--body);line-height:1.6}
.unplug b{color:var(--ink);font-weight:600}
.dots-change{display:flex;align-items:center;gap:8px;color:var(--soft);flex:none}
.dots-change .slots i{width:11px;height:11px}
.after{margin-top:12px;display:flex;flex-direction:column;gap:4px}
.confirm-form{margin-top:32px;display:flex;flex-direction:column;gap:8px}
.confirm-form .field{max-width:300px}
.confirm-form .act{margin-top:10px}
.field-bad{border-color:var(--danger) !important;box-shadow:0 0 0 1px var(--danger)}
.err-line{font-size:13px;color:var(--danger);display:flex;align-items:center;gap:6px}
.done-mark{width:44px;height:44px;border-radius:50%;background:var(--ok-wash);color:var(--ok);display:flex;align-items:center;justify-content:center}
.progress{position:relative;width:100%;height:6px;border-radius:999px;background:var(--accent-track);overflow:hidden}
.progress span{position:absolute;top:0;bottom:0;left:0;width:35%;border-radius:999px;background:var(--accent);animation:indet 1.4s cubic-bezier(.65,0,.35,1) infinite}
@keyframes indet{0%{transform:translateX(-110%)}100%{transform:translateX(300%)}}
@media (prefers-reduced-motion: reduce){.progress{background:repeating-linear-gradient(90deg,var(--slot) 0 6px,transparent 6px 11px) center/100% 2px no-repeat}.progress span{display:none}.hist summary svg{transition:none}}

/* admin */
.dash-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:20px}
.dash-head .page-head{margin-bottom:0}
.toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.filters{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.seg{display:inline-flex;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:3px}
.seg button{min-height:44px;padding:0 14px;border:none;background:transparent;border-radius:8px;font-family:inherit;font-size:13px;font-weight:500;color:var(--muted);cursor:pointer}
.seg button:hover{color:var(--ink);background:var(--hover)}
.seg button[aria-pressed="true"]{background:var(--ink);color:#fff;font-weight:600}
.fresh{display:flex;align-items:center;gap:6px}
.quota{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:0}
.q-main{padding:24px 28px;display:flex;flex-direction:column;gap:6px}
.q-title{font-size:14px !important;font-weight:600 !important;color:var(--muted)}
.q-line{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.q-num{font-size:44px;font-weight:600;letter-spacing:-0.02em;line-height:1.1}
.q-of{font-size:16px;color:var(--muted)}
.meter{position:relative;height:12px;border-radius:999px;background:var(--accent-track);margin:12px 0 4px;overflow:hidden}
.meter span{position:absolute;top:0;bottom:0;left:0;width:0;background:var(--accent);border-radius:999px}
.meter-scale{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:8px}
.q-side{padding:24px 28px;border-left:1px solid var(--line);display:flex;flex-direction:column;gap:18px}
.cost{margin:0}
.cost dt{font-size:14px;font-weight:600;color:var(--muted)}
.cost dd{margin:4px 0 0}
.cost .c-num{display:block;font-size:32px;font-weight:600;letter-spacing:-0.01em;line-height:1.15}
.cost .c-sub{display:block;font-size:13px;color:var(--body);margin-top:4px;line-height:1.55}
.cost .c-note{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.stats{margin:0;padding:16px 0 0;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px}
.stat dt{font-size:12.5px;color:var(--muted)}
.stat dd{margin:2px 0 0;font-size:17px;font-weight:600;line-height:1.3}
.quota-alert:not(:empty){margin-top:16px;margin-bottom:0}
.chart-panel{padding:24px 24px 16px}
.chart{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px}
.yaxis{position:relative;height:220px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.yaxis span{position:absolute;right:0;transform:translateY(50%)}
.plot{position:relative;height:220px;border-bottom:1px solid var(--line-2)}
.grid-l{position:absolute;left:0;right:0;height:1px;background:var(--line)}
.bars{position:absolute;inset:0;display:grid;grid-template-columns:repeat(14,minmax(0,1fr))}
.b{position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%}
.b i{display:block;width:min(24px,62%);background:var(--accent);border-radius:4px 4px 0 0;transition:filter .12s ease-out}
.b:hover i{filter:brightness(1.12)}
.b-today i{background:repeating-linear-gradient(135deg,var(--accent) 0 5px,#D27A55 5px 8px)}
.b .val{font-size:12px;font-weight:600;color:var(--ink);margin-bottom:4px;font-variant-numeric:tabular-nums}
.b .tip{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);display:none;pointer-events:none;background:var(--ink);color:#fff;font-size:12px;line-height:1.4;padding:6px 8px;border-radius:8px;white-space:nowrap;z-index:2}
.b .tip b{font-size:13px}
.b:hover .tip{display:block}
.b:nth-last-child(-n+2) .tip{left:auto;right:0;transform:none}
.b:nth-child(-n+2) .tip{left:0;transform:none}
.mark{position:absolute;top:0;bottom:0;left:0;border-left:1px dashed var(--soft)}
.mark span{position:absolute;top:0;left:6px;font-size:12px;color:var(--muted);white-space:nowrap;background:var(--surface);padding-right:4px}
.xaxis{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;margin-top:8px}
.xlabels{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));font-size:12px;color:var(--muted);text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.data-tbl{margin-top:8px}
.data-tbl summary{cursor:pointer;display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:13px;color:var(--body);list-style:none}
.data-tbl summary::-webkit-details-marker{display:none}
.tbl-wrap:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tbl-wide,.tbl-invites,.tbl-narrow{font-size:14px}
.tbl-wide{min-width:760px}
.tbl-invites{min-width:520px}
.tbl-wide th,.tbl-invites th,.tbl-narrow th{font-size:12.5px;padding:12px 16px;white-space:nowrap}
.tbl-wide td,.tbl-wide tbody th,.tbl-invites td,.tbl-invites tbody th,.tbl-narrow td,.tbl-narrow tbody th{padding:14px 16px;vertical-align:middle;white-space:nowrap}
.tbl-wide tbody th,.tbl-invites tbody th,.tbl-narrow tbody th{font-weight:500}
.tbl tr:last-child td,.tbl tr:last-child th{border-bottom:none}
.tbl .muted td,.tbl .muted th{color:var(--muted)}
.sub-line{display:block}
.sort{font:inherit;color:var(--ink);background:none;border:none;padding:8px 0;margin:-8px 0;cursor:pointer;display:inline-flex;align-items:center;gap:4px;min-height:44px}
th:not([aria-sort]) .sort svg{visibility:hidden}
.use{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.mini{width:72px;height:6px;border-radius:999px;background:var(--accent-track);position:relative;overflow:hidden}
.mini span{position:absolute;top:0;bottom:0;left:0;background:var(--accent);border-radius:999px}
.mini-warn{background:var(--warn-track)}
.mini-warn span{background:var(--warn-mark)}
.near{color:var(--warn);font-weight:600}
.tag{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:500}
.tag::before{content:"";width:8px;height:8px;border-radius:50%;flex:none}
.tag-used{color:var(--ok)}.tag-used::before{background:var(--ok)}
.tag-new{color:var(--muted)}.tag-new::before{width:6px;height:6px;border:1.5px dashed var(--soft)}
.swipe{display:none}
.inv-add{display:flex;flex-direction:column;gap:8px;padding:20px 24px;border-bottom:1px solid var(--line)}
.inv-add .stack:not(:empty){margin:4px 0 0}
.inv-row{display:flex;gap:10px}
.inv-row .field{min-height:44px;font-size:16px}
.app .notes{margin-top:36px;font-size:13px;color:var(--muted);line-height:1.7;max-width:60em}

@media (max-width:960px){
.quota{grid-template-columns:1fr}
.q-side{border-left:none;border-top:1px solid var(--line)}
}
@media (max-width:720px){
.row{grid-template-columns:40px minmax(0,1fr) auto;padding:14px 16px}
.row .st{grid-column:2;grid-row:2;justify-self:start}
.row > .btn-2{grid-column:3;grid-row:1/3}
.confirm{grid-column:1/-1}
.ctl{grid-template-columns:1fr}
.effect{grid-template-columns:1fr}
.unplug{flex-direction:column;align-items:flex-start;gap:10px}
.confirm-form .field{max-width:none}
.flow-steps li + li::before{display:none}
.seg button{padding:0 12px}
.xlabels span:nth-child(odd):not(:last-child){visibility:hidden}
.stats{grid-template-columns:1fr 1fr}
.q-num{font-size:38px}
.inv-row{flex-direction:column}
.mark span{display:none}
.swipe{display:block;margin-top:6px}
}
