/* Formal-system Liquid Glass layer: preserves existing markup and business behavior. */
@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "LXGW Neo XiHei";
  src: url("assets/fonts/LXGWNeoXiHei.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --lg-blue: #1BB1C8;
  --lg-blue-deep: #0F7B8C;
  --lg-bg: #FFFFFF;
  --lg-surface: rgba(255, 255, 255, .62);
  --lg-surface-strong: rgba(255, 255, 255, .78);
  --lg-surface-muted: rgba(27, 177, 200, .055);
  --lg-text: #000000;
  --lg-secondary: rgba(0, 0, 0, .68);
  --lg-tertiary: rgba(0, 0, 0, .52);
  --lg-line: rgba(27, 177, 200, .18);
  --lg-shadow: 0 8px 32px rgba(27, 177, 200, .10), inset 0 1px 0 rgba(255, 255, 255, .54), inset 0 -1px 0 rgba(0, 0, 0, .04);
  --lg-shadow-hover: 0 12px 40px rgba(27, 177, 200, .18), inset 0 1px 0 rgba(255, 255, 255, .66), inset 0 -1px 0 rgba(0, 0, 0, .04);
  --lg-radius-sm: 12px;
  --lg-radius-md: 16px;
  --lg-radius-lg: 20px;
  --lg-font: "Outfit", "LXGW Neo XiHei", "SimHei", "Heiti SC", "Microsoft YaHei", sans-serif;
  --lg-ease: cubic-bezier(.34, 1.56, .64, 1);
}

body {
  --ink: var(--lg-text);
  --muted: var(--lg-secondary);
  --caption: var(--lg-tertiary);
  --line: var(--lg-line);
  --panel: var(--lg-surface);
  --paper: var(--lg-bg);
  --accent: var(--lg-blue);
  --accent-dark: var(--lg-blue-deep);
  --green: #248A3D;
  --blue: var(--lg-blue);
  background: var(--lg-bg) !important;
  color: var(--type-primary) !important;
  font-family: var(--lg-font) !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
}

body *, body *::before, body *::after { font-family: inherit !important; letter-spacing: 0 !important; }
button, input, textarea, select { font-family: inherit !important; }
input, textarea, select { font-size: 14px !important; }

.app-shell { min-height: 100vh; }
.sidebar {
  width: 236px;
  padding: 18px 10px 12px;
  color: var(--type-primary) !important;
  background: rgba(246, 252, 253, .80) !important;
  border-right: 1px solid var(--lg-line);
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.sidebar .brand-lockup.logo-only { padding: 8px 9px !important; }
.sidebar-wordmark { width: 194px; max-width: 100%; }
.workspace-switcher {
  width: auto !important;
  margin: 14px 2px 12px !important;
  padding: 10px 9px !important;
  color: var(--type-primary) !important;
  background: rgba(255, 255, 255, .45) !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: var(--lg-radius-sm) !important;
  box-shadow: var(--lg-shadow);
}
.sidebar .workspace-switcher *, .sidebar .workspace-name strong { color: var(--type-primary) !important; }
.sidebar .workspace-name small { color: var(--type-muted) !important; }
.sidebar .workspace-name strong {
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.25;
}
.sidebar .nav-list { gap: 2px; }
.sidebar .nav-label { margin: 16px 10px 5px !important; color: var(--type-muted) !important; font-size: 12px !important; font-weight: 700; }
.sidebar .nav-item, .sidebar .nav-item span, .sidebar .nav-item kbd, .sidebar .external-nav { color: var(--type-muted) !important; }
.sidebar .nav-item { height: 36px; padding: 0 10px; border-radius: 9px; font-size: 12px; transition: background .32s cubic-bezier(.22, 1, .36, 1), color .24s ease, border-color .32s cubic-bezier(.22, 1, .36, 1), transform .32s cubic-bezier(.22, 1, .36, 1); }
.sidebar .nav-item:hover { color: var(--type-primary) !important; background: rgba(255, 255, 255, .72) !important; }
.sidebar .nav-item.active { color: var(--type-inverse) !important; background: var(--lg-blue) !important; box-shadow: none !important; }
.sidebar .nav-item.active span, .sidebar .nav-item.active svg, .sidebar .nav-item.active i { color: var(--type-inverse) !important; }
.sidebar .nav-item:active { transform: scale(.994); }
.sidebar .external-nav .nav-external { color: var(--type-muted) !important; }
.sync-card {
  margin-bottom: 7px;
  color: var(--type-muted) !important;
  background: rgba(255, 255, 255, .40) !important;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--lg-radius-sm) !important;
}
.sync-card *, .sync-card strong { color: var(--type-muted) !important; }
.sync-card i { color: var(--type-success) !important; }
.sidebar-management-row { gap: 2px; }

