:root{--canvas:#F6F6F7;--sheet:#FFFFFF;--ink:#222125;--subtle:#606065;--line:#DDDDE1;--tint:#FAECEE;--brand:#EF4148;--action:#D92F38;--brandink:#AE2633;--warnbg:#FFF4DA;--warnink:#775315;--focus:#B92130}html[data-theme="dark"]{color-scheme:dark;--canvas:#18171A;--sheet:#242327;--ink:#FAF8FA;--subtle:#C7C4CA;--line:#49464C;--tint:#40282F;--brand:#EF4148;--action:#D92F38;--brandink:#FF9DA5;--warnbg:#3F331B;--warnink:#FFD992;--focus:#FFABB3}
*{box-sizing:border-box}
:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans CJK SC","PingFang SC","Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.5;color:var(--ink);background:var(--canvas);font-variant-numeric:tabular-nums}
body{margin:0;min-width:0}
h1,h2,h3,p,dl,dd{margin:0}
button,input,select{font:inherit;color:inherit}
button,a,summary,select{touch-action:manipulation}
button,select,summary{cursor:pointer}
button{border:0;background:transparent}
button:disabled{cursor:wait;opacity:.68}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
a{color:var(--brandink);text-underline-offset:.2em}
a:hover{text-decoration-thickness:2px}
input,select{min-width:0;max-width:100%}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.muted,.scope-note,.owner-line,.rate-row footer,.data-group dt,.data-group>strong,.period,.identity,.summary-cell>span,.summary-cell>small{color:var(--subtle)}
.tools,.locale,.mast-brand,.period,.private-label,.views,.filter-actions,.pager,.rate-row footer{display:flex;align-items:center}
.tools{gap:.45rem;flex-wrap:wrap;justify-content:flex-end}
.tools button,.locale{min-height:2.85rem}
.locale,.theme,.quiet{border:1px solid transparent;border-radius:.5rem}
.locale{gap:.25rem;padding:0 .45rem}
.locale select{background:var(--sheet);border:0;color:var(--ink);max-width:8.5rem;font-size:.9rem;min-height:2.8rem}
.locale svg,.theme svg{flex:none;color:var(--subtle)}
.theme{display:grid;place-items:center;width:2.85rem}
.quiet{padding:.5rem .7rem;color:var(--subtle)}
.tools button:hover,.locale:hover,.quiet:hover{background:var(--canvas)}
.auth-wrap{max-width:80rem;margin:auto;padding:0 clamp(1rem,6vw,4rem) 4rem}
.public-tools{padding:1rem 0}
.public-tools .locale select{background:transparent}
.public-tools .tools button:hover,.public-tools .locale:hover{background:var(--sheet)}
.auth-sheet{max-width:54rem;margin:clamp(2rem,8vh,6rem) auto 0;display:grid;grid-template-columns:minmax(13rem,.76fr) minmax(0,1.24fr);border:1px solid var(--line);border-radius:1.25rem;background:var(--sheet);overflow:hidden;box-shadow:0 17px 60px #0000000a}
.brand-panel{min-height:17rem;padding:clamp(1.8rem,4vw,3.5rem);background:var(--tint);position:relative;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;isolation:isolate;overflow:hidden}
.brand-lines{position:absolute;inset:0;z-index:-1;background:repeating-radial-gradient(ellipse at 90% 5%,transparent 0 1.65rem,color-mix(in srgb,var(--brandink) 8%,transparent) 1.72rem,transparent 1.8rem 2.5rem);mask-image:linear-gradient(170deg,#000,transparent 75%)}
.hero-logo{width:clamp(5rem,8vw,7.6rem);aspect-ratio:1;object-fit:contain}
.auth-brand{display:grid;margin-top:1.25rem;gap:.15rem;overflow-wrap:anywhere}
.auth-brand strong{font-size:clamp(1.65rem,3.4vw,2.75rem);letter-spacing:-.045em;line-height:1.22}
.auth-brand>span{font-size:1.1rem;color:var(--subtle)}
.private-label{gap:.4rem;margin-top:3.5rem;font-size:.84rem;color:var(--brandink)}
.private-label svg{width:1rem;height:1rem}
.auth-content{padding:clamp(2rem,4vw,3.4rem);align-self:center}
h1{font-size:clamp(1.8rem,3vw,2.65rem);letter-spacing:-.042em;line-height:1.18;overflow-wrap:anywhere}
.auth-content h1{font-size:clamp(1.45rem,2.7vw,2.05rem)}
.intro{font-size:.93rem;line-height:1.65;color:var(--subtle);margin:.65rem 0 1.45rem}
#auth-form{display:grid;gap:.9rem}
.field{display:flex;flex-direction:column;gap:.35rem;min-width:0}
.field>span{font-size:.84rem;font-weight:600}
.field input,.field select{width:100%;height:3rem;padding:0 .72rem;border-radius:.5rem;border:1px solid var(--line);background:var(--sheet)}
.field input:hover,.field select:hover{border-color:var(--subtle)}
.field input:focus,.field select:focus{outline:2px solid var(--focus);outline-offset:1px}
#pw-hint{color:var(--subtle);margin-top:-.65rem;font-size:.8rem}
.message{color:var(--brandink);font-size:.88rem}
.message:empty{display:none}
.primary,.apply{display:inline-flex;justify-content:center;align-items:center;min-height:3rem;font-weight:650;border-radius:.5rem;padding:.58rem 1.05rem}
.primary{background:var(--action);color:white;margin-top:.25rem}
.primary:hover{filter:brightness(.92)}
.apply{background:var(--ink);color:var(--sheet);font-size:.88rem}
.apply:hover{opacity:.86}
.mast{border-bottom:1px solid var(--line);background:var(--sheet)}
.mast-inner,.dashboard{width:min(100% - 3rem,75rem);margin:auto}
.mast-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4.9rem}
.mast-brand{gap:.65rem}
.mast-brand img{width:2.8rem;height:2.8rem;object-fit:contain}
.mast-brand>div{display:grid}
.mast-brand strong{font-size:1.08rem;line-height:1.2;letter-spacing:-.02em}
.mast-brand span{color:var(--subtle);font-size:.78rem}
.dashboard{padding-bottom:4rem}
.views{gap:1.7rem;border-bottom:1px solid var(--line)}
.views a{display:flex;align-items:center;min-height:3.6rem;padding:.3rem 0 .15rem;color:var(--subtle);border-bottom:3px solid transparent;font-weight:570;font-size:.94rem;text-decoration:none;overflow-wrap:anywhere}
.views a[aria-current]{color:var(--brandink);border-color:var(--brand)}
.views a:hover{color:var(--ink)}
.title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:.6rem 1.4rem;flex-wrap:wrap;margin:2.05rem 0 1.3rem}
.period{gap:.35rem;font-size:.85rem;padding-bottom:.15rem}
.period svg{width:1.05rem;height:1.05rem}
#filters{display:grid;grid-template-columns:repeat(3,minmax(0,1.1fr)) repeat(2,minmax(0,1fr)) auto;align-items:end;gap:.75rem;padding:1rem 1.1rem;border:1px solid var(--line);border-radius:.7rem;background:var(--sheet)}
#filters .field input,#filters .field select{font-size:.9rem}
.filter-actions{align-items:stretch;flex-wrap:wrap;gap:.25rem}
#filter-message{grid-column:1/-1}
#filters.compact-filter{grid-template-columns:minmax(8rem,26rem) auto;justify-content:start}
.summary{display:grid;grid-template-columns:1.4fr 1fr 1fr;align-items:start;margin:1.55rem 0;padding:.55rem 0}
.summary-cell{display:grid;padding:.1rem 1.5rem;gap:.2rem;min-width:0}
.summary-cell+.summary-cell{border-inline-start:1px solid var(--line)}
.summary-cell:first-child{padding-inline-start:0}
.summary-cell>span{font-size:.87rem}
.summary-cell strong{font-size:clamp(1.7rem,3vw,2.6rem);font-weight:650;line-height:1.25;letter-spacing:-.055em;overflow-wrap:anywhere}
.main-amount strong{color:var(--brandink)}
.summary-cell small{font-size:.78rem}
.section-heading h2{font-size:1.25rem;letter-spacing:-.025em}
.scope-note{font-size:.86rem;line-height:1.6;margin:.35rem 0 .9rem}
.compact-filter+.scope-note{margin-top:1.3rem}
.table-wrap,.record-row,.rate-row,.empty{background:var(--sheet);border:1px solid var(--line);border-radius:.7rem}
.table-wrap{overflow:hidden}
table{border-collapse:collapse;width:100%;text-align:start}
th,td{padding:.9rem 1rem;border-bottom:1px solid var(--line);overflow-wrap:anywhere;text-align:start}
th{padding-block:.7rem;background:color-mix(in srgb,var(--canvas) 65%,var(--sheet));font-size:.78rem;color:var(--subtle);font-weight:600}
td{font-size:.92rem;vertical-align:top}
tbody tr:last-child td{border-bottom:0}
td small,.record-cost small{display:block;margin-top:.15rem;font-size:.77rem;color:var(--subtle);line-height:1.45}
.account-table .identity-cell{max-width:16rem}
.account-link{display:inline-flex;align-items:center;min-height:1.6rem;font-weight:650;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--brandink) 35%,transparent)}
.account-link:hover{text-decoration-color:currentColor}
.identity{overflow-wrap:anywhere}
.warning{color:var(--warnink)}
.empty{padding:2rem;text-align:center;color:var(--subtle)}
.empty button{margin-top:.8rem}
.record-list,.rate-list{display:grid;gap:.85rem}
.record-row,.rate-row{padding:1.1rem 1.2rem;min-width:0}
.record-head,.rate-row>header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
h3{font-size:1.1rem;font-weight:650;line-height:1.4;letter-spacing:-.015em;overflow-wrap:anywhere}
.owner-line,.rate-row>header span{font-size:.82rem;margin-top:.2rem;overflow-wrap:anywhere}
.record-cost{text-align:end;flex:none;max-width:45%;overflow-wrap:anywhere}
.record-cost b{font-weight:680;color:var(--brandink)}
.record-grid{display:grid;grid-template-columns:1.12fr 1fr 1fr 1fr;gap:1.2rem;margin:1rem 0 .75rem;padding-top:.8rem;border-top:1px solid var(--line)}
.data-group{min-width:0}
.data-group>strong,.part dt{font-size:.78rem;font-weight:500}
.model{font-size:.93rem;line-height:1.4;overflow-wrap:anywhere}
.part{display:flex;align-items:baseline;justify-content:space-between;gap:.35rem;font-size:.86rem}
.part+.part{margin-top:.15rem}
.part dt{color:var(--subtle)}
.part dd{text-align:end;min-width:0;overflow-wrap:anywhere}
.evidence summary{color:var(--subtle);width:fit-content;font-size:.8rem;min-height:2.6rem;padding:.58rem .16rem}
.evidence{margin-bottom:-.55rem}
.evidence dl{padding:.2rem 0 .75rem;max-width:42rem}
.evidence .part{justify-content:flex-start;gap:1rem}
.evidence .part dt{min-width:5.4rem}
.evidence .part dd{text-align:start}
.rate-row>header{flex-wrap:wrap;margin-bottom:.85rem}
.rate-row>header span,.rate-row footer{color:var(--subtle);font-size:.82rem}
.rate-table{table-layout:fixed}
.rate-table th:first-child{width:45%}
.rate-table th:last-child,.rate-table td:last-child{text-align:end}
.rate-row footer{gap:.4rem 1rem;flex-wrap:wrap;margin-top:.7rem}
.pager{justify-content:center;gap:1.5rem;margin:1rem 0;font-size:.9rem}
.pager a{display:inline-flex;align-items:center;min-height:2.85rem}
@media(max-width:69rem){
 #filters{grid-template-columns:repeat(3,minmax(0,1fr))}
 .filter-actions .apply{flex:1}
}
@media(max-width:47rem){
 .mast-inner,.dashboard{width:min(100% - 1.5rem,75rem)}
 .mast-inner{min-height:4.15rem;gap:.35rem;flex-wrap:wrap;padding:.3rem 0}
 .tools{gap:0}
 .mast-brand{gap:.4rem}
 .mast-brand img{width:2.3rem;height:2.3rem}
 .mast-brand span{font-size:.72rem}
 .tools .quiet,.locale{padding-inline:.35rem;font-size:.86rem}
 .locale svg{display:none}
 .theme{width:2.55rem}
 .views{gap:1.35rem}
 .views a{min-height:3.1rem;font-size:.9rem}
 .title-row{margin:1.5rem 0 1rem}
 .period{font-size:.77rem}
 #filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem .7rem;padding:.8rem}
 .field input,.field select,#filters .field input,#filters .field select{font-size:1rem}
 .summary{grid-template-columns:1.25fr 1fr 1fr;margin:1.1rem 0}
 .summary-cell{padding:0 .65rem}
 .summary-cell>span,.summary-cell small{font-size:.76rem}
 .account-table,.account-table tbody{display:block}
 .account-table thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 .account-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem .8rem;border-bottom:1px solid var(--line);padding:.95rem}
 .account-table tr:last-child{border:0}
 .account-table td{display:block;padding:0;border:0;min-width:0;font-size:.92rem}
 .account-table td:not(.identity-cell)::before{display:block;content:attr(data-label);color:var(--subtle);font-size:.75rem}
 .account-table .identity-cell{max-width:none;grid-column:1/-1}
 .account-link{min-height:2.4rem}
 .account-table .cost-cell{grid-column:1/-1;border-top:1px solid var(--line);padding-top:.4rem}
 .record-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem 1.2rem}
 .record-row,.rate-row{padding:.9rem}
 .rate-table td,.rate-table th{padding:.55rem .45rem}
 .auth-sheet{grid-template-columns:1fr;max-width:28rem;margin:1rem auto 0}
 .brand-panel{min-height:0;display:grid;grid-template-columns:3.6rem minmax(0,1fr);align-items:center;justify-content:start;gap:.2rem .9rem;padding:1.3rem 1.5rem}
 .hero-logo{width:3.6rem;grid-row:1/3}
 .auth-brand{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem .5rem;margin:0}
 .auth-brand strong{font-size:1.28rem}
 .auth-brand>span{font-size:.9rem}
 .private-label{margin:0;font-size:.72rem}
 .private-label svg{width:.85rem;height:.85rem}
 .auth-content{padding:1.55rem}
 .auth-wrap{padding:0 .9rem 2rem}
 .public-tools{padding:.4rem 0}
}
@media(max-width:26rem){
 .mast-brand strong{font-size:.94rem}
 .views{gap:.8rem;justify-content:space-between}
 .views a{font-size:.82rem}
 .summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
 .summary-cell{padding:0}
 .summary-cell.main-amount{grid-column:1/-1}
 .summary-cell+.summary-cell{border:0}
 .record-grid{gap:.8rem}
 .part{display:block}
 .part dd{text-align:start}
 .evidence .part{display:block}
 #filters.compact-filter{grid-template-columns:minmax(0,1fr)}
}

