/* 彩色经营账册：品牌蓝用于交互，青绿/琥珀区分资金方向，红色只标记危险操作。 */
:root{--brand:#3954b9;--brand-hover:#2c419a;--brand-tint:#edf1ff;--ink:#172b49;--text:#243853;--muted:#53677c;--line:#d8e2ec;--pale:#f0f5fa;--paper:#fff;--board:#f3f6fa;--income:#0e736a;--income-bar:#278e83;--income-tint:#e0f5ee;--expense:#9b5218;--expense-bar:#c1803c;--expense-tint:#fff0dc;--danger:#a33440;--danger-lite:#fff1ef;--focus:#3d65cc;color:var(--text)}
*::selection{background:#cddffa;color:#172d4b}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,.staff-page :where(a,button,input,select,summary):focus-visible{outline-color:var(--focus)}
body{--flow:var(--income);--flow-bar:var(--income-bar);--flow-lite:var(--income-tint)}
body[data-flow="expense"]{--flow:var(--expense);--flow-bar:var(--expense-bar);--flow-lite:var(--expense-tint)}
.sheet{background:var(--board)}.topline{background:#fbfdff;border-color:#dce5ed}.crumb,.context-meta{color:#51657c}.crumb strong{color:#273c60}.crumb>.ico:first-child{color:var(--brand)}.status-dot{background:#168475}.meta-div{background:#d2dfea}
.rail{color:#edf3ff;background:#1d2d52;border-color:#253758}.rail-brand{border-bottom:1px solid #364968}.rail .brandmark{color:#fff;background:#506cbe;box-shadow:inset 0 0 0 1px #7189cd}.rail .identity small{color:#adc3eb}.nav-group p{color:#aabdda}.nav-group a{color:#e0eafb;font-weight:510}.nav-group a:hover{background:#2b4269;color:white}.nav-group a[aria-current=page]{background:#37568c;color:#fff;box-shadow:inset 3px 0 #a3bdff}.nav-group[data-nav-flow=income] .ico{color:#8bdecc}.nav-group[data-nav-flow=expense] .ico{color:#f4be8a}.nav-group[data-nav-flow=income] a[aria-current=page]{box-shadow:inset 3px 0 #85ddc4;background:#2b535f}.nav-group[data-nav-flow=expense] a[aria-current=page]{box-shadow:inset 3px 0 #f3bd80;background:#504951}.nav-group.settings-nav,.rail-foot{border-color:#384966}.rail-foot .rail-user small,.rail .icon-button{color:#b9cce9}.rail .user-badge{background:#445f8b;border-color:#506f9d;color:white}.rail .icon-button:hover{background:#344e78;color:white}.rail nav a:focus-visible,.rail .icon-button:focus-visible{outline-color:#a8cbff}
.btn,.bk .btn,.staff-page .btn{color:#29436b;background:#fff;border-color:#c5d3e1;border-radius:7px}.btn:hover,.bk .btn:hover,.staff-page .btn:hover{background:#f1f5fc;border-color:#8aa2c8}.btn.primary,.bk .btn.primary,.staff-page .btn.primary,.bk-add>summary.btn.primary,.access-submit{background:var(--brand);border-color:var(--brand);color:#fff}.btn.primary:hover,.bk .btn.primary:hover,.staff-page .btn.primary:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
.field input,.field select,.field textarea,.input,.bk .field .input{border-color:#c6d4e0;color:var(--ink);background:#fff}.field input:hover,.field select:hover{border-color:#8aa6c7}.field input::placeholder,.field textarea::placeholder{color:#698095}.flash,.flash[role=status]{color:#17584e;border-color:#a8dccc;background:#e8f8ef}.flash[role=alert]{color:#862b37;border-color:#e8bdc0;border-left-color:#bb5260;background:var(--danger-lite)}
.bk{--bk-line:#d7e2eb;--bk-faint:#eff4f8;--bk-secondary:#51677b;--bk-black:#243954;color:var(--text)}.bk h1,.staff-head h1,.bk h2,.bk h3,.staff-page h2{color:var(--ink)}.bk .bk-kicker,.bk-period>a{color:var(--flow)}.bk-rule,.bk-dot{background:var(--flow-bar)}.bk-period>span,.bk-readonly{color:#51677d}.bk-intro{color:#52667a}.bk-overview,.bk-register,.staff-directory,.staff-create,.bk-proof-panel,.owner-password,.au-panel{border-color:var(--line);border-radius:10px;box-shadow:0 2px 8px #25395708}
.bk-overview{position:relative;background:#fff;border-color:#cfdde5}.bk-metric{background:var(--flow-lite);border-right-color:var(--line)}.bk-label,.bk-amount,.bk-amount>span{color:var(--flow)}.bk-small-icon{background:#ffffffbf;border-color:#adc6bd;color:var(--flow)}.bk-dot{background:var(--flow-bar)}.bk-metric-foot,.bk-metric-foot strong{color:#415d63}.bk-chart{background:#fff}.bk-chart figcaption>span{color:var(--flow)}.bk-chart figcaption small,.bk-axis{color:#587084}.bk-bar{fill:var(--flow-bar)}.bk-bar:hover{fill:var(--flow)}.bk-baseline{stroke:#becfd9}.bk-gridline{stroke:#dbe7ed}
.bk-register-icon,.bk-entryicon,.bk-empty-icon{color:var(--brand);background:var(--brand-tint);border-color:#d4dff4}.bk-filters,.bk-entrybody,.bk-addbody,.bk-table th,.staff-matrix thead,.au-table th{background:#f0f5fa;color:#425d78}.bk-table td,.bk-table th,.staff-matrix th,.staff-matrix td{border-color:#e1e9f1}.bk-party strong,.bk-staff,.bk-date,.staff-page{color:#243b55}.bk-table td.bk-value,.bk-result b{color:var(--flow)}
.bk-platform{color:#37558c;background:#edf2fa;border-color:#cbd9ed}.bk-platform[data-platform=TEMU]{color:#8e4b13;background:#fff2df;border-color:#eed3b2}.bk-platform[data-platform=TikTok]{color:#5d467b;background:#f2edff;border-color:#d9cdec}.bk-prooflink,.bk-textlink,.staff-link,.bk-register a:not(.btn):not(.bk-delete-link){color:#3154a6}.bk-table tbody tr:hover,.staff-matrix .staff-record:hover{background:#f5f9fd}.bk-file::file-selector-button{color:#294991;background:#eaf1fe;border-color:#c7d7f0}.bk-proof-gallery a:focus-visible{outline-color:var(--focus)}.bk-delete-link,.bk-register a.bk-delete-link{color:var(--danger)}.bk-delete-link:hover{text-decoration:underline}
body[data-page=delete_record] button[type=submit].btn.primary{background:var(--danger);border-color:var(--danger)}body[data-page=delete_record] button[type=submit].btn.primary:hover{background:#862937}.staff-state.on,.staff-access.level-2{color:var(--income)}.staff-state.on i,.staff-access.level-2 i{background:var(--income)}.staff-access.level-1{color:var(--brand)}.staff-access.level-0{color:#6a7889}.staff-edit-row,.staff-editor,.staff-create-form{background:#f8fafd}.staff-count,.staff-head .eyebrow,.eyebrow{color:#526b92}.staff-table .tag,.staff-count{color:#354f85}.au-danger,.au-warn{color:#8f3443}
.access-side{background:#fbfcff}.cover{background:linear-gradient(147deg,#e9eefc 0%,#e5edf9 44%,#d9f0ec 100%);color:#22375e}.cover::after{content:"";position:absolute;z-index:-1;width:68%;aspect-ratio:1;left:22%;top:18%;border-radius:50%;border:1px solid #7b9cbd40;box-shadow:0 0 0 40px #9bb1dc14,0 0 0 80px #9ab4d910;pointer-events:none}.cover .brandmark{background:var(--brand);color:#fff}.cover .identity small,.cover-foot,.cover-edition{color:#4d6382}.rubric{color:#306b71}.rubric i{background:#398983}.cover-title h2{color:#1b3c59}.cover-title p{color:#3d5a70}.cover-foot{border-color:#b5cbd5}.access-card h1{color:var(--ink)}.access-context{color:#3d58aa}.access-intro,.field-help,.access-foot{color:#586d82}.access-card .btn.primary{box-shadow:0 3px 9px #3954b924}
@media(max-width:670px){.rail-brand{border:0}.nav-group+.nav-group{border-left-color:#425478}.rail-foot{border:0}.cover::after{display:none}.mobile-team[aria-current=page]{background:#354e77}}


/* 清理的是管理留痕，不是日常登记簿。入口默认收折。 */
.au-purge{margin-top:12px;background:#fff;border:1px solid #e3c9cc;border-radius:6px}.au-purge>summary{cursor:pointer;padding:10px 14px;font-size:13px;font-weight:600;color:var(--danger,#a33440)}.au-purge[open]>summary{border-bottom:1px solid #ead2d5;background:#fff8f7}.au-purge-form{padding:13px 15px;display:grid;gap:10px}.au-purge-form p{margin:0;color:var(--muted,#53677c);font-size:13px;line-height:1.55}.au-purge-form strong{color:var(--danger,#a33440)}.au-purge .field{max-width:30em}.au-purge .au-purge-submit{background:var(--danger,#a33440);color:#fff;border-color:var(--danger,#a33440)}.au-purge .au-purge-submit:hover{background:#862937;border-color:#862937}@media(max-width:670px){.au-purge .input{min-height:40px;font-size:16px}.au-purge .au-purge-submit{min-height:40px}.au-purge-form{padding:11px 12px}}


/* 账号本人的展示名与角色独立；账号头像、姓名合成一个可聚焦入口。 */
.rail-foot .account-profile-link{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px;color:#edf3ff;border:1px solid transparent;border-radius:5px;padding:3px;text-decoration:none}.account-profile-link .user-badge,.account-profile-link>.ico{flex:0 0 auto}.account-profile-link .rail-user{display:block;min-width:0}.account-profile-link .rail-user b,.account-profile-link .rail-user small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-profile-link>.ico{color:#b8ccee}.rail-foot .account-profile-link:hover,.rail-foot .account-profile-link[aria-current=page]{background:#314b70;border-color:#647eaa}.profile-name-view{max-width:650px;background:white;border:1px solid var(--line);border-radius:7px;padding:clamp(16px,2.3vw,27px)}.profile-name-view h1{font-size:clamp(25px,2.8vw,34px);line-height:1.25;margin:3px 0 7px;color:var(--ink)}.profile-name-view>p:not(.eyebrow){color:var(--muted);font-size:13px;line-height:1.65;margin:0}.profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 15px;margin:15px 0;padding:12px;background:#f3f7fb;border-radius:5px}.profile-facts dt{font-size:11px;color:var(--muted)}.profile-facts dd{margin:3px 0 0;color:var(--ink);font-weight:600;overflow-wrap:anywhere}.profile-name-view form{display:grid;gap:12px}.profile-name-view .input{min-width:0;width:100%}.profile-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:670px){.rail-foot .account-profile-link{width:auto;max-width:118px;gap:4px;padding:1px 3px;min-height:34px}.rail-foot .account-profile-link .user-badge{display:grid;width:23px;height:23px;font-size:11px;border-radius:4px}.rail-foot .account-profile-link .rail-user{display:block;max-width:70px}.rail-foot .account-profile-link .rail-user small{display:block;font-size:9px;line-height:1.3}.account-profile-link>.ico{width:9px}.profile-name-view .input{font-size:16px}.profile-actions .btn{min-height:40px}}
@media(max-width:390px){.rail-foot .account-profile-link{max-width:88px;gap:3px}.rail-foot .account-profile-link .rail-user{max-width:49px}.account-profile-link>.ico{display:none}.rail-foot{gap:3px}.rail-foot .account-profile-link .user-badge{width:21px;height:21px}}
/* 上传回执：在窄屏中保留列关系，不让整页横向滚动。 */
.import-table{max-width:100%;overflow-x:auto;margin-block:1rem}
.import-table table{width:100%;border-collapse:collapse;text-align:left}
.import-table :is(td,th){padding:.65rem .55rem;border-bottom:1px solid #dce6ef}
.import-table caption{text-align:left;font-weight:650;padding:.4rem 0}
.profile-name-view code{overflow-wrap:anywhere}