.topbar {
  height: 62px;
  padding: 0 20px;
  background: rgba(255, 255, 255, .70) !important;
  border-color: var(--lg-line) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.breadcrumb, .breadcrumb strong, .user-menu-trigger, .user-menu-trigger > i { color: var(--type-primary) !important; font-size: 12px; }
.breadcrumb-home { color: var(--type-muted) !important; font-size: 12px; }
.top-actions { gap: 6px; }
.icon-btn, .user-menu-trigger { border-radius: 9px !important; }
.icon-btn:hover, .user-menu-trigger:hover { color: var(--type-primary) !important; background: var(--lg-surface-muted) !important; }
.admin-badge {
  min-height: 28px;
  color: var(--type-inverse) !important;
  background: var(--lg-blue) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 12px;
}
.admin-badge * { color: var(--type-inverse) !important; }
.admin-badge > i,
.admin-badge > svg { display: none !important; }

.content-wrap { max-width: 1480px; padding: 34px 36px 52px; }
.page-intro { margin-bottom: 26px; }
.eyebrow, .main-content .eyebrow { margin-bottom: 6px; color: var(--type-accent) !important; font-size: 12px !important; font-weight: 700; }
.page-intro h1, .main-content h1 { margin-bottom: 6px; color: var(--type-primary) !important; font-size: 16px !important; font-weight: 700; line-height: 1.28; }
.page-intro h1 .muted { color: var(--type-muted) !important; font-weight: 500; }
.page-intro p, .main-content .page-intro p { color: var(--type-muted) !important; font-size: 12px !important; }
.section-head h2, .main-content h2, .notice-modal .modal-head h2 { color: var(--type-primary) !important; font-size: 16px !important; font-weight: 700; line-height: 1.3; }
.section-head span { color: var(--type-muted) !important; font-size: 12px !important; }

.primary-btn, .outline-btn, .text-btn, .login-btn, .oauth-btn {
  min-height: 34px; height: 34px; padding: 0 12px; border-radius: var(--lg-radius-sm) !important; font-size: 12px !important; font-weight: 700; transition: transform .22s var(--lg-ease), box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.primary-btn, .login-btn { background: var(--lg-blue) !important; border-color: var(--lg-blue) !important; box-shadow: 0 5px 14px rgba(27, 177, 200, .18); }
.primary-btn:hover, .login-btn:hover { background: var(--lg-blue-deep) !important; box-shadow: 0 8px 20px rgba(27, 177, 200, .24); transform: scale(1.018); }
.outline-btn, .oauth-btn { color: var(--type-primary) !important; background: rgba(255, 255, 255, .64) !important; border-color: var(--lg-line) !important; }
.outline-btn:hover, .oauth-btn:hover { color: var(--type-accent) !important; background: rgba(255, 255, 255, .86) !important; border-color: rgba(27, 177, 200, .42) !important; }
.primary-btn:active, .outline-btn:active, .icon-btn:active { transform: scale(.96); }

.metric-grid { gap: 12px; margin-bottom: 26px; }
.metric-card, .project-card, .activity-panel, .notice-panel, .table-card, .budget-summary, .settle-card, .person-card, .template-card, .account-policy, .website-credential-card, .empty-state {
  position: relative; overflow: hidden; background: var(--lg-surface) !important; border: 1px solid rgba(255, 255, 255, .74) !important; border-radius: var(--lg-radius-md) !important; box-shadow: var(--lg-shadow) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
}
.metric-card::before, .project-card::before, .activity-panel::before, .notice-panel::before, .table-card::before, .budget-summary::before, .settle-card::before, .person-card::before, .template-card::before {
  position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,.46), transparent 34%); content: ""; pointer-events: none;
}
.metric-card:hover, .project-card:hover, .activity-panel:hover, .notice-panel:hover, .settle-card:hover, .person-card:hover, .template-card:hover { border-color: rgba(27, 177, 200, .34) !important; box-shadow: var(--lg-shadow-hover) !important; transform: translateY(-1px); }
.metric-card { min-height: 118px; padding: 17px 18px; }
.metric-card.accent, .notice-panel, .account-policy { color: var(--type-primary) !important; background: rgba(225, 249, 252, .68) !important; border-color: rgba(27,177,200,.20) !important; }
.metric-card.accent *, .notice-panel *, .account-policy * { color: var(--type-primary) !important; }
.metric-card span, .metric-card small, .budget-summary span, .budget-summary small, .settle-card span, .settle-card small { color: var(--type-muted) !important; font-size: 12px !important; }
.metric-card strong { color: var(--type-primary) !important; font-size: 18px !important; letter-spacing: 0 !important; }
.budget-summary strong, .settle-card strong { color: var(--type-primary) !important; font-size: 18px !important; letter-spacing: 0 !important; }
.project-card { min-height: 174px; padding: 18px; }
.project-card.featured { background: rgba(232, 249, 251, .76) !important; border-color: rgba(27, 177, 200, .28) !important; }
.project-card h3, .template-card strong, .person-card strong { color: var(--type-primary) !important; font-size: 14px !important; }
.project-card p, .project-foot, .person-card span, .template-card span, .template-card small { color: var(--type-muted) !important; font-size: 12px !important; }
.progress-line, .meter { background: rgba(27, 177, 200, .13) !important; border-radius: 999px !important; }
.progress-line span, .meter span { background: var(--lg-blue) !important; border-radius: inherit; }
.activity-panel { padding: 18px; }
.activity { border-color: rgba(27, 177, 200, .10) !important; }
.activity strong, .activity span { font-size: 12px !important; }
.activity strong { color: var(--type-primary) !important; }.activity span { color: var(--type-muted) !important; }
.activity em { color: var(--type-accent) !important; }
.notice-swatch, .template-icon, .call-sheet-card-icon { color: var(--type-accent) !important; background: rgba(27, 177, 200, .13) !important; border-radius: var(--lg-radius-sm) !important; }

.table-card { background: rgba(255, 255, 255, .48) !important; }
.table-card th { color: var(--type-muted) !important; background: rgba(27, 177, 200, .055) !important; border-color: var(--lg-line) !important; font-family: inherit !important; font-size: 12px !important; font-weight: 600; letter-spacing: 0 !important; }
.table-card td, .table-card td strong, .table-card td small { border-color: rgba(27,177,200,.10) !important; font-family: inherit !important; font-size: 14px !important; }
.table-card td { color: var(--type-muted) !important; }.table-card td strong, .table-card td .money, .money { color: var(--type-primary) !important; }.table-card td small { color: var(--type-muted) !important; }
.table-card tbody tr:hover td { background: rgba(255, 255, 255, .52); }
.table-card input, .notice-fields input, .notice-fields textarea, .notice-fields select, .login-form input, .project-select, .budget-edit-row input, .budget-edit-row select {
  color: var(--type-primary) !important; background: rgba(255,255,255,.82) !important; border-color: rgba(27,177,200,.18) !important; border-radius: var(--lg-radius-sm) !important; font-size: 14px !important;
}
.table-card input:focus, .notice-fields input:focus, .notice-fields textarea:focus, .notice-fields select:focus, .login-form input:focus, .project-select:focus, .budget-edit-row input:focus, .budget-edit-row select:focus { border-color: var(--lg-blue) !important; box-shadow: 0 0 0 3px rgba(27,177,200,.14) !important; }
.project-tag, .role-pill, .access-pill, .account-status, .status-confirmed, .status-pending, .invoice-ok, .invoice-missing { border-radius: 999px !important; font-size: 12px !important; }
.project-tag { background: rgba(255,255,255,.68) !important; }
.role-pill { padding: 4px 8px; }