.filter-toggle{display:none}
.filter-box+.scope-note{margin-top:1.2rem}
@media(max-width:47rem){
 .filter-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:3rem;padding:.55rem .85rem;border:1px solid var(--line);border-radius:.55rem;background:var(--sheet);font-size:.9rem;font-weight:600}
 .filter-toggle span{font-weight:400;font-size:1.15rem}
 .filter-box:not(.expanded) #filters{display:none}
 .filter-box.expanded #filters{margin-top:.35rem}
 .filter-actions{grid-column:1/-1;justify-content:flex-end}
 .filter-actions .apply{flex:none;min-width:6rem;white-space:nowrap}
}

.operation-summary{border-top:1px solid var(--line);padding:.6rem 0}
.operation-summary h4{margin:0;font-size:.9rem}

.rate-conflict{font-size:.86rem;line-height:1.6;padding:.65rem .8rem;border-radius:.4rem;background:var(--warnbg);color:var(--warnink);margin-top:.75rem}

#filters.call-filters{grid-template-columns:1.4fr 1fr 1fr auto}
.filter-box+.section-heading{margin-top:1.5rem}
.call-list{display:grid;gap:.8rem}
.call-row{background:var(--sheet);border:1px solid var(--line);border-radius:.7rem;padding:1.1rem 1.25rem}
.call-row header,.call-row footer{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.35rem 1rem}
.call-row header p,.call-row small,.call-row footer,.call-grid dt{font-size:.83rem;color:var(--subtle)}
.call-row h3{font-size:1.13rem}
.call-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.1rem 0}
.call-grid dd{font-weight:630;font-size:1.25rem;overflow-wrap:anywhere}
.call-grid [data-call-unit]{color:var(--brandink)}
.call-row footer{align-items:center;border-top:1px solid var(--line);padding-top:.25rem}
.call-row footer a,.back-to-calls{display:inline-flex;min-height:2.75rem;align-items:center}
@media(max-width:47rem){
 #filters.call-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .call-row{padding:.9rem}
 .call-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem .85rem}
 .call-grid div:last-child{grid-column:1/-1}
 .call-grid dd{font-size:1.1rem}
}
