/* v0.4 · 独立工具布局、统一选择控件与紧凑数据卡片。 */
.app-shell{grid-template-columns:224px minmax(0,1fr);min-height:100dvh}.sidebar{top:0;height:100dvh;padding:24px 16px 16px;gap:20px}.product-brand{display:flex;gap:10px;align-items:center;min-height:48px;padding:0 8px}.product-mark{display:grid;place-items:center;width:34px;height:38px;border-radius:9px;background:var(--selected);color:var(--brand);font-weight:600;font-size:20px;flex:none}.product-brand strong{font-size:22px;line-height:1.3}.product-brand small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.design-badge{font-size:9px;color:var(--muted);margin-left:auto;white-space:nowrap}.sidebar #book-switch{display:flex;min-height:60px;margin-bottom:0}.sidebar nav button{margin-bottom:4px;padding:10px 14px}.side-bottom{padding-top:8px}.side-note{padding:8px 4px;font-size:10px}.side-note small{font-size:10px}.owner{padding:12px 0 4px}.tool-rail{display:flex;gap:8px;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:8px;margin-bottom:8px}.tool-rail .tool-back{width:auto;gap:8px;padding:8px;color:var(--muted)!important;border-color:transparent;background:transparent;font-size:12px}.tool-rail .tool-back svg{width:16px;height:16px}.tool-rail .tool-theme{border-color:transparent;background:transparent;color:var(--muted)!important}.mobile-identity{display:none}main{padding:32px;max-width:1680px}.app-footer{max-width:1680px;padding:20px 32px 32px;align-items:flex-start}.review-tools{font-size:11px}.review-tools summary{cursor:pointer;min-height:32px;list-style:none}.review-tools summary:after{content:' ⌄';margin-left:4px}.review-controls{display:flex;gap:12px;justify-content:flex-end;margin-top:8px}.review-controls button,.review-controls label{font-size:11px;min-height:36px}.workspace-controls{display:flex;align-items:center;gap:14px;min-width:0}.workspace-controls .currency-control{gap:8px;white-space:nowrap}.workspace-controls .currency-control>.select-control{width:84px}.workspace-controls .control-trigger{background:transparent;font-size:13px}.workspace-controls .status-button{white-space:nowrap;min-height:44px;font-size:11px}.workspace-controls .status-button .icon{width:14px;height:14px}.view-heading{gap:20px;align-items:flex-end}.view-heading>div:first-child{flex:1}.view-heading p{margin-top:8px;font-size:13px}.view-heading .heading-actions{align-items:center;gap:16px}.workspace-controls[hidden]{display:none!important}
/* 原字段仍参与表单、校验与示例测试，交互入口为统一按钮。 */
.select-control,.date-control{position:relative;display:inline-flex;vertical-align:middle;min-width:0;width:100%;line-height:1.5}.select-control>.control-source,.date-control>.control-source{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0;pointer-events:none;margin:0!important;padding:0!important;border:0!important;min-width:0!important;max-width:100%!important}.control-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--border);background:var(--cy-std-ui-input);color:var(--text);font-size:14px;font-weight:400;line-height:1.5;text-align:left;cursor:pointer}.control-trigger .control-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.control-trigger .icon{width:17px;height:17px;color:var(--muted)}.control-chevron{width:16px;height:16px;flex:none;fill:none;stroke:var(--muted);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.control-trigger[aria-expanded=true]{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand);background:var(--selected)}.control-trigger:disabled{color:var(--cy-std-ui-disabled-text);background:var(--cy-std-ui-disabled-bg)}.field>.select-control,.field>.date-control{font-size:16px}.filter-grid .select-control,.report-filter-bar .select-control{width:100%}.inline>.select-control{width:180px}.role-preview>.select-control{width:120px}.currency-field .select-control{width:100%}.control-popover{position:fixed;inset:auto;margin:0;padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--raised);color:var(--text);box-shadow:0 12px 40px #0003;z-index:250;overflow:auto;font-family:inherit;overscroll-behavior:contain}.control-popover:popover-open{display:block}.control-popover::backdrop{background:transparent}.choice-list{max-height:280px;overflow:auto;overscroll-behavior:contain}.choice-list>button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;width:100%;border:0;background:transparent;padding:10px 12px;text-align:left;font-size:14px;font-weight:400;line-height:1.5}.choice-list>button>span{white-space:normal;overflow-wrap:anywhere;min-width:0}.choice-list>button .icon{width:16px;height:16px;color:var(--brand)}.choice-list>button[aria-selected=true]{background:var(--selected);color:var(--brand);font-weight:500}.choice-list>button:hover{background:var(--cy-std-ui-hover)}.choice-search{padding:4px 4px 8px;position:sticky;top:-6px;background:var(--raised);z-index:1}.choice-search input{width:100%;font-size:14px;padding:8px 12px;background:var(--bg)}.date-popover{padding:12px}.picker-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.picker-heading button{background:transparent;border-color:transparent}.picker-heading .picker-title{font-size:15px;font-weight:500;flex:1;white-space:nowrap}.control-caret{font-size:12px;margin-left:8px;color:var(--muted)}.picker-grid{display:grid;gap:4px}.month-grid,.year-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.picker-grid button{background:transparent;border-color:transparent;min-height:48px;min-width:0;font-size:15px;font-weight:400;padding:8px}.month-grid button{min-height:50px}.month-grid small{font-size:11px;margin-left:3px;color:inherit}.picker-grid button:hover{background:var(--selected)}.picker-grid button[aria-pressed=true]{background:var(--action);color:var(--on-action);font-weight:600}.picker-grid button:disabled{background:transparent;color:var(--cy-std-ui-disabled-text);opacity:.55}.picker-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px;padding-top:8px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.picker-footer button{font-size:12px;color:var(--brand);padding:8px;min-height:36px}.picker-weekdays,.day-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.picker-weekdays{font-size:11px;text-align:center;color:var(--muted);margin:4px 0 8px}.picker-weekdays .weekend,.day-grid .weekend{color:var(--support)}.day-grid button{padding:4px;min-height:36px;font-size:13px;line-height:1.5}.day-grid .outside-month{color:var(--muted);opacity:.5}.day-grid .picker-today{box-shadow:inset 0 0 0 1px var(--brand)}.day-grid button[aria-pressed=true]{color:var(--on-action);opacity:1}
/* 统一月份导航，不调用浏览器的月/年选择面板。 */
.period-control{gap:8px;flex-wrap:nowrap;align-items:center}.month-navigation{display:flex;align-items:center;gap:0;border:1px solid var(--line);border-radius:8px;overflow:visible;background:var(--panel)}.month-navigation>.btn-icon{border:0;background:transparent;border-radius:6px;min-width:40px;width:40px;min-height:44px;padding:10px}.month-choice{width:154px;min-width:0;display:block}.month-choice .control-trigger{border:0;border-radius:0;min-height:44px;background:transparent;padding:8px 10px;font-size:14px;font-weight:500}.month-choice .control-trigger[aria-expanded=true]{box-shadow:none}.month-choice .date-control{width:100%}.month-choice .control-trigger .icon{width:16px;height:16px}.today-control{white-space:nowrap;font-size:12px;padding:8px 10px}.overview-toolbar .period-control,.report-controls .period-control{margin-bottom:0}.report-period-tabs{flex-wrap:nowrap;width:max-content;max-width:100%;margin:0}.report-period-tabs button{flex:none;min-width:78px;white-space:nowrap;padding:10px 16px}.report-controls{justify-content:space-between;gap:16px}.category-type-tabs{display:inline-flex;width:max-content;max-width:100%;flex-wrap:nowrap;margin:16px 0 8px}.category-type-tabs button{flex:none;white-space:nowrap;min-width:96px}.category-type-tabs small{font-size:10px;color:var(--muted);margin-left:4px}
/* 同一条顶边：左月历与右侧所选日期；周信息收到记录卡片内部。 */
.calendar-year-summary{margin-bottom:20px;gap:12px 24px;padding:12px 0 16px;font-size:12px}.calendar-year-summary>b{font-size:12px}.calendar-year-summary strong{font-weight:500;margin-left:6px}.calendar-workspace{align-items:start;gap:20px}.calendar-month.panel{padding:20px;min-width:0}.calendar-details{padding-top:0!important;margin-top:0!important}.calendar-details .selected-day{padding:20px}.calendar-heading{margin:0 0 20px;align-items:center;gap:12px}.section-eyebrow{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-bottom:3px}.calendar-heading h2,.detail-heading h2{font-size:20px;line-height:1.5}.detail-heading h2 small{font-size:12px;color:var(--muted);font-weight:400;margin-left:4px}.calendar-heading .period-control{margin:0}.calendar-heading .month-choice{width:138px}.calendar-heading .month-navigation>.btn-icon{width:36px;min-width:36px}.calendar-heading .today-control{font-size:12px;padding:8px}.calendar-summary{margin-bottom:16px;gap:12px}.calendar-summary>span{font-size:12px}.calendar-summary strong{font-size:21px;margin-top:4px}.calendar-panel{padding:0;margin:0;width:100%;border:1px solid var(--line);border-radius:8px}.cal-row{grid-template-columns:68px repeat(7,minmax(0,1fr))}.day-cell{min-height:126px;padding:8px 5px}.day-num{font-size:18px}.week-cell{padding:10px 5px}.cal-head>div{padding:10px 4px}.calendar-legend{display:flex;gap:8px 16px;flex-wrap:wrap;color:var(--muted);font-size:10px;margin-top:12px}.calendar-legend i{display:inline-block;width:9px;height:9px;margin-right:4px;border-radius:2px;border:1px solid var(--line)}.legend-rest{background:color-mix(in srgb,var(--success) 22%,var(--panel))}.legend-work{background:color-mix(in srgb,var(--info) 25%,var(--panel))}.calendar-note{font-size:10px;margin-top:6px}.day-total-block .range-totals,.selected-week .range-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:11px;padding:0 0 16px;margin:0;border-bottom:1px solid var(--line)}.day-total-block b,.selected-week .range-totals b{display:block;font-size:14px;font-weight:500;margin-top:3px;overflow-wrap:anywhere}.day-records{max-height:480px}.detail-event-action{border-top:1px solid var(--line);padding-top:8px}.detail-event-action button{display:inline-flex;align-items:center;gap:8px;font-size:12px;padding:8px}.detail-event-action .icon{width:14px;height:14px}.selected-week{border-top:1px solid var(--line);margin-top:12px;padding:16px 0 0!important}.week-detail-heading{display:flex;flex-direction:column;gap:3px;margin-bottom:12px}.week-detail-heading>strong{font-size:12px;font-weight:500;color:var(--text)}.week-detail-heading>strong>span{font-size:10px;color:var(--support);margin-left:8px}.week-detail-heading>small{font-size:10px;color:var(--muted)}.selected-week .range-totals{padding:0;border:0}.selected-week .range-totals b{font-size:12px}.repay-notice,.event-notice{margin:12px 0;font-size:12px;padding:10px 12px;border-radius:6px;background:var(--bg)}.repay-notice{color:var(--warning);background:var(--cy-std-ui-warning-bg)}.event-notice small{font-size:10px;color:var(--muted)}
/* 分组和账户分别排序；基础账户卡片约 100px 高。 */
.account-toolbar{margin:20px 0 8px;gap:12px}.account-toolbar>.inline{flex-wrap:nowrap;white-space:nowrap;font-size:12px}.account-toolbar .select-control{width:152px}.account-toolbar .control-trigger{font-size:13px}.account-toolbar .sort-help{margin-left:auto}.account-groups>.account-group{margin-top:20px}.account-group-heading{margin-bottom:8px;min-height:44px}.account-group-heading>.inline{gap:8px}.account-group-heading h2{font-size:18px}.account-group-heading .drag-handle{width:30px;min-width:30px;height:40px;min-height:40px;padding:7px;margin-left:-7px}.group-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:5px;background:var(--line);color:var(--muted);font-size:10px}.compact-account-grid{gap:10px}.account-card{padding:10px 12px 10px 44px;min-height:98px}.account-card>.drag-handle{top:calc(50% - 22px);left:2px;width:36px;min-width:36px;padding:8px}.account-card-header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px}.account-card h3{font-size:14px;font-weight:500;line-height:1.5;min-width:0;overflow-wrap:anywhere}.account-card .row-actions{flex:none;flex-wrap:nowrap;gap:0}.account-card .row-actions button{min-height:30px;font-size:10px;padding:5px 6px}.account-balance{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:4px 0 0;flex-wrap:wrap}.account-balance strong{font-size:22px;font-weight:600;line-height:1.5}.account-balance>span{font-size:10px;color:var(--muted)}.account-card .credit-caption{font-size:10px;margin-top:4px}.utility-period-rule{min-width:0;margin:4px 0 16px;padding:16px;border:1px solid var(--line);border-radius:8px}.utility-period-rule legend{font-size:12px;padding:0 6px}.utility-period-rule .field small{font-size:10px;color:var(--muted)}.service-period-preview{display:grid;gap:4px;background:var(--selected);padding:12px;border-radius:6px}.service-period-preview strong{font-size:16px;font-weight:500;color:var(--text)}.service-period-preview .caption{font-size:10px}
@media(min-width:1360px){.calendar-workspace{grid-template-columns:minmax(0,1fr) 320px}.calendar-workspace .cal-row{grid-template-columns:68px repeat(7,minmax(0,1fr))}.calendar-workspace .day-cell{padding:8px 5px}.calendar-workspace .day-num{font-size:17px}.calendar-workspace .week-cell{padding:8px 5px}}
@media(min-width:1720px){.compact-account-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.calendar-workspace .desktop-amount{display:block}.calendar-workspace .mobile-amount{display:none}.calendar-workspace .cal-values i{display:inline}.calendar-workspace .cal-values>span{justify-content:space-between}}
@media(max-width:1199px) and (min-width:768px){.app-shell{grid-template-columns:188px minmax(0,1fr)}.sidebar{padding:20px 12px}.product-brand{padding:0}.product-brand strong{font-size:20px}.design-badge{display:none}main{padding:24px}.view-heading{flex-wrap:wrap}.view-heading .heading-actions{margin-left:auto}.workspace-controls .currency-control>span{display:none}.product-brand small{font-size:9px}.account-toolbar .sort-help{display:none}.account-card-header{gap:4px}.account-card h3{font-size:13px}}
@media(max-width:767px){.app-shell{display:block}.sidebar{display:none}.mobile-identity{display:flex;align-items:center;gap:10px;padding:14px 20px 8px}.mobile-product{display:flex;align-items:center;gap:8px;white-space:nowrap}.mobile-product strong{font-size:18px}.mobile-product .product-mark{width:28px;height:32px;font-size:17px;border-radius:7px}.mobile-identity .mobile-book{display:block;min-height:44px;max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;padding:8px;margin-left:auto}.mobile-identity #mobile-tool-dock{flex:none}.mobile-identity .tool-rail{border:0;padding:0;margin:0}.mobile-identity .tool-back{display:none}.mobile-identity .tool-theme{border:1px solid var(--line);background:var(--panel)}main{padding:16px 20px 24px}.view-heading{margin-bottom:20px;gap:12px}.view-heading>div:first-child{flex-basis:100%}.view-heading .heading-actions{width:100%;gap:12px;justify-content:space-between;align-items:center;margin:0}.view-heading .heading-actions>button{margin-left:auto}.view-heading p{font-size:12px}.eyebrow{font-size:10px}.workspace-controls{gap:8px}.workspace-controls .currency-control>span{display:none}.workspace-controls .currency-control>.select-control{width:76px}.workspace-controls .status-button{font-size:10px}.workspace-controls .control-trigger{font-size:12px}.app-footer{padding:12px 20px 104px;display:flex;flex-wrap:wrap;gap:4px;font-size:10px}.app-footer>span{margin:0}.review-tools{width:100%;font-size:10px}.review-tools summary{min-height:32px}.review-controls{justify-content:flex-start}.control-trigger{font-size:14px;min-height:44px}.report-period-tabs button{min-width:76px;padding:10px 14px}.report-controls .tabs{width:max-content}.category-type-tabs button{min-width:80px;padding:10px 12px}.month-navigation>.btn-icon{width:36px;min-width:36px}.month-choice{width:142px}.today-control{padding:8px}.period-control{gap:4px}.calendar-year-summary{font-size:11px;gap:8px 12px;margin:0 0 16px;padding:0 0 14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.calendar-year-summary>b{grid-column:1/-1;font-size:11px}.calendar-year-summary strong{display:block;font-size:12px;margin:2px 0 0}.calendar-workspace{margin-inline:-20px;width:calc(100% + 40px);gap:16px}.calendar-month.panel{padding:16px 0;border-left:0;border-right:0;border-radius:0}.calendar-heading{padding:0 16px;margin-bottom:16px;justify-content:space-between}.calendar-heading>div:first-child{display:none}.calendar-heading .period-control{width:100%;justify-content:space-between}.calendar-heading .month-choice{width:156px}.calendar-summary{padding:0 16px;margin-bottom:16px;gap:8px}.calendar-summary strong{font-size:17px}.calendar-summary>span{font-size:10px}.calendar-panel{border-left:0;border-right:0;border-radius:0;width:100%;margin:0}.cal-row{grid-template-columns:36px repeat(7,minmax(0,1fr))}.day-cell{padding:6px 2px;min-height:120px}.cal-head>div{padding:8px 0}.day-num{font-size:15px}.week-cell{padding:8px 2px}.calendar-legend{padding:0 16px;font-size:9px;gap:4px 12px}.calendar-note{padding:0 16px;font-size:9px}.calendar-details{padding:0 20px!important}.calendar-details .selected-day{padding:18px}.detail-heading h2{font-size:20px}.calendar-details .day-records{max-height:none}.day-total-block .range-totals{font-size:11px}.selected-week .range-totals{font-size:11px}.account-toolbar{align-items:center}.account-toolbar .sort-help{display:none}.account-toolbar .select-control{width:142px}.account-toolbar>label:last-child{font-size:10px}.compact-account-grid{grid-template-columns:1fr;gap:8px}.account-card{padding:8px 12px 10px 44px;min-height:96px}.account-card h3{font-size:14px}.account-card .row-actions button{font-size:11px;min-height:40px;padding:6px 8px}.account-balance{flex-wrap:nowrap;margin:0}.account-balance strong{font-size:22px}.account-balance>span{font-size:10px;white-space:nowrap}.account-group-heading h2{font-size:17px}.account-group-heading{margin-bottom:6px}.account-group-heading .small{font-size:12px}.inline>.select-control{width:160px}.utility-period-rule{padding:12px}.service-period-preview strong{font-size:15px}}
@media(max-width:389px){.mobile-identity{padding-inline:16px;gap:4px}.mobile-identity .mobile-book{max-width:130px;padding:8px 4px}.mobile-product{gap:6px}.mobile-product strong{font-size:17px}.workspace-controls .status-button{font-size:9px;gap:4px}.workspace-controls .currency-control>.select-control{width:68px}.workspace-controls{gap:6px}.heading-actions>button{font-size:12px}.calendar-summary strong{font-size:15px}.cal-row{grid-template-columns:32px repeat(7,minmax(0,1fr))}.calendar-year-summary strong{font-size:11px}.account-card .row-actions button{padding:6px;font-size:10px}.calendar-heading .month-choice{width:150px}.report-period-tabs button{min-width:72px;padding:10px 12px}.category-type-tabs button{min-width:72px}.account-toolbar{gap:8px}.account-toolbar .select-control{width:125px}}
/* 仅隐藏货币文字标签，选择器本身保留。 */
@media(max-width:1199px){.workspace-controls .currency-control>span:not(.select-control){display:none}.workspace-controls .currency-control>.select-control{display:inline-flex}}
.calendar-workspace .week-cell .desktop-amount{display:none}.calendar-workspace .week-cell .mobile-amount{display:block}.calendar-workspace .week-cell .cal-values i{display:none}
@media(max-width:389px){.metric>strong{font-size:18px;white-space:nowrap;overflow-wrap:normal}}
.workspace-controls .currency-control .control-trigger{padding-inline:8px;gap:6px}
@media(max-width:389px){.workspace-controls .currency-control>.select-control{width:76px}}

/* v0.4.1 · 暖紫辅助层次：继承企业明暗色，不改变金融语义和主行动。 */
:root{
	--accent-purple:var(--cy-std-ui-support-brand);
	--accent-purple-soft:color-mix(in srgb,var(--accent-purple) 10%,var(--panel));
	--accent-purple-line:color-mix(in srgb,var(--accent-purple) 28%,var(--line));
	--accent-purple-wash:color-mix(in srgb,var(--accent-purple) 5%,var(--panel));
}
[data-theme=dark]{
	--accent-purple-soft:color-mix(in srgb,var(--accent-purple) 12%,var(--panel));
	--accent-purple-line:color-mix(in srgb,var(--accent-purple) 26%,var(--line));
	--accent-purple-wash:color-mix(in srgb,var(--accent-purple) 6%,var(--panel));
}
/* 周栏与周末保持一套紫色识别，休、班、还款、今日仍使用各自语义。 */
.week-cell{background:var(--accent-purple-soft)}
.cal-head .week-cell{background:var(--accent-purple-soft);color:var(--accent-purple)}
.cal-head .weekend{background:var(--accent-purple-wash);color:var(--accent-purple)}
.day-cell.weekend:not(.holiday):not(.work):not(.today):not(.adjacent){background:var(--accent-purple-wash)}
.calendar-year-summary{border-bottom-color:var(--accent-purple-line)}
.calendar-year-summary>b{color:var(--accent-purple)}
.selected-week{background:var(--accent-purple-soft);border:1px solid var(--accent-purple-line);border-radius:8px;padding:12px!important}
.week-detail-heading>strong>span{background:var(--panel);color:var(--accent-purple);border-radius:4px;padding:2px 5px}
/* 用途卡片：储蓄暖紫、备用金灰蓝，自定义用途使用中性渐变；金额统一用正文色。 */
.purpose-summary{--purpose-tone:var(--muted);--purpose-start:12%;background:linear-gradient(115deg,color-mix(in srgb,var(--purpose-tone) var(--purpose-start),var(--panel)) 0%,color-mix(in srgb,var(--purpose-end,var(--panel)) var(--purpose-start),var(--panel)) 100%);border-left-color:var(--purpose-tone)}
.purpose-summary.savings{--purpose-tone:var(--support)}
.purpose-summary.reserve{--purpose-tone:var(--info);border-left-color:var(--purpose-tone)}
.purpose-summary>.purpose-balance>span{color:var(--purpose-tone)}
[data-theme=dark] .purpose-summary{--purpose-start:20%;}
.account-group[data-sort-id=group-savings]>.account-group-heading h2,
.account-group[data-sort-id=group-debit]>.account-group-heading h2{color:var(--accent-purple)}
.account-group[data-sort-id=group-savings]>.account-group-heading .group-count,
.account-group[data-sort-id=group-debit]>.account-group-heading .group-count{color:var(--accent-purple);background:var(--accent-purple-soft)}
.account-group[data-sort-id=group-savings] .account-card,
.account-group[data-sort-id=group-debit] .account-card{border-color:var(--accent-purple-line);background:linear-gradient(115deg,var(--accent-purple-wash),var(--panel) 74%)}
/* 报表与分类筛选使用紫色选中层，朱红保留给记账、保存等主行动。 */
.settings-tabs>button.primary{background:var(--accent-purple-soft);color:var(--accent-purple);border-color:var(--accent-purple-line)}
.settings-tabs>button.primary:hover{background:color-mix(in srgb,var(--accent-purple) 15%,var(--panel))}
.report-period-tabs>button.active,.category-type-tabs>button.active,
.overview-toolbar .tabs>button.active{color:var(--accent-purple);background:var(--accent-purple-soft)}
.pie-comparison>.panel{border-color:var(--accent-purple-line);background:linear-gradient(180deg,var(--accent-purple-wash),var(--panel) 100px)}
.pie-legend button[aria-pressed=true]{background:var(--accent-purple-soft);color:var(--text)}
.pie-center-label,.picker-heading .picker-title{color:var(--accent-purple);fill:var(--accent-purple)}

.day-cell.weekend:not(.holiday):not(.work):not(.today):not(.adjacent):hover{background:color-mix(in srgb,var(--accent-purple) 15%,var(--panel))}

/* 首页用途排序与配色：装饰色仅用于背景，正文仍按主题保持可读性。 */
.purpose-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 8px}.purpose-heading h2{font-size:15px}.purpose-heading .ghost{font-size:12px}
.purpose-summary{position:relative;min-width:0}.purpose-summary.is-movable{padding-left:48px}.purpose-summary>.drag-handle{position:absolute;left:2px;top:calc(50% - 22px);width:36px;min-width:36px;padding:8px}.purpose-summary>.purpose-balance{flex:none;font-size:12px;color:var(--muted);min-width:0}.purpose-summary[data-custom-color=true]>.purpose-balance>span{color:var(--text)}.purpose-summary .purpose-account-list{min-width:0;overflow-wrap:anywhere}.purpose-summary strong{overflow-wrap:anywhere}
.purpose-manager-list .purpose-identity{flex:1;min-width:100px}.purpose-manager-list .purpose-home-switch{display:flex;gap:8px;align-items:center;min-height:44px;font-size:12px;cursor:pointer}.purpose-manager-list .purpose-home-switch input{width:18px;height:18px;accent-color:var(--action)}.purpose-manager-list .purpose-sample{display:inline-block;width:20px;height:20px;border:1px solid var(--border);border-radius:5px;vertical-align:middle;margin-right:8px;background:var(--panel)}
.purpose-editor-colors{border:1px solid var(--line);border-radius:8px;padding:16px;margin:16px 0}.purpose-editor-colors legend{font-size:14px;padding:0 6px}.purpose-color-pair{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px}.purpose-color-pair input[type=color]{width:44px;height:44px;padding:4px}.purpose-color-pair input[type=text]{font-family:ui-monospace,monospace}.purpose-color-preview{min-height:96px;margin-top:16px}.purpose-color-preview .purpose-balance{flex:1}.purpose-color-note{font-size:12px;color:var(--muted);margin-top:12px}.purpose-manager-list .row-actions{max-width:none!important}
@media(max-width:767px){.purpose-summary.is-movable{padding-left:42px}.purpose-summary>.purpose-balance{flex-basis:100%}.purpose-summary .purpose-account-list{width:100%}.purpose-manager-list .purpose-home-switch{margin-left:auto}.purpose-editor-colors{padding:12px}.purpose-color-fields{grid-template-columns:1fr}.purpose-heading h2{font-size:14px}}

.purpose-identity strong{overflow-wrap:anywhere}

.purpose-summary[data-custom-color=true] .muted{color:var(--text)}