.modal-backdrop { background: rgba(8, 29, 34, .28) !important; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.notice-modal, .search-dialog, .top-popover {
  color: var(--type-primary) !important; background: rgba(255,255,255,.86) !important; border: 1px solid rgba(255,255,255,.78) !important; border-radius: var(--lg-radius-lg) !important; box-shadow: 0 24px 72px rgba(19, 56, 65, .24) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
}
.modal-head, .modal-foot, .popover-head, .user-panel-head, .notification-item, .notice-fields input, .notice-fields textarea, .notice-fields select { border-color: var(--lg-line) !important; }
.modal-head { padding: 20px 22px; }.notice-fields { padding: 20px 22px; gap: 14px; }.modal-foot { padding: 14px 22px; }
.toast { background: rgba(17, 37, 42, .82) !important; border-radius: var(--lg-radius-sm) !important; box-shadow: var(--lg-shadow); }

.login-screen { background: var(--lg-bg) !important; }
.login-visual { background-color: #0A3C49 !important; }
.visual-shade { background: rgba(5, 27, 33, .46) !important; }
.login-panel {
  position: relative;
  background: rgba(255, 255, 255, .80) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.login-form { padding: 26px; background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.72); border-radius: var(--lg-radius-lg); box-shadow: var(--lg-shadow); }
.login-form h1 { color: var(--type-primary) !important; font-size: 18px !important; font-weight: 700; letter-spacing: 0 !important; }
.login-lead, .login-note, .login-footer, .login-form form > label { color: var(--type-muted) !important; font-size: 12px !important; }
.visual-quote { font-size: 22px !important; letter-spacing: 0 !important; line-height: 1.32; }
.visual-meta { font-family: inherit !important; font-size: 12px !important; letter-spacing: 0 !important; }
.divider { color: var(--type-muted) !important; font-size: 12px !important; }
body.liquid-dark .login-panel { background: rgba(10,25,32,.80) !important; }
body.liquid-dark .login-form { background: rgba(26,42,49,.44); border-color: rgba(255,255,255,.14); }

body.liquid-dark {
  --lg-bg: #0A1920; --lg-surface: rgba(26, 42, 49, .70); --lg-surface-strong: rgba(26, 42, 49, .86); --lg-surface-muted: rgba(255,255,255,.07); --lg-text: #FFFFFF; --lg-secondary: rgba(255,255,255,.74); --lg-tertiary: rgba(255,255,255,.56); --lg-line: rgba(255,255,255,.13); --lg-shadow: 0 8px 32px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.2); --lg-shadow-hover: 0 12px 40px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.15);
}
body.liquid-dark { background: var(--lg-bg) !important; }
body.liquid-dark .sidebar { background: rgba(26,42,49,.82) !important; }
body.liquid-dark .workspace-switcher, body.liquid-dark .sync-card, body.liquid-dark .outline-btn, body.liquid-dark .oauth-btn, body.liquid-dark .table-card input, body.liquid-dark .notice-fields input, body.liquid-dark .notice-fields textarea, body.liquid-dark .notice-fields select, body.liquid-dark .login-form input { background: rgba(26,42,49,.86) !important; }
body.liquid-dark .topbar { background: rgba(10,25,32,.76) !important; }
body.liquid-dark .metric-card::before, body.liquid-dark .project-card::before, body.liquid-dark .activity-panel::before, body.liquid-dark .notice-panel::before, body.liquid-dark .table-card::before, body.liquid-dark .budget-summary::before, body.liquid-dark .settle-card::before, body.liquid-dark .person-card::before, body.liquid-dark .template-card::before { background: linear-gradient(115deg, rgba(255,255,255,.08), transparent 34%); }
body.liquid-dark .table-card th, body.liquid-dark .table-card tbody tr:hover td { background: rgba(255,255,255,.055) !important; }
body.liquid-dark .notice-modal, body.liquid-dark .search-dialog, body.liquid-dark .top-popover { background: rgba(26,42,49,.92) !important; }

@media (max-width: 1000px) { .sidebar { width: 205px; }.content-wrap { padding: 28px 26px 44px; } }
@media (max-width: 700px) {
  .sidebar { display: none; }.topbar { padding: 0 14px; }.content-wrap { padding: 24px 16px 40px; }.admin-badge { display: none; }.metric-grid,.project-grid,.lower-grid,.budget-summary,.settlement-cards,.people-grid,.template-grid { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Production-wide density pass: one typography and icon rhythm across every module. */
.sidebar .nav-item,
.sidebar .nav-item span,
.sidebar .nav-item kbd,
.sidebar .external-nav,
.sidebar .settings-nav span,
.sidebar .trash-nav span { font-size: 14px !important; font-weight: 500; }
.sidebar .nav-item > i,
.sidebar .nav-item > svg,
.sidebar .external-nav .nav-external { width: 16px !important; height: 16px !important; flex: 0 0 16px !important; }
.sidebar .nav-label { font-size: 12px !important; font-weight: 700; }
.sidebar .sync-card strong, .sidebar .sync-card span { font-size: 12px !important; }

.breadcrumb,
.breadcrumb strong,
.breadcrumb-home { font-size: 14px !important; }
.breadcrumb > i,
.breadcrumb > svg { width: 15px !important; height: 15px !important; }
.top-actions .icon-btn > i,
.top-actions .icon-btn > svg { width: 17px !important; height: 17px !important; }
.primary-btn > i, .primary-btn > svg,
.outline-btn > i, .outline-btn > svg,
.text-btn > i, .text-btn > svg { width: 15px !important; height: 15px !important; }
.intro-actions .outline-btn,
.page-intro .outline-btn { min-width: 0; padding: 0 10px; }

.metric-card { min-height: 104px; padding: 14px 16px; }
.metric-card span,
.metric-card small,
.budget-summary span,
.budget-summary small,
.settle-card span,
.settle-card small { font-size: 14px !important; }
.metric-card strong,
.budget-summary strong,
.settle-card strong { font-size: 16px !important; }
.project-card { min-height: 156px; padding: 16px; }
.project-card h3,
.notice-panel h2,
.call-sheet-card h3 { font-size: 16px !important; }
.project-card p,
.project-foot,
.notice-panel p,
.activity strong,
.activity span { font-size: 14px !important; }
.activity-panel, .notice-panel { min-height: 0; padding: 16px; }

.status-key { gap: 6px; }
.status-key .project-tag,
.project-tag { min-height: 30px; padding: 0 9px; background: rgba(255,255,255,.92) !important; border: 1px solid currentColor !important; font-size: 12px !important; font-weight: 600; }
.project-tag.not-started, .project-tag.review { color: var(--type-warning) !important; }
.project-tag.live { color: var(--type-success) !important; }
.project-tag.ended { color: var(--type-error) !important; }
.project-tag.draft { color: var(--type-muted) !important; }

.table-card th,
.budget-ledger th,
.account-table-card th { height: 40px; padding: 0 12px; font-size: 14px !important; line-height: 1.3; }
.table-card td,
.table-card td strong,
.table-card td small,
.budget-ledger td,
.account-table-card td { font-size: 14px !important; }
.table-card td { padding: 9px 12px; }
.table-card .icon-btn,
.account-actions .icon-btn { width: 30px; height: 30px; padding: 0; }
.table-card .icon-btn i,
.table-card .icon-btn svg,
.account-actions .icon-btn i,
.account-actions .icon-btn svg { width: 15px !important; height: 15px !important; }

.budget-ledger .budget-edit-row input,
.budget-ledger .budget-edit-row select,
#departmentPurchaseLedger .budget-edit-row input,
#departmentPurchaseLedger .budget-edit-row select,
#regularPurchaseLedger .budget-edit-row input,
#regularPurchaseLedger .budget-edit-row select,
.department-purchase-ledger input,
.department-purchase-ledger select {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 9px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
}
#departmentPurchaseLedger { min-width: 946px; }
#departmentPurchaseLedger th:nth-child(1) { width: 160px; }
#departmentPurchaseLedger th:nth-child(2) { width: 72px; }
#departmentPurchaseLedger th:nth-child(3) { width: 110px; }
#departmentPurchaseLedger th:nth-child(4) { width: 90px; }
#departmentPurchaseLedger th:nth-child(5) { width: 112px; }
#departmentPurchaseLedger th:nth-child(6) { width: 82px; }
#departmentPurchaseLedger th:nth-child(7) { width: 100px; }
#departmentPurchaseLedger th:nth-child(8) { width: 80px; }
#departmentPurchaseLedger th:nth-child(9) { width: 96px; }
#departmentPurchaseLedger th:nth-child(10) { width: 44px; }
#regularPurchaseLedger { min-width: 1059px; }
#regularPurchaseLedger th:nth-child(1) { width: 120px; }
#regularPurchaseLedger th:nth-child(2) { width: 200px; }
#regularPurchaseLedger th:nth-child(3) { width: 64px; }
#regularPurchaseLedger th:nth-child(4) { width: 95px; }
#regularPurchaseLedger th:nth-child(5) { width: 88px; }
#regularPurchaseLedger th:nth-child(6) { width: 118px; }
#regularPurchaseLedger th:nth-child(7) { width: 90px; }
#regularPurchaseLedger th:nth-child(8) { width: 100px; }
#regularPurchaseLedger th:nth-child(9) { width: 64px; }
#regularPurchaseLedger th:nth-child(10) { width: 80px; }
#regularPurchaseLedger th:nth-child(11) { width: 40px; }

/* Budget rows: compact inputs preserve room for long, wrapping remarks. */
.budget-ledger table { min-width: 980px; table-layout: fixed; }
.budget-ledger .budget-edit-row input,
.budget-ledger .budget-edit-row select,
.budget-ledger .budget-edit-row textarea { width: 100%; min-width: 0 !important; }
.budget-ledger textarea.ledger-note {
  display: block;
  min-height: 34px;
  max-height: 160px;
  padding: 8px 9px;
  overflow: hidden;
  resize: none;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
#budgetLedger[data-category="公司人员费用"] { min-width: 1078px; }
#budgetLedger[data-category="公司人员费用"] th:nth-child(1) { width: 140px; }
#budgetLedger[data-category="公司人员费用"] th:nth-child(2) { width: 90px; }
#budgetLedger[data-category="公司人员费用"] th:nth-child(3) { width: 90px; }
#budgetLedger[data-category="公司人员费用"] th:nth-child(4) { width: 70px; }
#budgetLedger[data-category="公司人员费用"] th:nth-child(5) { width: 90px; }
#budgetLedger[data-category="公司人员费用"] th:nth-child(6) { width: 105px; }
#budgetLedger[data-category="公司人员费用"] th:nth-child(7) { width: 84px; }
#budgetLedger[data-category="公司人员费用"] th:nth-child(8) { width: 95px; }
#budgetLedger[data-category="公司人员费用"] th:nth-child(9) { width: 90px; }
#budgetLedger[data-category="公司人员费用"] th:nth-child(10) { width: 180px; }
#budgetLedger[data-category="公司人员费用"] th:nth-child(11) { width: 44px; }
#budgetLedger[data-category="道具费用"] { min-width: 1010px; }
#budgetLedger[data-category="道具费用"] th:nth-child(1) { width: 150px; }
#budgetLedger[data-category="道具费用"] th:nth-child(2) { width: 70px; }
#budgetLedger[data-category="道具费用"] th:nth-child(3) { width: 105px; }
#budgetLedger[data-category="道具费用"] th:nth-child(4) { width: 90px; }
#budgetLedger[data-category="道具费用"] th:nth-child(5) { width: 112px; }
#budgetLedger[data-category="道具费用"] th:nth-child(6) { width: 82px; }
#budgetLedger[data-category="道具费用"] th:nth-child(7) { width: 100px; }
#budgetLedger[data-category="道具费用"] th:nth-child(8) { width: 80px; }
#budgetLedger[data-category="道具费用"] th:nth-child(9) { width: 90px; }
#budgetLedger[data-category="道具费用"] th:nth-child(10) { width: 180px; }
#budgetLedger[data-category="道具费用"] th:nth-child(11) { width: 44px; }
#departmentPurchaseLedger { min-width: 1010px; }
#departmentPurchaseLedger th:nth-child(1) { width: 150px; }
#departmentPurchaseLedger th:nth-child(2) { width: 70px; }
#departmentPurchaseLedger th:nth-child(3) { width: 105px; }
#departmentPurchaseLedger th:nth-child(4) { width: 90px; }
#departmentPurchaseLedger th:nth-child(5) { width: 112px; }
#departmentPurchaseLedger th:nth-child(6) { width: 82px; }
#departmentPurchaseLedger th:nth-child(7) { width: 100px; }
#departmentPurchaseLedger th:nth-child(8) { width: 80px; }
#departmentPurchaseLedger th:nth-child(9) { width: 90px; }
#departmentPurchaseLedger th:nth-child(10) { width: 180px; }
#departmentPurchaseLedger th:nth-child(11) { width: 44px; }
#regularPurchaseLedger { min-width: 1124px; }
#regularPurchaseLedger th:nth-child(1) { width: 110px; }
#regularPurchaseLedger th:nth-child(2) { width: 128px; }
#regularPurchaseLedger th:nth-child(3) { width: 64px; }
#regularPurchaseLedger th:nth-child(4) { width: 95px; }
#regularPurchaseLedger th:nth-child(5) { width: 88px; }
#regularPurchaseLedger th:nth-child(6) { width: 112px; }
#regularPurchaseLedger th:nth-child(7) { width: 82px; }
#regularPurchaseLedger th:nth-child(8) { width: 100px; }
#regularPurchaseLedger th:nth-child(9) { width: 80px; }
#regularPurchaseLedger th:nth-child(10) { width: 90px; }
#regularPurchaseLedger th:nth-child(11) { width: 180px; }
#regularPurchaseLedger th:nth-child(12) { width: 44px; }

/* New modules inherit this UI contract through the existing semantic components. */
.sidebar .nav-item,
.sidebar .nav-item span,
.sidebar .nav-item kbd,
.sidebar .external-nav,
.sidebar .settings-nav span,
.sidebar .trash-nav span {
  font-size: 16px !important;
  font-weight: 500;
}
.sidebar .nav-item { height: 42px; }
.sidebar .nav-label,
.sidebar .sync-card strong,
.sidebar .sync-card span { font-size: 12px !important; }

.budget-summary strong,
#projectBudgetTarget,
#actualPaidTotal,
#invoiceTotal,
#budgetBalance {
  color: var(--type-primary) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.primary-btn,
.primary-btn span,
.primary-btn i,
.primary-btn svg,
.login-btn,
.login-btn span,
.login-btn i,
.login-btn svg {
  color: var(--type-inverse) !important;
}
.main-content #addBudgetRow,
.main-content .budget-ledger-actions .primary-btn,
.main-content .budget-ledger-actions .purchase-batch-btn {
  color: var(--type-inverse) !important;
  background: var(--lg-blue) !important;
  border-color: var(--lg-blue) !important;
}
.main-content #addBudgetRow:hover,
.main-content .budget-ledger-actions .primary-btn:hover,
.main-content .budget-ledger-actions .purchase-batch-btn:hover { background: var(--lg-blue-deep) !important; }
.main-content #addBudgetRow span,
.main-content #addBudgetRow svg,
.main-content .budget-ledger-actions .primary-btn svg,
.main-content .budget-ledger-actions .purchase-batch-btn svg { color: var(--type-inverse) !important; }
.main-content .budget-ledger-actions button svg.lucide-plus,
.main-content .budget-ledger-actions button i[data-lucide="plus"] {
  color: var(--type-inverse) !important;
  stroke: #FFFFFF !important;
}
#addBudgetBatch,
#addBudgetBatch *,
#addBudgetBatch span,
#addBudgetBatch i,
#addBudgetBatch svg {
  color: var(--type-inverse) !important;
}
#addBudgetBatch {
  background: var(--lg-blue) !important;
  border-color: var(--lg-blue) !important;
}
#addBudgetBatch:hover { background: var(--lg-blue-deep) !important; }
#addBudgetBatch svg,
#addBudgetBatch svg * {
  stroke: #FFFFFF !important;
}

/* Keep budget summaries and ledger headers on one reading color. */
.budget-summary span,
.budget-summary strong,
.budget-summary small,
.budget-ledger .row-subtotal,
.budget-ledger .total-label,
.budget-ledger .total-cell {
  color: var(--type-primary) !important;
}
.budget-ledger th { color: var(--type-primary) !important; }

/* Sidebar selection: a full-row liquid-glass surface with a responsive highlight. */
.sidebar .nav-list { align-items: stretch; }
.sidebar .nav-item {
  width: calc(100% - 20px);
  max-width: none;
  min-width: 0;
  margin: 0 10px;
  align-self: stretch;
  display: flex;
  white-space: nowrap;
}
.sidebar .nav-item.active {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--type-accent) !important;
  background:
    radial-gradient(130% 180% at var(--nav-glass-x, 22%) var(--nav-glass-y, 15%), rgba(255, 255, 255, .34), transparent 39%),
    linear-gradient(118deg, rgba(111, 211, 222, .24), rgba(27, 177, 200, .22) 48%, rgba(14, 139, 159, .24)) !important;
  border: 1px solid rgba(255, 255, 255, .66) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), border-color .32s cubic-bezier(.22, 1, .36, 1), background .32s cubic-bezier(.22, 1, .36, 1) !important;
}
.sidebar .nav-item.active::before {
  position: absolute;
  z-index: -1;
  inset: -30% -12%;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, .38) 44%, rgba(255, 255, 255, .08) 57%, transparent 72%);
  transform: translateX(-42%) rotate(-3deg);
  animation: none;
}
.sidebar .nav-item.active::after {
  position: absolute;
  z-index: -1;
  inset: 1px;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .20), transparent 46%);
}
.sidebar .nav-item.active:hover {
  transform: translateY(-2px) scale(1.008);
  color: var(--type-accent) !important;
  border-color: rgba(255, 255, 255, .82) !important;
  box-shadow: none !important;
}
.sidebar .nav-item.active:hover::before { opacity: .30; animation: nav-liquid-glint 1.6s cubic-bezier(.22, 1, .36, 1) both; }
.sidebar .nav-item.active:hover:active { transform: translateY(-1px) scale(1.002); }
.sidebar .nav-item.active span,
.sidebar .nav-item.active svg,
.sidebar .nav-item.active i { color: inherit !important; stroke: currentColor !important; }
.sidebar .nav-item.active:focus-visible { outline: 2px solid rgba(27, 177, 200, .82); outline-offset: 2px; }
@keyframes nav-liquid-glint {
  0%, 32% { transform: translateX(-46%) rotate(-3deg); }
  64%, 100% { transform: translateX(46%) rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar .nav-item.active::before { animation: none; }
  .sidebar .nav-item.active,
  .sidebar .nav-item.active:hover { transform: none; }
}

/* Apply the summary and ledger reading color consistently in every cost module. */
#budgetView .budget-summary *,
#departmentPurchasesView .budget-summary *,
#studioCostsView .budget-summary *,
#assetLicensesView .budget-summary *,
#budgetView .budget-ledger .row-subtotal,
#departmentPurchasesView .budget-ledger .row-subtotal,
#budgetView .budget-ledger .total-label,
#departmentPurchasesView .budget-ledger .total-label,
#budgetView .budget-ledger .total-cell,
#departmentPurchasesView .budget-ledger .total-cell {
  color: var(--type-primary) !important;
}
#budgetView .budget-ledger thead th,
#departmentPurchasesView .budget-ledger thead th { color: var(--type-primary) !important; }

