@charset "UTF-8";
:root {
  color-scheme: light;
  --bg: #f8f7f5; --surface: #fff; --ink: #171d2a; --muted: #737b89;
  --line: #eceef1; --accent: #1B76FF; --accent-soft: #fff4ed;
  --dark: #272d33; --radius: 11px; --sidebar-width: 246px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; transition: background 160ms, border-color 160ms, box-shadow 160ms; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .table-scroll:focus-visible { outline: 3px solid #0E52B9; outline-offset: 3px; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 34px; letter-spacing: .01em; font-weight: 700; line-height: 1.3; }
h2 { font-size: 22px; font-weight: 650; }
h3 { font-size: 18px; }
small { font-size: 12px; }
strong { font-weight: 600; }
.workspace { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 20px 10px 24px; overflow-y: auto; background: linear-gradient(120deg, #293037, #252b31); color: #dce0e5; }
.brand { padding: 0 9px 22px; text-align: center; }
.brand-image { position: relative; overflow: hidden; width: 100%; height: 132px; border-radius: 8px; background: white; box-shadow: 0 2px 7px #00000012; }
.brand-image img { position: absolute; width: 100%; height: auto; left: 0; top: 50%; transform: translateY(-50%); }
.brand > strong { display: block; margin-top: 12px; color: #fff; font-size: 20px; font-weight: 500; }
.brand > p { margin-top: 3px; font-size: 13px; color: #d4d8dc; white-space: nowrap; }
.sidebar nav { display: flex; flex-direction: column; gap: 10px; }
.nav-item { border: 0; min-height: 52px; display: flex; gap: 23px; align-items: center; padding: 12px 20px; border-radius: 9px; background: transparent; color: #d5dae0; text-align: left; width: 100%; }
.nav-item svg { width: 27px; height: 27px; flex-shrink: 0; }
.nav-item > span:first-of-type { flex: 1; font-size: 17px; white-space: nowrap; }
.nav-item:hover:not(:disabled) { background: #ffffff0c; color: #fff; }
.nav-item.active { background: linear-gradient(110deg, #1770F6, #1E78FF); color: #fff; box-shadow: 0 4px 9px #00000012; }
.nav-item:disabled { color: #c4c9d0; }
.nav-later { font-size: 9px; border: 1px solid #ffffff25; border-radius: 4px; padding: 1px 3px; color: #c4c9d0; }
.nav-count { font-size: 11px; background: #ffffff15; color: #D5E6FF; border-radius: 5px; padding: 1px 6px; }
.sidebar-utilities { margin-top: auto; padding-top: 26px; }
.sidebar-utilities .nav-item { min-height: 48px; }
.sidebar-bottom { margin: 16px 9px 0; padding: 19px 7px 0; border-top: 1px solid #ffffff25; }
.sidebar-bottom strong { display: block; font-size: 13px; font-weight: 400; }
.sidebar-bottom div > span { display: block; margin-top: 5px; font-size: 11px; color: #c1c7cf; }
.main-shell { margin-left: var(--sidebar-width); min-width: 0; }
.topbar { height: 56px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e7e8eb; background: #faf9f7; }
.breadcrumb { display: flex; align-items: center; gap: 19px; color: #7b8290; font-size: 15px; }
.breadcrumb svg { width: 22px; height: 22px; }
.breadcrumb strong { color: var(--ink); font-size: 15px; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.preview-label { border: 1px solid #b8bdc6; border-radius: 25px; color: #737c8a; padding: 4px 18px; font-size: 14px; }
.language-switch { display: flex; align-items: center; border-inline: 1px solid #dfe1e5; padding: 0 5px; }
.language-switch button { min-height: 32px; border: 0; background: transparent; color: #737b88; padding: 2px 12px; font-size: 14px; }
.language-switch button + button { border-left: 1px solid #a6adb6; }
.language-switch .selected { color: #242b37; font-weight: 600; }
.user-icon { background: #e9ebed; border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; color: #858d98; }
.user-icon svg { width: 24px; height: 24px; }
.content { max-width: 1720px; padding: 20px 32px 24px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.page-heading p { color: var(--muted); font-size: 18px; margin-top: 3px; }
.heading-actions { display: flex; align-items: center; gap: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 11px 21px; border: 1px solid transparent; border-radius: 9px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.button svg { width: 24px; height: 24px; }
.button-primary { color: #fff; background: #0E66EB; }
.button-primary:hover:not(:disabled) { background: #0458D7; }
.button-primary:disabled { opacity: .55; }
.button-secondary { background: white; border-color: #dce0e5; }
.button-secondary:hover { background: #f4f5f7; }
.button-export { background: #fffaf7; border-color: #679EF1; color: #7c7773; }
.button-export small { font-size: 10px; border-left: 1px solid #ead6cc; padding-left: 8px; font-weight: 400; }
.opening-warning { min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 9px 18px; margin-bottom: 14px; background: #fff1d6; border-radius: 9px; color: var(--cw-pending,#8A4A16); font-size: 14px; }
.opening-warning svg { flex-shrink: 0; width: 23px; height: 23px; color: #d99015; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.metric-card { min-height: 144px; min-width: 0; display: flex; align-items: flex-start; gap: 25px; padding: 20px 23px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 2px 4px #24324005; text-align: left; }
button.metric-card:hover { border-color: #AAC7F2; background: #fffcfa; }
.metric-icon { width: 64px; height: 64px; flex-shrink: 0; border: 1px solid #f0f0f0; border-radius: 15px; display: grid; place-items: center; background: #f5f5f6; color: #2c333e; }
.metric-icon svg { width: 36px; height: 36px; }
.commitment-card .metric-icon { background: #fff7f1; color: var(--accent); border-color: #fff0e7; }
.metric-copy { flex: 1; min-width: 0; }
.metric-label { font-size: 16px; margin-bottom: 5px; color: #3a404c; }
.metric-number { display: block; font-size: clamp(26px, 2.35vw, 38px); line-height: 1.25; white-space: nowrap; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.commitment-card .metric-number, .metric-pending { color: var(--accent); }
.metric-pending { font-size: 31px; letter-spacing: .01em; }
.metric-copy p { font-size: 14px; color: #737b89; margin-top: 7px; }
.balances-section { margin-top: 15px; margin-bottom: 16px; }
.balances-section > h2 { margin-bottom: 5px; }
.balance-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.balance-card { min-width: 0; min-height: 160px; border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 14px 17px 6px; }
.balance-card h3 { display: flex; align-items: center; gap: 18px; font-weight: 650; padding: 0 9px 11px; border-bottom: 1px solid var(--line); }
.balance-card h3 svg { width: 28px; height: 28px; }
.balance-row { display: flex; align-items: center; gap: 16px; min-height: 49px; padding: 6px 10px; }
.balance-row + .balance-row { border-top: 1px solid var(--line); }
.currency-badge { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 23px; border-radius: 4px; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.currency-cny { background: #e9362f; color: #fff1bc; }.currency-hkd { background: #e9362f; color: white; }.currency-usd { background: #eef1fa; color: #314c89; border: 1px solid #bfc9e3; }
.balance-currency { display: flex; align-items: baseline; gap: 17px; font-size: 15px; color: #353c49; }
.balance-currency > span { color: #6d7482; font-size: 14px; }
.balance-value { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; }
.balance-value small { color: #818895; font-size: 12px; }.balance-value strong { font-size: 16px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px 12px; }
.payment-title { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.payment-title h2 { white-space: nowrap; }.record-caption { color: #7c8390; font-size: 13px; }
.payment-filters { display: flex; gap: 10px; align-items: center; min-width: 0; }
.payment-filters > select { width: 130px; padding: 7px 12px; min-height: 38px; font-size: 12px; }
.payment-filters .search-field { width: 260px; }.payment-filters input { min-height: 38px; font-size: 12px; }
.payment-filters .search-field svg { top: 10px; }
.table-scroll { overflow-x: auto; overscroll-behavior-inline: contain; margin: 0 17px; }
.payments-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14px; text-align: left; }
.payments-table th { background: #f5f5f6; font-size: 13px; color: #727a88; font-weight: 500; padding: 10px 12px; white-space: nowrap; }
.payments-table th:first-child { width: 9%; border-radius: 8px 0 0 8px; }.payments-table th:nth-child(2) { width: 23%; }.payments-table th:nth-child(3) { width: 13%; }.payments-table th:nth-child(4) { width: 20%; }.payments-table th:nth-child(5) { width: 21%; }.payments-table th:last-child { width: 14%; border-radius: 0 8px 8px 0; }
.payments-table td { padding: 8px 12px; border-bottom: 1px solid #eceef1; line-height: 1.45; vertical-align: middle; }
.payments-table td + td, .payments-table th + th { border-left: 1px solid #f0f1f3; }
.payments-table tbody tr:hover td { background: #fff8f3; }
.payments-table tbody tr { cursor: pointer; }
.payments-table .record-row { background: transparent; border: 0; padding: 0; min-height: 28px; font-size: 14px; font-weight: 500; text-align: left; text-decoration: none; }
.payments-table .record-row:hover { color: #0E54BD; text-decoration: underline; }
.goods-cell { overflow-wrap: anywhere; }.payer-cell { white-space: nowrap; }.pending-text { color: #9b6227; }
.amount-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.payments-table th:nth-child(4), .payments-table th:nth-child(5), .payments-table .amount-cell { text-align: right; }
.badge { display: inline-flex; align-items: center; width: fit-content; font-size: 12px; padding: 3px 10px; border-radius: 5px; font-weight: 500; white-space: nowrap; }
.badge-neutral, .badge-warm { color: #945319; background: #fff0d8; border: 1px solid #ffecd0; }
.payment-total { display: flex; align-items: center; justify-content: space-between; padding: 16px 29px 17px; font-size: 16px; font-weight: 600; }
.payment-total strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.panel-foot { border-top: 1px solid var(--line); padding: 10px 18px; color: #7a8290; font-size: 12px; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; color: #7b8490; font-size: 11px; margin-top: 20px; }
.page-footer > span:first-child { font-weight: 650; letter-spacing: .05em; }.page-footer > span:first-child span { margin-left: 8px; font-weight: 400; }
input, select, textarea { width: 100%; min-height: 44px; background: #fff; color: var(--ink); border: 1px solid #dfe3e8; border-radius: 8px; padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: #858e9b; }
.search-field { flex: 1; position: relative; min-width: 0; }
.search-field svg { position: absolute; left: 13px; top: 13px; width: 18px; color: #7e8794; }
.search-field input { padding-left: 40px; background: #fafafb; }
.filter-bar { display: flex; gap: 14px; margin-bottom: 20px; }.filter-bar > select { width: 190px; }
.empty-state { padding: 40px 20px; text-align: center; color: #737e8b; }.empty-state svg { display: block; margin: 0 auto 10px; }
.capital-note { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 0 0 20px; padding: 15px 20px; border: 1px solid #C9D9F1; border-radius: 9px; background: #fff8f0; color: #785a45; font-size: 13px; }.capital-note strong { margin-left: 8px; }
.person-row { display: flex; align-items: center; gap: 14px; padding: 17px 24px; border-top: 1px solid var(--line); }
.avatar { height: 38px; width: 38px; border-radius: 50%; display: grid; place-items: center; background: #edf1f6; color: #5a6c83; }.avatar-T { background: #faf0e4; color: #856b4b; }.avatar-F { background: #eaf3eb; color: #4e765c; }
.person-row > div { flex: 1; min-width: 0; }.person-row strong, .person-row small { display: block; }.person-row small { color: #757e8a; font-size: 12px; margin-top: 3px; }.person-amount { font-variant-numeric: tabular-nums; }
.unknown-person { margin: 12px 24px 20px; padding: 14px; border: 1px dashed #ddc9b9; border-radius: 8px; display: flex; justify-content: space-between; gap: 10px; color: #89613e; font-size: 13px; }
.review-row { display: flex; align-items: center; gap: 16px; padding: 20px 24px; width: 100%; text-align: left; background: white; border: 0; border-top: 1px solid var(--line); }
.review-row:hover { background: #fff8f3; }.review-number { font-size: 12px; color: #ac6b3a; width: 22px; }.review-row > span:nth-child(2) { flex: 1; color: #5b6674; }.review-row strong { display: block; color: #28313f; margin-top: 3px; }.review-row > svg { color: #9da6b1; }
.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0 24px 24px; }.account-item { padding: 20px; border: 1px solid var(--line); border-radius: 10px; }.account-item > span { color: var(--muted); font-size: 13px; }.account-item strong { display: flex; justify-content: space-between; margin: 12px 0; font-size: 20px; }.account-item em { font-style: normal; color: #929ba6; }.account-item small { color: #737c89; }
.batch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }.batch-card { padding: 22px; margin-bottom: 0; }.batch-card .panel-heading { padding: 0 0 16px; }.batch-card h2 { font-size: 24px; }.batch-card > p { margin-top: 4px; color: var(--muted); }.batch-icon { padding: 10px; border-radius: 9px; color: #265FB5; background: #fff3e9; display: flex; }.batch-total { display: flex; flex-direction: column; gap: 5px; margin-top: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }.batch-total span { font-size: 12px; color: var(--muted); }.batch-total strong { font-size: 24px; }.batch-payment { display: flex; gap: 10px; align-items: center; min-height: 44px; width: 100%; padding: 9px 0; background: transparent; border: 0; font-size: 13px; }.batch-payment > span { flex: 1; text-align: left; }.batch-payment > svg { color: #8c96a3; }.batch-payment:hover { color: #0E54BD; }
.count { font-size: 13px; color: #7a8594; margin-left: 8px; }.eyebrow { display: block; color: #747f8d; font-size: 11px; font-weight: 600; letter-spacing: .08em; margin-bottom: 8px; }
.error-banner, .success-banner { border: 1px solid var(--cw-error,#B42318); background: var(--cw-error-bg,#FFF0ED); color: var(--cw-error,#B42318); padding: 14px 17px; border-radius: 9px; font-size: 13px; margin-bottom: 16px; }.success-banner { background: #f0f7f3; color: #37614c; border-color: #d9e8df; }
dialog { border: 1px solid #e0e4ea; box-shadow: 0 24px 100px #17223130; padding: 28px; border-radius: 16px; color: var(--ink); width: calc(100% - 32px); max-height: 90dvh; overflow-y: auto; }
dialog::backdrop { background: #16212b75; backdrop-filter: blur(3px); }
.record-dialog { max-width: 580px; }.form-dialog { max-width: 600px; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin: -8px -8px 20px 0; }
.dialog-top .eyebrow { margin: 0; }
.icon-button { width: 44px; height: 44px; border: 0; display: grid; place-items: center; color: #737e8b; background: transparent; border-radius: 7px; }
.icon-button:hover { background: #f1f3f6; }
.dialog-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; }.dialog-heading h2 { font-size: 25px; }
.dialog-heading p { color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.detail-icon { padding: 17px; background: var(--accent-soft); color: var(--accent); border-radius: 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; margin: 24px 0; }
.detail-grid dt { font-size: 11px; color: var(--muted); margin-bottom: 4px; }.detail-grid dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.conversion-panel { padding: 19px; border: 1px solid #C4D6F2; background: #fffbf7; border-radius: 9px; }
.conversion-panel h3 { margin-bottom: 12px; }.rate-chain { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rate-chain span { background: #fff; padding: 6px 9px; border: 1px solid #f1e2d5; border-radius: 5px; font-size: 11px; }
.conversion-panel p { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; margin-top: 9px; }
.difference-line { padding-top: 10px; border-top: 1px solid #edddcf; color: #2056A6; }
.conversion-panel > small { display: block; color: #a17454; margin-top: 8px; font-size: 10px; }
.source-id { margin-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 10px; color: var(--muted); }
.source-id code { font-size: 10px; overflow-wrap: anywhere; }.detail-footer { margin-top: 16px; color: var(--muted); font-size: 10px; }
.note-panel { margin-top: 18px; }.note-panel p { color: var(--muted); font-size: 13px; margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.form-dialog > h2 { font-size: 25px; }.muted { color: var(--muted); font-size: 12px; margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 25px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; min-width: 0; }
.form-grid .full { grid-column: 1 / -1; }.form-grid input, .form-grid textarea, .form-grid select { font-size: 13px; font-weight: 400; }
textarea { resize: vertical; }
.field-error { font-size: 10px; color: #ad3128; font-weight: 400; }
[aria-invalid="true"] { border-color: #d46c5c; background: #fffafa; }
.form-notice { display: flex; align-items: flex-start; gap: 10px; padding: 14px; margin-top: 20px; background: #f5f7f9; border-radius: 8px; color: var(--muted); font-size: 11px; }
.form-notice svg { flex-shrink: 0; }.form-actions { margin-top: 23px; display: flex; justify-content: flex-end; gap: 10px; }

.mobile-nav { display: none; }
@media (max-width: 1300px) {
  :root { --sidebar-width: 224px; }
  .brand-image { height: 122px; }.brand > p { font-size: 12px; }.nav-item { gap: 16px; padding-inline: 17px; }.nav-item > span:first-of-type { font-size: 15px; }
  .content, .topbar { padding-inline: 24px; }.metric-card { gap: 15px; padding: 19px 17px; }.metric-icon { width: 50px; height: 55px; }.metric-icon svg { width: 31px; height: 31px; }.metric-label { font-size: 14px; }.metric-number { font-size: 29px; }.metric-copy p { font-size: 12px; }
  .payment-title { gap: 7px; }.payment-title h2 { font-size: 20px; }.payment-filters .search-field { width: 210px; }.payment-filters > select { width: 115px; }.record-caption { font-size: 11px; }
}
@media (max-width: 1080px) {
  .metric-card { gap: 10px; padding: 16px 12px; }.metric-icon { width: 39px; height: 44px; border-radius: 10px; }.metric-icon svg { width: 27px; height: 27px; }.metric-number { font-size: 25px; }.metric-label { font-size: 13px; }
  .payment-panel .panel-heading { align-items: flex-start; flex-direction: column; }.payment-filters { width: 100%; }.payment-filters .search-field { flex: 1; width: auto; }
  .page-heading p { font-size: 15px; }.button { font-size: 14px; padding-inline: 15px; }.button-export { display: none; }
}
@media (max-width: 960px) {
  .sidebar { display: none; }.main-shell { margin-left: 0; }.mobile-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 16px; gap: 5px; background: white; border-bottom: 1px solid var(--line); }
  .mobile-nav button { display: flex; align-items: center; justify-content: center; gap: 7px; background: transparent; border: 0; border-bottom: 2px solid transparent; min-height: 54px; font-size: 12px; color: #737c89; }.mobile-nav button.active { color: #0E54BD; border-bottom-color: var(--accent); }
  .metric-card { padding: 18px; gap: 15px; }.metric-icon { width: 48px; height: 52px; }.metric-number { font-size: 30px; }
}
@media (max-width: 650px) {
  .topbar { height: 56px; padding: 0 16px; }.breadcrumb { gap: 9px; font-size: 12px; }.breadcrumb > span:first-of-type { display: none; }.breadcrumb strong { font-size: 12px; }.top-actions { gap: 9px; }.preview-label, .user-icon { display: none; }.language-switch { padding: 0; border: 0; }.language-switch button { padding-inline: 9px; font-size: 12px; }
  .mobile-nav { padding: 0 8px; gap: 0; }.mobile-nav button { flex-direction: column; gap: 3px; min-height: 62px; font-size: 10px; }
  .content { padding: 20px 16px; }.page-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; }.page-heading > div:first-child { flex: 1 1 180px; min-width: 0; }h1 { font-size: 27px; }.page-heading p { font-size: 13px; margin-top: 4px; }.heading-actions { padding-top: 2px; flex-shrink: 0; }.heading-actions .button { min-height: 42px; font-size: 12px; gap: 6px; padding: 8px 12px; }.heading-actions .button svg { width: 20px; }
  .opening-warning { padding: 10px 12px; font-size: 12px; align-items: flex-start; gap: 8px; }.opening-warning svg { width: 20px; height: 20px; }
  .metric-grid { grid-template-columns: 1fr; gap: 10px; }.metric-card { min-height: 100px; padding: 16px; align-items: center; gap: 18px; }.metric-icon { width: 56px; height: 56px; }.metric-copy { display: flex; flex-direction: column; }.metric-label { font-size: 13px; margin-bottom: 2px; }.metric-number { font-size: 30px; }.metric-copy p { font-size: 11px; margin-top: 3px; }
  h2 { font-size: 19px; }.balance-cards { grid-template-columns: 1fr; gap: 10px; }.balance-card { min-height: auto; padding: 12px 12px 7px; }.balance-card h3 { font-size: 16px; gap: 12px; padding-bottom: 9px; }.balance-row { gap: 12px; }.balance-currency { font-size: 13px; gap: 12px; }.balance-currency > span { font-size: 12px; }.balance-value strong { font-size: 14px; }
  .panel-heading { padding: 14px 13px 12px; }.payment-panel .panel-heading { gap: 12px; }.payment-title { gap: 6px 12px; }.payment-title h2 { font-size: 19px; }.record-caption { font-size: 11px; }.payment-filters { gap: 7px; }.payment-filters > select { width: 105px; font-size: 11px; padding-inline: 7px; }.payment-filters input { font-size: 11px; }.payment-filters .search-field { width: 0; }
  .table-scroll { margin: 0 12px; }.payments-table { min-width: 760px; font-size: 13px; }.payments-table .record-row { font-size: 13px; }.payment-total { padding: 13px 16px; font-size: 13px; }.payment-total strong { font-size: 20px; }.panel-foot { padding: 10px 13px; font-size: 11px; }
  .page-footer { flex-direction: column; gap: 5px; font-size: 10px; }.filter-bar { flex-wrap: wrap; gap: 10px; }.filter-bar .search-field { flex-basis: 100%; }.filter-bar > select { width: 100%; }
  .capital-note { gap: 10px; font-size: 12px; padding: 13px; }.person-row { padding: 15px 14px; gap: 10px; }.person-row strong { font-size: 14px; }.person-row small { font-size: 10px; }.person-amount { font-size: 12px; }.unknown-person { margin-inline: 14px; font-size: 11px; }.review-row { padding: 17px 14px; font-size: 13px; }.account-grid { grid-template-columns: 1fr; padding: 0 14px 14px; gap: 10px; }
  .batch-grid { grid-template-columns: 1fr; gap: 15px; }.batch-card { padding: 18px; }.batch-payment { font-size: 12px; }
  dialog { padding: 20px; max-height: 92dvh; border-radius: 13px; }.detail-grid { gap: 18px 10px; }.detail-grid dd { font-size: 12px; }.dialog-heading h2 { font-size: 23px; }.dialog-heading p { font-size: 12px; }.form-grid { gap: 16px 11px; }.form-grid label { font-size: 11px; }.form-grid input, .form-grid select, .form-grid textarea { font-size: 16px; padding: 10px; }.form-grid label:nth-child(5), .form-grid label:nth-child(6) { grid-column: 1 / -1; }.form-actions .button { flex: 1; font-size: 13px; }.conversion-panel { padding: 15px; }.rate-chain span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

.payer-control { min-width: 0; }
.payer-new { margin-top: 10px; }
.payer-new[hidden] { display: none; }

.record-meta { display: block; font-size: 11px; line-height: 1.5; color: var(--muted); margin-top: 5px; white-space: normal; overflow-wrap: anywhere; }
.form-grid input[type="date"] { min-width: 0; width: 100%; }

@media (max-width: 650px) {
  .form-grid .payment-source-field, .form-grid .payment-date-field { grid-column: 1 / -1; }
}

.trade-toolbar { margin: 18px 0; }
.trade-cards { display: grid; gap: 18px; }
.trade-card { padding: 22px; overflow-wrap: anywhere; }
.trade-card header { display:flex; justify-content:space-between; gap:12px; }
.trade-card h2 { margin-top:8px; }
.trade-totals { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:24px 0; }
.trade-totals dt { font-size:12px; color:var(--muted); }
.trade-totals dd { margin:8px 0 0; font-size:19px; font-weight:600; }
.trade-card details { margin:18px 0; font-size:13px; }
.trade-card li { margin:12px 0; }
.trade-fx { border:1px solid var(--line); border-radius:8px; padding:16px; }
.trade-fx label { margin-top:12px; }
.trade-dialog [hidden] { display:none; }
@media (max-width:650px) {
 .trade-totals { grid-template-columns:1fr; gap:12px; }
 .trade-card { padding:16px; }
 .trade-dialog .form-grid { grid-template-columns:1fr; }
 .trade-dialog .form-grid label { grid-column:1; }
}

@media (max-width:960px) { .mobile-nav { grid-template-columns:repeat(4,minmax(0,1fr)); } }

.login-shell { display:grid; place-items:center; min-height:100dvh; padding:24px; }
.login-card { width:min(440px,100%); padding:32px; }
.login-brand { color:var(--accent); display:block; margin-bottom:20px; }
.login-card h1 { font-size:26px; margin:24px 0 12px; }
.login-card form { display:grid; gap:18px; margin-top:24px; }
.login-card label { display:grid; gap:8px; font-size:14px; }
.shared-workspace .balance-cards { grid-template-columns:repeat(3,minmax(0,1fr)); margin:20px 0; }
.shared-workspace .balance-card .metric-number { font-size:24px; overflow-wrap:anywhere; }
.shared-workspace .metric-number { font-size:27px; overflow-wrap:anywhere; }
.shared-workspace .topbar { gap:16px; }
.shared-workspace .topbar select { max-width:200px; }
.shared-workspace [hidden], .shared-dialog [hidden] { display:none; }
.shared-dialog details { overflow-wrap:anywhere; }
.shared-dialog .form-grid label { min-width:0; }

@media(max-width:650px) {
 .login-card { padding:22px; }.login-shell { padding:16px; }
 .shared-workspace .balance-cards { grid-template-columns:1fr; }
 .shared-workspace .topbar { flex-wrap:wrap; height:auto; padding:12px; }
 .shared-workspace .topbar select { max-width:110px; }
 .shared-workspace .top-actions { font-size:12px; flex-wrap:wrap; }
 .shared-workspace .top-actions .button { padding:6px 10px; font-size:12px; }
 .shared-dialog .form-grid { grid-template-columns:1fr; }.shared-dialog .form-grid label { grid-column:1; }
}

.audit-list { display:grid; gap:18px; }.audit-card { padding:22px; }.audit-card header { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; }.audit-card time { font-size:12px; color:var(--muted); }.audit-change { display:grid; grid-template-columns:140px 1fr 1fr; gap:12px; border-top:1px solid var(--line); padding:14px 0; }.audit-change dt { font-size:13px; font-weight:600; }.audit-change dd { margin:0; min-width:0; }.audit-change span { font-size:11px; color:var(--muted); }.audit-change pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; font-family:inherit; margin-top:6px; }

@media(max-width:650px){.audit-card{padding:16px;}.audit-change{grid-template-columns:1fr;}.audit-card h2 {font-size:17px;}}

.shared-allocation { padding:14px 0; border-top:1px solid var(--line); overflow-wrap:anywhere; }.shared-dialog fieldset { min-width:0; display:grid; gap:10px; border:1px solid var(--line); border-radius:10px; padding:14px; }.shared-dialog .form-actions { flex-wrap:wrap; }.shared-dialog .detail-grid dd { overflow-wrap:anywhere; }


.shared-trades-table {min-width:1000px;}
.shared-trades-table th:first-child {width:15%;}.shared-trades-table th:nth-child(2){width:20%;}.shared-trades-table th:nth-child(3){width:17%;}.shared-trades-table th:nth-child(4){width:15%;}.shared-trades-table th:nth-child(5){width:15%;}.shared-trades-table th:nth-child(6){width:9%;}.shared-trades-table th:last-child{width:9%;}.shared-trades-table td {overflow-wrap:anywhere;}.shared-trades-table td:nth-child(4),.shared-trades-table td:nth-child(5){text-align:right;}

.evidence-list {margin:20px 0;border-top:1px solid var(--line);padding-top:14px;}.evidence-row {display:grid;gap:5px;margin:12px 0;overflow-wrap:anywhere;}.evidence-row a {white-space:normal;overflow-wrap:anywhere;text-decoration:none;}.evidence-row small {color:var(--muted);}.shared-dialog input[type="file"] {max-width:100%;min-width:0;width:100%;}.logistics-table {min-width:900px;}.logistics-table th:first-child{width:12%;}.logistics-table th:nth-child(2){width:24%;}.logistics-table th:nth-child(3){width:20%;}.logistics-table th:nth-child(4){width:12%;}.logistics-table th:nth-child(5){width:22%;}.logistics-table th:last-child{width:10%;}.logistics-table td {overflow-wrap:anywhere;text-align:left;}
/* Keep all shared-workspace actions available on narrow screens. */
.shared-workspace .heading-actions { flex-wrap: wrap; flex-shrink: 1; min-width: 0; max-width: 100%; }
.bank-toolbar {display:flex;gap:18px;justify-content:space-between;align-items:end;flex-wrap:wrap;padding:20px;}.bank-toolbar label{display:grid;gap:6px;min-width:0;}.bank-toolbar input{max-width:100%;}.bank-transfer-table{min-width:900px;}.bank-transfer-table td{overflow-wrap:anywhere;}.shared-workspace .balance-card .button{margin-top:12px;}.shared-dialog .table-scroll{max-width:100%;}.shared-dialog details p{margin:10px 0;}
.bank-transfer-table th {white-space:normal;overflow-wrap:anywhere;}.bank-transfer-table th:first-child{width:18%;}.bank-transfer-table th:nth-child(2),.bank-transfer-table th:nth-child(3){width:18%;}.bank-transfer-table th:nth-child(4){width:20%;}.bank-transfer-table th:nth-child(5){width:15%;}.bank-transfer-table th:last-child{width:11%;}

.import-raw { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; font-size: 12px; }
.shared-dialog details p { overflow-wrap: anywhere; }

.fx-controls { display: grid; gap: 12px; margin-top: 12px; min-width: 0; }
.fx-controls button { justify-self: start; white-space: normal; }
.fx-controls output, .fx-reference { display: block; white-space: normal; overflow-wrap: anywhere; }
.fx-tool .form-grid { padding: 12px 0; }

.transfer-history-version {border-top:1px solid var(--line);margin-top:16px;padding-top:12px;overflow-wrap:anywhere;}

.funds-filters {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:20px;border-bottom:1px solid var(--line);}
.funds-filters label{display:grid;gap:6px;min-width:0;font-size:13px;}.funds-filters input,.funds-filters select{width:100%;min-width:0;max-width:100%;}.funds-filters .form-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px;margin-top:0;}
.person-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0;}.person-cards .panel{padding:20px;overflow-wrap:anywhere;}.person-cards .detail-grid{grid-template-columns:1fr;}.person-cards .detail-grid dd{font-size:19px;}.person-cards .button{white-space:normal;}
.funds-table{min-width:900px;}.funds-table td{overflow-wrap:anywhere;}.event-history-version{border-top:1px solid var(--line);padding:16px 0;}.event-fx,.event-links{overflow-wrap:anywhere;margin:18px 0;}.event-links .button{white-space:normal;overflow-wrap:anywhere;}
@media(max-width:960px){.person-cards{grid-template-columns:1fr;}.funds-filters{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){.funds-filters{grid-template-columns:1fr;padding:14px;}.event-history-version .detail-grid{grid-template-columns:1fr;}}

.pending-panel,.photo-reference{padding:20px;margin:20px 0;overflow-wrap:anywhere;}.pending-item{border-top:1px solid var(--line);padding:16px 0;}.pending-notice{background:#fff4df;color:#8a4b10;border-radius:8px;padding:12px;overflow-wrap:anywhere;}.pending-panel .button{white-space:normal;overflow-wrap:anywhere;max-width:100%;}.photo-review-links{display:flex;flex-wrap:wrap;gap:10px;}.photo-reference{border:1px solid var(--line);border-radius:12px;}.photo-reference dd{overflow-wrap:anywhere;}
@media(max-width:650px){.pending-panel,.photo-reference{padding:14px;}.photo-reference .detail-grid{grid-template-columns:1fr;}}

.provisional-link {overflow-wrap:anywhere; min-width:0}
.provisional-link .form-actions {flex-wrap:wrap}
[data-provisional-event-links] {overflow-wrap:anywhere}

.event-correction {margin-block:1rem; padding:1rem; border:1px solid var(--border, #e2e5e9); border-radius:12px; overflow-wrap:anywhere}
[data-corrected] {font-weight:600; color:#0E469A}

/* Shared funds labels and complete identifiers must fit their own containers. */
.funds-table th { white-space: normal; overflow-wrap: anywhere; }
.shared-dialog .source-id { display: block; overflow-wrap: anywhere; }

.uat-banner{position:sticky;top:0;z-index:1000;padding:8px 16px;background:#fff1cc;color:#713f12;text-align:center;font-size:14px;font-weight:600;border-bottom:1px solid #e8c86a}

/* Shared workspace navigation: daily work before account and review tools. */
.shared-workspace .workspace-nav-group { display:grid; gap:4px; min-width:0; }
.shared-workspace .workspace-nav-title { margin:8px 18px 2px; color:#b9c1cb; font-size:11px; line-height:1.4; }
.shared-workspace .sidebar .nav-item { min-height:44px; padding:10px 18px; }
/* Native details keeps hidden navigation out of the initial viewport. */
.mobile-menu,.uat-mobile-note {display:none;}
.mobile-menu > summary:focus-visible,.uat-mobile-note > summary:focus-visible {outline:3px solid #0E52B9;outline-offset:3px;}
@media(max-width:960px) {
 .shared-workspace .mobile-menu {display:block;background:var(--surface);border-bottom:1px solid var(--line);padding:6px 16px;}
 .shared-workspace .mobile-menu > summary {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;list-style:none;cursor:pointer;font-size:14px;font-weight:600;}
 .shared-workspace .mobile-menu > summary::-webkit-details-marker {display:none;}
 .mobile-page {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
 .mobile-menu-label {flex-shrink:0;color:#0E54BD;}
 .shared-workspace .mobile-menu > .mobile-nav {grid-template-columns:minmax(0,1fr);gap:8px;padding:8px 0;max-height:min(65dvh,480px);overflow:auto;border:0;}
 .shared-workspace .mobile-menu:not([open]) > .mobile-nav {display:none;}
 .shared-workspace .mobile-menu[open] > .mobile-nav {display:grid;}
 .shared-workspace .mobile-nav .workspace-nav-group {grid-template-columns:repeat(2,minmax(0,1fr));}
 .shared-workspace .mobile-nav .workspace-nav-title {grid-column:1/-1;margin:8px 8px 0;color:var(--muted);font-size:12px;text-align:left;}
 .shared-workspace .mobile-nav .nav-item {min-height:44px;padding:10px 12px;font-size:13px;line-height:1.4;flex-direction:row;justify-content:flex-start;white-space:normal;border:0;}
 .shared-workspace .mobile-nav .nav-item.active {color:#0E54BD;background:var(--accent-soft);box-shadow:none;}
 .shared-workspace .topbar {padding:10px 16px;gap:12px;height:auto;min-height:64px;flex-wrap:nowrap;}
 .shared-workspace .topbar select {min-width:0;max-width:200px;flex:1;font-size:13px;padding:8px 10px;}
 .shared-workspace .top-actions {gap:8px;flex-wrap:nowrap;min-width:0;font-size:12px;}
 .shared-workspace .top-actions > span {max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
 .shared-workspace .top-actions .button {min-height:44px;padding:8px 10px;font-size:12px;white-space:nowrap;}
 .uat-banner {padding:4px 12px;font-size:12px;line-height:20px;}
 .uat-desktop-note {display:none;}
 .uat-mobile-note {display:block;}
 .uat-mobile-note > summary {min-height:24px;cursor:pointer;}
 .uat-mobile-note > p {padding:8px 4px 4px;text-align:left;font-weight:400;overflow-wrap:anywhere;}
}

/* Inventory panels follow the shared workspace's readable tables and spacing. */
.inventory-panel {padding:24px;min-width:0;}
.inventory-panel h2 {margin-bottom:12px;}
.inventory-panel h3 {font-size:17px;margin:24px 0 10px;}
.inventory-panel p {line-height:1.7;overflow-wrap:anywhere;margin:10px 0;}
.inventory-panel > p:first-of-type {color:var(--muted);font-size:13px;max-width:90ch;}
.inventory-panel table {width:100%;min-width:680px;border-collapse:collapse;margin-top:20px;font-variant-numeric:tabular-nums;}
.inventory-panel th,.inventory-panel td {padding:14px 16px;border-bottom:1px solid var(--line);text-align:right;}
.inventory-panel th {background:#f5f5f7;color:var(--muted);font-size:13px;}
.inventory-panel th:first-child,.inventory-panel td:first-child {text-align:left;}
.inventory-panel .button {margin:0 0 0 12px;}
.shared-dialog .goods-line {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px 0;border-top:1px solid var(--line);min-width:0;}
.shared-dialog .goods-line label {min-width:0;}
.shared-dialog .goods-line label:has([data-source]) {grid-column:1/-1;}
.shared-dialog .goods-line input,.shared-dialog .goods-line select {width:100%;min-width:0;}
.shared-dialog input[type="checkbox"] {width:auto;}
@media(max-width:650px){.inventory-panel{padding:16px;}.inventory-panel .button{margin:8px 0;display:block;}.shared-dialog .goods-line{grid-template-columns:1fr;}}
.fulfilment-panel {margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:12px;min-width:0;}
.fulfilment-panel p,.fulfilment-history p {overflow-wrap:anywhere;}
.fulfilment-balances {display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:12px;margin:12px 0;}
.fulfilment-balances dt {color:var(--muted);font-size:13px;}
.fulfilment-balances dd {margin:4px 0;font-weight:700;font-size:20px;}
.fulfilment-row {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 0;border-top:1px solid var(--line);}
.fulfilment-row span {min-width:0;overflow-wrap:anywhere;}
.fulfilment-history {padding:12px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere;}
.shared-dialog [data-receipt-source],.shared-dialog [data-reservation-source] {min-width:0;}
.shared-dialog [data-receipt-source] select,.shared-dialog [data-reservation-source] select {width:100%;max-width:100%;}
@media(max-width:650px){.fulfilment-panel{padding:12px;}.fulfilment-panel .form-actions .button {flex:1 1 120px;}.fulfilment-balances {grid-template-columns:repeat(2,minmax(0,1fr));}}

/* Financial history and previews must remain readable under style-src self. */
.shared-dialog .cancellation-preview {display:block;white-space:pre-wrap;overflow-wrap:anywhere;}
.shared-dialog .form-grid > .financial-confirmation {display:flex;flex-direction:row;align-items:flex-start;}

/* Expense lifecycle actions must remain reachable in narrow viewports. */
.expense-cash-actions { flex-wrap:wrap; justify-content:flex-start; }
.expense-cash-actions .button,[data-expense-unlinked] .button { white-space:normal; overflow-wrap:anywhere; max-width:100%; min-width:0; }

/* Native workspace: shared existing layout, structured closed-command forms. */
.native-workspace .brand img{display:block;max-width:100%;height:auto;border-radius:.5rem}
.native-workspace .topbar{gap:.6rem;flex-wrap:wrap}.native-workspace .topbar select{max-width:min(100%,24rem)}
.native-actions{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.native-actions h2{flex-basis:100%;margin:0}.native-actions select{max-width:100%;min-width:0;flex:1}
.native-dialog{width:min(64rem,calc(100vw - 1.5rem));max-width:calc(100vw - 1.5rem);max-height:90dvh;overflow:auto;box-sizing:border-box}
.native-command-form,.native-command-form fieldset,.native-command-form div,.native-dialog .detail-grid{min-width:0;max-width:100%;box-sizing:border-box}
.native-command-form fieldset{border:1px solid #dfe2e6;border-radius:.5rem;padding:.75rem;margin:.5rem 0;display:grid;gap:.65rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
.native-command-form fieldset>fieldset,.native-command-form fieldset>details,.native-command-form fieldset>div{grid-column:1/-1}
.native-command-form legend{font-weight:600;overflow-wrap:anywhere}.native-field{display:grid;gap:.3rem;min-width:0}
.native-command-form input:not([type=checkbox]),.native-command-form select,.native-actions select{width:100%;min-width:0;box-sizing:border-box;padding:.65rem;border:1px solid #d5dbe2;border-radius:.5rem;background:#fff;color:#18202d;font:inherit}
.native-array-item{border-top:1px solid #dfe2e6;padding:.5rem 0}.native-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.native-dialog dt,.native-dialog dd,.native-workspace td{overflow-wrap:anywhere}.native-dialog dd{margin:.2rem 0 1rem}.native-dialog [role=alert]{color:#0E50B3}
.native-dialog button{min-height:44px}.native-command-form details>summary{cursor:pointer;padding:.5rem}.native-dialog .detail-grid{display:block}
.native-dialog .detail-grid>.detail-grid{margin-left:.5rem}.native-workspace .table-scroll{overflow-x:auto;max-width:100%}.native-workspace table{min-width:36rem}
@media(max-width:899px){.native-workspace .sidebar{display:none}.native-workspace .main-shell{min-width:0;width:100%}.native-workspace .mobile-menu{display:block}.native-workspace .mobile-menu nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr))}.native-workspace .content{padding:1rem}.native-dialog{padding:1rem}.native-command-form fieldset{display:block}.native-field{margin-bottom:.75rem}}
.cw-report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr));gap:.75rem}.cw-report-card{border:1px solid #dfe2e6;border-radius:.5rem;padding:.75rem;min-width:0;overflow-wrap:anywhere}.cw-report-card dl{display:grid;grid-template-columns:minmax(6rem,1fr) minmax(0,2fr);gap:.25rem .5rem}.cw-report-card dd{margin:0}.cw-report-controls{display:flex;flex-wrap:wrap;gap:.75rem}.cw-report-controls label{display:grid;gap:.25rem;max-width:100%}.cw-report-controls input,.cw-report-controls select{max-width:100%;box-sizing:border-box}.cw-report-pending{font-weight:700;color:#0041A3}

/* All-record search and bounded presentation, independent of ledger totals. */
.record-browser-controls{display:flex;flex-wrap:wrap;gap:.65rem;align-items:end;margin:.75rem 0;min-width:0}.record-browser-controls label{display:grid;gap:.25rem;max-width:100%;min-width:0}.record-browser-controls label:first-child{flex:1 1 14rem}.record-browser-controls input,.record-browser-controls select{width:100%;max-width:100%;min-width:0;padding:.6rem;border:1px solid #d9dde4;border-radius:.5rem;background:#fff;color:inherit;font:inherit}.record-browser-controls [role=status]{flex:1 1 12rem;font-size:.85rem;overflow-wrap:anywhere}.record-browser-nav{display:flex;flex-wrap:wrap;gap:.35rem}.record-browser-nav .button{padding:.55rem .7rem;min-height:40px}.record-browser-nav .button:disabled{cursor:not-allowed}.native-dialog [data-record-browser]+div>button{display:block;width:100%;text-align:left;margin:.4rem 0;overflow-wrap:anywhere}

/* Approved studio composition, scoped to the posted-ledger dashboard. */
.cw-overview-shell{--ink:#1d1d1f;--muted:#62666e;--accent:#116CF4;--line:#e5e5e8;background:#f3f3f5;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.cw-overview-shell .content{max-width:1400px;margin:0 auto;padding:30px 34px}.cw-overview-shell .page-heading h1{font-size:32px;letter-spacing:-.04em;font-weight:600}.cw-overview-shell .page-heading{margin-bottom:28px}
.cw-unified-shell .sidebar{background:#fff;color:#1d1d1f;border-right:1px solid #e5e5e8}.cw-unified-shell .sidebar .brand{color:#1d1d1f}.cw-unified-shell .sidebar .brand img{width:108px;height:72px;object-fit:cover;border-radius:0}.cw-unified-shell .sidebar .nav-item{color:#62666e;background:transparent;min-height:44px}.cw-unified-shell .sidebar .nav-item.active{background:#EBF2FF;color:#0150CC}.cw-unified-shell .sidebar summary{color:#62666e}
.dl-dashboard{color:#1d1d1f;font-variant-numeric:tabular-nums}.dl-dashboard *{box-sizing:border-box}.dl-body{display:grid;gap:20px;min-width:0}.dl-dashboard h2,.dl-dashboard h3,.dl-dashboard p{margin:0}.dl-dashboard h2{font-size:24px;letter-spacing:-.025em}.dl-dashboard h3{font-size:17px;font-weight:550}.dl-dashboard strong{font-weight:550}.dl-muted,.dl-context{color:var(--cw-text-muted);font-size:13px;line-height:1.5}
.dl-panel{background:#fff;border:1px solid rgba(0,0,0,.04);border-radius:26px;box-shadow:0 18px 48px -28px rgba(28,32,40,.18),0 1px 2px rgba(0,0,0,.025);min-width:0;overflow:hidden}
.dl-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr)}.dl-profit{padding:40px 38px;min-width:0}.dl-profit h2{font-size:16px;letter-spacing:0;color:var(--cw-text-muted);font-weight:400}.dl-hero-number{display:block;font-size:clamp(40px,4.6vw,76px);letter-spacing:-.065em;line-height:1.12;margin:24px 0;overflow-wrap:anywhere}.dl-margin{font-size:20px;color:#0150CC;margin-bottom:26px!important}.dl-margin::before{content:'•';margin-right:10px;color:#116CF4}.dl-profit .dl-metric{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.dl-profit .dl-metric strong{font-size:14px}
.dl-breakdown{padding:40px 38px 24px 32px;border-left:1px solid #eee;min-width:0}.dl-breakdown>.dl-metric{display:flex;gap:12px;align-items:baseline;justify-content:space-between;flex-wrap:wrap}.dl-metric span{font-size:14px;color:var(--cw-text-muted)}.dl-metric strong{font-size:27px;letter-spacing:-.03em;display:block;overflow-wrap:anywhere}.dl-metric[data-status=pending] strong,.dl-metric[data-status=unavailable] strong{color:#62666e;font-size:22px}.dl-composition{display:flex;height:32px;border-radius:5px;overflow:hidden;margin:26px 0 18px}.dl-composition span{flex-shrink:0}.dl-composition .cost{background:#8b929d}.dl-composition .profit{background:#116CF4}.dl-composition-labels{display:flex;justify-content:space-between;gap:16px;align-items:baseline;margin:18px 0 8px}.dl-composition-labels .dl-metric strong{font-size:21px}.dl-orange{color:#0150CC;font-size:13px}.dl-breakdown>.dl-action{margin-top:12px}
.dl-action{appearance:none;border:0;background:transparent;color:#0150CC;min-height:44px;min-width:44px;padding:10px 0;font-size:14px;text-decoration:none;text-align:left;cursor:pointer}.dl-action:hover{color:#1d1d1f}.dl-action:focus-visible,.dl-dashboard button:focus-visible{outline:2px solid #0150CC;outline-offset:3px}
.dl-hero-footer{grid-column:1/-1;display:flex;align-items:center;gap:24px;border-top:1px solid #eee;padding:24px 38px;background:linear-gradient(110deg,#fafafa,#fff)}.dl-hero-footer>span{font-size:15px;margin-right:auto}.dl-receivable-values{display:grid;gap:5px}.dl-receivable-values strong{font-size:28px;letter-spacing:-.04em;overflow-wrap:anywhere}.dl-hero-footer .dl-action{border-left:1px solid #eee;padding-left:24px}
.dl-supplementary{display:flex;flex-wrap:wrap;gap:32px;padding:0 6px}.dl-supplementary .dl-metric strong{font-size:22px;margin-top:5px}.dl-section{display:grid;gap:22px;margin-top:28px;min-width:0}.dl-chart,.dl-records{padding:30px 38px 24px}.dl-chart-heading{display:flex;justify-content:space-between;align-items:baseline;gap:18px;flex-wrap:wrap}.dl-segmented{display:flex;gap:18px}.dl-segmented button{border-bottom:2px solid transparent;border-radius:0;color:#62666e;font-size:13px}.dl-segmented button[aria-pressed=true]{border-bottom-color:#116CF4;color:#1d1d1f}.dl-chart-heading+p{margin:22px 0 28px}.dl-axis{display:flex;justify-content:space-between;margin-left:calc(30% + 20px);margin-right:124px;font-size:12px;color:#62666e}.dl-axis span:first-child{transform:translateX(-50%)}.dl-axis span:last-child{transform:translateX(50%)}
.dl-chart-row{width:100%;border:0;border-bottom:1px solid #eee;background:transparent;border-radius:0;display:grid;grid-template-columns:30% minmax(0,1fr);gap:20px;padding:20px 0;color:#1d1d1f;min-height:92px;cursor:pointer;text-align:left}.dl-chart-row:hover{background:#fafafa}.dl-sale-label{font-size:15px;overflow-wrap:anywhere;align-self:center}.dl-series-list{display:grid;gap:12px}.dl-series{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:12px;align-items:center;min-width:0}.dl-series strong{font-size:14px;text-align:right;overflow-wrap:anywhere}.dl-track{height:9px;border-radius:4px;background:#f1f2f4;position:relative;display:block}.dl-track i{display:block;height:100%;border-radius:4px;background:#116CF4}.dl-track i.cost{background:#8b929d}.dl-track.signed:before{content:'';position:absolute;left:50%;top:-4px;bottom:-4px;border-left:1px solid #ccc}.dl-track.signed i{position:absolute;left:50%}.dl-track.signed i.negative{left:auto;right:50%;background:#0150CC}.dl-track.pending{background:transparent;border-bottom:1px dashed #aaa}
.dl-dashboard .record-browser-controls{margin:18px 0;gap:10px;font-size:12px}.dl-dashboard .record-browser-controls input,.dl-dashboard .record-browser-controls select{height:44px;min-width:0;border:1px solid #d9dce1;background:#fafafa;border-radius:9px}.dl-dashboard .record-browser-nav button{min-height:44px;font-size:12px}.dl-dashboard .record-browser-controls label{min-width:0;max-width:100%}.dl-dashboard .record-browser-controls [role=status]{font-size:12px;color:#62666e}.dl-dues{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:18px}.dl-dues-panel{padding:26px;display:grid;gap:18px}.dl-dues-panel .dl-metric{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}.dl-dues-panel .dl-metric strong{font-size:22px}
.dl-funds{display:grid;grid-template-columns:1fr 1fr}.dl-column{padding:30px 38px;min-width:0}.dl-column+.dl-column{border-left:1px solid #eee}.dl-bank,.dl-capital{padding:20px 0;border-bottom:1px solid #eee}.dl-bank{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.dl-bank strong{font-size:21px}.dl-capital .dl-metric{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.dl-capital .dl-metric strong{font-size:21px}.dl-column>.dl-muted{margin-top:18px}.dl-progress{background:#eee;height:5px;border-radius:3px;margin-top:12px;overflow:hidden}.dl-progress i{height:100%;display:block;background:#116CF4}.dl-capital p{margin-top:4px}
.dl-record{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,auto) 44px;gap:20px;align-items:center;padding:20px 0;border-bottom:1px solid #eee}.dl-record strong{font-size:15px;overflow-wrap:anywhere}.dl-record-amount{text-align:right}.dl-record p{margin-top:6px}.dl-links{display:flex;gap:24px;flex-wrap:wrap}.dl-error{padding:28px;background:#fff6e8;color:#7b430f;border-radius:20px}.dl-dialog{max-width:min(580px,calc(100vw - 32px));max-height:80dvh;border:1px solid #eee;border-radius:24px;padding:30px;color:#1d1d1f}.dl-dialog::backdrop{background:rgba(0,0,0,.3)}.dl-detail-row{display:flex;justify-content:space-between;gap:24px;padding:16px 0;border-bottom:1px solid #eee;overflow-wrap:anywhere}.dl-dialog .dl-muted{margin-top:20px}
@media(max-width:1100px){.dl-profit{padding:30px 26px}.dl-breakdown{padding:30px 26px}.dl-hero-number{font-size:48px}.dl-chart,.dl-records,.dl-column{padding:26px}.dl-hero-footer{padding:24px 26px}.cw-overview-shell .content{padding:26px 24px}.dl-chart-row{grid-template-columns:minmax(0,1fr);gap:12px}.dl-axis{margin-left:0}}
@media(max-width:680px){.cw-overview-shell .content{padding:24px 18px}.cw-overview-shell .page-heading h1{font-size:30px}.dl-hero{grid-template-columns:minmax(0,1fr);border-radius:22px}.dl-profit{padding:28px 26px 24px}.dl-hero-number{font-size:52px}.dl-breakdown{border-left:0;border-top:1px solid #eee;padding:24px 26px 16px}.dl-hero-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:22px 26px}.dl-hero-footer .dl-action{grid-column:1/-1;padding:10px 0;border:0}.dl-receivable-values strong{font-size:24px}.dl-supplementary{gap:20px}.dl-chart,.dl-records,.dl-column{padding:24px}.dl-section{margin-top:20px}.dl-panel{border-radius:22px}.dl-funds{grid-template-columns:minmax(0,1fr)}.dl-column+.dl-column{border-left:0;border-top:1px solid #eee}.dl-axis{margin-right:116px;font-size:11px}.dl-series{grid-template-columns:minmax(0,1fr) 104px}.dl-series strong{font-size:13px}.dl-record{grid-template-columns:minmax(0,1fr) auto;gap:12px}.dl-record .dl-action{grid-column:1/-1;padding:0}.dl-dashboard .record-browser-controls{display:flex;flex-wrap:wrap}.dl-dashboard .record-browser-controls label:first-child{flex:1 1 140px}.dl-dashboard .record-browser-controls [role=status]{flex-basis:100%}.dl-dashboard .record-browser-nav{display:flex;flex-wrap:wrap}.dl-dashboard .record-browser-nav button{padding:8px}.dl-dashboard .dl-metric strong{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.dl-dashboard *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.cw-overview-shell .mobile-menu>summary{align-items:center;gap:14px}.dl-mobile-logo{width:76px;height:50px;object-fit:cover;border-radius:0;vertical-align:middle;margin-right:12px}
.dl-axis{position:relative;display:block;height:20px}.dl-axis span{position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap}.dl-axis span:first-child{left:0}.dl-axis span:last-child{left:100%}
.dl-axis span:last-child{transform:translateX(-50%)}
.cw-unified-shell .cw-new-entry{display:block;text-decoration:none;background:transparent!important;color:#fff!important;border:1px solid var(--cw-on-dark-muted);font-weight:600;margin-bottom:12px;border-radius:12px}.cw-unified-shell .sidebar a.nav-item{text-decoration:none;display:block}.cw-unified-shell .mobile-menu>summary{align-items:center;gap:14px}


/* Data-first neutral surfaces. */
.cw-unified-shell{background:#f5f6f8;color:#20252c;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.cw-unified-shell .sidebar{padding:20px 12px}.cw-unified-shell .sidebar .brand img{object-fit:contain;width:120px;height:82px}.cw-unified-shell .sidebar .nav-item{font-size:14px;padding:12px;border-radius:8px}.cw-unified-shell .topbar,.cw-unified-shell .mobile-menu{background:#fff;border-bottom:1px solid #e5e7eb}
.dl-panel{border:1px solid #e3e6ea;border-radius:14px;box-shadow:none}.dl-section{margin-top:8px;gap:16px}.dl-dues-panel{padding:20px}.dl-column{padding:20px 24px}.dl-profit,.dl-breakdown{padding:24px}.dl-hero-number{font-size:42px;margin:16px 0}.dl-hero-footer{padding:16px 24px;background:#fff}.dl-margin{font-size:16px;margin-bottom:18px!important}.dl-composition{height:16px}.dl-dashboard h2{font-size:23px}.dl-muted,.dl-context{font-size:14px}.dl-chart,.dl-records{padding:24px}
.cw-unified-shell table{font-variant-numeric:tabular-nums}.cw-unified-shell th{background:var(--cw-surface-soft);color:var(--cw-text-muted)}.cw-unified-shell input,.cw-unified-shell select{min-height:44px}.cw-unified-shell button:focus-visible{outline:2px solid #0150CC;outline-offset:3px}
@media(max-width:680px){.dl-column,.dl-profit,.dl-breakdown,.dl-chart,.dl-records{padding:18px}.dl-hero-number{font-size:36px}.dl-panel{border-radius:12px}.dl-dues{gap:12px}.dl-body{gap:16px}}

.dl-dues-panel{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.dl-dues-panel h3{grid-column:1/-1}.dl-dues-panel .dl-metric{display:block}.dl-dues-panel .dl-metric strong{margin-top:8px;font-size:28px}.dl-fund-details>summary{padding:12px 0;min-height:44px;cursor:pointer;color:#535d6a;font-size:14px}.dl-fund-details[open]>summary{margin-bottom:8px}
@media(max-width:680px){.dl-dues-panel{grid-template-columns:1fr;gap:14px}.dl-dues-panel .dl-metric{display:flex;align-items:baseline}.dl-dues-panel .dl-metric strong{margin:0;font-size:24px}}

.dl-dues{grid-template-columns:minmax(0,1fr)}

/* Original demo sidebar: brand identity plus labelled navigation. */
.cw-unified-shell .sidebar{background:#293037;color:#e3e7ec;border-right:1px solid #20262c;padding:18px 10px;scrollbar-color:#68717b #293037}
.cw-unified-shell .sidebar .brand{padding:0 8px 18px;margin:0}
.cw-unified-shell .sidebar .brand img{width:100%;max-width:100%;height:132px;object-fit:contain;box-sizing:border-box;background:#fff;border-radius:8px;padding:6px}
.cw-unified-shell .sidebar .brand strong{color:#fff;font-size:19px;margin-top:12px}
.cw-unified-shell .sidebar nav{gap:5px}
.cw-unified-shell .sidebar .nav-item{display:flex;align-items:center;gap:12px;min-height:48px;color:#dce1e7;background:transparent;border-radius:8px;padding:12px 14px;text-align:left;line-height:1.4;box-shadow:none}
.cw-unified-shell .sidebar .nav-item:hover{background:#ffffff12;color:#fff}
.cw-unified-shell .sidebar .nav-item.active{background:#1259C4;color:#fff}
.cw-unified-shell .sidebar .nav-item:focus-visible{outline:2px solid #fff;outline-offset:2px}
.cw-unified-shell .sidebar .cw-new-entry{margin-bottom:10px}
.cw-unified-shell .nav-item[data-native-page]::before{content:'';display:block;width:22px;height:22px;flex:0 0 22px;background:currentColor;mask:var(--nav-icon) center/contain no-repeat;-webkit-mask:var(--nav-icon) center/contain no-repeat}
.cw-unified-shell [data-native-page="overview"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v9h9M9%203.5A9%209%200%201%200%2020.5%2015H9Z%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="checks"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%223%22%20width%3D%2214%22%20height%3D%2219%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%203h6v3H9Zm0%208%201.5%201.5L14%209m-5%208h6%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="gl"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%204h11a3%203%200%200%201%203%203v13H8a3%203%200%200%201-3-3Z%22%2F%3E%3Cpath%20d%3D%22M5%2017a3%203%200%200%201%203-3h11M9%208h6%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="periods"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%205h14v15H5ZM5%2010h14M9%203v4M15%203v4M9%2015l2%202%204-4%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="purchase"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203h2l3%2013h11l3-10H6%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2220%22%20r%3D%221%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2220%22%20r%3D%221%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="sale"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2020V10m6%2010V5m6%2015v-7m5%207H2M3%206l7-4%206%206%205-3%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="funds"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207h17l-4-4m5%2014H4l4%204M20%207l-4%204M4%2017l4-4%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="stock"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%207%209-4%209%204v11l-9%204-9-4Zm0%200%209%204%209-4M12%2011v11m-5-17%209%204%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="logistics"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%205h12v12H2Zm12%204h4l4%205v3h-8%22%2F%3E%3Ccircle%20cx%3D%226%22%20cy%3D%2218%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2218%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="expenses"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%202h10l4%204v16l-4-2-3%202-3-2-4%202Zm4%206h6m-6%205h6m-6%204h4%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="platform"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%223%22%20width%3D%2220%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%2021h10m-5-4v4M6%208h12m-12%204h7%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="exchange"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%208a8%208%200%200%201%2014-3l3%203m0-5v5h-5M20%2016a8%208%200%200%201-14%203l-3-3m0%205v-5h5%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="bank"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m2%207%2010-5%2010%205ZM4%2010v9m5-9v9m6-9v9m5-9v9M2%2022h20%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="opening"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%204h7l2%203h9v14H3Z%22%2F%3E%3Cpath%20d%3D%22M7%2012h10m-10%204h7%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="reports"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%202v5m10-5v5M3%2010h18m-14%205h3m4%200h3m-10%204h3%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="rates"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h17l-4-4M21%2018H4l4%204%22%2F%3E%3Cpath%20d%3D%22M8%2010v7m-2-5h4m4-2h4m-4%203h4m-4%203h4%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="evidence"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%203H5v18h14V8Zm0%200v5h5M8%2012h8m-8%204h8%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="audit"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%206v6l4%203%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell .mobile-nav .nav-item{display:flex;align-items:center;gap:10px;text-align:left}
@media(prefers-reduced-motion:reduce){.cw-unified-shell .nav-item{transition:none}}

/* Local preview banner must not cover the enlarged brand. */
.uat-banner ~ #app .cw-unified-shell .sidebar{top:38px}

.cw-unified-shell .sidebar .cw-new-entry{background:transparent!important}

/* Approved ABC overview: editorial metrics, cash ribbons, visual batch dossiers. */
.df-topline{display:grid;grid-template-columns:1fr 1.35fr 1.35fr 1.35fr;gap:14px;margin:8px 0 20px;align-items:stretch}
.df-intro{padding:12px 4px}.df-intro h2{font-size:24px;line-height:1.35;margin:9px 0}.df-eyebrow{font-size:12px;letter-spacing:.1em;color:#687383;font-weight:650}
.df-kpi{background:white;border:1px solid #e8ecf0;border-radius:16px;padding:20px;display:grid;grid-template-columns:42px 1fr;gap:8px 12px;align-content:center;min-width:0}
.df-kpi-icon{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#fff0e6;color:#1259C4;font-size:28px}.df-kpi:nth-child(3) .df-kpi-icon{background:#eaf4ff;color:#236db5}.df-kpi:nth-child(4) .df-kpi-icon{background:#e7f5ef;color:#197b68}
.df-kpi .dl-metric strong{font-size:clamp(19px,1.65vw,28px);white-space:normal;overflow-wrap:anywhere}.df-kpi .dl-muted{grid-column:2;font-size:12px;margin:0}.df-kpi .dl-metric{gap:9px}.df-kpi .dl-metric>span{font-size:13px}
.df-main{display:grid;grid-template-columns:minmax(0,3fr) minmax(240px,1fr);gap:16px}.df-flow{padding:24px;min-width:0}.df-flow h2{margin:0;font-size:23px}.df-flow>select{margin:10px 0;width:100px;padding:8px;border:1px solid #dee4ea;border-radius:8px;background:white}.df-followup{display:grid;gap:16px}.df-due,.df-result{padding:22px}.df-due{background:linear-gradient(140deg,#fff6ed,#fff)}.df-due h3{margin:12px 0}.df-due-number{display:block;color:#1259C4;font-size:28px;overflow-wrap:anywhere}.df-result .dl-metric{margin:0 0 16px}.df-result .dl-metric strong{font-size:24px}
.df-cash-chart{display:grid;grid-template-columns:minmax(155px,1fr) minmax(70px,1fr) minmax(180px,1.15fr);align-items:center;min-height:290px;margin:12px 0}.df-cash-source{background:linear-gradient(130deg,#203343,#2d4859);color:white;padding:24px 18px;border-radius:16px;display:grid;gap:12px;z-index:1;box-shadow:0 8px 20px #24374612}.df-cash-source strong{font-size:26px;overflow-wrap:anywhere}.df-cash-source small{color:#d1dce4;line-height:1.5}.df-symbol{font-size:30px}.df-ribbons{width:100%;height:100%;min-height:260px;opacity:.85}.df-cash-ends{display:grid;gap:12px}.df-cash-end{padding:16px;border:0;text-align:left;border-radius:12px;display:grid;gap:6px;cursor:pointer;color:#192532;min-height:85px}.df-cash-end strong{font-size:22px;overflow-wrap:anywhere}.df-cash-end small{color:#4d5c6b}.df-tone-0{background:#fff2e7}.df-tone-1{background:#edf6ff}.df-tone-2{background:#eaf7f2}.df-tone-3{background:#f2eef9}.df-flow-note{grid-column:1/-1;font-size:13px;color:#755027}.df-footnote{font-size:12px;color:#677483;line-height:1.7;margin:10px 0}.df-empty{grid-column:1/-1;background:#f6f8fa;padding:60px 24px;border-radius:12px;color:#647180;text-align:center}
.df-batch-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0 24px}.df-batch-card{border:1px solid #e6ebef;border-radius:14px;overflow:hidden}.df-batch-visual{height:190px;padding:18px;position:relative;overflow:hidden}.df-batch-visual h3{font-size:20px;margin:8px 0;position:relative;z-index:1;max-width:65%}.df-batch-visual svg{position:absolute;width:65%;height:135px;right:0;bottom:2px;filter:drop-shadow(0 10px 7px #54340b15)}.df-image-note{position:absolute;left:18px;bottom:16px;font-size:11px;color:#59636b}.df-batch-values{display:grid;grid-template-columns:1fr 1fr;background:white;padding:16px;gap:12px}.df-batch-values>div{display:grid;gap:7px;font-size:12px;color:#667583}.df-batch-values strong{font-size:20px;color:#202a36}.df-batch-card>.dl-action{background:white;width:100%;border-radius:0;text-align:right;padding:12px 16px;border-top:1px solid #edf0f3}
@media(min-width:981px){.cw-unified-shell .sidebar{width:230px}.cw-unified-shell .main{margin-left:230px}.cw-unified-shell .sidebar nav button{padding:12px 16px;font-size:14px}.cw-unified-shell .sidebar .brand{margin-bottom:16px}}
@media(max-width:1200px){.df-topline{grid-template-columns:repeat(3,1fr)}.df-intro{grid-column:1/-1}.df-main{grid-template-columns:1fr}.df-followup{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.df-topline{grid-template-columns:1fr;gap:10px}.df-kpi{grid-template-columns:42px 1fr;padding:16px}.df-kpi .dl-metric{display:flex;justify-content:space-between;align-items:center;gap:10px}.df-kpi .dl-metric strong{font-size:21px}.df-main,.df-followup{grid-template-columns:1fr}.df-flow{padding:18px}.df-cash-chart{grid-template-columns:1fr;gap:12px}.df-ribbons{display:none}.df-cash-source{padding:20px}.df-cash-ends{border-left:3px solid #d9e4e9;padding-left:14px;margin-left:20px}.df-cash-end{min-height:80px;position:relative}.df-cash-end:before{content:'';position:absolute;left:-17px;top:50%;width:17px;height:2px;background:#c5d4dc}.df-batch-cards{grid-template-columns:1fr}.df-batch-visual{height:180px}.df-intro h2{font-size:22px}}
.cw-overview-shell:has(.df-topline) .page-heading{margin-bottom:10px}.cw-overview-shell:has(.df-topline) .page-heading h1{font-size:26px}.cw-overview-shell:has(.df-topline) .content{padding-top:14px}.dl-body:has(.df-topline){gap:14px}.df-topline{margin:0}.df-intro h2{font-size:21px!important}.df-main .df-flow{padding:20px}.df-cash-chart{min-height:230px}.df-ribbons{min-height:220px}.df-cash-source{padding:20px 16px}.df-due,.df-result{padding:18px}.df-flow .dl-muted{font-size:12px}.df-followup .dl-muted{font-size:12px}.df-cash-end strong{font-size:21px}
.df-intro h1{font-size:32px;line-height:1.2;margin:8px 0 12px;letter-spacing:-.04em}.df-intro .df-date{font-size:12px;color:#6c7886;margin-top:10px}.df-intro .df-refresh{min-height:30px;padding:4px 10px;font-size:12px;margin-top:8px;border-radius:8px}.df-cash-end span{font-size:14px;line-height:1.25}.df-cash-end strong{line-height:1.2}.df-cash-end small{font-size:12px;line-height:1.3}.df-cash-end{padding:12px 16px;gap:5px}.df-flow .opening-warning{font-size:12px;line-height:1.4;padding:8px 10px;margin:6px 0 0}.df-flow .df-footnote{margin-top:4px}.df-main .dl-action{min-height:34px;padding:6px 0}.df-flow .df-cash-chart{margin:6px 0}.df-kpi{min-height:126px}.df-kpi .dl-metric strong{font-weight:650}.df-batch-card .dl-action{color:#263c4a}.df-followup{grid-template-rows:auto 1fr}.df-due-number{font-weight:650}
@media(max-width:650px){.df-intro h1{font-size:30px}.df-kpi{min-height:100px}.df-cash-end{min-height:84px}.df-intro .df-refresh{min-height:44px}.df-main .dl-action{min-height:44px}}
/* Screenshot comparison pass: match the reference's compact first-screen proportions. */
.df-intro{padding:0;position:relative;align-self:center}.df-intro h1{margin:0 0 10px;line-height:1.15}.df-intro .dl-muted{font-size:13px}.df-intro .df-date{font-size:11px;margin:8px 0}.df-intro .df-refresh{position:absolute;right:0;bottom:-25px;font-size:11px;min-height:28px;padding:3px 9px;margin:0}.df-topline{min-height:125px}.df-kpi{padding:16px;min-height:125px}.df-kpi-icon svg{width:28px;height:28px}.df-cash-source>.df-kpi-icon{background:transparent;color:white;width:32px;height:32px}.df-cash-source{gap:10px}.df-flow{position:relative}.df-flow>select{position:absolute;top:14px;right:20px;width:80px;min-height:34px;padding:5px}.df-flow>h2{padding-right:90px}.df-flow>p.dl-muted{margin:8px 0 12px;max-width:85%}.df-flow .df-cash-chart{height:276px;min-height:0;margin:8px 0}.df-ribbons{min-height:0;height:276px}.df-cash-ends{gap:8px}.df-cash-end{min-height:80px;padding:10px 14px}.df-cash-end strong{font-size:22px}.df-data-note{font-size:12px;color:#677483}.df-data-note summary{cursor:pointer;padding:4px 0}.df-data-note .opening-warning{margin:4px 0}.df-followup .df-due{padding:16px}.df-followup .df-result{padding:16px}.df-followup .df-due h3{margin:8px 0}.df-followup .df-result .dl-metric{margin-bottom:10px}.df-followup .df-due-number{font-size:28px}.df-flow .df-footnote{font-size:11px}.df-main{align-items:stretch}.df-batch-visual{height:160px}.df-batch-visual svg{height:115px}.df-batch-values{padding:12px 16px}.df-batch-card>.dl-action{padding:8px 16px;min-height:36px}
@media(max-width:650px){.df-intro .df-refresh{position:static;min-height:44px;margin-top:6px}.df-topline{min-height:0}.df-kpi{min-height:95px}.df-flow>p.dl-muted{max-width:100%}.df-flow .df-cash-chart{height:auto;min-height:0}.df-cash-ends{gap:10px}.df-cash-end{min-height:84px}.df-batch-card>.dl-action{min-height:44px}}
.df-batch-due{background:white;border-top:1px solid #eef0f2;padding:10px 16px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;color:#626e7a}.df-batch-due strong{color:#22313e}.df-batch-progress{background:#fff;padding:8px 16px;display:grid;grid-template-columns:1fr auto;gap:6px;font-size:11px;color:#657582}.df-batch-progress .dl-progress{grid-column:1/-1;margin:0;grid-row:2}.df-batch-progress .dl-progress i{background:#349b89}.df-batch-visual{height:150px}
@media(min-width:651px){.df-flow .df-cash-chart{height:244px}.df-ribbons{height:244px}.df-cash-end{min-height:72px;padding:8px 14px;gap:3px}.df-cash-end strong{font-size:22px}.df-cash-end small{font-size:11px}.df-data-note{display:inline-block;margin-left:12px}.df-flow .df-footnote{margin-top:8px}.df-cash-ends{gap:8px}}
@media(min-width:651px){.df-flow .df-cash-chart{height:auto;min-height:var(--flow-height,244px)}.df-ribbons{height:var(--flow-height,244px)}.df-flow-note{margin:12px 0 0}}
@media(min-width:651px){.df-ribbons{height:100%;min-height:var(--flow-height,244px);align-self:stretch}}

/* Demo refinement: compact visual hierarchy, no financial semantics changed. */
.cw-unified-shell .sidebar{background:linear-gradient(150deg,#283139,#1d262e)}
.cw-unified-shell .sidebar .brand{padding:0 8px 12px;margin-bottom:8px}
.cw-unified-shell .sidebar .brand img{height:118px;padding:0;object-fit:cover}
.cw-unified-shell .sidebar .brand strong{font-size:16px;margin-top:8px}
.cw-unified-shell .sidebar .cw-new-entry{background:transparent!important;font-size:16px!important}
.cw-unified-shell .sidebar .nav-item.active{background:#613425;color:#1C77FF;box-shadow:inset 3px 0 #086BFF}
.cw-unified-shell .sidebar nav{gap:2px}
.cw-unified-shell .sidebar nav button{min-height:40px;padding:9px 14px;font-size:14px}
.cw-overview-shell:has(.df-topline) .content{padding:16px 22px 28px;max-width:1500px}
.cw-overview-shell:has(.df-topline) .topbar{min-height:54px;padding:6px 24px}
.df-topline{grid-template-columns:.78fr 1.15fr 1.15fr 1.15fr;min-height:112px;gap:14px}
.df-intro h1{font-size:38px;font-weight:700;letter-spacing:-.04em}
.df-intro .df-refresh{right:4px;bottom:-8px;min-height:28px}
.df-kpi{min-height:112px;padding:16px;grid-template-columns:48px 1fr;border-radius:12px}
.df-kpi-icon{width:48px;height:48px;color:#086BFF;background:#fff1e7}
.df-kpi-icon svg{width:32px;height:32px}
.df-kpi .dl-metric strong{font-size:clamp(22px,1.85vw,30px);letter-spacing:-.035em;font-weight:700}
.df-kpi:nth-child(3) .df-kpi-icon{color:#087bff}.df-kpi:nth-child(4) .df-kpi-icon{color:#009b83}
.df-main{grid-template-columns:minmax(0,3fr) minmax(250px,1fr);gap:14px}
.df-main .df-flow{padding:18px 20px}.df-flow h2{font-size:26px;font-weight:700}
.df-flow>p.dl-muted{margin:6px 0 10px;font-size:13px}
.df-cash-chart{grid-template-columns:minmax(155px,.95fr) minmax(80px,1.45fr) minmax(220px,1.1fr)}
.df-cash-source{border-radius:12px;background:linear-gradient(135deg,#193449,#263b4a);padding:22px 18px;gap:8px}
.df-cash-source strong{font-size:28px;font-weight:700}.df-cash-source>span:not(.df-kpi-icon){font-size:15px}
.df-cash-end{grid-template-columns:38px minmax(0,1fr);column-gap:12px;border-radius:12px}
.df-cash-end>.df-kpi-icon{grid-column:1;grid-row:1/4;background:transparent;width:38px;height:44px;align-self:center}
.df-cash-end>span:not(.df-kpi-icon),.df-cash-end>strong,.df-cash-end>small{grid-column:2}
.df-cash-end strong{font-size:24px;font-weight:700}.df-cash-end small{font-size:13px}
.df-tone-0{background:#fff3e9}.df-tone-1{background:#eaf5ff}.df-tone-2{background:#eaf8f3}
.df-tone-1>.df-kpi-icon{color:#087bff}.df-tone-2>.df-kpi-icon{color:#009b83}
.df-ribbons{opacity:1;display:block;min-width:0}
.df-due-number{color:#0965EF}.df-due{display:grid;grid-template-columns:48px 1fr;gap:6px 12px;align-content:center}
.df-due>.df-kpi-icon{grid-row:1/3}.df-due h3{margin:0!important;align-self:center}.df-due-number{grid-column:2;font-size:32px!important}.df-due>p,.df-due>.dl-action{grid-column:2}
.df-followup{gap:12px;grid-template-rows:1fr 1fr}.df-result .dl-metric strong{font-size:24px}.df-main .dl-action{color:#084DB5}
.df-batch-cards{gap:14px;margin:12px 0 18px}.tp-section:has(.df-batch-cards){padding:16px 18px}
.tp-section:has(.df-batch-cards) .tp-heading>div{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap}
.tp-section:has(.df-batch-cards) .tp-heading h2{font-size:25px;margin:0}.tp-section:has(.df-batch-cards) .tp-heading p{margin:0;font-size:13px}
.df-batch-card{border-radius:12px}.df-batch-visual{height:145px;padding:14px 16px}.df-batch-visual h3{font-size:21px;max-width:70%;margin:6px 0}.df-batch-visual svg{height:100px;width:60%}
.df-batch-values{grid-template-columns:1fr 1fr 1.2fr;gap:8px;padding:12px}
.df-batch-values>div{gap:5px;padding:0 8px;border-left:1px solid #edf0f3;min-width:0}.df-batch-values>div:first-child{border:0;padding-left:0}
.df-batch-values strong{font-size:17px;overflow-wrap:anywhere}.df-batch-values .df-batch-due{display:grid;border-top:0;font-size:12px;align-content:start}
.df-batch-progress{padding:8px 12px}.df-batch-card>.dl-action{padding:7px 12px;min-height:32px}
@media(min-width:651px){.df-flow .df-cash-chart{height:var(--flow-height,244px);min-height:var(--flow-height,244px)}.df-ribbons{height:100%;min-height:0}.df-cash-end{min-height:72px;padding:8px 12px}.df-cash-end strong{font-size:22px}}
@media(max-width:1200px){.df-topline{grid-template-columns:repeat(3,minmax(0,1fr))}.df-intro{grid-column:1/-1}.df-main{grid-template-columns:1fr}.df-followup{grid-template-columns:1fr 1fr;grid-template-rows:auto}.df-intro .df-refresh{position:static}.df-batch-values{grid-template-columns:1fr 1fr}.df-batch-values .df-batch-due{grid-column:1/-1;border-left:0;padding:4px 0;display:flex}}
@media(max-width:650px){.df-topline{grid-template-columns:1fr}.df-intro h1{font-size:30px}.df-kpi{min-height:96px}.df-main,.df-followup{grid-template-columns:1fr}.df-flow h2{font-size:23px}.df-cash-chart{grid-template-columns:1fr}.df-ribbons{display:none}.df-batch-values{grid-template-columns:1fr 1fr 1.2fr}.df-batch-values .df-batch-due{grid-column:auto;display:grid;border-left:1px solid #edf0f3;padding:0 8px}.df-batch-cards{grid-template-columns:1fr}.df-batch-card>.dl-action,.df-intro .df-refresh{min-height:44px}.df-kpi .dl-metric strong{font-size:24px}.df-due-number{font-size:28px!important}}
/* Keep the three-card summary in the reference's first desktop screen. */
@media(min-width:1201px){
 .df-followup{grid-template-rows:auto auto;align-content:start}
 .df-due{padding:14px!important;gap:4px 10px}.df-due>.dl-action{min-height:28px;padding:3px 0}.df-due-number{font-size:32px!important}
 .df-result{padding:14px!important;display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;align-content:start}.df-result>.dl-muted,.df-result>.dl-action{grid-column:1/-1}.df-result .dl-metric{margin:0}.df-result .dl-metric strong{font-size:20px}.df-result>.dl-action{min-height:28px;padding:3px 0}
 .df-flow .df-cash-chart{height:auto;min-height:var(--flow-height,244px)}.df-ribbons{align-self:stretch;height:100%;min-height:0;max-height:none}
 .df-cash-end{min-height:72px;line-height:1.2;padding:7px 12px}.df-cash-end strong{font-size:22px}.df-cash-end small{font-size:12px}
 .df-flow .df-footnote{margin:6px 0 0}.df-flow>.dl-action{min-height:28px;padding:3px 0}
 .df-batch-visual{height:130px}.df-batch-values{padding:9px 12px}.df-batch-progress{padding:5px 12px}.df-batch-card>.dl-action{min-height:30px;padding:4px 12px}
 .df-topline,.df-kpi{min-height:108px}.df-kpi{padding:12px 16px}.df-topline .dl-metric strong{line-height:1.3}
}

.df-ribbon-slot{position:relative;align-self:stretch;min-width:0}.df-ribbon-slot .df-ribbons{position:absolute;inset:0;width:100%;height:100%;min-height:0}
@media(max-width:650px){.df-ribbon-slot{display:none}}
@media(min-width:1201px){.df-batch-visual{height:110px}.df-batch-visual svg{height:85px}.tp-section:has(.df-batch-cards){padding-top:12px}.df-batch-cards{margin-top:8px}.dl-body:has(.df-topline){gap:10px}}
/* All non-mobile charts grow with translated endpoint labels. */
@media(min-width:651px){.df-flow .df-cash-chart{height:auto;min-height:var(--flow-height,244px)}}
/* Product-led batch cards: same metric semantics, reference-style composition. */
.df-batch-cards>.df-batch-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e5eaf0;border-radius:14px;min-width:0}
.df-batch-cards .df-batch-visual{height:170px;flex:0 0 170px;padding:16px;isolation:isolate;position:relative}
.df-batch-card:nth-child(1) .df-batch-visual{background:linear-gradient(125deg,#fff1e3,#fffaf6)}
.df-batch-card:nth-child(2) .df-batch-visual{background:linear-gradient(125deg,#eaf4ff,#f7fbff)}
.df-batch-card:nth-child(3) .df-batch-visual{background:linear-gradient(125deg,#eaf7ef,#f7fcf9)}
.df-batch-cards .df-eyebrow{font-size:13px;letter-spacing:.035em;color:#536478;font-weight:550}
.df-batch-cards .df-batch-visual h3{font-size:20px;line-height:1.35;max-width:52%;margin:5px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;position:relative;z-index:2;color:#142333}
.df-batch-cards .df-batch-visual .df-product-art{position:absolute;right:3px;bottom:0;width:70%;height:145px;object-fit:contain;z-index:1}
.df-batch-cards .df-image-note{left:14px;bottom:8px;font-size:10px;line-height:1.3;z-index:3;background:#ffffffd9;border-radius:4px;padding:2px 4px;color:#52616f}
.df-batch-cards .df-batch-badge{position:absolute;right:10px;top:10px;display:flex;align-items:center;gap:4px;max-width:52%;padding:5px 7px;background:#ffffffd9;border-radius:8px;font-size:11px;line-height:1.3;color:#985000;z-index:3}
.df-batch-card .df-card-icon{position:static;width:22px;height:22px;flex:0 0 22px;filter:none;color:#425b73}
.df-batch-badge .df-card-icon{width:15px;height:15px;flex-basis:15px;color:#085DDD}
.df-batch-cards .df-batch-values{display:grid;grid-template-columns:1fr 1fr 1.35fr;padding:11px 10px;gap:0;min-height:66px}
.df-batch-cards .df-batch-values>div{display:grid;grid-template-columns:20px minmax(0,1fr);grid-template-rows:auto;column-gap:5px;row-gap:3px;border:0;border-left:1px solid #e9edf2;padding:0 8px;min-width:0;align-content:start;background:none}
.df-batch-cards .df-batch-values>div:first-child{border-left:0;padding-left:0}
.df-batch-values .df-card-icon{width:20px;height:20px;grid-column:1;grid-row:1/3}
.df-batch-cards .df-batch-values>div>span,.df-batch-cards .df-batch-values>div>strong,.df-batch-cards .df-batch-values>div>small{grid-column:2}
.df-batch-cards .df-batch-values>div>span{font-size:11px;color:#66778a;line-height:1.3}
.df-batch-cards .df-batch-values strong{font-size:15px;color:#16283a;line-height:1.3;font-weight:650;overflow-wrap:anywhere}
.df-batch-cards .df-batch-values small{font-size:11px;line-height:1.3;color:#66778a}
.df-batch-cards .df-batch-values .df-batch-due{grid-column:auto;font-size:11px;flex-wrap:initial}
.df-batch-due>.df-card-icon{color:#0C66ED}
.df-batch-cards .df-batch-progress{display:flex;align-items:center;gap:10px;padding:0 12px 8px;min-height:23px;font-size:10px}
.df-batch-progress small{font-size:10px;white-space:nowrap}.df-batch-progress .dl-progress{flex:1;margin:0;height:4px}
.df-batch-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #edf0f3;padding:6px 10px;margin-top:auto;min-height:48px;background:#fff}
.df-batch-route{display:flex;align-items:center;gap:6px;font-size:12px;color:#45627a;min-width:0}.df-batch-route .df-card-icon{color:#087bdb}
.df-batch-footer .dl-action{border:1px solid #e0e6ed;border-radius:7px;padding:6px 10px;min-height:34px;font-size:12px;color:#26394c;white-space:nowrap}
.df-photo-pending{position:absolute;bottom:30px;right:16px;color:#778695;font-size:13px}
@media(max-width:1100px) and (min-width:651px){.df-batch-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.df-batch-cards{grid-template-columns:1fr}.df-batch-cards .df-batch-visual{height:180px;flex-basis:180px}.df-batch-cards .df-batch-visual .df-product-art{height:155px}.df-batch-footer .dl-action{min-height:44px}.df-batch-cards .df-batch-values strong{font-size:16px}}
.source-summary{padding:20px!important;margin:0 0 20px;border-left:4px solid #126CF4!important}.source-summary h2{font-size:20px;margin:0 0 8px}.source-batches{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.source-batches a{display:block;padding:10px 12px;border:1px solid #e0e4e9;border-radius:8px;background:#fafbfc;color:#354453;text-decoration:none;min-height:44px;box-sizing:border-box}.source-batches a:hover{border-color:#126CF4}.source-summary .dl-muted{line-height:1.6}

.tp-section{margin:32px 0;color:#173e43}.tp-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:30px;font-weight:700}.tp-toolbar{display:flex;gap:12px;align-items:center;margin:16px 0}.tp-toolbar input{min-width:0;flex:1;border:1px solid #d6dfdc;border-radius:14px;padding:14px;background:white;font:inherit}.tp-section button,.tp-detail button,.tp-entry{min-height:44px;cursor:pointer}.tp-board{display:grid;gap:18px;padding:32px;border-radius:28px;min-height:250px}.tp-map{grid-template-columns:repeat(3,minmax(0,1fr));background:linear-gradient(145deg,#eee9d9 0%,#fbf7ed 40%,#c4e5df 40%,#78b8b6 100%);border:1px solid #e4e3d8}.tp-list{grid-template-columns:1fr;background:#f4f6f4;padding:16px}.tp-batch{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:8px;border:1px solid #d7e5df;border-radius:20px;padding:22px;background:#fffefa;box-shadow:0 9px 24px #193c4310;color:#183d42;font:inherit;overflow-wrap:anywhere}.tp-batch:hover,.tp-batch:focus-visible{border-color:#1C6EE8;box-shadow:0 8px 24px #e85c1c18;outline:2px solid #1C6EE8;outline-offset:3px}.tp-crate{font-size:34px;color:#216FE4}.tp-batch small,.tp-muted{color:#596a6b;font-size:14px;line-height:1.6}.tp-detail{width:min(680px,90vw);max-height:90dvh;padding:30px;border:1px solid #e3e5dc;border-radius:24px;color:#183d42;background:#fffefa;overflow:auto}.tp-detail::backdrop{background:#173e4366}.tp-detail>button:first-child{float:right}.tp-quantities{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;clear:both}.tp-quantities>div{display:flex;flex-direction:column;gap:8px;background:#eef4f0;padding:18px;border-radius:14px}.tp-quantities strong{font-size:28px}.tp-balance{padding:12px 18px;border:1px solid #dae4df;border-radius:14px;margin:12px 0}.tp-detail>button:not(:first-child){display:block;text-align:left;margin:10px 0}.tp-entry{display:block;border-radius:14px;background:#126AEF;color:white;padding:12px 18px;margin-top:24px;text-decoration:none}.tp-empty{background:#fffefa;padding:24px;border-radius:16px;grid-column:1/-1}
@media(max-width:700px){.tp-heading{font-size:24px;align-items:flex-start}.tp-board{padding:16px;gap:14px;grid-template-columns:1fr}.tp-toolbar{flex-wrap:wrap}.tp-toolbar input{flex-basis:100%}.tp-detail{box-sizing:border-box;width:100%;max-width:100%;max-height:88dvh;margin:auto 0 0;border-radius:22px 22px 0 0;padding:20px}.tp-heading .dl-action{font-size:14px}.tp-quantities strong{font-size:24px}}
@media(prefers-reduced-motion:reduce){.tp-section *,.tp-detail *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.tp-map{background:linear-gradient(#ffffff22,#ffffff22),url(/harbor.png) center/cover;min-height:420px;align-content:center}.tp-map .tp-batch{background:#fffefaf5;backdrop-filter:blur(12px)}

/* V2: strategy-port scene and readable, real-data batch dossiers. */
.tp-section{--tp-ink:#213c39;--tp-accent:#2F5DA3;--tp-line:#dcded3;color:var(--tp-ink);background:#f8f7f2;border:1px solid var(--tp-line);border-radius:24px;padding:28px;overflow:hidden}
.tp-heading h2{margin:5px 0 0;font-size:32px;letter-spacing:-.04em;color:var(--tp-ink)}
.tp-eyebrow{display:block;font-size:11px;letter-spacing:.16em;color:#697569;font-weight:700}
.tp-heading button,.tp-toolbar button{background:#fffdf8;border:1px solid var(--tp-line);border-radius:10px;color:var(--tp-ink);padding:10px 16px;font-size:14px;box-shadow:none}
.tp-toolbar input{border-radius:10px;border-color:var(--tp-line);background:#fffdf8}
.tp-scene{height:350px;position:relative;border-radius:16px;background:#b4c8bc url('/harbor-v2.png') center 51%/cover;overflow:hidden;margin:20px 0 0}
.tp-scene[hidden]{display:none}
.tp-scene:after{content:'';position:absolute;inset:40% 0 0;background:linear-gradient(transparent,#173c37d9);pointer-events:none}
.tp-scene-caption{position:absolute;bottom:24px;left:26px;right:20px;z-index:1;color:#fffdf1;display:flex;flex-direction:column;gap:6px;text-shadow:0 1px 3px #193e3a}
.tp-scene-caption strong{font-size:26px;font-weight:600;letter-spacing:.03em}
.tp-scene-caption span{font-size:14px}
.tp-board{padding:20px 0 0;min-height:0;gap:14px;border:none;border-radius:0;align-content:start}
.tp-map{background:none;grid-template-columns:repeat(3,minmax(0,1fr))}
.tp-map .tp-batch,.tp-batch{background:#fffefa;backdrop-filter:none;padding:20px;gap:16px;border:1px solid #dcded3;border-radius:12px;box-shadow:0 3px 9px #203b3810;color:var(--tp-ink);transition:transform .18s ease,box-shadow .18s ease;min-width:0}
.tp-batch:hover{transform:translateY(-3px);box-shadow:0 8px 20px #203b3819}
.tp-batch:hover,.tp-batch:focus-visible{border-color:#2F5DA3;outline-color:#2F5DA3}
.tp-card-top{display:flex;align-items:center;justify-content:space-between;width:100%;gap:10px}
.tp-batch-code{font-size:12px;letter-spacing:.07em;border-left:3px solid #2F5DA3;padding-left:9px;font-weight:700}
.tp-card-arrow{color:#2F5DA3;font-size:22px}
.tp-goods{font-size:18px;line-height:1.4;font-weight:600}
.tp-card-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;border-top:1px solid #e9e9df;padding-top:16px}
.tp-card-metrics>span{display:flex;flex-direction:column;gap:3px}
.tp-card-metrics strong{font-size:27px;font-weight:600;font-variant-numeric:tabular-nums}
.tp-card-metrics small{font-size:12px;color:#627069}
.tp-card-route{font-size:12px;color:#536b63;background:#eef2eb;border-radius:5px;padding:5px 9px}
.tp-list{background:transparent}
.tp-list .tp-batch{display:grid;grid-template-columns:110px minmax(0,1fr) minmax(200px,1fr) 120px;align-items:center}
.tp-list .tp-card-metrics{border:0;padding:0}
.tp-list .tp-card-arrow{display:none}
.tp-section .tp-muted{color:#616e65;font-size:12px}
.tp-detail{background:#fffdf5;border-color:#b9c4b6;border-radius:16px;box-shadow:0 24px 100px #152f3540}
.tp-detail h2{padding-top:16px;font-size:26px;letter-spacing:-.02em;overflow-wrap:anywhere}
.tp-quantities>div{background:#eff2e9;border:1px solid #e0e5d9;border-radius:9px}
.tp-detail .tp-entry{background:#2D5591}
@media(max-width:1000px){.tp-map{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-list .tp-batch{grid-template-columns:1fr 1fr}.tp-scene{height:300px}}
@media(max-width:700px){.tp-section{padding:16px;border-radius:18px;margin:24px 0}.tp-heading{gap:8px}.tp-heading h2{font-size:25px}.tp-heading button{padding:8px 10px;font-size:12px;white-space:nowrap}.tp-scene{height:240px;background-position:45% center}.tp-scene-caption{left:18px;bottom:20px}.tp-scene-caption strong{font-size:21px}.tp-scene-caption span{font-size:12px}.tp-board,.tp-list .tp-batch{grid-template-columns:1fr}.tp-list .tp-card-metrics{border-top:1px solid #e9e9df;padding-top:16px}.tp-batch{padding:18px}.tp-toolbar{gap:8px}.tp-detail{border-radius:18px 18px 0 0}.tp-detail h2{font-size:23px}}
@media(min-width:1001px){.tp-map .tp-batch:only-child{grid-column:1/-1;display:grid;grid-template-columns:110px minmax(0,1fr) minmax(200px,1fr) 120px;align-items:center}.tp-map .tp-batch:only-child .tp-card-metrics{border:0;padding:0}.tp-map .tp-batch:only-child .tp-card-arrow{display:none}}

/* Batch dossier: separate real stock, batch logistics and cash information. */
.tp-detail{box-sizing:border-box;width:min(820px,calc(100vw - 40px));padding:0 24px 24px;background:#f5f4ed;color:#193e38;border:1px solid #b8c6b6;scrollbar-color:#91a293 #f5f4ed}
.tp-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:1;background:#f5f4ed;padding:22px 0 16px;border-bottom:1px solid #d6ddce;margin-bottom:18px}
.tp-detail-header h2{font-size:25px;margin:8px 0 0;padding:0;line-height:1.4}
.tp-detail-header .tp-eyebrow{color:#576c5d}
.tp-detail-header button{flex-shrink:0;padding:10px 14px;background:#fffdf7;border:1px solid #becab9;border-radius:8px;color:#244a40}
.tp-detail-panel{padding:20px;margin:14px 0;background:#fffef8;border:1px solid #dedfd2;border-radius:12px;min-width:0}
.tp-detail-panel h3{font-size:17px;line-height:1.4;margin:0 0 16px;border-left:3px solid #2962B7;padding-left:10px}
.tp-detail-panel h4{margin:0 0 12px;font-size:15px}
.tp-detail-panel .tp-muted{font-size:13px;color:#596b5f;line-height:1.7;margin:12px 0 0}
.tp-quantities{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tp-quantities>div{padding:14px 10px;background:#f1f4eb;border:0;border-radius:8px;min-width:0}
.tp-quantities span{font-size:12px;color:#586c5d}.tp-quantities strong{font-size:28px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.tp-transport-tag{display:inline-block;background:#244c43;color:#fff9e8;padding:7px 12px;border-radius:6px;font-size:14px}
.tp-detail-route{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;margin-top:18px;font-size:16px;overflow-wrap:anywhere}.tp-route-arrow{color:#2B5DA7}
.tp-balance{padding:16px;background:#f8f8f1;border-color:#e0e4d6;border-radius:8px;overflow-wrap:anywhere}.tp-balance p{font-size:15px;font-variant-numeric:tabular-nums;line-height:1.6}
.tp-detail-panel>button{display:block;width:100%;text-align:left;padding:12px 0;border-bottom:1px solid #e2e5d9;overflow-wrap:anywhere;line-height:1.6}
.tp-detail button:focus-visible,.tp-detail a:focus-visible{outline:2px solid #295AA3;outline-offset:3px}
.tp-detail .tp-entry{margin-top:20px;border-radius:8px;text-align:center;box-sizing:border-box;line-height:1.6}
@media(max-width:700px){.tp-detail{width:100%;max-width:100%;max-height:92dvh;padding:0 16px 20px;border-radius:18px 18px 0 0}.tp-detail-header{padding-top:18px}.tp-detail-header h2{font-size:20px}.tp-detail-panel{padding:16px}.tp-quantities{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tp-detail-route{gap:10px;font-size:14px}.tp-detail-header button{min-width:52px}}

/* Interactive caravan: the scene is a control surface, not a decorative banner. */
.tp-caravan{background:#193c33;border:1px solid #b39b65;border-radius:18px;overflow:hidden;color:#fff7df;margin-top:20px;box-shadow:0 14px 36px #16392c1a}
.tp-caravan[hidden]{display:none}.tp-caravan-banner{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:20px 24px;background:linear-gradient(110deg,#17372e,#315448);border-bottom:1px solid #b59d6166}.tp-caravan-banner>span{font-size:11px;letter-spacing:.12em;color:#e0cf9f}.tp-caravan-banner h3{font-size:25px;margin:0;border-left:3px solid #d4ae61;padding-left:16px;color:#fff7df}.tp-caravan-banner p{margin:0;color:#e3eadb;font-size:15px;overflow-wrap:anywhere}
.tp-caravan-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr)}.tp-caravan-world{min-height:400px;position:relative;background:linear-gradient(#0b302112,#133a2538),url('/harbor-v2.png') center/cover;isolation:isolate;display:flex;align-items:center;justify-content:space-around;gap:12px;padding:30px 18px}
.tp-caravan-route{position:absolute;top:55%;left:10%;right:10%;height:6px;border-top:3px dashed #ffecb4;filter:drop-shadow(0 2px 2px #15382b);z-index:-1;transform:rotate(-9deg)}
.tp-station{position:relative;flex:0 1 122px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 10px!important;border:2px solid #bd9d63!important;border-radius:45% 45% 10px 10px!important;background:linear-gradient(#f8efcc,#d7c495)!important;color:#263c2d!important;box-shadow:0 10px 0 #193c3255,0 14px 26px #132f3255;transition:transform .2s,border-color .2s;font:inherit;cursor:pointer}
.tp-station-0{align-self:flex-end;margin-bottom:36px}.tp-station-1{align-self:center}.tp-station-2{align-self:flex-start;margin-top:42px}.tp-station svg{width:70px;height:70px;fill:#bc9d5c33;stroke:#294735;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.tp-station-number{font-size:11px;letter-spacing:.12em;font-weight:700}.tp-station strong{font-size:14px;line-height:1.4}.tp-station[aria-pressed=true]{border-color:#fff3c3!important;background:linear-gradient(#fff7db,#e9cd8c)!important;transform:translateY(-8px);outline:3px solid #295BA7;outline-offset:3px}.tp-station:focus-visible{outline:3px solid #fff;outline-offset:5px}.tp-station-panel{background:#fffdf3;color:#233d32;padding:24px;max-height:430px;overflow:auto;border-left:1px solid #cbbb91}.tp-station-panel h4{font-size:26px;margin:8px 0 18px}.tp-station-panel h5{font-size:15px;margin:18px 0 8px}.tp-station-fact{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:11px 0;border-bottom:1px solid #e4e2d3;font-size:14px;overflow-wrap:anywhere}.tp-station-fact strong{font-size:22px;font-variant-numeric:tabular-nums;text-align:right}.tp-station-open{background:#2D5899!important;color:white!important;border:0!important;border-radius:8px;width:100%;padding:13px;margin-top:18px;font:inherit;min-height:44px}.tp-caravan-caption{padding:14px 20px;margin:0;color:#dedfc6;font-size:12px;line-height:1.7}.tp-caravan-empty{padding:30px}.tp-map .tp-batch[aria-pressed=true]{border:2px solid #2D5694;background:#fff8e5;box-shadow:inset 5px 0 #2D5694}.tp-map .tp-batch:only-child{grid-template-columns:110px minmax(0,1fr) minmax(160px,1fr) 120px}
@media(max-width:1000px){.tp-caravan-layout{grid-template-columns:1fr}.tp-caravan-world{min-height:300px}.tp-station-panel{border-left:0;border-top:1px solid #cbbb91;max-height:none}.tp-station-0{margin-bottom:12px}.tp-station-2{margin-top:12px}}
@media(max-width:700px){.tp-caravan-banner{padding:16px;gap:8px}.tp-caravan-banner>span{width:100%}.tp-caravan-banner h3{font-size:21px}.tp-caravan-banner p{font-size:13px}.tp-caravan-world{min-height:230px;padding:20px 12px;gap:10px}.tp-station{padding:12px 6px!important;flex-basis:90px}.tp-station svg{width:48px;height:48px}.tp-station strong{font-size:12px}.tp-station-number{font-size:10px}.tp-station-panel{padding:18px}.tp-station-panel h4{font-size:23px}.tp-station-fact strong{font-size:20px}.tp-map .tp-batch:only-child{display:flex}.tp-caravan-caption{font-size:11px;padding:12px}}
.tp-caravan-banner>*{min-width:0;max-width:100%;overflow-wrap:anywhere}

/* Scene-first hotspots: small flags leave the illustrated buildings visible. */
.tp-caravan-world{min-height:460px;display:block;padding:0;background-position:center;overflow:hidden}
.tp-caravan-route{top:56%;left:30%;right:20%;border-top:2px dashed #f6e5aa99;transform:rotate(32deg);height:0;filter:drop-shadow(0 1px 2px #13362a)}
.tp-station{position:absolute;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:7px;min-height:44px;min-width:44px;max-width:45%;padding:6px!important;margin:0!important;border:0!important;border-radius:6px!important;background:transparent!important;box-shadow:none!important;color:#fffbed!important;transform:translate(-50%,-50%)!important;transition:filter .15s}
.tp-station-0{left:30%;top:38%}.tp-station-1{left:72%;top:76%}.tp-station-2{left:69%;top:28%}
.tp-station strong{padding:7px 10px;background:#1d4039e8;border:1px solid #c5af78;border-radius:2px 7px 7px 2px;font-size:12px;font-weight:600;box-shadow:0 3px 10px #12382b44;overflow-wrap:anywhere}
.tp-hotspot-dot{position:relative;width:10px;height:10px;flex-shrink:0;background:#f8de9a;border:2px solid #fff4cf;border-radius:50%;box-shadow:0 0 0 4px #20392d80,0 2px 6px #112b24}
.tp-station[aria-pressed=true]{outline:none;background:transparent!important}.tp-station[aria-pressed=true] strong{background:#244E8D;border-color:#ffe8b1}.tp-station[aria-pressed=true] .tp-hotspot-dot{box-shadow:0 0 0 6px #f4d57a55,0 0 18px #ffe6a6}.tp-station:hover{filter:brightness(1.15)}.tp-station:focus-visible{outline:3px solid #fff3c7;outline-offset:2px}
.tp-station-dismiss{display:none}
@media(max-width:1000px){.tp-caravan-world{min-height:350px}}
@media(max-width:700px){.tp-caravan-world{min-height:320px;background-position:center}.tp-station strong{font-size:11px;padding:6px 8px}.tp-station{gap:5px;max-width:48%}.tp-station-0{left:23%;top:39%}.tp-station-1{left:72%;top:76%}.tp-station-2{left:66%;top:25%}.tp-caravan:not([data-expanded=true]) .tp-station-panel{display:none}.tp-station-dismiss{display:block;margin-left:auto;min-height:44px;background:transparent;color:#365747;border:1px solid #c8d0bf;border-radius:8px;padding:8px 12px;font:inherit}.tp-station-panel{max-height:65dvh;overflow:auto}}

/* Always-readable batch facts, independent of the scenic controls. */
.tp-caravan-summary{display:flex;flex-wrap:wrap;gap:0;background:#fffdf2;color:#254337;border-bottom:1px solid #c5ba97;padding:8px 12px}.tp-caravan-summary>div{flex:1 1 130px;min-width:0;padding:12px 16px;border-right:1px solid #e2decf;display:flex;flex-direction:column;gap:6px}.tp-caravan-summary span{font-size:12px;color:#536958;overflow-wrap:anywhere}.tp-caravan-summary strong{font-size:22px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.tp-scene-note{position:absolute;left:12px;right:12px;bottom:8px;margin:0;background:#173e32dc;color:#fff4da;font-size:11px;line-height:1.5;padding:6px 10px;border-radius:6px;pointer-events:none}.tp-station-panel h4{scroll-margin-top:70px}.tp-station-panel h4:focus-visible{outline:2px solid #9a6f32;outline-offset:4px}
@media(max-width:700px){.tp-caravan-summary{padding:4px}.tp-caravan-summary>div{flex-basis:43%;padding:10px}.tp-caravan-summary strong{font-size:19px}.tp-station-2{max-width:55%}.tp-station-panel h4{scroll-margin-top:60px}.tp-scene-note{font-size:10px}}
/* Numbers first: shipment details are plain text and forms, not game progress. */
.tp-shipment{border-top:1px solid #d9ded3;margin-top:16px;padding-top:12px}
.tp-shipment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tp-shipment-grid label{display:flex;flex-direction:column;gap:6px;font-size:14px;color:#253d36}
.tp-shipment input,.tp-shipment select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #a5b4aa;border-radius:8px;background:#fff;color:#172e27;padding:10px;font:inherit}
.tp-shipment button{min-height:44px;margin:6px 10px 6px 0}
.tp-shipment details{margin-top:12px}.tp-shipment summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.tp-shipment-history{border-top:1px solid #d9ded3;padding:10px 0;overflow-wrap:anywhere}
.tp-shipment p{overflow-wrap:anywhere}.tp-shipment .tp-warning{color:#a02919}
@media(max-width:600px){.tp-shipment-grid{grid-template-columns:1fr}.tp-shipment{font-size:15px}}

/* Simple batch table: current presentation, no scene mounted. */
.tp-section{margin:8px 0;padding:24px;background:#fff;color:#20252c;border:1px solid #e3e6ea;border-radius:14px;--tp-ink:#20252c;--tp-line:#e3e6ea;--tp-accent:#0150CC}
.tp-heading h2{font-size:23px;letter-spacing:-.02em;margin:0 0 8px}.tp-heading p{font-weight:400}.tp-toolbar{margin:16px 0}.tp-toolbar input{background:#fff;border-color:#ccd2da}.tp-table-wrap{max-width:100%;overflow:auto}.tp-data-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;font-variant-numeric:tabular-nums}.tp-data-table th{padding:12px 10px;text-align:right;background:#f6f7f9;color:#596270;font-size:13px}.tp-data-table th:first-child{width:32%;text-align:left}.tp-data-table td{padding:14px 10px;text-align:right;vertical-align:middle;border-bottom:1px solid #e9ebef;overflow-wrap:anywhere}.tp-data-table td:first-child{text-align:left}.tp-data-table tbody tr:hover{background:#fafbfc}.tp-data-table .tp-goods{display:block;font-size:14px;font-weight:400;margin-top:6px;color:#596270}.tp-data-table button{font-size:14px;white-space:normal}.tp-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.tp-detail{background:#fff;color:#20252c;border-color:#e3e6ea}.tp-detail-header{background:#fff!important}.tp-detail-panel{background:#fff!important;border-color:#e3e6ea}.tp-detail h2,.tp-detail h3,.tp-detail h4{color:#20252c}.tp-quantities>div{background:#f5f6f8}.tp-muted{color:#596270}.tp-balance{border-color:#e3e6ea;background:#fff}.tp-entry{background:#1259C4}.tp-detail-route{background:#f5f6f8}
@media(max-width:700px){.tp-section{padding:16px}.tp-data-table,.tp-data-table tbody,.tp-data-table tr,.tp-data-table td{display:block;width:100%;box-sizing:border-box}.tp-data-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.tp-data-table tr{border:1px solid #e3e6ea;border-radius:10px;margin-bottom:12px;padding:12px}.tp-data-table td{display:flex;justify-content:space-between;gap:14px;border:0;padding:7px 0;text-align:right}.tp-data-table td::before{content:attr(data-label);color:#596270;text-align:left;flex-shrink:0}.tp-data-table td:first-child{display:block;border-bottom:1px solid #e9ebef;padding-bottom:12px;margin-bottom:6px}.tp-data-table td:first-child::before{display:none}.tp-data-table td:last-child{justify-content:flex-end}.tp-data-table td:last-child::before{display:none}.tp-data-table .tp-empty{display:block;text-align:left}.tp-detail{border-radius:16px 16px 0 0}}

.cw-unified-shell .tp-data-table{min-width:0}

/* Source contributions stay visible and separate from posted cash/equity. */
.dl-source-capital{margin:0 0 24px;padding:24px}.dl-source-capital-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}.dl-source-capital-person{padding:18px;border:1px solid #e2e6ec;border-radius:12px;background:#f7f9fc;min-width:0}.dl-source-capital-person h3{font-size:16px;margin:0 0 8px}.dl-source-capital-person strong{font-size:clamp(20px,2vw,28px);overflow-wrap:anywhere}.dl-source-capital-total{font-weight:650}.dl-source-capital-note{color:#626e7c;font-size:14px;line-height:1.6}@media(max-width:700px){.dl-source-capital{padding:18px}.dl-source-capital-grid{grid-template-columns:1fr}.dl-source-capital-person strong{font-size:24px}}

/* A2 approved presentation. All selectors stay within the overview shell. */
.cw-overview-shell{--ink:#151718;--muted:#626a72;--line:#dbe1e5;--accent:#0A6BFC;--radius:3px;background:#f9fafb}
.cw-overview-shell .sidebar{background:linear-gradient(145deg,#1b1d1e,#0d0f10);color:#fff;border:0}
.cw-overview-shell .sidebar .brand{padding:6px 8px 20px;color:#fff}
.cw-overview-shell .sidebar .brand img{width:100%;height:145px;object-fit:contain;background:#fff;border-radius:3px}
.cw-overview-shell .sidebar .brand>strong{display:none}
.cw-overview-shell .sidebar .nav-item{color:#e5e8ea;border-radius:2px;min-height:46px;font-size:14px}
.cw-overview-shell .sidebar .nav-item:hover{background:#292e31;color:#fff}
.cw-overview-shell .sidebar .nav-item.active,.cw-overview-shell .sidebar .cw-new-entry{background:var(--accent);color:#fff}
.cw-overview-shell .topbar{border-bottom:1px solid var(--line);background:#fff;gap:16px}
.cw-overview-shell .content{max-width:1700px;padding:24px 28px;margin:0 auto}
.cw-overview-shell .cw-dashboard{min-width:0}
.cw-overview-shell .a2-dashboard{display:block;min-width:0}
.a2-dashboard .a2-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.a2-dashboard .a2-eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;color:var(--muted)}
.a2-dashboard .a2-intro h1{font-size:44px;line-height:1.15;letter-spacing:-1.7px;font-weight:850;margin:6px 0 10px}
.a2-dashboard .a2-intro .dl-muted{font-size:12px;margin:0}
.a2-dashboard .a2-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.a2-dashboard .a2-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:11px 16px;background:#fff;color:var(--ink);border:1px solid var(--ink);border-radius:2px;text-decoration:none;font-weight:700;font-size:14px}
.a2-dashboard .a2-primary{background:var(--accent);border-color:var(--accent);color:#fff}
.a2-dashboard .a2-refresh{min-height:44px;border-radius:2px;background:#fff}
.a2-dashboard .a2-icon{width:26px;height:26px;flex-shrink:0}
.a2-dashboard .a2-main{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(285px,1fr);gap:18px;align-items:start}
.a2-dashboard .a2-source-slot{min-width:0;display:flex;flex-direction:column}
.a2-dashboard .a2-source-slot>.dl-source-capital{order:0}.a2-dashboard .a2-workflow{order:1}
.a2-dashboard .a2-bar{background:var(--ink);color:#fff;font-size:20px;line-height:1.35;padding:11px 14px;margin:0;font-weight:800;border-radius:0}
.a2-dashboard .dl-source-capital{padding:0;margin:0;border:0;background:transparent;box-shadow:none;border-radius:0}
.a2-dashboard .dl-source-capital-grid{gap:10px;margin:12px 0 0}
.a2-dashboard .dl-source-capital-person{padding:0;border:1px solid var(--line);background:#fff;border-radius:3px;overflow:hidden}
.a2-dashboard .a2-person-head{display:flex;justify-content:center;padding:18px 12px}
.a2-dashboard .cw-identity{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:0;font-weight:750;font-size:18px}
.a2-dashboard .cw-avatar{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background-color:#f5eee2;border:1px solid #e2d9c7;background-repeat:no-repeat;background-image:url('/shared/avatars.png');background-size:400% auto}
.a2-dashboard .cw-avatar-may{background-image:url('/dashboard-may.png');background-size:130% auto;background-position:50% 20%}
.a2-dashboard .cw-avatar-tripleh{background-position:12% 20%}
.a2-dashboard .cw-avatar-feeling{background-position:91% 20%}
.a2-dashboard .a2-person-money{margin:0 13px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0}
.a2-dashboard .a2-person-money>span{display:block;font-size:11px;color:#59626b;margin-bottom:10px}
.a2-dashboard .a2-person-money>strong{display:block;font-size:clamp(16px,1.35vw,25px);white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:-.5px;overflow-wrap:normal}
.a2-dashboard .a2-person-row{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:11px;padding:14px 13px}
.a2-dashboard .a2-badge{font-size:10px;white-space:nowrap;background:#DBE9FF;color:#10418B;padding:5px 9px;border-radius:2px}
.a2-dashboard .dl-source-capital-total{font-size:13px;margin:15px 0 5px}
.a2-dashboard .dl-source-capital>.dl-muted{font-size:11px;line-height:1.6;margin:0}
.a2-dashboard .a2-source-details{font-size:12px;margin-top:8px}
.a2-dashboard summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px}
.a2-dashboard summary::before{content:'＋';font-weight:600;flex-shrink:0}.a2-dashboard details[open]>summary::before{content:'−'}
.a2-dashboard .a2-source-details .dl-muted,.a2-dashboard .dl-source-capital-note{font-size:12px;line-height:1.7}
.a2-dashboard .a2-workflow{padding:14px 16px;margin-top:12px;background:#eaf0f3;border-radius:2px}
.a2-dashboard .a2-workflow h2{font-size:17px;margin:0 0 14px}
.a2-dashboard .a2-steps{display:flex;align-items:center;justify-content:space-between;gap:8px}
.a2-dashboard .a2-steps>div{display:flex;align-items:center;gap:8px}
.a2-dashboard .a2-steps strong{font-size:12px;white-space:nowrap}
.a2-dashboard .a2-steps small{font-size:9px;color:#67737c;align-self:flex-start}
.a2-dashboard .a2-steps>div>.a2-icon{width:31px;height:31px}
.a2-dashboard .a2-steps>.a2-icon{width:22px;height:22px}
.a2-dashboard .a2-cash{padding:18px 20px 16px;color:#fff;background:linear-gradient(135deg,#222526,#111314);border-top:3px solid var(--accent)}
.a2-dashboard .a2-cash h2{font-size:23px;margin:0 0 10px;color:#fff}
.a2-dashboard .a2-cash select{background:#222;color:#fff;border:1px solid #788086;min-height:44px;width:100%;margin-bottom:4px;border-radius:2px}
.a2-dashboard .a2-cash-row{display:flex;align-items:center;gap:16px;min-height:96px;border-bottom:1px solid #454b4f;position:relative}
.a2-dashboard .a2-cash-row>.a2-icon{width:40px;height:40px}
.a2-dashboard .a2-cash-row>div{min-width:0}
.a2-dashboard .a2-cash-row>div>span{display:block;font-size:13px;color:#e2e5e8;margin-bottom:6px}
.a2-dashboard .a2-cash-row strong{font-size:24px;line-height:1.3;letter-spacing:-.4px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.a2-dashboard .a2-cash-arrow{color:#1D77FF;background:#1e2122;font-size:24px;font-weight:800;position:absolute;left:29px;top:45px;line-height:1}
.a2-dashboard .a2-cash-bottom{padding-top:14px;display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px}
.a2-dashboard .a2-cash-bottom strong{font-size:20px}
.a2-dashboard .a2-cash p{font-size:10px;color:#bbc2c7;line-height:1.7;margin:14px 0 5px}
.a2-dashboard .a2-cash-link{background:none;border:0;color:#fff;min-height:44px;padding:10px 0;font-size:12px;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.a2-dashboard .a2-lower{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:18px;margin-top:24px;align-items:start}
.a2-dashboard .a2-batches-slot{min-width:0}
.a2-dashboard .tp-section{margin:0;padding:0;border:0;background:none;box-shadow:none}
.a2-dashboard .tp-heading{background:var(--ink);color:#fff;padding:11px 14px;margin:0;display:block}
.a2-dashboard .tp-heading h2{font-size:20px;margin:0;color:#fff}
.a2-dashboard .tp-heading p{font-size:10px;color:#c4cbd0;margin:4px 0 0}
.a2-dashboard .df-batch-cards{gap:10px;margin:12px 0 16px}
.a2-dashboard .df-batch-card{border-radius:3px;border-color:var(--line);box-shadow:none;background:#fff}
.a2-dashboard .df-batch-visual{padding:12px;min-height:200px;background:#fff;display:flex;flex-direction:column;gap:5px}
.a2-dashboard .df-batch-visual h3{font-size:15px;max-width:none;padding-right:0;margin:0}
.a2-dashboard .df-batch-badge{position:static;align-self:flex-start;margin:5px 0;font-size:10px}
.a2-dashboard .df-product-art.a2-cover{position:static;width:100%;max-width:none;height:120px;object-fit:cover;object-position:center 64%;margin:0}
.a2-dashboard .df-image-note{position:static;font-size:9px;color:#59656e;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center}
.a2-dashboard .a2-cover-note{font-size:9px;color:#63707a;line-height:1.6}
.a2-dashboard .df-photo-pending{position:static;min-height:150px;background:#f1f4f6;display:grid;place-items:center;font-size:11px;color:#66737d;flex:1}
.a2-dashboard .df-batch-values{padding:10px 8px;gap:6px;grid-template-columns:1fr}
.a2-dashboard .df-batch-values>div{border:0;display:grid;grid-template-columns:20px 1fr auto;gap:5px;align-items:center;padding:5px 0}
.a2-dashboard .df-batch-values strong{font-size:13px;grid-column:auto}
.a2-dashboard .df-batch-values span,.a2-dashboard .df-batch-values small{font-size:10px}
.a2-dashboard .df-card-icon{width:20px;height:20px}
.a2-dashboard .df-batch-footer{padding:10px 8px;display:block}
.a2-dashboard .df-batch-route{font-size:10px;margin-bottom:8px}
.a2-dashboard .df-batch-footer button{min-height:44px;font-size:11px}
.a2-dashboard .df-batch-progress{margin:0 8px 8px}
.a2-dashboard .tp-toolbar{gap:8px;flex-wrap:wrap}.a2-dashboard .tp-toolbar input{min-width:0;width:100%}
.a2-dashboard .tp-table-wrap{max-width:100%;overflow-x:auto}
.a2-dashboard .tp-data-table{min-width:530px;font-size:12px}
.a2-dashboard .a2-review{background:#fff;border:1px solid var(--line);padding-bottom:14px}
.a2-dashboard .a2-review-state{font-size:13px;padding:12px 14px;margin:0}
.a2-dashboard .a2-review-row{display:flex;align-items:center;gap:12px;min-height:68px;padding:12px 14px;text-decoration:none;color:var(--ink);border-top:1px solid var(--line)}
.a2-dashboard .a2-review-row>span:first-of-type{display:grid;gap:4px}.a2-dashboard .a2-review-row small{font-size:11px;color:#6c747c}
.a2-dashboard .a2-review-arrow{margin-left:auto;color:#0E49A2}
.a2-dashboard .a2-review>.dl-action{margin:6px 14px;min-height:44px;display:inline-flex;align-items:center;font-size:12px}
.a2-dashboard .a2-more{margin-top:22px;border:1px solid var(--line);background:#fff;padding:0 16px;border-radius:2px}
.a2-dashboard .a2-more>summary{padding:12px 0;font-size:14px;font-weight:700}
.a2-dashboard .a2-existing{padding-top:12px}.a2-dashboard .a2-existing .df-intro{display:none}.a2-dashboard .a2-existing .df-topline{grid-template-columns:repeat(3,minmax(0,1fr))}
.a2-dashboard .a2-data-note{font-size:12px;margin-bottom:16px}
.a2-dashboard .dl-source-capital-person .cw-identity>span:last-child{overflow-wrap:anywhere}
.a2-dashboard a:focus-visible,.a2-dashboard button:focus-visible,.a2-dashboard summary:focus-visible,.a2-dashboard select:focus-visible{outline:3px solid #1878cf;outline-offset:3px}
.a2-dashboard a:hover,.a2-dashboard button:hover{filter:brightness(.95)}
@media(max-width:1200px){
 .cw-overview-shell .content{padding:22px}
 .a2-dashboard .a2-main{grid-template-columns:1fr}
 .a2-dashboard .a2-person-money>strong{font-size:26px}
 .a2-dashboard .a2-cash>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
 .a2-dashboard .a2-cash-row{border:0;border-right:1px solid #454b4f;padding-right:10px;min-height:84px}
 .a2-dashboard .a2-cash-row:nth-child(3){border:0}
 .a2-dashboard .a2-cash-bottom{grid-column:1/-1;border-top:1px solid #454b4f}
 .a2-dashboard .a2-cash h2{font-size:20px}
 .a2-dashboard .a2-lower{grid-template-columns:1fr}
 .a2-dashboard .a2-review-row{min-height:60px}
}
@media(max-width:800px){
 .cw-overview-shell .content{padding:18px 14px}
 .a2-dashboard .a2-hero{display:block;margin-bottom:18px}.a2-dashboard .a2-intro h1{font-size:36px}.a2-dashboard .a2-actions{justify-content:flex-start;margin-top:16px}
 .a2-dashboard .a2-button{font-size:13px;padding:10px 12px;flex:1}.a2-dashboard .a2-refresh{font-size:12px}
 .a2-dashboard .dl-source-capital-grid{grid-template-columns:1fr}
 .a2-dashboard .dl-source-capital-person{display:grid;grid-template-columns:110px minmax(0,1fr)}
 .a2-dashboard .a2-person-head{grid-row:1/3;align-items:center;padding:14px 8px}.a2-dashboard .cw-identity{flex-direction:column;gap:7px;font-size:15px;text-align:center}
 .a2-dashboard .cw-avatar{width:56px;height:56px}.a2-dashboard .a2-person-money{border-top:0;margin:0 12px 0 0;padding:16px 0 12px}
 .a2-dashboard .a2-person-money>span{font-size:10px}.a2-dashboard .a2-person-money>strong{font-size:23px}.a2-dashboard .a2-person-row{padding:10px 12px 12px 0}
 .a2-dashboard .a2-steps{gap:4px}.a2-dashboard .a2-steps>div{flex-direction:column;gap:6px;position:relative;flex:1}.a2-dashboard .a2-steps small{position:absolute;left:0;top:0}.a2-dashboard .a2-steps strong{font-size:10px}.a2-dashboard .a2-steps>.a2-icon{width:16px;height:16px}
 .a2-dashboard .a2-cash>div{display:block}.a2-dashboard .a2-cash-row{border-right:0;border-bottom:1px solid #454b4f!important;min-height:94px}.a2-dashboard .a2-cash-row strong{font-size:25px}
 .a2-dashboard .a2-cash-bottom{border:0;padding:14px 0 0}.a2-dashboard .a2-cash{padding:16px 18px}
 .a2-dashboard .df-batch-cards{grid-template-columns:1fr}.a2-dashboard .df-batch-card{display:block}
 .a2-dashboard .df-batch-visual{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px;gap:5px 12px}
 .a2-dashboard .df-batch-visual>.df-eyebrow{grid-column:2;grid-row:1}.a2-dashboard .df-batch-visual>h3{grid-column:2;grid-row:2}.a2-dashboard .df-batch-badge{grid-column:2;grid-row:3}
 .a2-dashboard .df-product-art.a2-cover,.a2-dashboard .df-photo-pending{grid-column:1;grid-row:1/5;height:145px;min-height:120px;object-fit:contain}
 .a2-dashboard .df-image-note,.a2-dashboard .a2-cover-note{grid-column:2;font-size:9px}
 .a2-dashboard .df-batch-values{grid-template-columns:repeat(3,minmax(0,1fr));padding:10px}.a2-dashboard .df-batch-values>div{display:flex;flex-wrap:wrap;justify-content:center;text-align:center}.a2-dashboard .df-batch-values strong{width:100%}
 .a2-dashboard .df-batch-footer{display:flex;align-items:center;gap:8px}.a2-dashboard .df-batch-route{margin:0}.a2-dashboard .df-batch-footer button{margin-left:auto}
 .a2-dashboard .a2-more{padding:0 12px}.a2-dashboard .a2-more>summary{font-size:12px}.a2-dashboard .a2-existing .df-topline{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:no-preference){.a2-dashboard button,.a2-dashboard a{transition:filter .15s ease}}

/* Restore existing identity artwork in native headers on every native page. */
.native-workspace .topbar .cw-identity{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;font-size:14px}
.native-workspace .topbar .cw-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border-radius:50%;background-color:#f1eee7;color:#555;font-size:14px;overflow:hidden}
.native-workspace .topbar .cw-avatar-tripleh,.native-workspace .topbar .cw-avatar-feeling{background-image:url('/shared/avatars.png');background-repeat:no-repeat;background-size:400% auto}
.native-workspace .topbar .cw-avatar-tripleh{background-position:12% 20%}.native-workspace .topbar .cw-avatar-feeling{background-position:91% 20%}
.native-workspace .topbar .cw-avatar-may{background-image:url('/dashboard-may.png');background-repeat:no-repeat;background-size:130% auto;background-position:50% 20%}

/* Legacy fixed visual heights must not squeeze out real product titles. */
.cw-overview-shell .a2-dashboard .df-batch-card{background:#fff}
.cw-overview-shell .a2-dashboard .df-batch-card .df-batch-visual{height:auto;min-height:310px;background:#fff;overflow:visible}
.cw-overview-shell .a2-dashboard .df-batch-card .df-product-art.a2-cover{flex-shrink:0}
.cw-overview-shell .a2-dashboard .tp-heading{border-radius:0}
@media(max-width:800px){.cw-overview-shell .a2-dashboard .df-batch-card .df-batch-visual{height:auto;min-height:0}}

/* White action text needs normal-text contrast while retaining the orange theme. */
.cw-overview-shell .a2-dashboard .a2-primary{background:#0056D6;border-color:#0056D6}
.cw-overview-shell .sidebar .nav-item.active{background:#0056D6;color:#fff}
.cw-overview-shell .sidebar .cw-new-entry{background:transparent;color:#fff;border:1px solid #63676b}
@media(max-width:700px){.cw-overview-shell .a2-dashboard .tp-data-table{min-width:0}}
/* The legacy CTA has !important; override only this A2 sidebar instance. */
.cw-overview-shell .sidebar .cw-new-entry{background:transparent!important}
.cw-overview-shell .a2-dashboard .a2-batches-slot .tp-section{border-radius:0;overflow:visible}

/* Compact batch summaries; full dossier opens through the existing detail action. */
.cw-overview-shell .a2-dashboard .a2-lower{grid-template-columns:minmax(0,1fr);gap:16px}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-batch-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-batch-card{min-width:0;overflow:hidden;border-radius:12px}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-batch-visual{position:relative;flex:0 0 auto;display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto auto;gap:4px 12px;padding:14px;height:auto;min-height:100px;align-content:center;overflow:hidden}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-eyebrow{grid-column:2;font-size:11px;line-height:1.4}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-batch-visual h3{grid-column:2;font-size:16px;line-height:1.35;margin:0}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-batch-badge{grid-column:2;position:static;margin:0;font-size:11px}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-product-art.a2-cover,
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-photo-pending{position:static;grid-column:1;grid-row:1 / 4;width:64px;height:64px;min-height:0;max-width:64px;object-fit:contain;margin:0;border-radius:8px;background:#f5f7f5;font-size:10px;text-align:center}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-image-note,
.cw-overview-shell .a2-dashboard .a2-batches-slot .a2-cover-note{grid-column:1 / -1;font-size:10px;line-height:1.4;min-height:0;margin:0}
.cw-overview-shell .a2-dashboard .a2-batches-slot .a2-cover-note{display:none}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-batch-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 14px;gap:8px;border-top:1px solid #e2e7e5}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-batch-values>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px;min-width:0;padding:0}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-batch-values .df-card-icon{display:none}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-batch-values span{font-size:11px}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-batch-values strong{font-size:13px}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-batch-values small{font-size:11px}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-batch-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 14px;border-top:1px solid #e2e7e5}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-batch-route{display:none}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-batch-footer button{width:100%;min-height:44px;margin:0;font-size:12px;border-radius:8px}
@media(max-width:1000px){.cw-overview-shell .a2-dashboard .a2-batches-slot .df-batch-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.cw-overview-shell .a2-dashboard .a2-batches-slot .df-batch-cards{grid-template-columns:minmax(0,1fr)}}

.cw-overview-shell .a2-dashboard .a2-batches-slot .tp-card-open{grid-column:2;display:block;text-align:left;border:0;background:none;color:inherit;padding:0;margin:0;min-height:44px;cursor:pointer}
.cw-overview-shell .a2-dashboard .a2-batches-slot .df-product-art[role=button]{cursor:zoom-in}
.tp-card-open:focus-visible,.df-product-art[role=button]:focus-visible{outline:3px solid #0B3B8C;outline-offset:3px}
.tp-dossier-cover{margin:16px 0;padding:16px;background:#f5f7f5;border-radius:12px;text-align:center}
.tp-dossier-cover img{display:block;width:100%;max-width:420px;height:220px;object-fit:contain;margin:0 auto 12px}
.tp-dossier-cover figcaption{font-size:12px;line-height:1.5}

.funds-live{color-scheme:light;--ink:#1c2020;--muted:#657070;--line:#e2e7e5;--surface:#fff;--bg:#f4f6f4;--orange:#0160F2;--orange-soft:#EBF2FF;--ease:cubic-bezier(.2,.7,.2,1);--duration:220ms}
.funds-live *{box-sizing:border-box}
.funds-live{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,'PingFang HK','Microsoft JhengHei',sans-serif;font-size:14px;line-height:1.5}
.funds-live button{font:inherit;cursor:pointer;touch-action:manipulation}
.funds-live svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.funds-live svg:not(.sprite){pointer-events:none}
.funds-live .sprite{position:absolute;width:0;height:0;overflow:hidden}
.funds-live button:focus-visible{outline:3px solid #0B3B8C;outline-offset:4px}
.funds-live button:active{transform:translateY(1px)}
.funds-live{max-width:1550px;padding:44px 48px 24px;margin:auto}
.funds-live header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}
.funds-live .eyebrow{display:flex;align-items:center;gap:10px;font-size:12px;letter-spacing:2px;font-weight:750;margin:0 0 14px}
.funds-live .brand-mark{height:13px;width:8px;background:var(--orange);transform:skewX(-20deg)}
.funds-live .slash{color:#929b96;margin:0 3px}
.funds-live h1{font-size:clamp(28px,3vw,40px);line-height:1.25;letter-spacing:-1px;margin:0;font-weight:760}
.funds-live .title-dot{color:var(--orange)}
.funds-live .sub{font-size:14px;color:var(--muted);margin:12px 0 0}
.funds-live .header-meta{display:flex;align-items:flex-end;flex-direction:column;gap:9px;color:var(--muted);font-size:12px}
.funds-live .preview{display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #e4c5b6;border-radius:6px;color:#1C4E9A;background:#fff8f2;font-weight:600}
.funds-live .preview i{width:6px;height:6px;border-radius:50%;background:var(--orange)}
.funds-live .flow{border:1px solid #dbe1de;background:var(--surface);border-radius:14px;box-shadow:0 16px 45px #1a302008;overflow:hidden}
.funds-live .toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 28px;border-bottom:1px solid var(--line)}
.funds-live .section-label{display:flex;align-items:center;gap:10px}
.funds-live .section-label>svg{color:var(--orange)}
.funds-live .section-label strong{font-size:15px}
.funds-live .toolbar-hint{margin-left:10px;padding-left:18px;border-left:1px solid var(--line);color:var(--muted);font-size:12px}
.funds-live .motion-controls{display:flex;gap:8px}
.funds-live .motion-controls button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border:1px solid var(--line);background:var(--surface);padding:8px 12px;border-radius:6px;font-size:12px;font-weight:600;color:#4c5653;transition:background-color var(--duration),border-color var(--duration)}
.funds-live .motion-controls button svg{width:16px;height:16px}
.funds-live .motion-controls button:hover{border-color:#c07b5d;background:#fff8f3}
.funds-live .motion-controls #replay{background:var(--ink);border-color:var(--ink);color:white}
.funds-live .motion-controls #replay:hover{background:#3c4540}
.funds-live .diagram{display:grid;grid-template-columns:minmax(208px,.94fr) 44px minmax(340px,1.7fr) minmax(220px,.95fr);gap:0;padding:28px;align-items:start}
.funds-live .diagram h2{font-size:15px;line-height:24px;margin:0 0 24px;font-weight:700;display:flex;gap:10px;align-items:center}
.funds-live .diagram h2>small{font-size:11px;font-weight:600;color:var(--orange);background:var(--orange-soft);padding:2px 7px;border-radius:4px}
.funds-live .sources{min-width:0;padding-right:0}
.funds-live .person{position:relative;display:flex;align-items:center;gap:13px;width:100%;border:1px solid var(--line);background:var(--surface);padding:20px 14px;min-height:101px;text-align:left;border-radius:9px;margin-bottom:12px;transition:background-color var(--duration),border-color var(--duration),box-shadow var(--duration)}
.funds-live .person:hover{border-color:#b9c5bd;box-shadow:0 4px 14px #1b302009}
.funds-live .person.selected{border-color:var(--orange);background:#fff8f3;box-shadow:inset 3px 0 var(--orange)}
.funds-live .avatar{display:block;width:52px;height:52px;flex-shrink:0;border-radius:50%;border:2px solid #ece9dc;background-color:#f3eddf;background-repeat:no-repeat;background-image:url('/shared/avatars.png');background-size:400% auto}
.funds-live .avatar.may{background-image:url('/dashboard-may.png');background-size:130% auto;background-position:50% 20%}
.funds-live .avatar.triple{background-position:12% 20%}
.funds-live .avatar.feeling{background-position:91% 20%}
.funds-live .person-copy{min-width:0}
.funds-live .person b{font-size:16px;font-weight:720;display:block;margin-bottom:6px}
.funds-live .person small{font-size:11px;letter-spacing:.1px;color:var(--muted);display:block}
.funds-live .person small strong{font-size:13px;color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.funds-live .indicator{margin-left:auto;color:#8a9690;width:15px;height:15px}
.funds-live .selected .indicator{color:var(--orange)}
.funds-live .all-button{display:flex;align-items:center;justify-content:center;width:100%;gap:8px;border:1px dashed #c8d0ca;min-height:44px;background:#fafbf9;border-radius:7px;color:#58645e;font-size:12px;transition:background-color var(--duration),border-color var(--duration)}
.funds-live .all-button svg{width:17px;height:17px}
.funds-live .all-button.selected{background:var(--orange-soft);border:1px solid #ACC6ED;color:#184B97;font-weight:650}
.funds-live .selected-label{display:none;font-size:10px;border-radius:3px;background:#fff;padding:1px 5px}
.funds-live .selected .selected-label{display:block}
.funds-live .source-caption{font-size:12px;line-height:1.9;color:var(--muted);margin:18px 0 0;padding-left:6px}
.funds-live .connector{align-self:start;margin-top:81px;height:232px;position:relative}
.funds-live .connector>svg{width:100%;height:100%;stroke:#cbd5cf;stroke-width:1.1;position:absolute;inset:0}
.funds-live .flow-particle{position:absolute;width:6px;height:6px;border-radius:50%;background:var(--orange);top:107px;left:4px;opacity:0}
.funds-live .allocation{min-width:0;padding-right:26px}
.funds-live .total{isolation:isolate;position:relative;overflow:hidden;background:#202824;border:1px solid #303d34;border-radius:10px;color:white;padding:23px 24px 0}
.funds-live .total-top{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;color:#e5ece7;position:relative;z-index:1}
.funds-live .tag{padding:4px 7px;font-size:10px;white-space:nowrap;color:#d4ded6;border:1px solid #637167;border-radius:4px}
.funds-live .total-value{display:flex;gap:10px;align-items:baseline;position:relative;z-index:1;margin:29px 0 25px}
.funds-live .currency{font-size:13px;font-weight:600;color:#c3d1c7}
.funds-live .amount{font-family:ui-sans-serif,system-ui,sans-serif;font-size:clamp(27px,3.1vw,48px);letter-spacing:-1.7px;line-height:1.1;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap;margin:0}
.funds-live .total-bottom{display:flex;align-items:center;gap:7px;font-size:11px;color:#cbd5cc;padding:14px 0;border-top:1px solid #4d5a50;position:relative;z-index:1}
.funds-live .total-bottom svg{width:14px;height:14px}
.funds-live .total-art{position:absolute;z-index:0;width:180px;height:180px;border:1px solid #8bb89516;border-radius:50%;right:-65px;top:-58px}
.funds-live .total-art:after{content:'';position:absolute;inset:20px;border-radius:50%;border:1px solid #8bb89522}
.funds-live .allocation-heading{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:650;padding:19px 0 13px}
.funds-live .allocation-line{width:17px;height:1px;background:var(--orange)}
.funds-live .pending-small{margin-left:auto;color:var(--muted);font-weight:400;font-size:11px}
.funds-live .uses{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.funds-live .use{display:grid;grid-template-columns:30px 1fr 13px;gap:8px;text-align:left;min-height:112px;border-radius:8px;border:1px solid var(--line);background:#fff;padding:16px 12px;transition:background-color var(--duration),border-color var(--duration)}
.funds-live .use:hover,.funds-live .use[aria-expanded=true]{background:#fff9f5;border-color:#91B0DF}
.funds-live .use-icon{color:var(--orange);padding-top:1px}
.funds-live .use-icon svg{width:23px;height:23px}
.funds-live .use b{display:block;font-size:14px;font-weight:700}
.funds-live .use small{display:block;font-size:11px;color:var(--muted);margin-top:5px}
.funds-live .use .pending{grid-column:2;font-size:11px;color:#2D5591;font-weight:500}
.funds-live .use>.indicator{grid-column:3;grid-row:1;align-self:center}
.funds-live .use-copy{min-width:0}
.funds-live .banks{min-width:0;border-left:1px solid var(--line);padding-left:26px}
.funds-live .banks h2{margin-bottom:8px}
.funds-live .bank-intro{font-size:12px;margin:0 0 17px;color:var(--muted)}
.funds-live .bank-card{display:block;width:100%;border:1px solid var(--line);background:#fafbf9;border-radius:9px;padding:16px 18px 0;text-align:left;color:var(--ink);margin-bottom:14px;transition:background-color var(--duration),border-color var(--duration)}
.funds-live .bank-card:hover,.funds-live .bank-card[aria-expanded=true]{border-color:#b8c6bb;background:#f4f8f2}
.funds-live .bank-top{display:flex;justify-content:space-between;align-items:center}
.funds-live .bank-icon{color:#586b5e}
.funds-live .bank-icon svg{width:22px;height:22px}
.funds-live .region-code{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#6e7d71;border:1px solid #cdd7ce;border-radius:4px;padding:2px 5px}
.funds-live .bank-card h3{font-size:14px;margin:9px 0 7px;font-weight:700}
.funds-live .bank-value{font-size:25px;font-weight:600;margin:0 0 4px}
.funds-live .bank-value span{font-size:12px;color:#647067;margin-right:5px;font-weight:550}
.funds-live .bank-pending{font-size:11px;color:#2D5591}
.funds-live .bank-date{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#647067;margin:16px 0 12px}
.funds-live .bank-action{font-size:11px;display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid var(--line);font-weight:550}
.funds-live .bank-action svg{width:15px;height:15px}
.funds-live .bank-footnote{display:flex;gap:7px;align-items:flex-start;color:var(--muted);font-size:11px;line-height:1.8;margin:18px 0 0}
.funds-live .bank-footnote svg{width:14px;height:14px;margin-top:3px}
.funds-live .detail{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 28px 24px;padding:22px;background:#f6f8f5;border:1px solid #dde5dc;border-left:3px solid var(--orange);border-radius:7px}
.funds-live .detail[hidden]{display:none}
.funds-live .detail .eyebrow{font-size:10px;letter-spacing:1.3px;color:var(--muted);margin-bottom:7px}
.funds-live .detail h2{font-size:17px;margin:0 0 10px}
.funds-live .detail p:last-child{font-size:13px;color:var(--muted);line-height:1.9;margin:0;max-width:850px}
.funds-live .detail button{display:flex;align-items:center;gap:6px;min-height:44px;white-space:nowrap;border:1px solid #cad4c9;border-radius:5px;background:white;padding:10px;font-size:12px}
.funds-live .detail button svg{width:14px;height:14px;transform:rotate(-90deg)}
.funds-live footer{display:flex;align-items:flex-start;gap:10px;border-top:1px solid var(--line);background:#fafbf9;padding:20px 28px;font-size:11px;color:var(--muted)}
.funds-live footer>svg{width:16px;height:16px;margin-top:2px}
.funds-live footer strong{color:#49554d;font-size:12px;font-weight:650}
.funds-live footer p{margin:5px 0 0;line-height:1.8}
.funds-live .footer-label{margin-left:auto;font-size:9px;letter-spacing:1.5px;white-space:nowrap;color:#677569;padding-top:3px}
.funds-live .hint{text-align:center;color:var(--muted);font-size:11px;margin:20px 0 0}
@keyframes fr-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes fr-travel{0%{opacity:0;transform:translateX(0)}20%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translateX(31px)}}
.funds-live .playing .person{animation:fr-reveal 300ms var(--ease) both}
.funds-live .playing .person:nth-of-type(2){animation-delay:50ms}
.funds-live .playing .person:nth-of-type(3){animation-delay:100ms}
.funds-live .playing .total{animation:fr-reveal 300ms 150ms var(--ease) both}
.funds-live .playing .flow-particle{animation:fr-travel 700ms 150ms var(--ease) 2}
.funds-live .playing .use{animation:fr-reveal 300ms 200ms var(--ease) both}
.funds-live .playing .use:nth-of-type(2){animation-delay:250ms}
.funds-live .playing .use:nth-of-type(3){animation-delay:300ms}
.funds-live .playing .use:nth-of-type(4){animation-delay:350ms}
.funds-live .detail:not([hidden]),.funds-live .number-change{animation:fr-reveal 220ms var(--ease) both}
@media(min-width:1450px){.funds-live .diagram{grid-template-columns:250px 56px minmax(440px,1fr) 300px}
.funds-live .allocation{padding-right:36px}
.funds-live .banks{padding-left:32px}
.funds-live .person{padding:22px 18px}
.funds-live .amount{font-size:48px}
}
@media(max-width:980px){.funds-live{padding:32px 24px}
.funds-live .diagram{grid-template-columns:225px 44px minmax(0,1fr);padding:24px}
.funds-live .allocation{padding-right:0}
.funds-live .amount{font-size:40px}
.funds-live .banks{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);margin-top:28px;padding:24px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.funds-live .banks h2,.funds-live .bank-intro,.funds-live .bank-footnote{grid-column:1/-1}
.funds-live .banks h2{margin-bottom:6px}
.funds-live .banks .bank-card{margin-bottom:0}
.funds-live .bank-footnote br{display:none}
.funds-live .bank-card{padding:18px 20px 0}
.funds-live .bank-value{font-size:30px}
.funds-live .bank-date{font-size:12px}
.funds-live .toolbar-hint{display:none}
}
@media(max-width:700px){.funds-live{padding:26px 16px 20px}
.funds-live header{align-items:flex-start;margin-bottom:24px;gap:16px;flex-direction:column}
.funds-live .header-meta{align-items:center;flex-direction:row;flex-wrap:wrap;gap:10px}
.funds-live .header-meta>span{font-size:10px}
.funds-live .eyebrow{font-size:10px;margin-bottom:12px}
.funds-live h1{font-size:29px}
.funds-live .sub{font-size:13px}
.funds-live .toolbar{padding:12px 16px;gap:8px;flex-wrap:wrap}
.funds-live .section-label{gap:7px}
.funds-live .section-label strong{font-size:13px}
.funds-live .section-label svg{width:18px;height:18px}
.funds-live .motion-controls{gap:6px}
.funds-live .motion-controls button{padding:8px 10px;font-size:11px}
.funds-live .motion-controls #stop span{position:absolute;clip:rect(0,0,0,0);overflow:hidden;width:1px;height:1px}
.funds-live .diagram{display:block;padding:22px 16px}
.funds-live .diagram h2{margin-bottom:16px}
.funds-live .sources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.funds-live .sources h2{grid-column:1/-1;margin-bottom:8px}
.funds-live .person{flex-direction:column;padding:14px 4px;gap:9px;margin:0;min-height:145px;text-align:center;border-radius:8px;justify-content:flex-start}
.funds-live .avatar{height:47px;width:47px}
.funds-live .person b{font-size:13px;margin-bottom:5px}
.funds-live .person small{font-size:9px}
.funds-live .person small strong{display:block;font-size:10px;margin-top:3px}
.funds-live .person>.indicator{display:none}
.funds-live .all-button{grid-column:1/-1;margin-top:4px;min-height:44px}
.funds-live .source-caption{grid-column:1/-1;margin:5px 0 0;font-size:11px;padding:0}
.funds-live .source-caption br{display:none}
.funds-live .connector{height:36px;margin:0;display:grid;place-items:center}
.funds-live .connector>svg{display:none}
.funds-live .connector:after{content:'';display:block;width:1px;height:24px;background:#c5d1c8}
.funds-live .flow-particle{top:3px;left:calc(50% - 2px);width:5px;height:5px}
.funds-live .allocation{padding:0}
.funds-live .total{padding:20px 18px 0}
.funds-live .total-top{font-size:13px}
.funds-live .tag{font-size:9px}
.funds-live .total-value{margin:24px 0}
.funds-live .amount{font-size:clamp(29px,8.5vw,42px);letter-spacing:-1px}
.funds-live .currency{font-size:11px}
.funds-live .total-bottom{font-size:10px}
.funds-live .allocation-heading{padding:20px 0 14px}
.funds-live .uses{gap:10px}
.funds-live .use{grid-template-columns:24px 1fr 10px;gap:6px;padding:13px 9px;min-height:119px}
.funds-live .use-icon svg{width:21px;height:21px}
.funds-live .use b{font-size:12px}
.funds-live .use small{font-size:10px;line-height:1.7}
.funds-live .use .pending{font-size:10px}
.funds-live .use>.indicator{width:12px}
.funds-live .pending-small{font-size:10px}
.funds-live .banks{display:grid;grid-template-columns:1fr 1fr;margin-top:24px;padding-top:24px;gap:0 10px}
.funds-live .banks h2{margin-bottom:6px}
.funds-live .bank-intro{font-size:11px;margin-bottom:14px}
.funds-live .bank-card{padding:14px 12px 0}
.funds-live .bank-card h3{font-size:13px}
.funds-live .bank-top svg{width:20px}
.funds-live .bank-value{font-size:27px}
.funds-live .bank-value span{font-size:11px}
.funds-live .bank-date{font-size:9px;flex-wrap:wrap;gap:4px}
.funds-live .bank-action{font-size:10px}
.funds-live .region-code{font-size:9px}
.funds-live .bank-footnote{font-size:10px;margin-top:14px}
.funds-live .detail{margin:0 16px 20px;padding:17px;flex-direction:column;align-items:flex-start;gap:14px}
.funds-live .detail p:last-child{font-size:13px}
.funds-live .detail h2{font-size:16px}
.funds-live footer{padding:18px 16px;font-size:10px}
.funds-live .footer-label{display:none}
.funds-live .hint{font-size:10px;line-height:1.8}
.funds-live .playing .flow-particle{animation:none}
}
@media(prefers-reduced-motion:reduce){.funds-live *,.funds-live *::before,.funds-live *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
.funds-live .person small,.funds-live .source-caption,.funds-live .total-bottom,.funds-live .pending-small,.funds-live .use small,.funds-live .use .pending,.funds-live .bank-intro,.funds-live .bank-pending,.funds-live .bank-date,.funds-live .bank-action,.funds-live .bank-footnote,.funds-live footer,.funds-live .hint{font-size:12px}
.funds-live .motion-paused .number-change,.funds-live .motion-paused .detail{animation:none}
@media(max-width:700px){.funds-live .person small,.funds-live .person small strong{font-size:12px}
.funds-live .person small strong{letter-spacing:-.4px}
.funds-live .person{min-height:158px}
.funds-live .use small,.funds-live .use .pending,.funds-live .pending-small,.funds-live .bank-date,.funds-live .bank-action,.funds-live .bank-pending,.funds-live .bank-footnote,.funds-live .source-caption,.funds-live .total-bottom,.funds-live footer,.funds-live .hint{font-size:12px}
.funds-live .bank-date{display:block}
.funds-live .bank-date span{display:block}
.funds-live .use{grid-template-columns:22px 1fr 10px;min-height:130px}
.funds-live .use b{font-size:13px}
.funds-live .person small strong{white-space:normal;overflow-wrap:anywhere}
.funds-live .bank-card{padding-inline:12px}
.funds-live .header-meta>span{font-size:12px}
}
.funds-live .scope-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:var(--muted);margin:0 0 14px}
.funds-live .scope-bar>span:first-child{display:flex;align-items:center;gap:7px;color:#3e5045;font-weight:600}
.funds-live .scope-bar i{width:6px;height:6px;border-radius:50%;background:var(--orange)}
.funds-live .scope-bar em{display:inline-block;height:10px;border-left:1px solid #b9c5bd;margin:0 12px}
.funds-live .summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.funds-live .summary-card{display:flex;flex-direction:column;gap:19px;padding:21px 22px;text-align:left;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);min-width:0;transition:border-color 220ms,background-color 220ms}
.funds-live .summary-card:hover{border-color:#be8f75;background:#fffaf6}
.funds-live .summary-label{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:650}
.funds-live .summary-label>svg:first-child{color:var(--orange)}
.funds-live .summary-arrow{margin-left:auto;width:15px;height:15px;color:var(--muted)}
.funds-live .summary-value{display:flex;gap:9px;align-items:baseline;font-size:34px;font-weight:650;line-height:1;font-variant-numeric:tabular-nums}
.funds-live .summary-value small{font-size:13px;font-weight:500;color:var(--muted)}
.funds-live .summary-note{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:12px;color:var(--muted);flex-wrap:wrap}
.funds-live .summary-state{font-size:12px;color:#2D5591;white-space:nowrap}
.funds-live .profit-card{background:#202824;border-color:#303d34;color:white}
.funds-live .profit-card:hover{background:#2a352e;border-color:#708875}
.funds-live .profit-card .summary-label>svg:first-child{color:#73A5F1}
.funds-live .profit-card .summary-value small,.funds-live .profit-card .summary-note,.funds-live .profit-card .summary-arrow{color:#cbd5cc}
.funds-live .profit-card .summary-state{color:#92BEFF}
.funds-live .business-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:20px;margin-top:24px}
.funds-live .business-panel{background:white;border:1px solid var(--line);border-radius:10px;padding:22px 24px;min-width:0}
.funds-live .panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.funds-live .panel-heading h2{display:flex;align-items:center;gap:9px;font-size:16px;margin:0}
.funds-live .panel-heading h2 svg{color:var(--orange)}
.funds-live .text-button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 0 8px 12px;font-size:12px;background:none;border:0;color:#1C4F9C;white-space:nowrap}
.funds-live .text-button:hover{text-decoration:underline}
.funds-live .text-button svg{width:15px;height:15px}
.funds-live .panel-caption{font-size:12px;color:var(--muted);margin:6px 0 21px}
.funds-live .profit-equation{display:grid;grid-template-columns:1fr 16px 1fr 16px 1fr;gap:10px;align-items:center;padding:15px 0 21px}
.funds-live .profit-equation>div{min-width:0}
.funds-live .profit-equation span{font-size:12px;color:var(--muted);display:block;margin-bottom:9px}
.funds-live .profit-equation strong{font-size:18px;font-variant-numeric:tabular-nums;font-weight:650;white-space:nowrap}
.funds-live .profit-equation i{color:#859489;font-size:18px;font-style:normal}
.funds-live .profit-equation .gross strong{color:#1C4F9C;font-size:16px}
.funds-live .net-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;background:#fff3e9;border:1px solid #C6D6EE;border-radius:7px;font-size:12px;color:#75543c}
.funds-live .net-row>span:last-child{font-size:14px;font-weight:600;color:#1C427A}
.funds-live .net-row strong{margin-left:10px}
.funds-live .panel-note{font-size:12px;line-height:1.9;color:var(--muted);margin:16px 0 0}
.funds-live .payable-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px 0;border-bottom:1px solid var(--line);font-size:13px}
.funds-live .payable-row strong{font-weight:650;white-space:nowrap}
.funds-live .payable-row small{font-size:12px;font-weight:400;color:#2D5591;margin-left:9px}
.funds-live .member-ledger{border:1px solid var(--line);border-radius:10px;background:white;margin-top:20px}
.funds-live .member-ledger summary{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;list-style:none;min-height:76px;padding:18px 24px}
.funds-live .member-ledger summary::-webkit-details-marker{display:none}
.funds-live .member-ledger summary>span{display:flex;align-items:center;gap:10px}
.funds-live .member-ledger summary svg{color:var(--orange)}
.funds-live .member-ledger summary strong{font-size:14px}
.funds-live .member-ledger summary small{color:var(--muted);font-size:12px;margin-left:10px}
.funds-live .expand-label{font-size:12px;color:var(--muted)}
.funds-live .expand-label svg{height:14px;width:14px}
.funds-live .member-ledger[open] .expand-label svg{transform:rotate(90deg)}
.funds-live .member-content{padding:0 24px 24px}
.funds-live .member-content>p{font-size:12px;color:var(--muted);line-height:1.9;max-width:960px}
.funds-live .member-content table{width:100%;border-collapse:collapse;font-size:13px;margin-top:20px}
.funds-live .member-content caption{text-align:left;font-size:12px;color:var(--muted);padding-bottom:10px}
.funds-live .member-content th,.funds-live .member-content td{text-align:left;padding:14px 10px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.funds-live .member-content thead th{font-size:12px;background:#f5f7f4;font-weight:550;color:#5d6d62}
.funds-live .member-content tbody td{color:#2D5591}
.funds-live .overview-footnote{font-size:12px;color:var(--muted);line-height:1.9;margin-top:18px}
.funds-live dialog{max-width:540px;width:calc(100% - 40px);padding:26px 28px;border:1px solid #d4ded4;border-radius:12px;background:#fff;color:var(--ink);box-shadow:0 24px 100px #0003;max-height:calc(100dvh - 40px);overflow:auto}
.funds-live dialog::backdrop{background:#111a16a6}
.funds-live .modal-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.funds-live .modal-heading .eyebrow{font-size:11px;letter-spacing:1px;color:var(--muted);margin:0}
.funds-live .modal-heading button{min-height:44px;padding:8px 12px;background:#f4f6f3;border:1px solid var(--line);border-radius:5px;font-size:12px}
.funds-live dialog h2{font-size:23px;margin:20px 0 15px}
.funds-live dialog>p{font-size:15px;line-height:1.9;color:#4d5c52}
.funds-live .modal-status{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.8;background:#fff4eb;color:#855031;padding:13px;border-radius:5px;margin-top:22px}
.funds-live .modal-status i{flex-shrink:0;width:6px;height:6px;border-radius:50%;background:var(--orange);margin-top:7px}
@media(max-width:1100px){.funds-live .summary-grid{gap:12px}
.funds-live .summary-card{padding:20px 16px}
.funds-live .summary-note{display:block}
.funds-live .summary-state{display:block;margin-top:7px}
.funds-live .business-grid{grid-template-columns:1fr 1fr;gap:16px}
.funds-live .business-panel{padding:18px}
.funds-live .profit-equation{gap:5px}
.funds-live .profit-equation strong{font-size:16px}
.funds-live .net-row{flex-wrap:wrap;gap:9px}
}
@media(max-width:700px){.funds-live .scope-bar{align-items:flex-start;flex-direction:column;font-size:12px;line-height:1.9}
.funds-live .scope-bar em{margin-inline:8px}
.funds-live .summary-grid{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}
.funds-live .summary-card{padding:17px 14px;gap:18px}
.funds-live .summary-label{gap:6px;font-size:13px}
.funds-live .summary-label>svg{width:17px;height:17px}
.funds-live .summary-arrow{display:none}
.funds-live .summary-value{font-size:29px}
.funds-live .summary-note{font-size:12px;line-height:1.7}
.funds-live .business-grid{grid-template-columns:1fr;margin-top:20px;gap:16px}
.funds-live .business-panel{padding:18px 16px}
.funds-live .panel-heading h2{font-size:15px}
.funds-live .profit-equation{gap:8px;padding-top:8px}
.funds-live .net-row{flex-wrap:nowrap}
.funds-live .net-row>span:last-child{font-size:13px}
.funds-live .net-row strong{display:block;margin:4px 0 0}
.funds-live .payable-row{font-size:12px}
.funds-live .member-ledger summary{padding:17px 16px}
.funds-live .member-ledger summary small{display:none}
.funds-live .member-ledger summary strong{font-size:13px}
.funds-live .expand-label{font-size:12px;gap:3px!important}
.funds-live .member-content{padding:0 14px 18px}
.funds-live .member-content table{table-layout:fixed;font-size:12px}
.funds-live .member-content th,.funds-live .member-content td{padding:13px 5px}
.funds-live .member-content thead th{line-height:1.8}
.funds-live .member-content th:first-child{width:22%}
.funds-live .overview-footnote{font-size:12px}
.funds-live dialog{padding:20px}
.funds-live .modal-heading .eyebrow{font-size:10px}
.funds-live dialog h2{font-size:21px}
}
.funds-live .sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.funds-live header .eyebrow{margin:0}
.funds-live header{margin-bottom:26px}
.funds-live .usage-chart{padding:20px 14px;border:1px solid #e3e3df;border-radius:12px;background:#fff}
.funds-live .usage-radial{position:relative;width:100%;aspect-ratio:1;max-width:540px;margin:auto}
.funds-live .usage-radial-svg{display:block;width:100%!important;height:100%!important;fill:none;stroke-linecap:round;stroke-linejoin:round}
.funds-live .usage-outline{stroke:#eceae7;stroke-width:16;fill:none}
.funds-live .usage-orbit{stroke:#f3f2ef;stroke-width:1;fill:none}
.funds-live .usage-inner{stroke:#202422;stroke-width:1;fill:#202422}
.funds-live .usage-leaders{stroke:#737875;stroke-width:1.35;fill:none}
.funds-live #usage-pointer path{fill:none;stroke:#737875;stroke-width:1.3}
.funds-live .usage-anchors circle{fill:#1662D3;stroke:#fff;stroke-width:2.5}
.funds-live .usage-center{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;pointer-events:none}
.funds-live .usage-center span{font-size:12px;letter-spacing:1px;color:#e5e6e2}
.funds-live .usage-center strong{font-size:25px;font-weight:650;letter-spacing:-.5px;color:#fff}
.funds-live .usage-callout{position:absolute;display:flex;flex-direction:column;justify-content:center;gap:3px;width:40%;min-height:66px;padding:5px 6px;border:0;background:transparent;border-radius:6px;transition:color 220ms,background-color 220ms;color:#232725;text-align:left}
.funds-live .usage-callout b{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:650;line-height:1.5;white-space:nowrap}
.funds-live .usage-callout b svg{width:16px;height:16px;stroke-width:1.5;color:#125AC6}
.funds-live .usage-callout>span{font-size:13px;color:#353a36;line-height:1.5;padding-left:23px;font-variant-numeric:tabular-nums}
.funds-live .usage-callout>small{font-size:12px;color:var(--muted);line-height:1.5;padding-left:23px}
.funds-live .usage-nw{left:0;top:0}
.funds-live .usage-ne{right:0;top:0;text-align:right;align-items:flex-end}
.funds-live .usage-sw{left:0;bottom:0}
.funds-live .usage-se{right:0;bottom:0;text-align:right;align-items:flex-end}
.funds-live .usage-ne>span,.funds-live .usage-se>span,.funds-live .usage-ne>small,.funds-live .usage-se>small{padding-left:0}
.funds-live .usage-callout:hover{background:#f8f7f4;transform:none}
.funds-live .usage-callout[aria-expanded=true]{background:#fff0e3;color:#154FA6}
.funds-live .usage-callout[aria-expanded=true]>span,.funds-live .usage-callout[aria-expanded=true] svg{color:#154FA6}
.funds-live .usage-leaders path{transition:stroke 220ms}
.funds-live .usage-radial:has([data-use=goods][aria-expanded=true]) [data-usage-line=goods],.funds-live .usage-radial:has([data-use=freight][aria-expanded=true]) [data-usage-line=freight],.funds-live .usage-radial:has([data-use=expense][aria-expanded=true]) [data-usage-line=expense],.funds-live .usage-radial:has([data-use=unclassified][aria-expanded=true]) [data-usage-line=unclassified]{stroke:#245FB7}
.funds-live .usage-caveat{font-size:12px;line-height:1.8;color:var(--muted);margin:12px 0 0;text-align:center}
.funds-live .playing .usage-radial-svg{animation:fr-reveal 300ms 200ms var(--ease) both}
@media(max-width:700px){.funds-live .usage-chart{padding:20px 8px}
.funds-live .usage-center strong{font-size:22px}
.funds-live .usage-center span{font-size:11px}
.funds-live .usage-callout{padding:3px 4px;min-height:64px}
.funds-live .usage-callout b{font-size:12px;gap:5px}
.funds-live .usage-callout b svg{width:15px;height:15px}
.funds-live .usage-callout>span,.funds-live .usage-callout>small{font-size:12px;padding-left:20px}
.funds-live .usage-ne>span,.funds-live .usage-se>span,.funds-live .usage-ne>small,.funds-live .usage-se>small{padding-left:0}
}
@media(prefers-reduced-motion:reduce){.funds-live *,.funds-live *::before,.funds-live *::after{animation:none!important;transition:none!important}
}
.funds-live .insight-grid{display:block;margin-top:24px}
.funds-live .journey-panel .panel-heading{display:flex;justify-content:space-between}
.funds-live .journey-tag{font-size:12px;color:#7e5638;background:#fff3e8;padding:5px 8px;border-radius:4px;white-space:nowrap}
.funds-live .journey-nodes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.funds-live .journey-nodes>button{display:flex;align-items:center;gap:12px;min-height:88px;padding:16px 13px;text-align:left;border:1px solid var(--line);border-radius:7px;background:#fcfdfb;transition:background-color 220ms,border-color 220ms}
.funds-live .journey-nodes>button:hover{border-color:#be8f75;background:#fff9f3}
.funds-live .journey-icon{display:grid;place-items:center;width:36px;height:36px;background:#edf3eb;border:1px solid #d7e2d4;border-radius:8px;color:#536e63;flex-shrink:0}
.funds-live .journey-nodes b{display:block;font-size:13px}
.funds-live .journey-nodes small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.funds-live .journey-nodes .indicator{width:16px;height:16px}
.funds-live .journey-panel .panel-note{font-size:12px}
@media(max-width:1100px){.funds-live .journey-nodes{grid-template-columns:1fr 1fr}
}
@media(max-width:420px){.funds-live .journey-nodes{grid-template-columns:1fr;gap:10px}
.funds-live .journey-nodes>button{min-height:76px}
}
@media(prefers-reduced-motion:reduce){.funds-live *,.funds-live *::before,.funds-live *::after{animation:none!important;transition:none!important}
}

.funds-live{max-width:none;padding:0;background:transparent}.funds-live .avatar.triple{background-position:12% 20%}.funds-live .avatar.feeling{background-position:91% 20%}.funds-live .diagram{grid-template-columns:minmax(190px,.94fr) 36px minmax(300px,1.7fr) minmax(190px,.95fr)}
@media(max-width:1180px){.funds-live .diagram{grid-template-columns:205px 32px minmax(0,1fr)}.funds-live .banks{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);margin-top:22px;padding:22px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.funds-live .banks h2,.funds-live .banks .bank-intro,.funds-live .banks .bank-footnote{grid-column:1/-1}.funds-live .allocation{padding-right:0}}
@media(max-width:700px){.funds-live .diagram{display:block}.funds-live .sources{display:grid}.funds-live .amount{font-size:clamp(26px,7vw,38px)}}

/* Release integration: one visual system, content-width responsive layout. */
.release-dashboard{container-type:inline-size;container-name:release-dashboard}
.release-dashboard .funds-live{min-width:0}
.release-dashboard .release-secondary .business-grid{margin-top:0}
.release-dashboard .release-journey{margin-top:20px;background:#fff;border:1px solid #e2e7e5;border-radius:12px;padding:0 20px}
.release-dashboard .release-journey>summary{padding:16px 0;min-height:44px;cursor:pointer;font-size:14px;font-weight:650}
.release-dashboard .release-journey .insight-grid{margin:0 0 20px}
.release-dashboard .summary-value{flex-wrap:wrap;line-height:1.2;font-size:clamp(24px,2.2vw,34px);column-gap:7px;row-gap:3px}
.release-dashboard .summary-value small{flex:none;font-size:12px;line-height:1.4}
.release-dashboard .release-amount-digits{min-width:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.release-dashboard .total-value{flex-wrap:wrap;gap:8px}
.release-dashboard .amount{max-width:100%;white-space:normal;overflow-wrap:anywhere;letter-spacing:-1px}
.release-dashboard .profit-equation strong,.release-dashboard .payable-row strong{white-space:normal;overflow-wrap:anywhere}
.cw-overview-shell .release-dashboard .tp-heading{border-radius:12px 12px 0 0;background:#fff;color:#1c2020;border:1px solid #e2e7e5;border-bottom:0;padding:18px 20px;display:block}
.cw-overview-shell .release-dashboard .tp-heading h2{color:#1c2020;font-size:18px;letter-spacing:0;margin:0}
.cw-overview-shell .release-dashboard .tp-heading p{font-size:12px;line-height:1.6;color:#657070;margin:6px 0 0}
.cw-overview-shell .release-dashboard .tp-toolbar{margin:0;padding:12px 20px;background:#fff;border-inline:1px solid #e2e7e5}
.cw-overview-shell .release-dashboard .tp-toolbar input{font-size:14px;padding:12px;border-radius:8px}
.cw-overview-shell .release-dashboard .tp-table-wrap{background:#fff;border:1px solid #e2e7e5;border-radius:0 0 12px 12px}
.cw-overview-shell .release-dashboard .tp-data-table{font-size:14px}
.cw-overview-shell .release-dashboard .tp-data-table button{min-height:44px;font-size:13px}
.release-dashboard .release-secondary{margin-top:24px}
@container release-dashboard (max-width:1100px){
 .release-dashboard .funds-live .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .release-dashboard .funds-live .diagram{grid-template-columns:minmax(160px,.8fr) 28px minmax(0,1.4fr)}
 .release-dashboard .funds-live .banks{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-left:0;border-top:1px solid var(--line);padding:20px 0 0;margin-top:20px;gap:0 16px}
 .release-dashboard .funds-live .banks h2,.release-dashboard .funds-live .banks .bank-intro,.release-dashboard .funds-live .banks .bank-footnote{grid-column:1/-1}
 .release-dashboard .funds-live .allocation{padding-right:0}
}
@container release-dashboard (max-width:760px){
 .release-dashboard .funds-live .diagram{display:block}
 .release-dashboard .funds-live .connector{display:none}
 .release-dashboard .funds-live .sources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .release-dashboard .funds-live .sources h2,.release-dashboard .funds-live .all-button,.release-dashboard .funds-live .source-caption{grid-column:1/-1}
 .release-dashboard .funds-live .person{flex-direction:column;text-align:center;padding:12px 4px;margin:0;gap:8px}
 .release-dashboard .funds-live .person>.indicator{display:none}
 .release-dashboard .funds-live .person small strong{white-space:normal;overflow-wrap:anywhere}
 .release-dashboard .funds-live .allocation{margin-top:24px}
 .release-dashboard .funds-live .business-grid{grid-template-columns:1fr}
}
@container release-dashboard (max-width:460px){
 .release-dashboard .funds-live .summary-grid{grid-template-columns:1fr}
 .release-dashboard .funds-live .banks{grid-template-columns:minmax(0,1fr)}
 .release-dashboard .funds-live .summary-card{padding:16px;gap:12px}
}
/* Keep-signed-in login controls: flat account-page style, DESIGN.md tokens (8px radius, 44px touch target, 13px helper text). */
.login-card .login-remember { display:flex; align-items:center; gap:12px; min-height:44px; font-size:14px; }
.login-card .login-remember[hidden], .login-card .login-recovery[hidden] { display:none; }
.login-card .login-remember input { inline-size:20px; block-size:20px; margin:0; flex:none; accent-color:var(--accent); }
.login-card #login-notice:empty, .login-card #login-error:empty { display:none; }
.login-card #login-notice { margin:0; padding:12px; border-radius:8px; background:#FFF3E6; color:#8A4A16; font-size:13px; line-height:1.5; }
.login-card .login-recovery { display:grid; gap:12px; padding:16px; border:1px solid var(--line); border-radius:8px; background:#F7F9F6; }
.login-card .login-recovery p { margin:0; font-size:14px; line-height:1.5; }
.login-card .login-recovery .button { min-height:44px; white-space:normal; }

/* Account checks page. DESIGN.md tokens with literal fallbacks; no new palette. */
.cw-checks{display:grid;gap:16px;min-width:0;color:var(--cw-text)}
.cw-checks-zone{display:grid;gap:12px;min-width:0}
.cw-checks-form{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.cw-checks-card{background:var(--cw-surface);border:1px solid var(--cw-line);border-radius:12px;padding:24px;min-width:0;overflow-wrap:anywhere}
.cw-checks-card-head{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center}
.cw-checks-card-head h3{margin:0}
.cw-checks-badge{padding:2px 10px;border-radius:999px;font-weight:600;background:var(--cw-info-bg);color:var(--cw-info)}
.cw-checks-badge[data-status=pass]{background:var(--cw-success-bg);color:var(--cw-success)}
.cw-checks-badge[data-status=attention]{background:var(--cw-pending-bg);color:var(--cw-pending)}
.cw-checks-badge[data-status=unknown]{background:var(--cw-pending-bg);color:var(--cw-pending)}
.cw-checks-error{background:var(--cw-error-bg);color:var(--cw-error);border-radius:8px;padding:12px;display:grid;gap:8px}
.cw-checks-scroll{max-width:100%;overflow-x:auto}
.cw-checks-table{border-collapse:collapse;min-width:32rem;width:100%}
.cw-checks-table th,.cw-checks-table td{text-align:left;padding:6px 8px;border-top:1px solid var(--cw-line);vertical-align:top}
.cw-checks-details summary,.cw-profit-note-link{min-height:44px;display:inline-flex;align-items:center;cursor:pointer}
.cw-checks button:focus-visible,.cw-checks summary:focus-visible,.cw-checks a:focus-visible,.cw-profit-note button:focus-visible{outline:3px solid var(--cw-focus);outline-offset:3px}
.cw-profit-note{margin:4px 0;color:var(--cw-pending)}
@media (max-width:480px){.cw-checks-form label{min-width:100%}.cw-checks-card{padding:16px}}
/* Mobile: detail tables become labelled data cards (same pattern as .tp-data-table in trade-port.css). */
@media (max-width:700px){
 .cw-checks-table,.native-workspace .cw-checks-table{min-width:0}
 .cw-checks-table,.cw-checks-table tbody,.cw-checks-table tr,.cw-checks-table td{display:block;width:100%;box-sizing:border-box}
 .cw-checks-table thead,.cw-checks-table tr:first-child:has(th){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .cw-checks-table tr{border:1px solid var(--cw-line);border-radius:10px;margin-bottom:12px;padding:12px;background:var(--cw-surface)}
 .cw-checks-table td{display:flex;justify-content:space-between;gap:14px;border:0;padding:7px 0;text-align:right}
 .cw-checks-table td::before{content:attr(data-label);color:var(--cw-text-muted);text-align:left;flex-shrink:0}
 .cw-checks-table td:first-child{display:block;border-bottom:1px solid var(--cw-line);padding-bottom:12px;margin-bottom:6px;text-align:left}
 .cw-checks-table td:first-child::before{display:none}
 .cw-checks-table td.cw-checks-action{justify-content:flex-end}
 .cw-checks-table td.cw-checks-action::before{display:none}
}

/* === periods.css: period close page. Layout only; colours, fonts, buttons, tables and tags come from the shared tokens, gl.css and checks.css. Layout follows the content width (container query on .cw-periods). === */
.cw-periods{container:cw-periods/inline-size;display:grid;gap:16px;min-width:0;color:var(--cw-text)}
.cw-periods>*{min-width:0}
.cw-periods-page{display:grid;gap:16px;min-width:0}
.cw-periods h1{margin:0;font-size:28px;line-height:1.3;font-weight:700}
.cw-periods-block h2,.cw-periods-card h2{margin:0 0 8px;font-size:18px;font-weight:700}
.cw-periods-block h3{margin:12px 0 8px;font-size:16px;font-weight:700}
.cw-periods-limits{border:1px solid var(--cw-line);border-radius:var(--cw-radius-panel);padding:8px 12px;background:var(--cw-surface)}
.cw-periods-limits summary{cursor:pointer;font-weight:600}
.cw-periods-limits ul{margin:8px 0 0;padding-left:20px;display:grid;gap:6px;font-size:14px}
.cw-periods-view{display:grid;gap:16px;min-width:0}
.cw-periods-card{border:1px solid var(--cw-line);border-radius:var(--cw-radius-panel);padding:16px;background:var(--cw-surface);display:grid;gap:12px}
.cw-periods-items{display:grid;gap:8px}
.cw-periods-item{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px 12px;border-radius:8px;border:1px solid var(--cw-line)}
.cw-periods-item[data-tone="bad"]{border-color:var(--cw-error)}
.cw-periods-item[data-tone="warn"]{border-color:var(--cw-pending)}
.cw-periods-item label{display:flex;gap:8px;align-items:center;flex:1 1 16rem}
.cw-periods-item-count{font-variant-numeric:tabular-nums;color:var(--cw-text-muted)}
.cw-periods-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.cw-periods-reason{margin:0;font-size:13px;color:var(--cw-text-muted)}
.cw-periods-lines{margin-top:12px}
.cw-periods-notices:empty{display:none}
.cw-periods-notice{margin:0;padding:8px 12px;border-radius:8px;border:1px solid var(--cw-line);background:var(--cw-surface)}
.cw-periods .cw-gl-num,.cw-periods td.cw-gl-n{font-variant-numeric:tabular-nums}
.cw-periods button:focus-visible,.cw-periods input:focus-visible,.cw-periods textarea:focus-visible,.cw-periods summary:focus-visible{outline:3px solid var(--cw-focus);outline-offset:3px}
.cw-periods-dialog{position:fixed;left:50%;top:10vh;transform:translateX(-50%);width:min(720px,calc(100vw - 32px));max-height:90dvh;overflow:auto;z-index:var(--cw-z-modal);display:grid;gap:12px;padding:20px;border-radius:var(--cw-radius-dialog);border:1px solid var(--cw-line);background:var(--cw-surface);box-shadow:var(--cw-shadow-dialog)}
.cw-periods-dialog h2{margin:0;font-size:18px}
.cw-periods-dialog-line{margin:0}
.cw-periods-dialog label{display:grid;gap:6px}
.cw-periods-dialog textarea{min-height:7rem;width:100%;font:inherit}
.cw-periods-dialog-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}
.cw-periods-dialog-error{border:1px solid var(--cw-error);border-radius:8px;padding:8px 12px;display:grid;gap:8px}
.cw-periods-dialog-error p{margin:0}
@container cw-periods (max-width:767.98px){
 .cw-periods h1{font-size:24px}
 .cw-periods-card{padding:12px}
}
@media (max-width:767.98px){
 .cw-periods-dialog{left:0;right:0;top:auto;bottom:0;transform:none;width:100%;max-height:90vh;border-radius:var(--cw-radius-dialog) var(--cw-radius-dialog) 0 0}
 .cw-periods-dialog-actions button{flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){.cw-periods *{transition:none!important;animation:none!important}}

.cw-unified-shell [data-native-page="backfill"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%204h11l5%205v11H4ZM15%204v5h5M8%2013h8M8%2017h5%22%2F%3E%3C%2Fsvg%3E")}
.cw-unified-shell [data-native-page="taxpack"]{--nav-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207h18v13H3ZM2%203h20v4H2ZM12%2010v7M9%2014l3%203%203-3%22%2F%3E%3C%2Fsvg%3E")}

/* P7b bank check card */
.cw-periods-close input[type="text"]{min-height:44px;padding:0 12px;border:1px solid var(--cw-line);border-radius:8px;background:var(--cw-surface);color:var(--cw-text);font:inherit;min-width:0;width:100%}
.cw-periods-close td input[inputmode="decimal"]{text-align:right;font-variant-numeric:tabular-nums}
.cw-periods-close input[type="checkbox"]{width:20px;height:20px}
.cw-periods-diff{font-variant-numeric:tabular-nums;font-weight:600}
.cw-periods-explain{display:grid;gap:4px;min-width:12rem}
.cw-periods-custody{display:grid;gap:8px}
.cw-periods-close-status{display:grid;gap:8px}
.cw-periods-blockers,.cw-periods-approvals{margin:0;padding-left:20px;display:grid;gap:4px}
.cw-periods-blockers{color:var(--cw-error)}

/* === backfill.css: legacy back-fill page (PLAN-2C 7). Layout only; colours, fonts, buttons, tables, tags and notices come from the shared tokens, gl.css and checks.css. Layout follows the content width (container query on .cw-backfill; DESIGN.md 3 breakpoints). === */
.cw-backfill{container:cw-backfill/inline-size;display:grid;gap:16px;min-width:0;color:var(--cw-text)}
.cw-backfill>*,.cw-backfill-page>*{min-width:0}
.cw-backfill-page{display:grid;gap:16px;min-width:0}
.cw-backfill-summary{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:flex-start;justify-content:space-between}
.cw-backfill-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.cw-backfill-progress{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;flex:1 1 40rem;min-width:0}
.cw-backfill-progress-item{display:grid;gap:4px;padding:8px 12px;border:1px solid var(--cw-line);border-radius:var(--cw-radius-panel);background:var(--cw-surface);min-width:0}
.cw-backfill-progress-item .cw-gl-tag{justify-self:start}
.cw-backfill-progress-name{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.cw-backfill-count{font-variant-numeric:tabular-nums;color:var(--cw-text-muted);font-size:13px}
.cw-backfill-step{display:grid;gap:12px;padding:16px;border:1px solid var(--cw-line);border-radius:var(--cw-radius-panel);background:var(--cw-surface);min-width:0}
.cw-backfill-step-head{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.cw-backfill-step-head h2{margin:0;font-size:18px;font-weight:700;flex:1 1 auto}
.cw-backfill-checks{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.cw-backfill-checks li{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cw-backfill-note{margin:0;color:var(--cw-text-muted);font-size:14px}
.cw-backfill-scroll{overflow-x:auto;min-width:0}
.cw-backfill-table td{vertical-align:top}
.cw-backfill-table td.cw-gl-n,.cw-backfill-card dd{font-variant-numeric:tabular-nums}
.cw-backfill-content,.cw-backfill-ledger{display:grid;gap:2px;overflow-wrap:anywhere}
.cw-backfill-sub{font-size:13px;color:var(--cw-text-muted)}
.cw-backfill-ref{font-size:13px;overflow-wrap:anywhere}
.cw-backfill-diff{font-size:13px;font-weight:600;color:var(--cw-pending)}
.cw-backfill-action{display:grid;gap:4px;justify-items:start}
.cw-backfill-go{font-size:14px;font-weight:600;min-height:36px;padding:0 16px}
.cw-backfill [aria-disabled="true"]{background:var(--cw-disabled-bg);color:var(--cw-text-muted);border-color:transparent;box-shadow:none;cursor:not-allowed;transform:none}
.cw-backfill-reason{margin:0;font-size:13px;color:var(--cw-text-muted);overflow-wrap:anywhere}
.cw-backfill-sub-block h3{margin:0 0 6px;font-size:16px}
.cw-backfill-sub-block ul{margin:0;padding-left:20px;display:grid;gap:4px;font-size:14px;overflow-wrap:anywhere}
.cw-backfill-pending,.cw-backfill-limits{border:1px solid var(--cw-line);border-radius:var(--cw-radius-panel);padding:8px 12px;background:var(--cw-surface)}
.cw-backfill-pending summary,.cw-backfill-limits summary{cursor:pointer;font-weight:600;min-height:var(--cw-touch-min);display:flex;align-items:center}
.cw-backfill-pending ul,.cw-backfill-limits ul{margin:8px 0 0;padding-left:20px;display:grid;gap:6px;font-size:14px}
.cw-backfill-cards{display:grid;gap:12px}
.cw-backfill-card{display:grid;gap:8px;padding:16px;border:1px solid var(--cw-line);border-radius:var(--cw-radius-panel);background:var(--cw-surface);min-width:0}
.cw-backfill-card-title{display:flex;justify-content:space-between;gap:8px;align-items:center;padding-bottom:8px;border-bottom:1px solid var(--cw-line);font-size:16px;font-weight:700;overflow-wrap:anywhere}
.cw-backfill-card-list{margin:0;display:grid;gap:6px}
.cw-backfill-card-row{display:flex;justify-content:space-between;gap:12px}
.cw-backfill-card-row dt{color:var(--cw-text-muted);flex:0 0 auto}
.cw-backfill-card-row dd{margin:0;text-align:right;min-width:0;overflow-wrap:anywhere}
.cw-backfill-card .cw-backfill-action,.cw-backfill-card .cw-backfill-go{width:100%;justify-items:stretch}
.cw-backfill-skeleton{display:grid;gap:12px}
.cw-backfill-skeleton-line{display:block;height:20px;border-radius:var(--cw-radius-tag);background:var(--cw-surface-soft);animation:cw-backfill-pulse 1.2s ease-in-out infinite alternate}
@keyframes cw-backfill-pulse{to{opacity:.55}}
.cw-backfill button:focus-visible,.cw-backfill summary:focus-visible,.cw-backfill input:focus-visible,.cw-backfill [tabindex]:focus-visible{outline:3px solid var(--cw-focus);outline-offset:3px}
@container cw-backfill (max-width:1100px){.cw-backfill-progress{grid-template-columns:repeat(auto-fit,minmax(9rem,1fr))}}
@container cw-backfill (max-width:767.98px){
 .cw-backfill-step{padding:12px}
 .cw-backfill-step-head .button{width:100%}
}
@media (prefers-reduced-motion:reduce){.cw-backfill-skeleton-line{animation:none}}

/* === login.css: DESIGN.md 1.11 §6「登入頁」: official full logo + blue tokens. Login page loads only workspace.css, so values mirror §3 tokens exactly
   (--cw-accent #0160F2, --cw-accent-hover #0150CC, --cw-focus #0B3B8C, --cw-text #1C2020, --cw-input-border #7B897F, --cw-radius-control 8px). */
.login-card .login-brand { display:block; width:180px; max-width:100%; height:auto; aspect-ratio:455/375; object-fit:contain; margin:0 auto 8px; color:inherit; }
.login-card h1 { color:#1C2020; font-size:28px; line-height:1.3; margin:16px 0 8px; }
.login-card input:not([type=checkbox]) { min-height:48px; border:1px solid #7B897F; border-radius:8px; padding:0 12px; font-size:16px; background:#FFFFFF; }
.login-card input:not([type=checkbox]):focus-visible { border-color:#0B3B8C; outline:3px solid #0B3B8C; outline-offset:-3px; }
.login-card .button-primary { min-height:48px; border-radius:8px; color:#FFFFFF; background:#0160F2; font-size:16px; font-weight:600; }
.login-card .button-primary:hover:not(:disabled) { background:#0150CC; }
.login-card .button:focus-visible, .login-card .login-remember input:focus-visible { outline:3px solid #0B3B8C; outline-offset:3px; }
.login-card .login-remember input { accent-color:#0160F2; }
@media (max-width:460px){ .login-card .login-brand { width:160px; } .login-card h1 { font-size:24px; } }
/* 1.12: EN switch is a secondary button pinned to the card's top-right corner (it no longer takes a row of its own under the logo). Account pages stay flat. */
.login-card { position:relative; }
.login-card #login-lang { position:absolute; top:16px; right:16px; min-height:44px; padding:0 16px; border:1px solid #7B897F; border-radius:8px; background:#FFFFFF; color:#1C2020; font-size:16px; font-weight:600; box-shadow:none; }
.login-card #login-lang:hover { border-color:#657070; }
@media (max-width:460px){ .login-card { padding-top:68px; } } /* room for 简体中文 above the centred logo */
/* Show/hide password button (inside the right edge of the password field). Flat, icon-only, 44px hit area; icons are CSS masks (line, 24 viewBox, stroke 1.75). */
.login-card .login-password-field { position:relative; }
.login-card .login-password-field input:not([type=checkbox]) { padding-right:52px; }
.login-card .login-password-field #password-toggle { position:absolute; right:2px; bottom:2px; display:flex; align-items:center; justify-content:center; box-sizing:border-box; width:44px; height:44px; min-height:44px; margin:0; padding:12px; border:0; border-radius:8px; background:transparent; color:#657070; box-shadow:none; transform:none; cursor:pointer; transition:color 150ms; }
.login-card .login-password-field #password-toggle[hidden] { display:none; }
.login-card .login-password-field #password-toggle:hover { color:#1C2020; box-shadow:none; transform:none; }
.login-card .login-password-field #password-toggle:focus-visible { outline:3px solid #0B3B8C; outline-offset:-3px; }
.login-card .login-password-field #password-toggle::before { content:""; display:block; width:20px; height:20px; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; }
.login-card .login-password-field #password-toggle[aria-pressed="true"]::before { -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E") center/contain no-repeat; }

/* === taxpack.css: tax pack page (PLAN-2D 11). Layout only; colours, fonts, buttons, tags and notices come from the shared tokens, gl.css and checks.css. Layout follows the content width (container query on .cw-taxpack; DESIGN.md 3 breakpoints). === */
.cw-taxpack{container:cw-taxpack/inline-size;display:grid;gap:16px;min-width:0;color:var(--cw-text)}
.cw-taxpack>*,.cw-taxpack-page>*{min-width:0}
.cw-taxpack-page{display:grid;gap:16px;min-width:0}
.cw-taxpack-summary{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:flex-start;justify-content:space-between}
.cw-taxpack-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.cw-taxpack-year{display:grid;gap:4px;font-size:14px;font-weight:600;min-width:0}
.cw-taxpack-year select{min-height:48px;max-width:100%;padding:0 12px;border:1px solid var(--cw-input-border);border-radius:var(--cw-radius-control);background:var(--cw-surface);color:var(--cw-text);font:inherit;font-size:16px;font-weight:400}
.cw-taxpack-year select:focus-visible{outline:3px solid var(--cw-focus);outline-offset:-3px}
.cw-taxpack-status{display:grid;gap:8px;justify-items:start;min-width:0}
.cw-taxpack-reasons{margin:0;padding-left:20px;display:grid;gap:4px;font-size:14px;overflow-wrap:anywhere}
.cw-taxpack-note{margin:0;color:var(--cw-text-muted);font-size:14px;overflow-wrap:anywhere}
.cw-taxpack-actions{display:grid;gap:6px;justify-items:start}
.cw-taxpack-actions .button{min-height:48px;padding:0 16px}
.cw-taxpack [aria-disabled="true"]{background:var(--cw-disabled-bg);color:var(--cw-text-muted);border-color:transparent;box-shadow:none;cursor:not-allowed;transform:none}
.cw-taxpack-cards{display:grid;gap:12px;grid-template-columns:1fr}
@container cw-taxpack (min-width:768px){.cw-taxpack-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container cw-taxpack (min-width:1024px){.cw-taxpack-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
.cw-taxpack-card{display:grid;gap:8px;align-content:start;padding:16px;border:1px solid var(--cw-line);border-radius:var(--cw-radius-panel);background:var(--cw-surface);min-width:0}
.cw-taxpack-card h3{margin:0;font-size:16px;font-weight:700;overflow-wrap:anywhere}
.cw-taxpack-card p{margin:0;font-size:14px;overflow-wrap:anywhere}
.cw-taxpack-card .cw-taxpack-amount{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cw-taxpack-retain{grid-column:1/-1}
.cw-taxpack-file{display:grid;gap:4px;font-size:14px;font-weight:600;min-width:0}
.cw-taxpack-file input{min-height:44px;max-width:100%;font-size:16px}
.cw-taxpack-check{display:grid;gap:6px}
.cw-taxpack-check-line{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0;font-size:14px}
.cw-taxpack-details{border:1px solid var(--cw-line);border-radius:var(--cw-radius-panel);padding:8px 12px;background:var(--cw-surface)}
.cw-taxpack-details summary{cursor:pointer;font-weight:600;min-height:var(--cw-touch-min);display:flex;align-items:center}
.cw-taxpack-details ul{margin:8px 0 0;padding-left:20px;display:grid;gap:6px;font-size:14px;overflow-wrap:anywhere}
.cw-taxpack-skeleton{display:grid;gap:12px}
.cw-taxpack-skeleton-line{display:block;height:20px;border-radius:var(--cw-radius-tag);background:var(--cw-surface-soft);animation:cw-taxpack-pulse 1.2s ease-in-out infinite alternate}
@keyframes cw-taxpack-pulse{from{opacity:1}to{opacity:.55}}
@media (prefers-reduced-motion:reduce){.cw-taxpack-skeleton-line{animation:none}}

/* === dashboard-v2.css: Dashboard v2 phase 1 (crosswind-live). Tokens: ui/design-tokens.css (--cw-*) only; chart series colours are DESIGN.md section 7 order 1-3 literals. === */
html{scroll-padding-top:80px}
.dv2{container-type:inline-size;container-name:dv2;display:grid;gap:24px;min-width:0;color:var(--cw-text)}
.dv2>*{min-width:0}
.dv2 *{box-sizing:border-box}
.dv2 .num{font-variant-numeric:tabular-nums;white-space:nowrap}
.dv2 button{font:inherit;cursor:pointer}
.dv2 :focus-visible{outline:3px solid var(--cw-focus);outline-offset:3px;scroll-margin-top:80px}
.dv2-hero :focus-visible,.dv2-hub :focus-visible{outline-color:var(--cw-focus-on-dark)}
.dv2-ico{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.dv2-ico-16{width:16px;height:16px}
.dv2-loading{margin:0;color:var(--cw-text-muted);font-size:14px}
.dv2-slot{min-width:0}
/* card */
.dv2-card[hidden]{display:none}
.dv2-card{background:var(--cw-surface);border:1px solid var(--cw-line);border-radius:var(--cw-radius-panel);padding:24px;display:flex;flex-direction:column;gap:16px;min-width:0}
.dv2-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.dv2-card-head h2{margin:0 auto 0 0;font-size:18px;font-weight:700;line-height:1.3}
.dv2-card-head h2 small{display:block;margin-top:2px;font-size:13px;font-weight:400;color:var(--cw-text-muted)}
.dv2-card-foot{margin-top:auto;padding-top:12px;border-top:1px solid var(--cw-line)}
.dv2-note,.dv2-stage-note{margin:0;font-size:13px;color:var(--cw-text-muted)}
.dv2 .dv2-drill{display:inline-flex;align-items:center;gap:4px;min-height:var(--cw-touch-min);padding:0;border:0;background:none;box-shadow:none;font-size:14px;font-weight:600;color:var(--cw-accent-hover);text-decoration:underline;text-underline-offset:3px}
.dv2 .dv2-drill:hover{color:var(--cw-accent);background:none;transform:none}
.dv2 .dv2-hero .dv2-drill{color:var(--cw-on-dark)}
/* buttons / tags / seg */
.dv2-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--cw-touch-min);padding:0 16px;border:1px solid var(--cw-input-border);border-radius:var(--cw-radius-control);background:var(--cw-surface);color:var(--cw-text);font-weight:600;white-space:nowrap;box-shadow:var(--cw-shadow-1);transition:transform var(--cw-fast) var(--cw-ease),box-shadow var(--cw-fast) var(--cw-ease)}
.dv2-btn:hover{transform:translateY(-2px);box-shadow:var(--cw-shadow-2)}
.dv2-btn:active{transform:translateY(1px)}
.dv2-flow-actions{display:flex;gap:8px}
.dv2-tag{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:var(--cw-radius-tag);font-size:13px;font-weight:600;white-space:nowrap;border:1px solid var(--cw-line);background:var(--cw-surface-soft);color:var(--cw-text)}
.dv2-tag-success{color:var(--cw-success);background:var(--cw-success-bg);border-color:var(--cw-success)}
.dv2-tag-pending{color:var(--cw-pending);background:var(--cw-pending-bg);border-color:var(--cw-pending)}
.dv2-seg{display:inline-flex;gap:8px}
.dv2-seg button{display:inline-flex;align-items:center;gap:4px;min-height:var(--cw-touch-min);padding:0 12px;border:1px solid var(--cw-input-border);border-radius:var(--cw-radius-control);background:var(--cw-surface);font-size:14px;font-weight:600;color:var(--cw-text)}
.dv2-seg button .dv2-ico{display:none}
.dv2-seg button[aria-pressed=true]{border:2px solid var(--cw-accent);padding:0 11px;background:var(--cw-accent-soft);color:var(--cw-accent-hover);font-weight:700}
.dv2-seg button[aria-pressed=true] .dv2-ico{display:block}
/* amounts */
.dv2-amount{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:6px;min-width:0}
.dv2-amount .cur{font-size:13px;font-weight:600;color:var(--cw-text-muted)}
.dv2-amount .val{font-size:32px;font-weight:700;line-height:1.2;white-space:nowrap}
.dv2-amount.is-pending .val{font-size:24px;color:var(--cw-pending)}
.dv2-amounts{display:grid;gap:4px}
/* KPI */
.dv2-kpis{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.dv2-kpi{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:var(--cw-radius-panel);background:var(--cw-surface-soft);border:1px solid var(--cw-line);min-width:0;transition:transform var(--cw-fast) var(--cw-ease),box-shadow var(--cw-fast) var(--cw-ease)}
.dv2-kpi:hover{transform:translateY(-2px);box-shadow:var(--cw-shadow-2)}
.dv2-kpi-top{display:flex;align-items:center;gap:12px;min-width:0}
.dv2-kpi-ico{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;flex:none;background:var(--cw-accent-soft);color:var(--cw-accent)}
.dv2-kpi-label{font-size:14px;font-weight:600;color:var(--cw-text-muted);line-height:1.3;min-width:0}
.dv2-kpi-title{display:block;color:var(--cw-text);font-size:16px;font-weight:700}
.dv2-kpi .dv2-big .val{font-size:32px}
.dv2-hero .dv2-big .val{font-size:40px}
.dv2-kpi-sub{margin:0;font-size:13px;color:var(--cw-text-muted)}
.dv2-kpi .cw-profit-note{margin:0;font-size:13px}
.dv2-excluded{margin:0;padding:0;list-style:none;font-size:13px;color:var(--cw-text-muted);display:grid;gap:2px}
.dv2-kpi-foot{margin-top:auto;padding-top:8px;border-top:1px solid var(--cw-line)}
.dv2-kpi.dv2-hero{background:var(--cw-dark);border-color:var(--cw-dark);color:var(--cw-on-dark)}
.dv2-hero .dv2-kpi-label{color:var(--cw-on-dark-muted)}.dv2 .dv2-hero .dv2-kpi-title{color:var(--cw-on-dark)}
.dv2-hero .dv2-kpi-ico{background:rgba(255,255,255,.08);color:var(--cw-on-dark-accent)}
.dv2-hero .dv2-kpi-sub,.dv2-hero .dv2-excluded,.dv2-hero .dv2-amount .cur{color:var(--cw-on-dark-muted)}
.dv2-hero .dv2-amount.is-pending .val{color:var(--cw-focus-on-dark)}
.dv2-hero .dv2-kpi-foot{border-color:rgba(255,255,255,.14)}
/* rows (pending, banks) */
.dv2-rows{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.dv2-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px;width:100%;min-height:64px;padding:12px 16px;text-align:left;color:var(--cw-text);border:1px solid var(--cw-line);border-radius:var(--cw-radius-panel);background:var(--cw-surface);box-shadow:var(--cw-shadow-1);transition:transform var(--cw-fast) var(--cw-ease),box-shadow var(--cw-fast) var(--cw-ease)}
.dv2-row:hover{transform:translateY(-2px);box-shadow:var(--cw-shadow-2)}
.dv2-row:active{transform:translateY(1px)}
.dv2-row-ico{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--cw-surface-soft);border:1px solid var(--cw-line)}
.dv2-row-main{display:grid;gap:2px;min-width:0}
.dv2-row-title{font-weight:700;line-height:1.3}
.dv2-row-sub{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:13px;color:var(--cw-text-muted)}
.dv2-row-val{font-size:24px;font-weight:700;line-height:1.2}
.dv2-chev{color:var(--cw-text-muted)}
.dv2-row-note{font-size:14px;color:var(--cw-text-muted)}
.dv2-row .dv2-amount .val{font-size:24px}.dv2-row .dv2-amount.is-pending .val{font-size:16px}
.dv2-pending .dv2-row-val{text-align:right}
/* pair */
.dv2-pair{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
/* statement + chart */
.dv2-pnl{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.dv2-steps{margin:0;display:grid}
.dv2-step{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:8px;padding:8px 0;border-bottom:1px solid var(--cw-line)}
.dv2-step dt{font-weight:600}
.dv2-step dt small{display:block;font-size:12px;font-weight:400;color:var(--cw-text-muted)}
.dv2-step dd{margin:0;text-align:right}
.dv2-step .dv2-amount{justify-content:flex-end}
.dv2-step .dv2-amount .val{font-size:16px;font-weight:400}
.dv2-step.is-sub .val,.dv2-step.is-total .val{font-weight:700}
.dv2-step.is-total{border-bottom:0;border-top:2px solid var(--cw-text)}
.dv2-step.is-total .val{font-size:18px}
.dv2-statement .cw-profit-note{margin:12px 0 0;font-size:13px}
.dv2-trend{min-width:0}
.dv2-chart-box{position:relative;min-width:0}
.dv2 .dv2-chart-box .dv2-chart{width:100%!important;height:auto!important;max-width:none;display:block;overflow:visible}
.dv2-chart text{font:400 12px var(--cw-font);fill:var(--cw-text-muted)}
.dv2-chart-in{animation:dv2-in var(--cw-chart) var(--cw-ease) both}
@keyframes dv2-in{from{opacity:0}to{opacity:1}}
.dv2-grid{stroke:var(--cw-line);stroke-width:1}
.dv2-zero{stroke:var(--cw-text-muted);stroke-width:1}
.dv2-hl{fill:var(--cw-surface-soft)}
.dv2-s1{fill:#0160F2}.dv2-s2{fill:rgb(200,65,21)}
.dv2-s3-line{stroke:#11866A;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.dv2-s3-dot{fill:#11866A;stroke:var(--cw-surface);stroke-width:2}
.dv2-legend{display:flex;flex-wrap:wrap;gap:4px 16px;margin-bottom:8px;font-size:13px}
.dv2-legend span{display:inline-flex;align-items:center;gap:6px}
.dv2-legend i{width:12px;height:12px;border-radius:3px}
.dv2-k1{background:#0160F2}.dv2-k2{background:rgb(200,65,21)}.dv2-k3{background:#11866A}
.dv2-tip{position:absolute;z-index:5;pointer-events:none;min-width:168px;padding:8px 12px;border-radius:var(--cw-radius-control);background:var(--cw-surface);border:1px solid var(--cw-line);box-shadow:var(--cw-shadow-2);font-size:13px;opacity:0;transition:opacity var(--cw-fast) var(--cw-ease)}
.dv2-tip.on{opacity:1}
.dv2-tip b{display:block;margin-bottom:4px}
.dv2-tip div{display:flex;justify-content:space-between;gap:16px}
.dv2-table-scroll{overflow-x:auto;border:1px solid var(--cw-line);border-radius:var(--cw-radius-control)}
.dv2-data-table{width:100%;border-collapse:collapse;font-size:14px}
.dv2-data-table caption{text-align:left;font-size:13px;color:var(--cw-text-muted);padding:8px 16px}
.dv2-data-table th,.dv2-data-table td{padding:8px 16px;text-align:right;border-top:1px solid var(--cw-line);white-space:nowrap}
.dv2-data-table th:first-child,.dv2-data-table td:first-child{text-align:left}
.dv2-data-table thead th{font-size:13px;font-weight:600;color:var(--cw-text-muted);background:var(--cw-surface-soft)}
.dv2-empty{display:grid;justify-items:center;padding:32px 16px;text-align:center;color:var(--cw-text-muted);background:var(--cw-surface-soft);border-radius:var(--cw-radius-control)}
/* capital flow */
.dv2-flow{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.dv2-links{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;display:none}
.dv2-link{stroke:var(--cw-input-border);stroke-width:1}
.dv2-arrow{stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.dv2-dot{fill:var(--cw-accent)}
.dv2-stage{min-width:0;display:grid;gap:12px;align-content:center;position:relative;z-index:1}
.dv2-stage-title{margin:0;font-size:13px;font-weight:600;color:var(--cw-text-muted)}
.dv2-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dv2-person{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:12px 16px;text-align:left;color:var(--cw-text);border:1px solid var(--cw-line);border-radius:var(--cw-radius-panel);background:var(--cw-surface);min-width:0;box-shadow:var(--cw-shadow-1);transition:transform var(--cw-fast) var(--cw-ease),box-shadow var(--cw-fast) var(--cw-ease)}
.dv2-person:hover{transform:translateY(-2px);box-shadow:var(--cw-shadow-2)}
.dv2-person:active{transform:translateY(1px)}
.dv2-person .cw-avatar{width:56px;height:56px;border:1px solid var(--cw-line);background-color:var(--cw-surface-soft)}
.dv2-person-body{display:grid;gap:2px;min-width:0}
.dv2-person-name{font-weight:700;line-height:1.3}
.dv2-person .dv2-tot .val{font-size:24px}
.dv2-person .dv2-tot.is-pending .val{font-size:16px}
.dv2-person .dv2-chev,.dv2-person>.dv2-ico{color:var(--cw-text-muted)}
.dv2-custody{display:block;font-size:13px;color:var(--cw-text-muted)}
.dv2-custody .dv2-amount{display:inline-flex}
.dv2-custody .dv2-amount .val{font-size:13px;font-weight:600;color:var(--cw-text)}
.dv2-custody b{font-weight:600;color:var(--cw-pending)}
.dv2-custody-row{display:none;align-items:center;gap:8px;min-height:var(--cw-touch-min);font-size:13px;color:var(--cw-text-muted)}
.dv2-flow-toggle{display:none;width:100%}
.dv2-flow-toggle .dv2-ico{transition:transform var(--cw-slow) var(--cw-ease)}
.dv2-flow-toggle[aria-expanded=true] .dv2-ico{transform:rotate(90deg)}
.dv2-flow-rest{display:grid;gap:12px;min-width:0}
.dv2-vlink{position:relative;height:24px;display:block}
.dv2-vlink::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:var(--cw-input-border)}
.dv2-vlink::after{content:"";position:absolute;left:50%;top:0;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:var(--cw-accent);opacity:0}
.dv2-hub{display:grid;gap:4px;padding:16px;border-radius:var(--cw-radius-panel);background:var(--cw-dark);color:var(--cw-on-dark);min-width:0;transition:transform var(--cw-fast) var(--cw-ease),box-shadow var(--cw-fast) var(--cw-ease)}
.dv2-hub:hover{transform:translateY(-2px);box-shadow:var(--cw-shadow-2)}
.dv2-hub-label{font-size:14px;font-weight:600;color:var(--cw-on-dark-muted)}
.dv2-hub .dv2-amount .cur{color:var(--cw-on-dark-muted)}
.dv2-hub .dv2-tot .val{font-size:32px;white-space:normal;overflow-wrap:anywhere}
.dv2-hub .dv2-tot.is-pending .val{font-size:24px;color:var(--cw-on-dark)}
.dv2-hub-sub{font-size:13px;color:var(--cw-on-dark-muted)}
.dv2-hub-warn{color:var(--cw-focus-on-dark)}
.dv2 .usage-radial{position:static;width:auto;max-width:none;aspect-ratio:auto;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dv2 .usage-chart{padding:0;border:0;background:none}
.dv2-use{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:0 12px;min-height:56px;padding:6px 12px;text-align:left;color:var(--cw-text);border:1px solid var(--cw-line);border-radius:var(--cw-radius-control);background:var(--cw-surface-soft);min-width:0}
.dv2-use:hover{background:var(--cw-surface);border-color:var(--cw-input-border)}
.dv2-use[aria-expanded=true]{border:2px solid var(--cw-accent);padding:5px 11px;background:var(--cw-accent-soft)}
.dv2-use .dv2-ico{grid-row:span 2;color:var(--cw-text-muted)}
.dv2-use .dv2-use-name{grid-column:2/4}.dv2-use small{grid-column:3;grid-row:2;text-align:right}
.dv2-use .usage-amount{grid-column:2;grid-row:2}
.dv2-stage .usage-caveat{font-size:12px}
.dv2-use-name{font-size:13px;color:var(--cw-text-muted);line-height:1.3}
.dv2-use .usage-amount{font-weight:700;font-size:16px;white-space:nowrap}
.dv2-use small{font-size:12px;color:var(--cw-text-muted)}
.dv2-detail{display:grid;gap:8px;padding:12px 16px;border:1px solid var(--cw-line);border-radius:var(--cw-radius-control);background:var(--cw-surface-soft)}
.dv2-detail h4,.dv2-detail p{margin:0}.dv2-detail[hidden]{display:none}
.dv2-detail .usage-detail-list{margin:0;padding-left:20px;font-size:13px}
@media (prefers-reduced-motion:no-preference){
 .dv2-flow[data-anim=run] .dv2-vlink::after{animation:dv2-vdot 1.6s var(--cw-ease) 3}
 .dv2-flow[data-anim=stop] .dv2-vlink::after{animation:dv2-vdot 1.6s var(--cw-ease) 3 paused}
 @keyframes dv2-vdot{0%{opacity:0;transform:translateY(0)}20%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translateY(24px)}}
}
/* no animation, no hover lift anywhere in the v2 block */
@media (prefers-reduced-motion:reduce){
 .dv2 *,.dv2 *::before,.dv2 *::after{animation:none!important;transition:none!important;transform:none!important}
 .dv2-flow-actions{display:none}
}
/* layout by container width (DESIGN section 3: usable content width) */
.dv2-owner:has(> .p7a-funds) > .dv2-now{display:none}.dv2-owner:has(> .p7a-funds) .dv2-banks{display:none}.dv2-owner:has(> .p7a-funds) .dv2-pair{grid-template-columns:minmax(0,1fr)}
.dv2-pair.dv2-solo{grid-template-columns:minmax(0,1fr)}
.dv2-slot-pending{order:-1}.dv2-now{order:1}.dv2-slot-flow{order:2}.dv2-pair{order:4}
@container dv2 (min-width:460.02px){.dv2-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container dv2 (min-width:768px){.dv2-steps{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
 .dv2-step{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px;border:1px solid var(--cw-line);border-radius:var(--cw-radius-control)}
 .dv2-step dd{text-align:left}.dv2-step .dv2-amount{justify-content:flex-start}.dv2-step.is-total{border-top:2px solid var(--cw-text)}}
@container dv2 (min-width:1100.02px){
 .dv2-kpis{grid-template-columns:minmax(0,1.35fr) repeat(3,minmax(0,1fr))}
 .dv2-pair{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
 .dv2-flow{grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr) minmax(0,1fr);column-gap:48px;align-items:center}
 .dv2-links{display:block}
 .dv2-people{grid-template-columns:minmax(0,1fr)}
 .dv2-flow-rest{display:contents}
 .dv2-vlink{display:none}
 .dv2 .usage-radial{grid-template-columns:minmax(0,1fr)}
}
@container dv2 (max-width:1500px){.dv2-hub .dv2-tot .val{font-size:24px}}
@container dv2 (max-width:767.98px){
 .dv2-card{padding:16px}
 .dv2-flow-toggle{display:inline-flex}
 .dv2-people{gap:8px}
 .dv2-person{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;padding:12px 4px;gap:4px}
 .dv2-person .cw-avatar{width:40px;height:40px}
 .dv2-person-name{font-size:14px}
 .dv2-person .dv2-tot .val{font-size:16px}
 .dv2-person>.dv2-ico,.dv2-person .dv2-custody{display:none}
 .dv2-custody-row{display:flex}
 .dv2 .usage-radial{grid-template-columns:minmax(0,1fr)}
 .dv2-hub .dv2-tot .val{font-size:24px}
 .dv2-row{grid-template-columns:auto minmax(0,1fr) auto}
 .dv2-row .dv2-chev{display:none}
}
@container dv2 (max-width:460px){.dv2-kpi .dv2-big .val{font-size:28px}.dv2-amount .val{font-size:24px}}
@media print{.dv2-flow-actions{display:none}}
.dv2-flow-rest[hidden],.dv2-flow-actions[hidden]{display:none}

/* collapsed reconciliation caption */
.dv2-caption{display:grid;gap:4px}
.dv2 .dv2-caption-toggle{box-shadow:none;display:inline-flex;align-items:center;gap:4px;justify-self:start;min-height:var(--cw-touch-min);padding:0;border:0;background:none;font-size:13px;font-weight:600;color:var(--cw-accent-hover);text-decoration:underline;text-underline-offset:3px}
.dv2-caption-toggle .dv2-ico{transition:transform var(--cw-fast) var(--cw-ease)}
.dv2-caption-toggle[aria-expanded=true] .dv2-ico{transform:rotate(90deg)}
.dv2-caption .usage-caveat[hidden]{display:none}
/* pending rows: right-side action + thin progress bar */
.dv2-row-static{cursor:default}
.dv2-row-static:hover{transform:none;box-shadow:var(--cw-shadow-1)}
.dv2-row-static{grid-template-columns:auto minmax(0,1fr) auto auto}
.dv2-action{display:inline-flex;align-items:center;gap:4px;min-height:var(--cw-touch-min);padding:0 12px;border:1px solid var(--cw-input-border);border-radius:var(--cw-radius-control);background:var(--cw-surface);color:var(--cw-accent-hover);font-size:14px;font-weight:600;white-space:nowrap;box-shadow:var(--cw-shadow-1);transition:transform var(--cw-fast) var(--cw-ease),box-shadow var(--cw-fast) var(--cw-ease)}
.dv2-action:hover{transform:translateY(-2px);box-shadow:var(--cw-shadow-2)}
.dv2-progress{display:block;height:6px;margin-top:6px;border-radius:3px;background:var(--cw-accent-soft);overflow:hidden}
.dv2-progress i{display:block;height:100%;border-radius:3px;background:var(--cw-accent)}
.dv2-more{margin-top:0}.dv2-more-body{display:grid;gap:16px;padding-top:16px}
@container dv2 (max-width:767.98px){.dv2-row-static{grid-template-columns:auto minmax(0,1fr) auto}.dv2-row-static .dv2-action{grid-column:1/-1;justify-content:center}}
/* === end dashboard-v2.css === */

/* === gl.css: trial general ledger page. DESIGN.md tokens with literal fallbacks; layout follows the content width (container query on .cw-gl). === */
.cw-gl{container:cw-gl/inline-size;display:grid;gap:16px;min-width:0;color:var(--cw-text)}
.cw-gl>*{min-width:0}
.cw-gl-banner{margin:0;padding:12px 16px;border-radius:8px;background:var(--cw-pending-bg);color:var(--cw-pending);font-weight:600;line-height:1.5}
.cw-gl-status{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
.cw-gl-chip{padding:4px 12px;border-radius:6px;font-weight:600;background:var(--cw-info-bg);color:var(--cw-info)}
.cw-gl-chip[data-tone=ok]{background:var(--cw-success-bg);color:var(--cw-success)}
.cw-gl-chip[data-tone=warn]{background:var(--cw-pending-bg);color:var(--cw-pending)}
.cw-gl-meta,.cw-gl-sub,.cw-gl-note-line{color:var(--cw-text-muted);font-size:13px;overflow-wrap:anywhere}
.cw-gl-limits{margin:0;padding:12px 16px 12px 32px;border:1px solid var(--cw-line);border-radius:12px;background:var(--cw-surface-soft);color:var(--cw-text-muted);font-size:13px;line-height:1.6}
.cw-gl-form{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.cw-gl-form label,.cw-gl-pick{display:grid;gap:4px;font-size:13px;color:var(--cw-text-muted)}
.cw-gl-form input,.cw-gl-form select,.cw-gl-pick select{min-height:44px;box-sizing:border-box;border:1px solid var(--cw-input-border);border-radius:8px;padding:0 12px;font:inherit;font-size:16px;background:var(--cw-surface);color:var(--cw-text)}
.cw-gl-form-error{margin:0;color:var(--cw-error)}
.cw-gl-form-error:empty{display:none}
.cw-gl-cents{display:flex;align-items:center;gap:12px;min-height:44px;font-weight:600}
.cw-gl-cents input{width:24px;height:24px;margin:0;accent-color:var(--cw-accent)}
.cw-gl-tabs{display:flex;flex-wrap:wrap;gap:8px}
.cw-gl-tab{min-height:44px;padding:8px 16px;border:1px solid var(--cw-line);border-radius:8px;background:var(--cw-surface);color:var(--cw-text);font:inherit;font-weight:600;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.cw-gl-tab-active{background:var(--cw-accent-soft);border-color:var(--cw-accent);color:var(--cw-accent)}
.cw-gl button:focus-visible,.cw-gl input:focus-visible,.cw-gl select:focus-visible,.cw-gl [role=tabpanel]:focus-visible{outline:3px solid var(--cw-focus);outline-offset:3px}
.cw-gl-panel{display:grid;gap:16px;min-width:0}
.cw-gl-block{display:grid;gap:8px;min-width:0}
.cw-gl-block h3,.cw-gl-empty h3{margin:0;font-size:18px}
.cw-gl-notice{margin:0;padding:12px 16px;border-radius:8px;background:var(--cw-info-bg);color:var(--cw-info);line-height:1.5;overflow-wrap:anywhere}
.cw-gl-notice[data-tone=warn]{background:var(--cw-pending-bg);color:var(--cw-pending)}
.cw-gl-notice[data-tone=bad]{background:var(--cw-error-bg);color:var(--cw-error)}
.cw-gl-notice[data-tone=ok]{background:var(--cw-success-bg);color:var(--cw-success)}
.cw-gl-notice[data-tone=muted]{background:var(--cw-surface-soft);color:var(--cw-text-muted)}
.cw-gl-scroll{max-width:100%;overflow-x:auto}
.cw-gl-table{border-collapse:collapse;width:100%;background:var(--cw-surface)}
.cw-gl-table th,.cw-gl-table td{padding:8px 12px;border-top:1px solid var(--cw-line);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.cw-gl-table th{background:var(--cw-surface-soft);color:var(--cw-text-muted);font-size:13px;font-weight:600}
.cw-gl-table .cw-gl-n{text-align:right}
.cw-gl-table td>*{display:inline-block;max-width:100%}
.cw-gl-table td>.cw-gl-sub,.cw-gl-table td>.cw-gl-note-line,.cw-gl-table td>.cw-gl-text+.cw-gl-tag{display:block}
.cw-gl-em-sub td{font-weight:600;background:var(--cw-surface-soft)}
.cw-gl-em-total td{font-weight:700;border-top:2px solid var(--cw-line)}
[data-tone=bad].cw-gl-row td:first-child{box-shadow:inset 3px 0 0 var(--cw-error)}
.cw-gl-amt{display:inline-flex;gap:4px;align-items:baseline;font-variant-numeric:tabular-nums;white-space:nowrap}
.cw-gl-cur{font-size:12px;color:var(--cw-text-muted)}
.cw-gl-num{font-variant-numeric:tabular-nums}
.cw-gl-side{margin-left:4px;font-size:12px;color:var(--cw-text-muted)}
.cw-gl-tag{display:inline-block;margin:2px 4px 2px 0;padding:2px 8px;border-radius:6px;font-size:13px;font-weight:600;background:var(--cw-info-bg);color:var(--cw-info)}
.cw-gl-tag[data-tone=ok]{background:var(--cw-success-bg);color:var(--cw-success)}
.cw-gl-tag[data-tone=warn]{background:var(--cw-pending-bg);color:var(--cw-pending)}
.cw-gl-tag[data-tone=bad]{background:var(--cw-error-bg);color:var(--cw-error)}
.cw-gl-tag[data-tone=muted]{background:var(--cw-surface-soft);color:var(--cw-text-muted)}
.cw-gl-action{min-height:44px;margin-top:4px}
.cw-gl-cards{display:grid;gap:12px}
.cw-gl-card{display:grid;gap:8px;padding:16px;border:1px solid var(--cw-line);border-radius:12px;background:var(--cw-surface);min-width:0}
.cw-gl-card[data-tone=bad]{border-color:var(--cw-error)}
.cw-gl-card-title{display:grid;gap:2px;padding-bottom:8px;border-bottom:1px solid var(--cw-line);font-weight:600;overflow-wrap:anywhere}
.cw-gl-card-list{margin:0;display:grid;gap:6px}
.cw-gl-card-row{display:flex;justify-content:space-between;gap:16px;align-items:baseline}
.cw-gl-card-row dt{color:var(--cw-text-muted);flex:0 1 40%;text-align:left}
.cw-gl-card-row dd{margin:0;flex:1 1 55%;display:grid;justify-items:end;text-align:right;overflow-wrap:anywhere}
.cw-gl-facts{margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:12px}
.cw-gl-fact{padding:12px 16px;border:1px solid var(--cw-line);border-radius:12px;background:var(--cw-surface)}
.cw-gl-fact dt{color:var(--cw-text-muted);font-size:13px}
.cw-gl-fact dd{margin:4px 0 0;font-size:18px;font-weight:700}
.cw-gl-fact dd>.cw-gl-sub,.cw-gl-fact dd>.cw-gl-note-line{display:block;margin-top:2px;font-weight:400}
.cw-gl-empty,.cw-gl-error{display:grid;gap:8px;justify-items:start;padding:24px;border:1px solid var(--cw-line);border-radius:12px;background:var(--cw-surface);line-height:1.6}
.cw-gl-empty p,.cw-gl-error p{margin:0}
.cw-gl-error{background:var(--cw-error-bg);color:var(--cw-error);border-color:var(--cw-error-bg)}
.cw-gl-loading{margin:0;color:var(--cw-text-muted)}
.cw-gl-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@container cw-gl (max-width:767.98px){.cw-gl-empty,.cw-gl-error{padding:16px}.cw-gl-facts{grid-template-columns:1fr 1fr}}
@container cw-gl (max-width:480px){.cw-gl-form label,.cw-gl-form button{min-width:100%}.cw-gl-form input,.cw-gl-form select{width:100%}.cw-gl-facts{grid-template-columns:1fr}.cw-gl-tab{flex:1 1 calc(50% - 8px)}}
@media (prefers-reduced-motion:reduce){.cw-gl *{transition:none!important;animation:none!important}}
