:root {
  --ink: #333641; --muted: #929bad; --blue: #5967de; --teal: #5967de;
  --line: #e5e8f1; --paper: #f1f3f6; --nav: #202e50; --soft: #f2f4fc;
  --danger: #d74b53; --sidebar-width: 184px; --notice-height: 36px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.5 var(--sans); }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button, a { cursor: pointer; }
button { border: 0; }
a { color: var(--blue); text-decoration: none; }
button:disabled { cursor: wait; opacity: .55; }
:focus-visible { outline: 2px solid #8993ee; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 22px; line-height: 1.5; font-weight: 600; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 14px; }
small { font-size: 12px; }
.muted { color: #8490a5; }
.eyebrow { font-size: 12px; color: var(--blue); }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.primary, .secondary { border-radius: 4px; padding: 8px 17px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: #4b58ce; }
.secondary { background: #fff; border: 1px solid #dce0ed; color: var(--ink); }
.secondary:hover { background: #f4f5fc; }
.text-button { background: none; color: inherit; padding: 0; font-size: 12px; }
.icon-button { background: #f0f2fb; width: 30px; height: 30px; font-size: 22px; border-radius: 50%; color: #8b94a9; }
input, select { border: 1px solid #dce0ed; border-radius: 4px; padding: 8px 10px; background: #fff; color: var(--ink); max-width: 100%; }
input:focus, select:focus { border-color: #7e89eb; outline: 1px solid #cbd0f4; }
label { font-weight: 400; }
.application-tip { height: var(--notice-height); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; background: #ffda9c; color: #4a4641; position: sticky; top: 0; z-index: 40; font-size: 12px; white-space: nowrap; }
.tip-mark { width: 13px; height: 13px; line-height: 13px; background: #ff5e65; border-radius: 50%; text-align: center; color: #fff; font-size: 11px; font-weight: 600; }
.tip-copy { overflow: hidden; text-overflow: ellipsis; }
.application-tip button { color: #fff; background: #91cc00; border-radius: 3px; padding: 2px 12px; white-space: nowrap; font-size: 12px; }
.workspace { min-height: 100vh; }
.sidebar { width: var(--sidebar-width); background: var(--nav); color: #fff; padding: 0 8px; display: flex; flex-direction: column; position: fixed; top: var(--notice-height); bottom: 0; left: 0; z-index: 30; }
.brand { display: flex; align-items: center; color: #fff; gap: 6px; padding: 8px 3px 0; white-space: nowrap; font-size: 12px; font-weight: 600; }
.brand-symbol { width: 31px; height: 31px; flex-shrink: 0; }
.edition { margin: 0 3px 8px; font-size: 10px; }
.menu-search { background: #4d5a78; border: 1px solid #76809a; color: #fff; height: 35px; border-radius: 4px; display: flex; align-items: center; padding: 0 9px; gap: 7px; margin-bottom: 17px; }
.menu-search .icon { width: 19px; height: 19px; stroke-width: 2; }
.menu-search input { width: 100%; min-width: 0; padding: 0; background: transparent; border: 0; color: #fff; font-weight: 600; border-radius: 0; font-size: 14px; }
.menu-search input::placeholder { color: #fff; opacity: 1; }
.menu-search input:focus { outline: none; }
.main-navigation { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #506080 transparent; }
.main-navigation > button { width: 100%; color: #fff; background: transparent; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 9px 13px; margin-bottom: 0; border-radius: 24px; text-align: left; font-size: 14px; font-weight: 600; white-space: nowrap; }
.main-navigation > button:hover, .main-navigation > button.open { background: #304269; }
.main-navigation > button.active { background: linear-gradient(90deg, #6395ff, #4f57f7); box-shadow: 0 3px 9px #435bd777; }
.main-navigation > button .icon { width: 17px; height: 17px; }
.main-navigation > button span { flex: 1; }
.main-navigation > button i { display: block; height: 12px; width: 15px; border-left: 1px solid #a4aec6; position: relative; flex-shrink: 0; }
.main-navigation > button i::after { content: ''; position: absolute; right: -2px; top: 5px; border: 4px solid transparent; border-top-color: #fff; }
.sidebar-tools { margin-top: auto; padding: 8px 3px; display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 10px; border-top: 1px solid #465371; }
.sidebar-tools a { color: #bbc5e1; }
.sidebar-tools button { margin-left: auto; padding: 0; background: transparent; color: #fff; display: flex; }
.sidebar-tools .icon { width: 15px; height: 15px; }
.main-shell { margin-left: var(--sidebar-width); min-width: 0; }
.topbar { height: 42px; display: flex; align-items: center; gap: 15px; padding: 0 14px; background: #f8f9fc; color: #333; }
.book-picker { width: 275px; flex-shrink: 0; }
.book-picker select { width: 100%; padding: 3px 26px 3px 0; border: 0; border-bottom: 1px solid #b5bac9; background: transparent; border-radius: 0; font-size: 14px; color: #333; }
.top-icon, .top-link { background: transparent; color: #333; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0; white-space: nowrap; height: 30px; font-size: 13px; }
.top-link .icon { width: 18px; height: 18px; }
.book-settings { padding: 0 17px 0 2px; border-right: 1px solid #dddfe8; }
.top-spacer { flex: 1; }
.account-button { padding-left: 14px; border-left: 1px solid #dce0e8; }
.account-avatar { display: flex; color: #b58b33; align-items: center; justify-content: center; width: 24px; height: 24px; background: #fff0c6; border-radius: 50%; }
.account-avatar .icon { width: 15px; height: 15px; }
.page-tabs { height: 40px; background: #fff; display: flex; align-items: center; gap: 6px; padding: 0 9px; border-bottom: 1px solid #f0f2f7; }
.home-tab, .current-tab { display: inline-flex; padding: 3px 10px; color: #fff; background: #7285ff; border-radius: 3px; font-size: 15px; }
.current-tab { background: #f2f4fc; color: #697493; }
main { padding: 18px 18px 35px; margin: 0; min-height: calc(100vh - 158px); max-width: none; }
main:has(.replica-home) { padding: 11px 27px 25px 17px; }
footer { padding: 0 18px 12px; display: flex; justify-content: space-between; color: #a2aaba; font-size: 10px; gap: 15px; }
.module-menu { position: fixed; left: var(--sidebar-width); top: calc(var(--notice-height) + 100px); z-index: 35; background: #fff; min-width: 400px; max-width: calc(100vw - var(--sidebar-width) - 20px); max-height: calc(100vh - 140px); overflow: auto; border: 1px solid #e3e7f0; border-radius: 0 6px 6px 0; box-shadow: 4px 6px 25px #25365125; padding: 22px; }
.module-menu h2 { font-size: 16px; margin-bottom: 20px; }
.module-menu h3 { color: #828ca4; margin: 15px 0 8px; font-size: 13px; }
.module-menu a, .module-menu button { display: block; padding: 7px 12px; background: transparent; color: #3f475b; text-align: left; border-radius: 3px; font-size: 13px; }
.module-menu a:hover, .module-menu button:hover { background: #eef1ff; color: #5967de; }
.workbench-role { display: flex; align-items: center; gap: 8px; height: 37px; margin-bottom: 0; }
.workbench-role h1 { font-size: 20px; font-weight: 600; color: #383838; }
.role-button { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: #fff; background: #5968da; border-radius: 4px; padding: 0; }
.role-button .icon { width: 19px; height: 19px; stroke-width: 2; }
.workbench-welcome { background: #fff; border-radius: 14px; height: 272px; padding: 27px 50px 25px; position: relative; overflow: hidden; }
.welcome-title { text-align: center; color: #202d51; font-size: clamp(23px, 2.2vw, 34px); white-space: nowrap; line-height: 1.5; font-weight: 650; position: relative; z-index: 2; }
.hello-word { color: #5968dd; font-family: Georgia, 'Times New Roman', serif; font-size: 1.24em; }
.welcome-prompt { height: 64px; border: 1px solid #dfe4f4; border-radius: 13px; display: flex; align-items: center; padding: 8px 12px; gap: 12px; box-shadow: 0 7px 8px #00000015; width: calc(100% - 120px); margin: 24px auto 20px; position: relative; z-index: 2; background: #fff; }
.prompt-type { background: #eef0fc; color: #5968e5; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 13px; white-space: nowrap; font-weight: 600; font-size: 14px; }
.welcome-prompt input { min-width: 0; flex: 1; background: transparent; border: 0; padding: 0; font-weight: 500; color: #3c4f71; font-size: 15px; }
.welcome-prompt input::placeholder { color: #9ba9c2; }
.welcome-prompt input:focus { outline: none; }
.prompt-send { width: 46px; height: 46px; border-radius: 11px; color: #fff; background: #9da8ed; box-shadow: 0 3px 5px #0002; display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; }
.prompt-send .icon { width: 25px; height: 25px; }
.welcome-options { display: flex; justify-content: center; gap: 12px; position: relative; z-index: 2; }
.welcome-option { height: 35px; border: 1px solid #e1e5f0; border-radius: 20px; background: #fff; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px; font-size: 13px; color: #333; white-space: nowrap; }
.welcome-option .icon { width: 16px; height: 16px; }
.welcome-option.selected { border-color: #6875f6; color: #5968e4; }
.welcome-year { position: absolute; right: 60px; bottom: 17px; color: #eef2ff; font-size: 102px; font-weight: 700; line-height: 1; letter-spacing: -5px; z-index: 0; }
.assistant-mascot { position: absolute; width: 133px; height: 154px; right: 13px; bottom: 20px; z-index: 1; }
.assistant-mascot svg { width: 100%; height: 100%; }
.shortcut-area { display: flex; gap: 7px; margin: 11px 0 12px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); flex: 1; gap: 9px; min-width: 0; }
.shortcut-card { background: #fff; height: 109px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; }
.shortcut-placeholder { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px; background: #dedede; color: #fff; font-size: 13px; font-weight: 600; }
.shortcut-label { color: #a0a0a0; font-size: 13px; }
.shortcut-tools { width: 31px; border-radius: 12px; background: #fff; flex-shrink: 0; overflow: hidden; display: flex; flex-direction: column; }
.shortcut-tools button { background: transparent; font-size: 10px; color: #444; flex: 1; padding: 0; }
.shortcut-tools button + button { border-top: 1px solid #eee; }
.home-lower { display: grid; grid-template-columns: minmax(0,2.05fr) minmax(280px,1fr); gap: 11px; }
.home-flow, .home-messages { border-radius: 12px; background: #fff; min-height: 325px; overflow: hidden; }
.home-panel-head { display: flex; align-items: center; justify-content: space-between; min-height: 53px; padding: 0 22px; }
.home-panel-head h2 { font-size: 16px; color: #141d33; }
.flow-settings { background: transparent; color: #444; font-size: 12px; padding: 0; }
.flow-diagram { height: 295px; background-image: radial-gradient(#d5e0ff 1px, transparent 1px); background-size: 22px 22px; position: relative; }
.flow-diagram::before { content: ''; position: absolute; top: 85px; height: 85px; left: 50%; border-left: 1px dashed #7384ff; }
.flow-diagram::after { content: ''; position: absolute; top: 168px; width: 69%; left: 15.5%; border-top: 1px dashed #7384ff; }
.flow-node { height: 39px; width: 129px; display: flex; align-items: center; background: #fff; position: absolute; padding: 6px; gap: 6px; color: #1e2230; box-shadow: 0 4px 14px #2e365511; z-index: 1; font-weight: 600; border-radius: 3px; }
.flow-node::after { content: ''; position: absolute; right: 3px; top: 3px; border: 4px solid transparent; border-top-color: #6074fa; border-right-color: #6074fa; }
.flow-node .icon { width: 27px; height: 27px; padding: 4px; color: #6579ed; background: #ecefff; border-radius: 3px; }
.flow-top { top: 47px; left: calc(50% - 65px); }
.flow-left, .flow-middle, .flow-right, .flow-last { top: 175px; }
.flow-left { left: 4%; }.flow-middle { left: 29%; }.flow-right { left: 54%; }.flow-last { left: 79%; }
.message-title { display: flex; align-items: center; gap: 8px; }
.message-title h2 { margin-right: 2px; }
.message-display { padding: 2px 4px; display: flex; background: transparent; color: #7787f2; }
.message-display .icon { width: 17px; height: 17px; }
.message-display.selected { background: #5d6ddd; color: #fff; }
.message-settings { background: transparent; color: #777; padding: 0; display: flex; }
.message-settings .icon { width: 15px; height: 15px; }
.home-messages .home-panel-head { margin: 0 18px; padding: 0; border-bottom: 1px solid #e1e5ef; }
.no-messages { text-align: center; padding-top: 44px; color: #96a5c3; font-size: 12px; }
.home-assistance-rail { position: fixed; top: 164px; right: 0; z-index: 10; width: 26px; display: flex; flex-direction: column; gap: 10px; }
.home-assistance-rail button { background: #fff; color: #555; padding: 9px 6px; border-radius: 8px 0 0 8px; font-size: 12px; line-height: 1.8; }
.home-assistance-rail button:first-child { color: #6070df; font-weight: 600; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-head p { font-size: 12px; color: #8792a8; margin-top: 6px; }
.badge { font-size: 10px; display: inline-flex; border: 1px solid #d9deef; border-radius: 3px; padding: 2px 7px; color: #7281b6; white-space: nowrap; }
.snapshot { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #8b95ab; padding: 14px 0; }
.snapshot b { color: var(--ink); font-weight: 500; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #6d7ced; margin-right: 5px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); background: #fff; border-radius: 7px; overflow: hidden; margin-bottom: 20px; }
.metric { padding: 20px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }.metric-label { font-size: 12px; color: #7f8ca5; }
.metric-value { font-variant-numeric: tabular-nums; font-size: 28px; line-height: 1.5; margin: 9px 0 4px; font-weight: 600; overflow-wrap: anywhere; }
.metric-value small { font-size: 15px; color: #929bb1; margin-right: 5px; }.metric-foot { font-size: 10px; color: #929bb1; }
.two-columns { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,1fr); gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 7px; background: #fff; overflow: hidden; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 16px; }
.panel-head p { font-size: 11px; color: #929bb1; margin-top: 3px; }.panel-head a { font-size: 11px; white-space: nowrap; }
.empty { text-align: center; padding: 43px 22px; color: #929bb1; }.empty-symbol { width: 45px; height: 45px; margin: 0 auto 14px; border: 1px solid #dce1f3; border-radius: 50%; display: grid; place-items: center; font-size: 23px; color: #8c9be0; background: #f5f7ff; }
.empty h3 { color: #505b74; font-weight: 500; margin-bottom: 8px; }.empty p { font-size: 12px; max-width: 370px; margin: 0 auto 20px; line-height: 1.9; }
.empty .primary, .empty .secondary { font-size: 12px; padding: 7px 15px; }.source-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px 20px; border-bottom: 1px solid #edf0f8; }.source-row:last-child { border: 0; }.source-row h3 { font-weight: 500; font-size: 13px; }.source-row p { font-size: 10px; color: #929bb1; margin-top: 4px; }.source-row a { font-size: 11px; white-space: nowrap; }
.note { font-size: 11px; color: #8390a8; border-left: 2px solid #a2acf0; padding: 3px 12px; line-height: 1.9; margin: 19px 0; }.note strong { color: #5c6fa9; font-weight: 500; }
.table-toolbar { padding: 14px 20px; display: flex; gap: 12px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }.search { width: 280px; font-size: 12px; }.table-wrap { overflow: auto; }
table { border-collapse: collapse; white-space: nowrap; width: 100%; font-size: 12px; }th { text-align: left; color: #7b8ba7; font-weight: 500; background: #f4f6fb; font-size: 11px; }th, td { padding: 12px 20px; border-bottom: 1px solid #ebeff7; }tr:last-child td { border-bottom: 0; }tbody tr:hover { background: #f7f8ff; }td.numeric, th.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.table-footer { border-top: 1px solid var(--line); padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; color: #929bb1; font-size: 11px; }.pagination { display: flex; align-items: center; gap: 12px; }.pagination button { background: #fff; border: 1px solid #dce1f0; padding: 3px 9px; border-radius: 3px; color: #697894; }.pagination button:disabled { cursor: default; }
.source-meta { display: flex; flex-wrap: wrap; gap: 7px 20px; padding: 14px 20px; font-size: 11px; background: #f8f9fd; border-top: 1px solid var(--line); color: #929bb1; }
.import-layout { display: grid; grid-template-columns: minmax(400px,1.6fr) minmax(240px,1fr); gap: 25px; align-items: start; }.import-form { padding: 25px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; }.field.wide { grid-column: 1/-1; }.field small { font-size: 10px; color: #929bb1; font-weight: 400; }.upload { border: 1px dashed #b9c2e7; background: #f8f9ff; border-radius: 5px; padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; }.upload input { background: white; font-size: 11px; padding: 8px; }.form-actions { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }.form-actions a { font-size: 12px; }.guide { padding: 23px; }.guide h3 { margin-bottom: 16px; }.guide p, .guide li { font-size: 12px; color: #929bb1; line-height: 1.9; }.guide ol { padding-left: 20px; display: grid; gap: 15px; margin: 0; }.guide .note { margin-bottom: 0; }
.error { font-size: 12px; color: var(--danger); margin-top: 12px; line-height: 1.8; }.panel > .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); border: 0; border-radius: 0; margin-bottom: 0; }

/* 通用弹框样式独立保留，不随登录页样式替换删除。 */
dialog { border: 1px solid #d8dff3; border-radius: 8px; width: min(960px,95vw); max-height: 90vh; overflow: auto; padding: 25px; color: var(--ink); box-shadow: 0 20px 70px #152e5a33; }dialog::backdrop { background: #1d2d4c66; }.dialog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }.dialog-header h2 { margin-top: 7px; }.dialog-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }.preview-summary { padding: 16px; background: #f1f3fc; border-radius: 5px; margin-bottom: 20px; font-size: 12px; line-height: 1.9; }.preview-summary strong { font-size: 18px; }
#toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); padding: 11px 22px; background: #34466e; color: #fff; border-radius: 6px; box-shadow: 0 4px 15px #1d335333; z-index: 60; font-size: 12px; max-width: calc(100vw - 32px); }
@media (min-width: 1700px) {
  :root { --sidebar-width: 210px; }
  .sidebar { padding: 0 10px; }.main-navigation > button { min-height: 52px; }.brand { font-size: 14px; }.edition { font-size: 11px; }
  .workbench-welcome { height: 290px; padding-top: 30px; }.welcome-title { font-size: 36px; }.welcome-prompt { margin-top: 29px; }.welcome-options { gap: 16px; }.welcome-option { font-size: 14px; }.shortcut-card { height: 117px; }
}
@media (max-width: 1180px) {
  .topbar { gap: 12px; }.book-picker { width: 220px; }.top-link.examples { display: none; }.workbench-welcome { padding-left: 20px; padding-right: 20px; }.welcome-title { font-size: 26px; }.welcome-prompt { width: calc(100% - 100px); }.welcome-options { gap: 8px; }.welcome-option { padding: 0 10px; font-size: 12px; }.welcome-option .icon { width: 14px; }.assistant-mascot { width: 110px; right: 7px; bottom: 20px; }.home-lower { grid-template-columns: 1.7fr 1fr; }.flow-node { width: 100px; font-size: 11px; }.shortcut-placeholder { width: 45px; height: 45px; border-radius: 12px; }.shortcut-grid { gap: 7px; }.shortcut-card { height: 99px; }.home-panel-head { padding: 0 17px; }.home-panel-head h2 { font-size: 14px; }
  .two-columns { grid-template-columns: 1fr; }.metric-value { font-size: 24px; }.import-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --sidebar-width: 160px; }.sidebar { padding: 0 6px; }.brand { font-size: 11px; }.brand-symbol { width: 27px; }.main-navigation > button { font-size: 12px; padding: 9px 9px; gap: 8px; min-height: 44px; }.main-navigation > button .icon { width: 16px; }.menu-search { padding: 0 7px; }.menu-search input { font-size: 12px; }.sidebar-tools { font-size: 9px; gap: 6px; }.book-picker { width: 180px; }.top-link { font-size: 12px; }.topbar { gap: 9px; padding: 0 10px; }.account-button { padding-left: 8px; }.book-settings { padding-right: 10px; }.welcome-title { font-size: 22px; }.workbench-welcome { height: 248px; padding-top: 25px; }.welcome-prompt { width: calc(100% - 50px); height: 55px; margin: 20px 25px 18px 0; padding: 7px; gap: 7px; }.prompt-type { font-size: 12px; padding: 8px 10px; }.welcome-prompt input { font-size: 13px; }.prompt-send { width: 38px; height: 38px; }.welcome-options { gap: 6px; flex-wrap: wrap; max-width: 92%; }.welcome-option { height: 28px; font-size: 11px; }.assistant-mascot { width: 90px; height: 120px; right: 4px; bottom: 15px; }.welcome-year { font-size: 80px; right: 40px; }.shortcut-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }.shortcut-card { height: 88px; }.shortcut-tools { width: 25px; }.home-lower { grid-template-columns: 1fr; }.home-flow, .home-messages { min-height: 250px; }.home-messages { min-height: 210px; }.flow-node { width: 115px; font-size: 12px; }.flow-last { left: 76%; }.flow-left { left: 2%; }.flow-middle { left: 27%; }.flow-right { left: 52%; }
}
@media (max-width: 600px) {
  :root { --notice-height: 29px; --sidebar-width: 0px; }.application-tip { height: 29px; padding: 0 8px; font-size: 10px; gap: 5px; }.application-tip button { display: none; }.tip-mark { flex-shrink: 0; width: 11px; height: 11px; line-height: 11px; }.sidebar { position: relative; top: auto; width: 100%; min-height: 0; padding: 7px 10px 8px; display: grid; grid-template-columns: 1fr 160px; gap: 5px 10px; }.brand { padding: 0; align-self: center; grid-column: 1; grid-row: 1; font-size: 12px; }.brand-symbol { width: 25px; height: 27px; }.edition { display: none; }.menu-search { grid-column: 2; grid-row: 1; height: 30px; margin: 0; }.main-navigation { grid-column: 1/-1; display: flex; gap: 7px; overflow-x: auto; padding-top: 5px; }.main-navigation > button { width: auto; flex-shrink: 0; min-height: 30px; padding: 5px 7px; font-size: 11px; gap: 5px; border-radius: 4px; }.main-navigation > button .icon { width: 13px; height: 13px; }.main-navigation > button i { display: none; }.sidebar-tools { grid-column: 1/-1; margin: 0; padding: 4px 0 0; min-height: 22px; border: 0; font-size: 10px; }.sidebar-tools button { margin-left: auto; }.main-shell { margin-left: 0; }.topbar { height: 42px; gap: 10px; }.book-picker { flex: 1; width: 0; }.book-picker select { font-size: 12px; }.topbar .top-link span:not(.account-avatar) { display: none; }.topbar .account-button { padding-left: 0; border: 0; }.topbar .book-settings, .top-spacer { display: none; }.top-link { height: 26px; }.page-tabs { height: 34px; padding: 0 10px; }.home-tab, .current-tab { font-size: 13px; padding: 2px 8px; }.module-menu { left: 8px; right: 8px; top: 145px; max-width: none; min-width: 0; width: auto; padding: 16px; border-radius: 6px; }
  main { padding: 16px 12px 25px; min-height: 55vh; }main:has(.replica-home) { padding: 10px 12px 24px; }.workbench-role { height: 32px; }.workbench-role h1 { font-size: 16px; }.role-button { width: 22px; height: 22px; }.workbench-welcome { height: 230px; border-radius: 9px; padding: 18px 14px; }.welcome-title { font-size: 17px; white-space: normal; padding: 0 17px; line-height: 1.7; }.hello-word { font-size: 1.28em; }.welcome-prompt { width: 100%; height: 52px; margin: 13px 0 14px; gap: 6px; border-radius: 9px; position: relative; z-index: 3; }.prompt-type { font-size: 10px; border-radius: 7px; padding: 8px 7px; gap: 4px; }.prompt-type .icon { width: 14px; height: 14px; }.welcome-prompt input { font-size: 11px; }.prompt-send { width: 32px; height: 34px; border-radius: 7px; }.prompt-send .icon { width: 20px; height: 20px; }.welcome-options { max-width: calc(100% - 30px); margin-left: 0; justify-content: flex-start; gap: 7px 5px; }.welcome-option { font-size: 10px; height: 26px; gap: 4px; padding: 0 7px; }.welcome-option .icon { width: 12px; height: 12px; }.assistant-mascot { width: 67px; height: 93px; bottom: 1px; right: -2px; opacity: .9; }.welcome-year { font-size: 63px; right: 25px; bottom: 7px; }.shortcut-area { gap: 5px; }.shortcut-grid { gap: 6px; }.shortcut-card { height: 76px; border-radius: 8px; gap: 4px; }.shortcut-placeholder { width: 36px; height: 36px; border-radius: 10px; font-size: 10px; }.shortcut-label { font-size: 10px; }.shortcut-tools { width: 22px; border-radius: 7px; }.shortcut-tools button { font-size: 9px; }.home-lower { gap: 10px; }.home-panel-head { padding: 0 13px; min-height: 47px; }.home-panel-head h2 { font-size: 13px; }.flow-settings { font-size: 10px; }.flow-node { width: 91px; height: 33px; font-size: 10px; gap: 4px; padding: 4px; }.flow-node .icon { width: 22px; height: 22px; }.flow-top { left: calc(50% - 45px); }.flow-left { left: 5px; }.flow-middle { left: calc(50% - 45px); }.flow-right { left: auto; right: 5px; }.flow-last { top: 235px; left: calc(50% - 45px); }.flow-diagram { height: 280px; }.home-assistance-rail { display: none; }.home-messages .home-panel-head { margin: 0 13px; }.home-messages { min-height: 185px; }.page-head { align-items: flex-start; gap: 12px; }h1 { font-size: 20px; }.page-head .primary { font-size: 11px; padding: 8px 11px; }.metrics { grid-template-columns: 1fr 1fr; }.metric { border-bottom: 1px solid var(--line); padding: 15px 12px; }.metric:nth-child(2) { border-right: 0; }.metric:nth-child(n+3) { border-bottom: 0; }.metric-value { font-size: 23px; }.two-columns { gap: 0; }.panel-head { padding: 15px; }.panel-head h2 { font-size: 15px; }.table-toolbar { padding: 12px; }.search { width: 100%; }.table-toolbar .muted { display: none; }.table-footer { padding: 11px; }.source-meta { padding: 12px; gap: 6px 12px; }th, td { padding: 11px 14px; }.form-grid { grid-template-columns: 1fr; gap: 16px; }.import-form { padding: 18px; }.form-actions { align-items: flex-start; }.form-actions .primary { font-size: 12px; }footer { padding: 0 12px 12px; display: block; font-size: 9px; }footer span { display: block; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
/* 功能对照只呈现实测入口和当前状态，不伪装未实现的业务。 */
.home-tab:not(.active) { background: #f0f2fb; color: #7d89aa; }
.module-group { border-top: 1px solid #f0f2f8; padding: 4px 0; }
.module-group-link { font-weight: 600; }
.module-menu .module-page-link { padding-left: 26px; color: #697999; font-size: 12px; }
.module-menu .module-result-title { color: #5967de; font-weight: 600; padding-left: 0; }
.module-menu .module-coverage-link { border-top: 1px solid #e7eaf3; margin-top: 12px; padding-top: 13px; color: #5967de; }
.module-empty { padding: 18px 10px; color: #939db2; font-size: 13px; }
.function-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.function-card { background: #fff; border: 1px solid #e5e8f1; border-radius: 6px; padding: 20px; }
.function-card-title { color: #475a86; font-size: 16px; font-weight: 600; }
.function-card p { color: #8995ab; font-size: 12px; margin-top: 10px; line-height: 1.9; }
.function-card-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.function-card-links .secondary { font-size: 12px; }
.function-status { padding: 20px; color: #7c8ba5; font-size: 13px; line-height: 2; }
.function-status p + p { margin-top: 8px; }
.available-query { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 12px; }
.available-query:last-child { margin-bottom: 0; }
.available-query span { font-size: 12px; }
.feature-description { color: #77859e; line-height: 1.9; font-size: 13px; }
.feature-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.feature-links.function-status { margin-top: 0; }
.feature-links .secondary { font-size: 12px; }
.feature-dialog { width: min(580px,94vw); }
@media(max-width:1000px) { .function-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .function-grid { grid-template-columns: 1fr; }.function-card { padding: 16px; }.function-status { padding: 16px; font-size: 12px; } }
/* 原站分类菜单：二级选择列、分类及功能入口；主入口与查历史分别呈现。 */
.module-menu.catalog-open { width: min(1000px,calc(100vw - var(--sidebar-width) - 20px)); }
.catalog-menu-layout { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 20px; }
.catalog-group-list { border-right: 1px solid #e8ebf4; padding-right: 10px; }
.catalog-group-list .module-group { border: 0; padding: 0; }
.module-menu .catalog-group-choice { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px; font-weight: 500; }
.module-menu .catalog-group-choice.selected { color: #5b6be0; background: #f0f3ff; }
.module-menu .catalog-group-heading { font-size: 15px; font-weight: 600; color: #3b496e; padding: 0 0 12px; }
.catalog-sections { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 24px; align-items: start; }
.module-menu .catalog-section-title, .catalog-section-title { font-size: 12px; font-weight: 600; color: #8d98ad; margin: 0 0 8px; padding: 0 0 6px; border-bottom: 1px solid #eef0f6; }
.catalog-entry { display: flex; align-items: baseline; gap: 6px; min-height: 31px; }
.module-menu .catalog-feature-link, .catalog-feature-link { display: inline; padding: 5px 0; color: #3e4d6c; font-size: 12px; line-height: 1.7; min-width: 0; overflow-wrap: anywhere; }
.module-menu .catalog-feature-link:hover, .catalog-feature-link:hover { color: #5669df; background: transparent; }
.module-menu .catalog-secondary-link, .catalog-secondary-link { display: inline; padding: 5px 0; color: #7789d9; font-size: 10px; white-space: nowrap; }
.module-menu .catalog-secondary-link:hover, .catalog-secondary-link:hover { color: #4f62dc; background: transparent; }
.catalog-page-panel > .catalog-sections { padding: 23px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.catalog-search-group + .catalog-search-group { padding-top: 18px; margin-top: 18px; border-top: 1px solid #e8ebf4; }
.module-menu .catalog-search-group > .module-result-title { display: block; padding: 0 0 13px; font-size: 13px; }
.coverage-summary { padding: 18px 22px; border: 1px solid #e0e5f2; background: #fff; border-radius: 6px; margin-bottom: 20px; color: #465b87; }
.coverage-summary strong { font-size: 16px; font-weight: 600; }
.coverage-summary p { color: #8d98ae; font-size: 12px; margin-top: 8px; }
@media(max-width:1100px) { .catalog-sections { grid-template-columns: repeat(2,minmax(0,1fr)); }.catalog-page-panel > .catalog-sections { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) { .catalog-menu-layout { grid-template-columns: 100px minmax(0,1fr); gap: 12px; }.catalog-page-panel > .catalog-sections { grid-template-columns: repeat(2,minmax(0,1fr)); }.catalog-sections { grid-template-columns: 1fr; }.catalog-feature-link { font-size: 11px; }.catalog-entry { flex-wrap: wrap; gap: 0 6px; } }
@media(max-width:600px) { .module-menu.catalog-open { width: auto; }.catalog-page-panel > .catalog-sections { padding: 16px; gap: 16px; }.coverage-summary { padding: 16px; }.coverage-summary strong { font-size: 14px; }.catalog-group-list { padding-right: 5px; }.module-menu .catalog-group-choice { padding: 9px 6px; font-size: 11px; }.catalog-menu-layout { grid-template-columns: 90px minmax(0,1fr); gap: 10px; } }
/* 结算方式：沿用原版风格的紧凑档案列表，仅维护本系统数据。 */
.settlement-toolbar { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.settlement-toolbar .muted { margin-left: auto; font-size: 12px; }
.settlement-query { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.settlement-query .field { width: 215px; font-size: 12px; }
.settlement-query .primary { min-height: 37px; }
.settlement-error { margin: 0; padding: 0 20px; }
.settlement-error:not(:empty) { padding-top: 12px; padding-bottom: 12px; }
.settlement-loading { padding: 36px 20px; text-align: center; color: var(--muted); }
.settlement-row-actions { white-space: nowrap; }
.settlement-row-actions button { color: var(--blue); margin-right: 15px; }
.settlement-row-actions button:last-child { margin-right: 0; color: var(--danger); }
.settlement-comments { white-space: normal; min-width: 140px; max-width: 360px; overflow-wrap: anywhere; }
.settlement-dialog { width: min(640px,95vw); }
.settlement-dialog .field { font-size: 12px; }
.settlement-dialog textarea { resize: vertical; min-height: 76px; border: 1px solid #dce0ed; border-radius: 4px; padding: 8px 10px; font: inherit; color: var(--ink); }
.settlement-dialog textarea:focus { border-color: #7e89eb; outline: 1px solid #cbd0f4; }
.settlement-dialog input[readonly] { background: #f5f6fa; color: #78839a; }
.settlement-dialog-note { margin-top: 12px; font-size: 12px; }
.account-bank-hint { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.8; }
.party-row-actions { white-space: nowrap; }
.party-row-actions .text-button { color: var(--blue); margin-right: 16px; }
.party-row-actions .text-button:last-child { margin-right: 0; }
.department-description { white-space: pre-wrap; min-width: 150px; max-width: 340px; overflow-wrap: anywhere; }
.department-page .text-button { color: var(--blue); }
.employee-secondary { display: block; margin-top: 3px; color: var(--muted); }
.employee-page .text-button { color: var(--blue); }
.employee-dependencies { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 20px; background: #fff8e8; font-size: 12px; }
.employee-save-status:not(:empty) { padding: 8px 20px; font-size: 12px; }
.employee-detail-fields { display: grid; grid-template-columns: 75px minmax(0,1fr); gap: 14px 18px; margin: 20px 0; font-size: 13px; }
.employee-detail-fields dt { color: var(--muted); }
.employee-detail-fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media(max-width:600px) { .settlement-toolbar { padding: 12px; flex-wrap: wrap; }.settlement-toolbar .muted { width: 100%; margin-left: 0; }.settlement-query { padding: 12px; gap: 10px; }.settlement-query .field { width: calc(50% - 5px); }.settlement-query .primary { width: 100%; }.settlement-error { padding-left: 12px; padding-right: 12px; }.settlement-dialog { padding: 20px; }.settlement-row-actions button { margin-right: 12px; } }

/* 登录页采用已观察的公开登录布局；样式限定在本入口。 */
#login { --login-accent: #655dff; position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; background: #e9edf0 url('/assets/login-background.png') center center / cover no-repeat; color: #333; }
#login .login-header { position: absolute; inset: 0 0 auto; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 44px; background: #ffffffd9; }
#login .login-site-brand { color: #31a7bd; font-size: 20px; font-weight: 500; letter-spacing: 1px; }
#login .login-site-tag { border: 1px solid #b9b9be; padding: 3px 10px; border-radius: 2px; color: #666; font-size: 12px; }
#login .login-intro { position: absolute; top: 138px; left: calc(50% - 576px); width: 660px; text-align: center; }
#login .login-intro h1 { font-size: 50px; font-weight: 700; line-height: 1.35; color: #303033; text-shadow: -2px -2px #fff, 2px -2px #fff, -2px 2px #fff, 2px 2px #fff; }
#login .login-intro p { margin-top: 17px; color: #363636; font-size: 26px; line-height: 1.5; text-shadow: 0 1px #ffffffaa; }
#login .login-form { position: relative; margin: 136px 10% 90px auto; width: 380px; min-height: 528px; padding: 22px 30px 24px; border-radius: 17px; background: #fff; }
#login .login-card-top { display: flex; align-items: center; justify-content: space-between; height: 26px; margin: 0 -12px; }
#login .login-card-top h2 { color: #e84838; font-size: 17px; font-weight: 700; font-style: italic; letter-spacing: 1px; }
#login .login-language { color: #727477; font-size: 13px; }
#login .login-tabs { display: flex; align-items: stretch; height: 50px; margin-top: 28px; padding: 0 27px 0 0; }
#login .login-tab { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px 0 8px; background: transparent; color: #777; border-bottom: 2px solid transparent; font-size: 14px; white-space: nowrap; }
#login .login-tab.active { color: var(--login-accent); border-bottom-color: var(--login-accent); }
#login .login-tab small { position: absolute; bottom: -1px; right: 5px; font-size: 9px; color: #8d8d9b; line-height: 11px; }
#login .login-qr { position: absolute; top: 78px; right: 10px; width: 31px; padding: 0; color: var(--login-accent); background: transparent; }
#login .login-qr svg { display: block; width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; }
#login .login-qr small { font-size: 9px; line-height: 1; }
#login .login-account-hint { color: #92929d; font-size: 10px; height: 14px; margin-top: 6px; }
#login .login-field { position: relative; display: block; margin: 0; }
#login .login-field input { display: block; width: 100%; height: 44px; padding: 9px 10px; border: 0; border-bottom: 1px solid #d6d9e3; border-radius: 0; outline-offset: -2px; background: transparent; color: #3d4053; font-size: 13px; }
#login .login-field input::placeholder { color: #b9bac0; font-size: 12px; }
#login .login-field input:focus { border-bottom-color: var(--login-accent); outline: 2px solid #aaa6ff; outline-offset: 1px; }
#login .login-field-actions { display: flex; align-items: center; justify-content: flex-end; height: 26px; }
#login .login-field-actions button, #login .login-password-field button { padding: 0; color: #96969a; background: transparent; font-size: 12px; }
#login .login-password-field input { padding-right: 80px; }
#login .login-password-field button { position: absolute; right: 0; top: 13px; padding: 0 0 0 10px; border-left: 1px solid #d6d6dc; line-height: 16px; }
#login #login-error { min-height: 20px; margin: 0; padding-top: 3px; font-size: 11px; line-height: 17px; }
#login .login-submit { width: 100%; height: 42px; margin-top: 50px; border-radius: 3px; color: #fff; background: var(--login-accent); font-size: 16px; }
#login .login-submit:hover { background: #5148ed; }
#login .login-form:has(input:invalid) .login-submit { background: #cbcdff; }
#login .login-data-note { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 20px; margin-top: 18px; color: #797b86; font-size: 11px; }
#login .login-data-note button { padding: 0; color: var(--login-accent); background: transparent; font-size: 12px; }
#login .login-data-note button:hover { text-decoration: underline; }
#login .login-third-title { position: relative; margin-top: 19px; text-align: center; color: #999; font-size: 12px; line-height: 18px; }
#login .login-third-title::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #ececf2; }
#login .login-third-title span { position: relative; padding: 0 12px; background: #fff; }
#login .login-third-options { display: flex; justify-content: center; gap: 30px; margin-top: 13px; }
#login .login-social { width: 36px; height: 36px; padding: 0; border-radius: 50%; color: #fff; font-size: 18px; font-weight: 600; }
#login .login-social-wechat { background: #24c90d; }
#login .login-social-qq { background: #4d94ff; }
#login .login-social-company { background: #0872fa; }
#login button:disabled { cursor: not-allowed; opacity: .78; }
#login .login-footer { position: absolute; bottom: 0; left: 0; right: 0; padding: 6px 16px; background: #ffffffba; color: #686a70; text-align: center; font-size: 12px; }
.login-data-dialog { max-width: 470px; padding: 28px; }
.login-data-dialog p { margin-top: 16px; color: #666d7b; line-height: 1.8; }
.login-data-dialog form { display: flex; justify-content: flex-end; margin-top: 24px; }
@media(max-width:1180px) {
  #login .login-intro { left: 5%; width: 51%; }
  #login .login-intro h1 { font-size: 35px; letter-spacing: -1px; }
  #login .login-intro p { font-size: 22px; }
  #login .login-form { margin-right: 5%; }
}
@media(max-width:800px) {
  #login { padding: 92px 18px 65px; background-position: 46% center; }
  #login .login-header { padding-left: 20px; }
  #login .login-site-brand { font-size: 17px; }
  #login .login-intro { position: static; width: auto; margin: 0 auto 30px; }
  #login .login-intro h1 { font-size: 29px; }
  #login .login-intro p { margin-top: 10px; font-size: 18px; }
  #login .login-form { width: min(380px,100%); margin: 0 auto; box-shadow: 0 10px 35px #24304d21; }
  #login .login-footer { font-size: 10px; }
}
@media(max-width:400px) {
  #login .login-intro h1 { font-size: 26px; }
  #login .login-intro p { font-size: 17px; }
  #login .login-form { padding-left: 24px; padding-right: 24px; }
  #login .login-data-note { font-size: 10px; }
}
/* 收付款草稿复用业务表格；不影响登录页和其他模块。 */
.cash-draft-page, .cash-history-page { min-width: 0; }
.cash-page-links, .cash-dependency-links { display: flex; flex-wrap: wrap; gap: 12px; }
.cash-document-panel { font-size: 12px; }
.cash-document-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; padding: 9px 22px; border-bottom: 1px solid var(--line); background: #f6f7fa; }
.cash-document-bar .field { display: flex; flex-direction: row; align-items: center; gap: 8px; white-space: nowrap; }
.cash-document-bar input { height: 32px; padding: 4px 8px; font-size: 12px; }
.cash-document-bar [name="direction"] { width: 65px; }
.cash-document-bar [name="bizDate"] { width: 135px; }
.cash-document-bar [name="code"] { width: 180px; }
.cash-header-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px 24px; padding: 10px 22px; }
.cash-header-fields .field { display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: center; gap: 8px; }
.cash-header-fields .cash-wide { grid-column: span 2; }
.cash-header-fields .cash-employee-link { grid-column: 2; font-size: 11px; }
.cash-header-fields input, .cash-header-fields select, .cash-header-fields textarea { width: 100%; min-width: 0; height: 32px; padding: 4px 8px; font-size: 12px; }
.cash-header-fields textarea { min-height: 32px; border: 1px solid #dce0ed; border-radius: 4px; color: var(--ink); resize: vertical; font-family: inherit; }
.cash-header-fields input[readonly], .cash-document-bar input[readonly] { background: #f7f8fb; color: #69748a; }
.cash-document-panel > .settlement-toolbar { padding: 8px 22px; }
.cash-document-panel button { font-size: 12px; }
.cash-loading { padding: 30px 20px; }
.cash-dependency-note { padding: 16px 20px; background: #fff8e8; font-size: 12px; line-height: 1.8; }
.cash-dependency-links { margin-top: 10px; }
.cash-lines-table { min-width: 850px; font-size: 12px; }
.cash-lines-table select { min-width: 170px; width: 100%; height: 32px; padding: 4px 8px; font-size: 12px; }
.cash-lines-table input { min-width: 110px; width: 100%; height: 32px; padding: 4px 8px; font-size: 12px; }
.cash-lines-table input[name="amount"] { text-align: right; }
.cash-lines-table th, .cash-lines-table td { padding: 6px 10px; }
.cash-total-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fafbfe; }
.cash-total-label { margin-left: auto; }
#cash-total { font-size: 19px; color: var(--blue); font-variant-numeric: tabular-nums; }
.cash-form-message { padding: 0 22px; min-height: 22px; font-size: 12px; }
.cash-save-controls { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 22px 22px; }
.cash-history-actions { white-space: nowrap; }
.cash-history-actions a { margin-right: 18px; }
.cash-history-actions button { color: var(--danger); }
.cash-delete-copy { margin: 20px 0; overflow-wrap: anywhere; }
@media(max-width:950px) { .cash-header-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
  .cash-document-bar { padding: 10px 16px; gap: 6px; }
  .cash-document-bar .field { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 8px; width: 100%; }
  .cash-document-bar input { width: 100%; min-width: 0; }
  .cash-document-bar [name] { width: 100%; }
  .cash-header-fields { padding: 10px 16px; gap: 6px; grid-template-columns: 1fr; }
  .cash-header-fields .cash-wide { grid-column: auto; }
  .cash-form-message { padding-left: 16px; padding-right: 16px; }
  .cash-total-row, .cash-save-controls { padding-left: 16px; padding-right: 16px; }
  .cash-page-links { gap: 8px; }
  .cash-page-links a { padding: 6px 10px; font-size: 12px; }
}