.table-card textarea,
.budget-ledger .budget-edit-row textarea.ledger-note {
  width: 100%;
  min-height: 34px !important;
  margin: 0;
  padding: 7px 9px !important;
  color: var(--type-primary) !important;
  background: rgba(255, 255, 255, .82) !important;
  border: 1px solid rgba(27, 177, 200, .18) !important;
  border-radius: 10px !important;
  box-shadow: none;
  font-size: 14px !important;
  line-height: 1.45;
}
.table-card textarea:focus,
.budget-ledger .budget-edit-row textarea.ledger-note:focus {
  border-color: var(--lg-blue) !important;
  box-shadow: 0 0 0 3px rgba(27, 177, 200, .14) !important;
}
.budget-ledger .total-column { text-align: center !important; }
.budget-ledger tfoot .total-label { text-align: right !important; }
#settingsView .account-policy,
#settingsView .account-policy *,
#settingsView .account-policy strong,
#settingsView .account-policy small,
#settingsView .account-policy .account-stats,
#settingsView .account-policy .account-stats b { color: var(--type-primary) !important; }

/* Procurement summaries and batch actions must not inherit muted or outline styles. */
#departmentPurchasesView .budget-summary > div *,
#departmentPurchasesView .department-purchase-section .budget-summary > div * { color: var(--type-primary) !important; }
#budgetView .purchase-batch-btn,
#departmentPurchasesView .purchase-batch-btn,
#budgetView .purchase-batch-btn *,
#departmentPurchasesView .purchase-batch-btn * { color: var(--type-inverse) !important; }
#budgetView .purchase-batch-btn svg *,
#departmentPurchasesView .purchase-batch-btn svg * { stroke: #FFFFFF !important; }

