:root {
  --ink: #142d46;
  --text: #263746;
  --muted: #687989;
  --line: #dce4eb;
  --blue: #245e89;
  --blue-light: #d9eaf7;
  --paper: #fff;
  --page: #f0f3f6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--page);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.6; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #85b8de; outline-offset: 3px; }
input { width: 100%; min-width: 0; border: 1px solid #cbd6e0; border-radius: 4px; background: #fff; color: var(--ink); padding: 10px 12px; min-height: 43px; }
input:focus { border-color: var(--blue); }
input:disabled { background: #f4f6f8; }
label { display: block; margin-bottom: 6px; font-size: 12px; color: #4f6477; font-weight: 600; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 29px; line-height: 1.35; letter-spacing: -.4px; color: var(--ink); }
h2 { font-size: 18px; color: var(--ink); }
h3 { font-size: 15px; color: var(--ink); }
.muted { color: var(--muted); }
.eyebrow { color: #7690a6; font-size: 10px; letter-spacing: 2.1px; font-weight: 700; margin-bottom: 7px; }
.button { min-height: 42px; padding: 9px 16px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.primary { color: #fff; background: var(--ink); }
.primary:hover:not(:disabled) { background: #234967; }
.outline { color: var(--ink); border-color: #b9cad9; background: #fff; }
.outline:hover:not(:disabled) { background: #f1f7fc; }
.quiet { background: transparent; color: #516c81; padding: 8px 10px; }
.quiet:hover:not(:disabled) { background: #eef4f9; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: .3px; color: var(--ink); text-decoration: none; }
.wordmark-image { display: block; width: 248px; height: 48px; max-width: 100%; }
.login-view { min-height: 100svh; display: grid; place-items: center; padding: 32px 22px; }
.login-paper { width: min(920px, 100%); display: grid; grid-template-columns: 1.07fr 1fr; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 65px #152d4610; border-radius: 5px; overflow: hidden; }
.login-intro { padding: 42px 42px 35px; background: var(--ink); color: #c8d8e7; }
.login-intro .wordmark-image { filter: brightness(0) invert(1); }
.login-intro .eyebrow { margin-top: 59px; color: #98b5cb; }
.login-intro h1 { color: #fff; font-size: 31px; margin: 12px 0 17px; }
.login-intro > p:not(.eyebrow) { font-size: 14px; line-height: 1.9; max-width: 330px; }
.login-form-area { padding: 68px 43px 40px; }
.login-account-hint { margin-top: 7px; font-size: 12px; color: var(--muted); }
#login-form { margin-top: 30px; }
#login-form input { margin-bottom: 20px; }
#login-button { width: 100%; margin-top: 6px; }
#login-reset-button { width: 100%; margin-top: 7px; }
#login-two-factor-step input { font-variant-numeric: tabular-nums; letter-spacing: 7px; }
#login-code-help { font-size: 12px; margin: -9px 0 17px; }
.login-status { margin-top: 12px; font-size: 12px; min-height: 19px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1560px; padding: 18px 32px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.account-area { display: flex; align-items: center; gap: 22px; min-width: 0; }
.account-area > div { text-align: right; line-height: 1.45; min-width: 0; overflow-wrap: anywhere; }
.account-area strong { font-size: 12px; color: var(--ink); display: block; }
.account-area span { color: var(--muted); font-size: 11px; }
.workspace { max-width: 1560px; margin: 0 auto; padding: 30px 32px 24px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 23px; }
.page-heading h1 { font-size: 26px; }
.filter-paper { border: 1px solid var(--line); background: var(--paper); padding: 18px 22px 0; border-radius: 4px; }
.filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.filter-heading h2 { font-size: 13px; }
.filter-heading > span { color: #7c8d9a; font-size: 11px; }
.filter-fields { display: grid; grid-template-columns: minmax(155px, 1fr) minmax(155px, 1fr) minmax(165px, .85fr) auto auto; align-items: end; gap: 14px; }
.fx-field input { background: #fff9e5; border-color: #decea0; font-variant-numeric: tabular-nums; }
.download-symbol { font-size: 17px; margin-right: 3px; }
.filter-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.date-presets { display: flex; gap: 4px; flex-wrap: wrap; }
.date-presets button { padding: 5px 12px; border: 1px solid transparent; border-radius: 3px; color: #607485; background: #f3f6f8; font-size: 12px; }
.date-presets button:hover:not(:disabled), .date-presets button.active { background: #e5f0f8; border-color: #c8ddec; color: #255981; }
.filter-bottom p { font-size: 11px; color: var(--muted); }
.filter-state { margin: 0 -22px; background: #f8fafc; padding: 9px 22px; border-top: 1px solid #e7edf2; font-size: 11px; color: #748493; display: flex; justify-content: space-between; gap: 18px; }
.filter-state .pending { color: #886417; font-weight: 600; }
.filter-state .expired { color: #a64032; font-weight: 600; }
.message { padding: 11px 14px; border: 1px solid; border-radius: 3px; font-size: 12px; margin: 15px 0; line-height: 1.7; overflow-wrap: anywhere; }
.message.error { background: #fff2ef; color: #9a4437; border-color: #f1d2ca; }
.message.notice { background: #f0f6fa; color: #3d6582; border-color: #d2e2ee; }
.message.warning { background: #fff8e6; color: #886717; border-color: #ebdda9; }
.statement-summary { display: grid; grid-template-columns: 1.65fr 1fr 1fr .7fr; background: #fff; margin: 18px 0; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 3px; padding: 17px 20px; }
.statement-summary > div { padding: 0 22px; border-left: 1px solid #e5ebf0; }
.statement-summary > div:first-child { border: 0; padding-left: 0; }
.summary-label { display: block; color: #718496; font-size: 11px; margin-bottom: 5px; }
.statement-summary strong { display: block; color: var(--ink); }
.statement-summary .amount { font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.statement-period strong { font-size: 15px; line-height: 1.7; }
.statement-period > span:last-child { font-size: 10px; color: #8997a3; }
.workbook { background: #fff; border: 1px solid var(--line); border-radius: 4px; margin-top: 18px; overflow: hidden; }
.sheet-tabs { display: flex; background: #f6f9fb; border-bottom: 1px solid var(--line); padding: 0 20px; overflow-x: auto; scrollbar-width: thin; }
.sheet-tabs button { flex: 0 0 auto; color: #647a8c; font-size: 13px; background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 16px 20px 13px; position: relative; }
.sheet-tabs button[aria-selected="true"] { color: var(--ink); background: #fff; font-weight: 700; border-bottom-color: var(--blue); }
.sheet-tabs button:hover { color: var(--ink); background: #eef4f8; }
.sheet-content { min-height: 310px; padding: 22px; outline: none; }
.sheet-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 17px; }
.sheet-heading p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.sheet-heading .sheet-unit { color: #6d8497; font-size: 11px; white-space: nowrap; margin-top: 3px; }
.table-scroll { width: 100%; overflow: auto; border: 1px solid #d5e1ea; border-radius: 2px; scrollbar-width: thin; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; background: #fff; }
th { font-weight: 600; color: #214e6e; background: var(--blue-light); padding: 11px 13px; text-align: left; white-space: normal; border-bottom: 1px solid #c2d8e9; position: sticky; top: 0; z-index: 1; vertical-align: top; }
td { padding: 11px 13px; border-bottom: 1px solid #e8edf2; color: #405666; vertical-align: top; }
th:not(:last-child), td:not(:last-child) { border-right: 1px solid #edf1f5; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f6f9fb; }
td.numeric, th.numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tfoot td { background: #eaf3fa; font-weight: 700; color: #214e6e; border-top: 1px solid #cbddea; border-bottom: 0; }
.subsection-heading { margin: 22px 0 12px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.subsection-heading p { color: var(--muted); font-size: 11px; }
.price-table { min-width: 1110px; table-layout: fixed; }
.price-table th:first-child { width: 13%; }
.price-table th:nth-child(2) { width: 23%; }
.price-table th:nth-child(3) { width: 14%; }
.price-table th { min-width: 120px; line-height: 1.6; }
.price-table td { padding-top: 15px; padding-bottom: 15px; }
.model-names { display: flex; flex-wrap: wrap; gap: 4px; }
.model-name { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 11px; padding: 2px 4px; background: #edf3f7; color: #304e65; border-radius: 2px; overflow-wrap: anywhere; }
.price-pair { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; }
.price-before { color: #687e8f; }
.price-arrow { color: #95a7b5; font-size: 11px; }
.price-after { color: #153f5f; font-weight: 700; }
.price-group { overflow-wrap: anywhere; }
.price-groups { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -4px 0 14px; color: #4f687c; font-size: 11px; }
.price-unspecified { font-size: 11px; color: #8a99a5; }
.price-update { margin: -6px 0 14px; color: #6c7f8e; font-size: 11px; }
.image-table { min-width: 680px; }
.detail-table { min-width: 2280px; }
.detail-table th { min-width: 125px; max-width: 180px; }
.detail-table th:first-child { min-width: 165px; }
.detail-table td { white-space: nowrap; padding-top: 12px; padding-bottom: 12px; }
.detail-table .model-name { background: transparent; padding: 0; white-space: nowrap; }
.detail-table td.request-id { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.detail-table .muted-value { color: #93a0ab; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; color: #718494; font-size: 11px; }
.pagination-actions { display: flex; align-items: center; gap: 12px; }
.pagination .button { min-height: 32px; padding: 5px 11px; font-size: 11px; }
.sheet-footnote { font-size: 11px; color: #7a8b99; margin-top: 13px; line-height: 1.8; }
.scroll-hint { display: none; }
.summary-table { min-width: 520px; }
.summary-table td:first-child { color: #294e69; }
.summary-table th:first-child { width: 38%; }
.person-model-table { min-width: 670px; }
.empty-state { text-align: center; padding: 60px 20px; color: #7d8e9d; }
.empty-rule { display: block; width: 36px; height: 3px; background: #c6d9e7; margin: 0 auto 22px; }
.empty-state h2 { color: #557087; font-size: 16px; margin-bottom: 10px; }
.empty-state p { font-size: 12px; line-height: 1.8; max-width: 570px; margin: 0 auto; }
.empty-state .button { margin-top: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 900px) {
  .details-scroll { max-height: 620px; }
  .detail-table th:first-child, .detail-table td:first-child { position: sticky; left: 0; background: #fff; z-index: 2; border-right-color: #cbdbe7; }
  .detail-table th:first-child { background: var(--blue-light); z-index: 3; }
}
@media (max-width: 1060px) {
  .filter-fields { grid-template-columns: 1fr 1fr 1fr; }
  .filter-fields > .button { grid-row: 2; }
  #query-button { grid-column: 2; }
  #export-button { grid-column: 3; }
  .filter-bottom { align-items: flex-start; flex-direction: column; gap: 9px; }
  .statement-summary { grid-template-columns: 1.5fr 1fr 1fr; }
  .statement-summary > div:last-child { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 13px; }
  .login-view { padding: 18px 14px; align-items: start; }
  .login-paper { grid-template-columns: 1fr; }
  .login-intro { padding: 24px; }
  .login-intro .eyebrow { margin-top: 27px; }
  .login-intro h1 { font-size: 25px; margin-bottom: 10px; }
  .login-intro > p:not(.eyebrow) { font-size: 12px; max-width: none; }
  .login-form-area { padding: 25px 24px; }
  .header-inner { padding: 13px 15px; gap: 13px; flex-wrap: wrap; }
  .wordmark { gap: 8px; font-size: 12px; }
  .site-header .wordmark-image { width: 207px; height: 40px; }
  .account-area { gap: 9px; width: 100%; justify-content: space-between; }
  .account-area > div { text-align: left; }
  .account-area span { display: block; }
  .account-area .button { padding: 5px 7px; font-size: 11px; }
  .workspace { padding: 20px 12px; }
  .page-heading { align-items: flex-start; margin-bottom: 17px; gap: 8px; }
  .page-heading h1 { font-size: 22px; }
  .filter-paper { padding: 15px 14px 0; }
  .filter-heading { align-items: flex-start; }
  .filter-heading > span { max-width: 126px; text-align: right; font-size: 10px; }
  .filter-fields { grid-template-columns: 1fr 1fr; gap: 11px 10px; }
  .fx-field { grid-column: 1 / -1; }
  .filter-fields > .button { grid-row: auto; }
  #query-button { grid-column: 1; }
  #export-button { grid-column: 2; }
  input { font-size: 16px; padding: 8px 10px; }
  label { font-size: 11px; }
  .filter-bottom { padding-top: 12px; }
  .date-presets { width: 100%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
  .date-presets button { padding: 5px 2px; font-size: 11px; }
  .filter-bottom p { font-size: 10px; }
  .filter-state { margin: 0 -14px; padding: 9px 14px; flex-direction: column; gap: 3px; font-size: 10px; }
  .statement-summary { grid-template-columns: 1fr 1fr; padding: 13px 14px; gap: 14px 0; }
  .statement-summary > div { padding: 0 14px; }
  .statement-summary .statement-period { grid-column: 1 / -1; border-bottom: 1px solid #e5ebf0; padding-bottom: 10px; }
  .statement-summary > div:nth-child(2) { border-left: 0; padding-left: 0; }
  .statement-summary .amount { font-size: 21px; }
  .summary-label { font-size: 10px; }
  .sheet-tabs { padding: 0 3px; }
  .sheet-tabs button { font-size: 12px; padding: 14px 13px 11px; }
  .sheet-content { padding: 16px 12px; min-height: 280px; }
  .sheet-heading { gap: 9px; flex-wrap: wrap; }
  .sheet-heading h2 { font-size: 16px; }
  .sheet-heading .sheet-unit { font-size: 10px; white-space: normal; }
  .price-groups { gap: 5px 14px; }
  .scroll-hint { display: block; font-size: 10px; color: #8398a8; margin-bottom: 12px; }
  .subsection-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .pagination { gap: 9px; flex-direction: column; align-items: flex-start; }
  .pagination-actions { width: 100%; justify-content: space-between; }
  .empty-state { padding: 43px 10px; }
}
