/* Navigation starts on the home page. Each entry carries its own work summary. */
.shell.home-shell{margin-left:0}
.home-shell .topbar{position:sticky;top:0;z-index:40;height:72px;padding:0 max(28px,calc((100vw - 1256px)/2));background:#fff;border-bottom:1px solid var(--line);gap:20px}
.workspace-home-link{display:flex;align-items:center;gap:11px;min-width:0;color:var(--ink);text-decoration:none;font-size:15px;font-weight:600}
.workspace-home-link>svg{color:var(--green);width:23px;height:23px;flex-shrink:0}
.workspace-home-link>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:430px}
.workspace-breadcrumb{display:flex;align-items:center;gap:10px;min-width:0}
.workspace-breadcrumb>.workspace-separator{width:14px;height:14px;color:#909991;flex-shrink:0}
.workspace-breadcrumb>strong{font-size:14px;font-weight:500;white-space:nowrap}
.top-account-link{display:flex;align-items:center;gap:9px;color:var(--ink);text-decoration:none;min-height:44px;padding:3px 5px;border-radius:5px}
.top-account-link:hover{background:var(--soft)}
.top-account-link>.avatar{width:31px;height:31px;font-size:12px}
.top-account-label{font-size:13px}
.home-shell .main{max-width:1256px;margin:0 auto;padding:32px 28px 40px}
.home-shell .top-actions{gap:16px;flex-shrink:0}
.home-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.home-heading h1{font-size:28px;font-weight:600;letter-spacing:0}
.home-heading p{font-size:14px;color:var(--muted);margin-top:5px}
.home-date{font-size:13px;color:var(--muted);white-space:nowrap}
.home-directory{display:grid;gap:20px}
.home-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.home-card{display:flex;flex-direction:column;align-items:stretch;min-width:0;gap:0;background:#fff;border:1px solid var(--line);border-radius:7px;padding:21px 22px;text-decoration:none;color:var(--ink);transition:border-color .15s,background .15s}
.home-card:hover{border-color:#779382;background:#fcfdfb}
.home-card:focus-visible{outline:3px solid #a4bca9;outline-offset:3px}
.home-card-heading{display:flex;align-items:center;gap:10px;margin-bottom:15px}
.home-card-heading h2{font-size:17px;font-weight:600;flex:1;line-height:1.5}
.home-card-icon{display:flex;align-items:center;color:var(--green)}
.home-card-icon>svg{width:20px;height:20px}
.home-card-arrow{width:17px;height:17px;color:#7d8a80;flex-shrink:0}
.home-card-brief{font-size:14px;line-height:1.75;overflow-wrap:anywhere}
.home-card-details{list-style:none;margin:10px 0 0;padding:0;font-size:13px;line-height:1.85;color:var(--muted)}
.home-card-details li{overflow-wrap:anywhere}
.home-card-details li+li{margin-top:3px}
.home-card>.home-attention{margin-top:16px;align-self:flex-start}
.home-attention{font-size:12px;line-height:1.6;color:#805d1b;background:#fbf3e3;padding:2px 7px;border-radius:3px;white-space:nowrap}
.home-personal{padding:23px 25px 0;border-top:3px solid var(--green)}
.home-personal .home-card-heading{margin-bottom:17px}
.home-personal-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:25px;padding-bottom:23px;align-items:center}
.home-eyebrow{font-size:13px;color:var(--muted);margin-bottom:6px}
.home-next-title{display:block;font-size:24px;line-height:1.5;font-weight:600;font-variant-numeric:tabular-nums}
.home-next-title>span{font-size:19px;font-weight:500;margin-left:9px}
.home-personal .home-card-brief{color:var(--muted);margin-top:6px}
.home-personal-counts{display:flex;align-items:center;border-left:1px solid var(--line);padding-left:26px;gap:25px}
.home-personal-counts>span{font-size:12px;color:var(--muted);white-space:nowrap}
.home-personal-counts strong{display:block;font-size:25px;font-weight:600;line-height:1.4;color:var(--ink);margin-top:3px;font-variant-numeric:tabular-nums}
.home-personal-counts .needs-action strong{color:var(--amber)}
.home-card-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding:12px 0;font-size:12px;color:var(--muted)}
.home-card-footer>span:last-child{display:flex;align-items:center;gap:6px;color:var(--green);white-space:nowrap}
.home-card-footer svg{width:14px;height:14px}
.home-update-note{font-size:12px;color:var(--muted);margin-top:20px}
.home-load-error{align-items:center;justify-content:space-between;margin-bottom:18px}
.home-loading{padding:30px 24px;color:var(--muted);font-size:14px}
@media(max-width:1060px){.home-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-personal-body{grid-template-columns:1fr}.home-personal-counts{border-left:0;border-top:1px solid var(--line);padding:16px 0 0;gap:40px}.home-personal-counts strong{font-size:23px}.workspace-home-link>span{max-width:300px}}
@media(max-width:760px){.home-shell .topbar{height:62px;padding:0 16px;gap:8px}.workspace-home-link{font-size:14px;gap:8px}.workspace-home-link>span{max-width:160px}.workspace-home-link>svg{width:20px}.workspace-breadcrumb{gap:7px}.workspace-breadcrumb>strong{font-size:13px}.workspace-breadcrumb .workspace-separator{width:12px}.home-shell .top-actions{gap:4px}.top-account-label{display:none}.home-shell .main{padding:23px 16px 100px}.home-heading{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:20px}.home-heading h1{font-size:25px}.home-heading p{font-size:14px}.home-date{font-size:12px}.home-directory{gap:14px}.home-card-grid{grid-template-columns:1fr;gap:12px}.home-card{padding:18px}.home-card-heading{margin-bottom:11px;gap:9px}.home-card-heading h2{font-size:17px}.home-card-details{font-size:13px;margin-top:8px}.home-card-brief{font-size:14px}.home-personal{padding:18px 18px 0}.home-personal-body{gap:17px;padding-bottom:17px}.home-personal .home-card-heading{margin-bottom:14px}.home-next-title{font-size:23px}.home-next-title>span{display:block;font-size:18px;margin:3px 0 0}.home-personal-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:15px}.home-personal-counts>span{font-size:11px;white-space:normal}.home-personal-counts strong{font-size:24px}.home-card-footer{font-size:12px;line-height:1.65;gap:10px}.home-update-note{font-size:12px}.home-shell+.mobile-nav{grid-template-columns:repeat(3,1fr)}.home-shell .footer-note{margin-top:24px}.home-shell .topbar .icon-button{min-width:38px;width:38px}.workspace-breadcrumb.is-subpage .workspace-home-link>span{max-width:60px}.home-shell .top-account-link{padding:3px}}
@media(max-width:360px){.home-shell .main{padding-left:12px;padding-right:12px}.home-shell .topbar{padding:0 12px}.workspace-home-link>span{max-width:125px}.home-card{padding:16px}.home-personal{padding:16px 16px 0}.home-card-heading h2{font-size:16px}.home-personal-counts{gap:6px}}
@media(prefers-reduced-motion:reduce){.home-card{transition:none}}
@media print{.home-shell .topbar{display:none}.home-shell .main{max-width:none;padding:0}}

/* 第 7 阶段：电脑上的主导航（六个入口）。手机上不显示，手机用底部的三个按钮。 */
.main-nav{display:none}
@media(min-width:900px){
 .main-nav{display:flex;gap:4px;flex:1;justify-content:center;min-width:0}
 .main-nav a{display:flex;align-items:center;gap:7px;padding:9px 14px;border-radius:8px;text-decoration:none;color:var(--muted);font-size:15px;font-weight:500;white-space:nowrap}
 .main-nav a svg{width:18px;height:18px}
 .main-nav a:hover{background:var(--soft);color:var(--ink)}
 .main-nav a.active{background:var(--soft);color:var(--green);font-weight:700}
 .workspace-breadcrumb .workspace-separator,.workspace-breadcrumb strong{display:none}
}
.ledger-section-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--line);padding-bottom:10px}
.ledger-section-tabs button,.ledger-section-tabs a{font-size:15px;padding:9px 14px;border-radius:8px;color:var(--muted);text-decoration:none;border:0;background:transparent;cursor:pointer}
.ledger-section-tabs button.active{background:var(--soft);color:var(--green);font-weight:700}
.ledger-section-tabs a:hover,.ledger-section-tabs button:hover{background:var(--soft)}
.when-wide{display:none}
@media(min-width:900px){.when-wide{display:inline-block}.when-narrow{display:none!important}}
.audit-views{display:flex;flex-direction:row;align-items:center;gap:8px;white-space:nowrap}

/* 苹果手机：输入框不小于 16 号字，点进去时页面才不会被自动放大 */
@media(max-width:760px){:is(input,select,textarea):not(.c-input):not(.c-amount):not([type=checkbox]):not([type=radio]):not([type=file]){font-size:16px!important}}