/* All ledger headers share one deep-gray reading level, including the first column. */
.table-card thead th,
.budget-ledger thead th,
.account-table-card thead th { color: var(--type-primary) !important; }

/* Cost ledgers use the full available width; the trailing action cell never becomes an empty gutter. */
.budget-ledger table { width: 100%; }
.budget-ledger th:last-child,
.budget-ledger td:last-child { width: 44px !important; min-width: 44px !important; max-width: 44px !important; padding-left: 4px !important; padding-right: 4px !important; text-align: center !important; }
.budget-ledger td:last-child .icon-btn { margin: 0 auto; }

/* Keep the budget summary on the same glass plane as its ledger. */
#budgetView .budget-summary { background: rgba(255, 255, 255, .48) !important; }
#budgetView .budget-summary > div:first-child > span,
#budgetView .budget-summary > div:first-child > strong,
#budgetView .budget-summary > div:first-child > small { color: var(--type-primary) !important; }

/* Secondary sidebar actions are intentionally compact. */
.sidebar .settings-nav,
.sidebar .trash-nav { height: 32px !important; padding: 0 10px !important; gap: 8px !important; }
.sidebar .settings-nav span,
.sidebar .trash-nav span { font-size: 12px !important; font-weight: 500 !important; }
.sidebar .settings-nav > i,
.sidebar .settings-nav > svg,
.sidebar .trash-nav > i,
.sidebar .trash-nav > svg { width: 12px !important; height: 12px !important; flex: 0 0 12px !important; }

body.liquid-dark .table-card textarea,
body.liquid-dark .budget-ledger .budget-edit-row textarea.ledger-note { background: rgba(26, 42, 49, .86) !important; }

/* Unified text palette: eight semantic colors across all production views. */
:root {
  --type-primary: #000000;
  --type-secondary: rgba(0, 0, 0, .68);
  --type-muted: rgba(0, 0, 0, .52);
  --type-accent: #0F7B8C;
  --type-success: #248A3D;
  --type-warning: #A06C18;
  --type-error: #B42318;
  --type-inverse: #FFFFFF;
}
body.liquid-dark,
[data-theme="dark"] {
  --type-primary: #FFFFFF;
  --type-secondary: rgba(255, 255, 255, .74);
  --type-muted: rgba(255, 255, 255, .56);
  --type-accent: #4DD0E1;
  --type-success: #34C759;
  --type-warning: #FFB84D;
  --type-error: #FF453A;
  --type-inverse: #FFFFFF;
}

/* Procurement pages use the same restrained active plane as the left navigation. */
#budgetView .budget-summary,
#departmentPurchasesView .budget-summary,
#studioCostsView .budget-summary,
#assetLicensesView .budget-summary {
  background: rgba(255, 255, 255, .32) !important;
}

#budgetView .budget-category-tabs button.active,
#budgetView .budget-ledger-actions .primary-btn,
#departmentPurchasesView .purchase-batch-btn {
  color: var(--type-accent) !important;
  background: rgba(27, 177, 200, .15) !important;
  border-color: rgba(27, 177, 200, .30) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72) !important;
}

#budgetView .budget-category-tabs button.active *,
#budgetView .budget-ledger-actions .primary-btn *,
#departmentPurchasesView .purchase-batch-btn * {
  color: inherit !important;
  stroke: currentColor !important;
}

/* Summary labels and the first ledger column keep the same reading level as all other fields. */
#budgetView .budget-summary span,
#budgetView .budget-summary small,
#departmentPurchasesView .budget-summary span,
#departmentPurchasesView .budget-summary small,
#studioCostsView .budget-summary span,
#studioCostsView .budget-summary small,
#assetLicensesView .budget-summary span,
#assetLicensesView .budget-summary small,
.budget-ledger td:first-child,
.budget-ledger td:first-child input,
.budget-ledger td:first-child select {
  color: var(--type-primary) !important;
}

/* Dashboard call sheets: a light, four-column surface instead of the retired activity panel. */
.dashboard-notice-panel {
  display: block !important;
  min-height: 0 !important;
  padding: 18px !important;
  color: var(--type-primary) !important;
  background: rgba(255, 255, 255, .54) !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  box-shadow: none !important;
}
.dashboard-notice-panel .section-head { margin-bottom: 12px; }
.dashboard-notice-panel .section-head h2 { color: var(--type-primary) !important; }
.dashboard-notice-panel .section-head span { display: none !important; }
.dashboard-call-sheet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.dashboard-call-sheet-card {
  min-width: 0;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  text-align: left;
  color: var(--type-primary);
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(27, 177, 200, .16);
  border-radius: 14px;
  box-shadow: none;
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), background .28s ease, border-color .28s ease;
}
.dashboard-call-sheet-card:hover {
  transform: translateY(-2px) scale(1.012);
  background: rgba(255, 255, 255, .56);
  border-color: rgba(27, 177, 200, .34);
}
.dashboard-call-sheet-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--type-accent);
  background: rgba(27, 177, 200, .12);
  border-radius: 10px;
}
.dashboard-call-sheet-icon svg { width: 16px; height: 16px; }
.dashboard-call-sheet-content { min-width: 0; flex: 1; display: grid; gap: 3px; }
.dashboard-call-sheet-content strong,
.dashboard-call-sheet-content small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-call-sheet-content strong { font-size: 14px; font-weight: 700; }
.dashboard-call-sheet-content small { color: var(--type-muted); font-size: 12px; }
.dashboard-call-sheet-arrow { flex: 0 0 14px; width: 14px; height: 14px; color: var(--type-muted); }

/* Project navigation hierarchy. */
#projectsView .page-intro > div > p { display: none; }
#projectsView .page-intro h1 { font-size: 16px !important; }
#projectsView .segmented button { font-size: 14px !important; }

/* Keep every business page intro as compact as the project page. */
.view > .page-intro > div > p { display: none !important; }
#budgetView .budget-category-tabs button { font-size: 14px !important; }

/* Overview hierarchy and date labels. */
#overviewView .metric-card strong { font-size: 18px !important; }
#overviewView .project-card h3 { font-size: 16px !important; }
#overviewView #newProjectBtn { font-size: 14px !important; }

/* Project table uses the full available width without an empty trailing gutter. */
#projectsView .table-card table { width: 100% !important; min-width: 1080px !important; table-layout: fixed !important; }
#projectsView .table-card th,
#projectsView .table-card td { min-width: 0 !important; overflow-wrap: anywhere; }
#projectsView .table-card th:nth-child(1) { width: 200px; }
#projectsView .table-card th:nth-child(2) { width: 90px; }
#projectsView .table-card th:nth-child(3) { width: 160px; }
#projectsView .table-card th:nth-child(4) { width: 145px; }
#projectsView .table-card th:nth-child(5) { width: 110px; }
#projectsView .table-card th:nth-child(6) { width: 90px; }
#projectsView .table-card th:nth-child(7) { width: 105px; }
#projectsView .table-card th:nth-child(8) { width: 180px; }
#projectsView .table-card td:last-child { width: 180px; min-width: 180px !important; padding-left: 12px; padding-right: 12px; }
#projectsView .table-card .row-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-start; gap: 8px; }
#projectsView .table-card .row-actions > * { flex: 0 0 auto; }

.call-sheet-card {
  cursor: pointer;
  text-align: left;
}
.call-sheet-card .call-sheet-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--type-error) !important;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(180, 35, 24, .14);
  border-radius: 9px;
  opacity: .72;
  transition: opacity .2s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1), background .2s ease;
}
.call-sheet-card .call-sheet-delete:hover {
  opacity: 1;
  transform: scale(1.06);
  background: rgba(255, 235, 232, .92);
}
.call-sheet-card .call-sheet-delete svg { width: 14px; height: 14px; stroke: currentColor; }
.call-sheet-card.call-sheet-open > strong,
.call-sheet-card.call-sheet-open > span:not(.call-sheet-card-icon) { padding-right: 30px; }

/* Expense ledgers fill the available surface; compact numeric and action columns avoid a trailing gutter. */
.budget-ledger table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}
.budget-ledger th,
.budget-ledger td { min-width: 0 !important; }
.budget-ledger th:first-child,
.budget-ledger td:first-child { width: 18%; }
.budget-ledger th:nth-last-child(1),
.budget-ledger td:nth-last-child(1) { width: 44px !important; }
.budget-ledger th:nth-last-child(2),
.budget-ledger td:nth-last-child(2) { width: 12%; }
.budget-ledger td { overflow-wrap: anywhere; }
.budget-ledger td .attachment-cell,
.budget-ledger td .attachment-links { min-width: 0; max-width: 100%; }
.budget-ledger-actions {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px !important;
}
.budget-ledger-actions > button { flex: 0 0 auto; min-width: 0; }

/* Regular procurement has one wider name field and intentionally narrow quantity/amount selectors. */
#regularPurchaseLedger th:nth-child(1) { width: 18% !important; }
#regularPurchaseLedger th:nth-child(2) { width: 12% !important; }
#regularPurchaseLedger th:nth-child(3) { width: 7% !important; }
#regularPurchaseLedger th:nth-child(4) { width: 10% !important; }
#regularPurchaseLedger th:nth-child(5) { width: 9% !important; }
#regularPurchaseLedger th:nth-child(6) { width: 12% !important; }
#regularPurchaseLedger th:nth-child(7) { width: 8% !important; }
#regularPurchaseLedger th:nth-child(8) { width: 9% !important; }
#regularPurchaseLedger th:nth-child(9) { width: 9% !important; }
#regularPurchaseLedger th:nth-child(10) { width: 12% !important; }

@media (max-width: 900px) {
  .dashboard-call-sheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .budget-ledger table { min-width: 860px !important; }
}
@media (max-width: 600px) {
  .dashboard-call-sheet-grid { grid-template-columns: 1fr; }
  #projectsView .segmented button { font-size: 14px !important; }
}
/* Keep the projects heading and its filters in one type scale. */
#projectsView .projects-heading-text,
#projectsView .projects-segmented button {
  font-family: Outfit, "LXGW Neo XiHei", SimHei, "Heiti SC", "Microsoft YaHei", sans-serif;
  font-size: 16px !important;
  line-height: 1.45;
}

#projectsView .projects-heading-text,
#projectsView .projects-segmented button.active {
  font-weight: 700;
}

#projectsView .projects-segmented button:not(.active) {
  font-weight: 500;
}

/* Global typography contract: shared by every view, modal and dynamically-created card. */
:root {
  --font-ui: "Outfit", "LXGW Neo XiHei", SimHei, "Heiti SC", "Microsoft YaHei", sans-serif;
  --text-display: 22px;
  --text-section: 18px;
  --text-title: 16px;
  --text-body: 14px;
  --text-meta: 12px;
}

html,
body {
  font-family: var(--font-ui) !important;
  font-size: var(--text-body) !important;
  line-height: 1.45;
}

body *,
body *::before,
body *::after {
  font-family: inherit !important;
  letter-spacing: 0 !important;
}
a { color: var(--type-accent) !important; }

.page-intro h1,
.main-content h1,
.login-form h1 { font-size: var(--text-title) !important; font-weight: 700 !important; }
.section-head h2,
.main-content h2,
.notice-modal .modal-head h2 { font-size: var(--text-section) !important; font-weight: 600 !important; }
.project-card h3,
.template-card strong,
.person-card strong,
.call-sheet-card h3 { font-size: var(--text-title) !important; font-weight: 600 !important; }
.metric-card strong,
.budget-summary strong,
.settle-card strong { font-size: var(--text-display) !important; font-weight: 700 !important; }
.primary-btn,
.outline-btn,
.text-btn,
button,
input,
textarea,
select { font-size: var(--text-body) !important; }
.breadcrumb,
.nav-item,
.workspace-switcher,
.table-card th,
.table-card td,
.role-filters label,
.check-label,
.project-code,
.project-tag,
.role-pill,
.status-confirmed,
.status-pending,
.invoice-ok,
.invoice-missing,
.brand-sub,
.nav-label,
.sync-card strong,
.sync-card span,
.user-meta strong,
.user-meta span,
.login-lead,
.login-note,
.login-footer,
.notice-fields label,
.toast { font-size: var(--text-meta) !important; }
.page-intro p,
.section-head span,
.project-card p,
.project-foot,
.person-card span,
.template-card span,
.template-card small,
.activity span,
.notice-panel p,
.budget-summary span,
.budget-summary small,
.settle-card span,
.settle-card small { font-size: var(--text-meta) !important; }
.modal-head h2 { font-size: var(--text-section) !important; }

/* Resolve legacy high-specificity rules after the shared contract. */
.sidebar .nav-item,
.sidebar .nav-item span { font-size: var(--text-body) !important; }
#overviewView .metric-card strong { font-size: var(--text-display) !important; }

/* Shared primary-action contract: record creation may not downgrade to a pale action. */
.primary-btn,
.login-btn,
.main-content #openNoticeBtn,
.main-content #openNoticeBtn2,
.main-content #openNoticeBtn3,
.main-content #addBudgetRow,
.main-content .budget-ledger-actions .primary-btn,
.main-content .budget-ledger-actions .purchase-batch-btn,
#addBudgetBatch,
#departmentPurchasesView .purchase-batch-btn {
  min-height: 36px !important;
  padding: 0 14px !important;
  border-color: #1BB1C8 !important;
  border-radius: 12px !important;
  background: #1BB1C8 !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: background .2s ease, border-color .2s ease, transform .2s cubic-bezier(.22, 1, .36, 1) !important;
}

.primary-btn *,
.login-btn *,
.main-content #openNoticeBtn *,
.main-content #openNoticeBtn2 *,
.main-content #openNoticeBtn3 *,
.main-content #addBudgetRow *,
.main-content .budget-ledger-actions .primary-btn *,
.main-content .budget-ledger-actions .purchase-batch-btn *,
#addBudgetBatch *,
#departmentPurchasesView .purchase-batch-btn * {
  color: #FFFFFF !important;
  stroke: currentColor !important;
}

.primary-btn:hover,
.login-btn:hover,
.main-content #openNoticeBtn:hover,
.main-content #openNoticeBtn2:hover,
.main-content #openNoticeBtn3:hover,
.main-content #addBudgetRow:hover,
.main-content .budget-ledger-actions .primary-btn:hover,
.main-content .budget-ledger-actions .purchase-batch-btn:hover,
#addBudgetBatch:hover,
#departmentPurchasesView .purchase-batch-btn:hover {
  border-color: #0F7B8C !important;
  background: #0F7B8C !important;
  box-shadow: none !important;
  transform: scale(1.018) !important;
}

.primary-btn:active,
.login-btn:active,
.main-content #openNoticeBtn:active,
.main-content #openNoticeBtn2:active,
.main-content #openNoticeBtn3:active,
.main-content #addBudgetRow:active,
.main-content .budget-ledger-actions .primary-btn:active,
.main-content .budget-ledger-actions .purchase-batch-btn:active,
#addBudgetBatch:active,
#departmentPurchasesView .purchase-batch-btn:active {
  transform: scale(.98) !important;
}
