/* Credits is a scoped explanatory surface; shared navigation/auth retain their identity. */
.credits-page {
  --credit-ink: #202522; --credit-muted: #626a66; --credit-green: #38644b;
  --credit-line: #dbe1da; --credit-blue: #0869cf;
  --credit-ease: cubic-bezier(.23,1,.32,1);
  background: #fafbf9; color: var(--credit-ink);
  font-family: Interdisplay, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.credits-page *, .credits-page *::before, .credits-page *::after { box-sizing: border-box; }
.credits-shell { width: min(1184px, calc(100% - 64px)); margin-inline: auto; }
.credits-main { padding-top: 72px; padding-bottom: 88px; }
.credits-page h1, .credits-page h2, .credits-page p { margin: 0; }
.credits-page h1, .credits-page h2 { font-family: Switzer, Interdisplay, "PingFang SC", sans-serif; color: var(--credit-ink); }
.credits-intro { text-align: center; margin-bottom: 42px; }
.credits-intro h1 { font-size: clamp(38px,4.2vw,54px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.credits-intro .intro-description { margin-top: 18px; color: var(--credit-muted); font-size: 18px; line-height: 1.6; }
.credits-intro .draft-note { margin-top: 10px; color: var(--credit-muted); font-size: 12px; line-height: 1.5; }
.credits-page .icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.credits-page .ui-icon { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.credits-page .credit-lab { display: grid; grid-template-columns: 310px minmax(0,1fr); overflow: hidden; border: 1px solid #e5e9e2; border-radius: 20px; background: #eff2ed; }
.credit-controls { padding: 30px 28px; background: #fff; min-width: 0; }
.credit-controls h2 { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 30px; }
.amount-label { display: block; color: var(--credit-muted); font-size: 12px; line-height: 1.5; margin-bottom: 8px; }
.amount-editor { display: flex; align-items: center; gap: 9px; min-height: 66px; border-bottom: 1px solid #b6c3b9; }
.credit-token { display: block; width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; }
.receipt-budget .credit-token { width: 36px; height: 36px; flex-basis: 36px; }
.amount-editor input { min-width: 0; width: 100%; padding: 4px 0; border: 0; border-radius: 3px; background: transparent; color: var(--credit-ink); font: 500 43px/1.25 Switzer, Interdisplay, sans-serif; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.amount-editor[data-long="true"] input { font-size: 32px; }
.amount-unit { flex-shrink: 0; color: var(--credit-muted); font-size: 12px; }
.credits-page input:focus { outline: none; caret-color: var(--credit-ink); }
.amount-editor:focus-within { border-color: #b6c3b9; }
.amount-editor:has([aria-invalid="true"]) { border-color: #a13730; }
.credit-controls .input-help { margin-top: 10px; font-size: 12px; line-height: 1.55; color: var(--credit-muted); }
.credit-controls .amount-error { color: #a13730; font-size: 12px; line-height: 1.5; }
.amount-error:not(:empty) { margin-top: 8px; }
.amount-presets { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-top: 22px; }
.credits-page button { font-family: inherit; cursor: pointer; }
.amount-preset, .step-button { min-height: 44px; padding: 8px 4px; border: 1px solid var(--credit-line); border-radius: 8px; color: var(--credit-muted); background: #fff; font-size: 12px; font-variant-numeric: tabular-nums; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 140ms var(--credit-ease); }
.amount-preset[aria-pressed="true"] { background: #edf4ee; border-color: #8fa898; color: #254c35; }
.amount-steppers { display: flex; gap: 8px; margin-top: 8px; }
.step-button { display: flex; flex: 1; justify-content: center; align-items: center; gap: 6px; }
.step-button .ui-icon { width: 14px; height: 14px; }
.credits-page button:disabled { cursor: default; color: #8c938e; background: #f6f7f5; }
.credits-page .workspace-link { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 46px; margin-top: 24px; padding: 10px 12px; border-radius: 8px; background: var(--credit-ink); color: #fff; font-size: 13px; line-height: 1.5; text-decoration: none; }
.credit-controls .workspace-hint { margin-top: 10px; color: var(--credit-muted); font-size: 11px; line-height: 1.5; }
.credit-results { min-width: 0; padding: 26px 30px 24px; display: flex; flex-direction: column; }
.mode-tabs { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); isolation: isolate; padding: 4px; border-radius: 11px; background: #e1e7de; }
.mode-tab { display: flex; align-items: center; justify-content: center; gap: 7px; position: relative; z-index: 1; min-width: 0; min-height: 44px; padding: 8px 5px; border: 0; border-radius: 8px; background: transparent; color: #626c63; font-size: 13px; font-weight: 500; line-height: 1.3; }
.mode-tab .ui-icon { width: 17px; height: 17px; }
.mode-tab[aria-selected="true"] { color: #23472f; }
.mode-indicator { position: absolute; inset: 4px auto 4px 4px; width: calc((100% - 8px) / 3); border-radius: 8px; background: #fff; box-shadow: 0 2px 6px #26372a0a; transition: transform 220ms var(--credit-ease); }
.mode-active-labels { position: absolute; z-index: 2; inset: 4px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); pointer-events: none; clip-path: inset(0 66.66667% 0 0); transition: clip-path 220ms var(--credit-ease); }
.mode-active-labels .mode-tab { color: #23472f; }
.result-stack { display: grid; flex: 1; margin-top: 24px; }
.result-page { grid-area: 1/1; opacity: 0; transform: translateY(5px); pointer-events: none; transition: opacity 160ms ease, transform 220ms var(--credit-ease); min-width: 0; }
.result-page.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.delivery-pair { display: grid; grid-template-columns: minmax(0,1fr) 32px minmax(0,1fr); align-items: start; gap: 8px; }
.delivery { min-width: 0; }
.delivery-art { position: relative; display: grid; place-items: center; width: 160px; height: 142px; max-width: 100%; margin: 0 auto 12px; }
.delivery-art img { width: 160px; height: 160px; max-width: 100%; object-fit: contain; }
.format-badge { position: absolute; right: 4px; bottom: 0; padding: 4px 7px; border-radius: 5px; background: #fff; border: 1px solid #e0e5df; color: #466054; font-size: 10px; font-weight: 600; letter-spacing: .035em; box-shadow: 0 3px 6px #26372a05; }
.format-pptx, .format-png { color: #a75846; }
.format-pdf, .format-web { color: #4e667c; }
.format-svg { color: #766494; }
.delivery-total { display: flex; flex-direction: column; text-align: center; }
.delivery-total strong { font: 500 42px/1.1 Switzer,Interdisplay,sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.delivery-total span { display: flex; align-items: center; justify-content: center; margin-top: 8px; min-height: 44px; font-size: 16px; font-weight: 500; line-height: 1.35; text-wrap: balance; }
.delivery .delivery-rate { margin-top: 8px; text-align: center; font-size: 12px; color: #42604b; line-height: 1.5; }
.delivery .delivery-scope { margin: 10px auto 0; min-block-size: 6.2em; max-width: 25ch; text-align: center; font-size: 12px; color: var(--credit-muted); line-height: 1.55; text-wrap: pretty; }
.delivery .delivery-shortfall { margin-top: 6px; text-align: center; color: #875738; font-size: 11px; line-height: 1.5; }
.result-or { justify-self: center; padding-top: 169px; color: var(--credit-muted); font-size: 12px; }
.credit-results .alternative-note { min-block-size: calc(3em + 17px); margin-top: 22px; padding-top: 16px; border-top: 1px solid #d5ddd2; color: #5c665e; font-size: 11px; line-height: 1.5; text-wrap: pretty; }
.mix-section { margin-top: 64px; }
.mix-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.credits-page .mix-heading h2, .credits-page .usage-heading h2 { font-size: 29px; font-weight: 500; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.credits-page .mix-heading p, .credits-page .usage-heading p { margin-top: 10px; color: var(--credit-muted); font-size: 14px; line-height: 1.6; }
.mix-tabs { display: flex; gap: 4px; padding: 4px; background: #edf0eb; border-radius: 9px; flex-shrink: 0; }
.mix-tab { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--credit-muted); font-size: 12px; line-height: 1.3; transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--credit-ease); }
.mix-tab[aria-pressed="true"] { background: #fff; color: #254c35; box-shadow: 0 2px 5px #26372a08; }
.mix-receipt { display: grid; grid-template-columns: 160px minmax(0,1fr) 110px; gap: 20px; align-items: center; margin-top: 24px; padding: 24px; border: 1px solid #e2e7de; border-radius: 16px; background: #fff; }
.receipt-budget { display: flex; align-items: center; gap: 10px; }
.receipt-budget strong { display: block; font: 500 29px/1.2 Switzer,Interdisplay,sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.receipt-budget span { display: block; color: var(--credit-muted); font-size: 11px; margin-top: 3px; }
.mix-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.mix-item { min-width: 0; position: relative; padding: 14px 10px 11px; border-radius: 10px; background: #f5f7f2; }
.mix-item-head { display: flex; align-items: center; gap: 6px; }
.mix-item img { width: 36px; height: 36px; object-fit: contain; }
.mix-item-count { font: 500 23px/1.2 Switzer,Interdisplay,sans-serif; font-variant-numeric: tabular-nums; }
.mix-item-name { display: block; min-height: 32px; margin-top: 7px; color: var(--credit-muted); font-size: 12px; line-height: 1.35; }
.mix-item-cost { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; margin-top: 8px; border-top: 1px solid #dfe6da; font-size: 12px; line-height: 1.5; color: #3f5d46; font-variant-numeric: tabular-nums; }
.mix-item-cost .ui-icon { width: 14px; height: 14px; }
.mix-item.is-pending .mix-item-cost { opacity: .3; }
.mix-item.is-pending .mix-item-cost .ui-icon { opacity: 0; }
.receipt-balance { text-align: right; }
.receipt-balance span { display: block; font-size: 11px; color: var(--credit-muted); }
.receipt-balance strong { display: block; margin-top: 6px; font: 500 29px/1.2 Switzer,Interdisplay,sans-serif; font-variant-numeric: tabular-nums; }
.credits-page .mix-footnote { margin-top: 12px; color: var(--credit-muted); font-size: 11px; line-height: 1.5; }
.credits-usage { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--credit-line); display: grid; grid-template-columns: 1fr 1.55fr; gap: 64px; }
.usage-heading .text-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; margin-top: 20px; color: var(--credit-green); font-size: 14px; text-decoration: none; }
.usage-details { min-width: 0; }
.usage-details details { border-bottom: 1px solid var(--credit-line); }
.usage-details details:first-child { border-top: 1px solid var(--credit-line); }
.usage-details summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; padding-block: 16px; cursor: pointer; list-style: none; font-size: 15px; line-height: 1.45; font-weight: 500; }
.usage-details summary::-webkit-details-marker { display: none; }
.usage-details summary .ui-icon { width: 17px; height: 17px; transition: transform 180ms var(--credit-ease); }
.usage-details details[open] summary .ui-icon { transform: rotate(45deg); }
.details-answer { padding-bottom: 24px; }
.credits-page .details-answer p { color: var(--credit-muted); font-size: 13px; line-height: 1.7; }
.credits-page .details-answer p + p { margin-top: 12px; }
.rules-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 12px; line-height: 1.5; color: var(--credit-muted); }
.rules-table th { font-weight: 500; color: var(--credit-ink); }
.rules-table th, .rules-table td { padding: 12px 7px; border-bottom: 1px solid var(--credit-line); text-align: left; vertical-align: top; }
.rules-table th:first-child, .rules-table td:first-child { padding-left: 0; width: 27%; }
.rules-table th:nth-child(2), .rules-table td:nth-child(2) { width: 19%; font-variant-numeric: tabular-nums; }
.rules-table tr:last-child td { border-bottom: 0; }
.credits-page .footer-labomni { padding-top: 72px; }
.credits-page .footer-content-05 p { text-wrap: balance; }
.credits-page .pressable { transition-property: transform,background-color,color,border-color; transition-duration: 140ms,160ms,160ms,160ms; transition-timing-function: var(--credit-ease),ease,ease,ease; }
.credits-page[data-input="pointer"] .pressable:not(:disabled):active { transform: scale(.97); }
.credits-page :is(button,a,summary):focus-visible { outline: 1px solid #919592; outline-offset: 2px; }
.credits-page .mode-tab:focus-visible { z-index: 4; }
.credits-page .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.credits-page[data-input="keyboard"] .credits-main *, .credits-page[data-input="keyboard"] .credits-main *::before { transition-duration: 0ms !important; animation: none !important; }
/* Preserve the reviewed Credits menu tone without changing the homepage stylesheet. */
@media (max-width: 991px) {
  .credits-page .nav-01 .menu-button { color: #7d7f83; }
  .credits-page .nav-01.is-scrolled .menu-button, .credits-page .nav-01.is-menu-open .menu-button { background: #e5e5e7; color: #7d7f83; }
}
@media (max-width: 991px) and (hover:hover) and (pointer:fine) {
  .credits-page .nav-01 .menu-button:hover { background: #e5e5e7; }
  .credits-page .nav-01.is-scrolled .menu-button:hover, .credits-page .nav-01.is-menu-open .menu-button:hover { background: #dddde0; }
}
@media (hover:hover) and (pointer:fine) {
  .credits-page .amount-preset:hover, .credits-page .step-button:not(:disabled):hover { background: #f2f6ef; color: #23472f; }
  .credits-page .mode-tab:hover, .credits-page .mix-tab:hover { color: #23472f; }
  .credits-page .workspace-link:hover { background: #3b4d40; }
  .credits-page .text-link:hover { color: #203c2a; text-decoration: underline; text-underline-offset: 4px; }
}
@media (min-width: 700px) { html:lang(zh) .credits-intro h1 { white-space: normal; } }
@media (max-width: 1100px) {
  .credits-page .credit-lab { grid-template-columns: 290px minmax(0,1fr); }
  .credit-controls { padding: 26px 22px; }
  .credit-results { padding: 24px 22px; }
  .mode-tab { gap: 5px; font-size: 12px; }
  .mode-tab .ui-icon { width: 15px; height: 15px; }
  .mix-heading { align-items: start; flex-direction: column; gap: 18px; }
  .credits-usage { gap: 36px; }
  .mix-receipt { grid-template-columns: 135px minmax(0,1fr) 80px; gap: 14px; padding: 20px; }
}
@media (max-width: 800px) and (min-width:700px) {
  .credits-page .credit-lab { grid-template-columns: 260px minmax(0,1fr); }
  .credit-controls { padding: 24px 18px; }
  .credit-results { padding: 20px 16px; }
  .mode-tab { flex-direction: column; gap: 4px; font-size: 11px; min-height: 52px; }
  .delivery-art { width: 125px; height: 125px; }
  .delivery-art img { width: 125px; height: 125px; }
  .delivery-total strong { font-size: 36px; }
  .delivery-total span { font-size: 14px; min-height: 57px; }
  .result-or { padding-top: 148px; }
  .delivery-pair { gap: 2px; grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr); }
  .amount-editor input { font-size: 37px; }
  .amount-editor[data-long="true"] input { font-size: 26px; }
  .mix-receipt { grid-template-columns: 1fr auto; }
  .mix-steps { grid-column: 1/-1; grid-row: 2; }
}
@media (max-width: 699px) {
  .credits-shell { width: calc(100% - 40px); }
  .credits-main { padding-top: 48px; padding-bottom: 56px; }
  .credits-intro { margin-bottom: 28px; }
  .credits-intro h1 { font-size: 38px; line-height: 1.12; max-width: 15ch; margin-inline: auto; }
  html:lang(zh) .credits-intro h1 { white-space: pre-line; line-height: 1.22; letter-spacing: -.025em; }
  /* The two scripts use different line lengths, but share the same mobile anchors. */
  .credits-intro h1 { display: grid; place-content: center; min-block-size: 3.36em; }
  html:lang(zh) .credits-intro h1 { max-inline-size: 9em; letter-spacing: 0; }
  .credits-intro .intro-description { font-size: 16px; max-width: 35ch; margin: 16px auto 0; }
  .credits-intro .intro-description { min-block-size: 3.2em; text-wrap: balance; }
  .credits-intro .draft-note { font-size: 11px; max-width: 40ch; margin-inline: auto; }
  .credits-intro .draft-note { min-block-size: 3em; text-wrap: balance; }
  .credits-page .credit-lab { grid-template-columns: minmax(0,1fr); border-radius: 16px; }
  .credit-controls { padding: 24px; }
  .credit-controls h2 { font-size: 21px; margin-bottom: 23px; }
  .credit-controls :is(h2, .amount-label, .input-help, .workspace-hint) { text-align: center; }
  .credit-controls .input-help { min-block-size: 3.1em; text-wrap: balance; }
  .credit-controls .workspace-hint { min-block-size: 3em; text-wrap: balance; }
  .amount-editor { min-height: 62px; justify-content: center; }
  .amount-editor input { flex: 0 1 auto; width: calc(var(--amount-digits, 5) * 1ch + 2px); font-size: 46px; }
  .amount-editor[data-long="true"] input { font-size: 38px; }
  .amount-presets { margin-top: 18px; gap: 8px; }
  .amount-preset { font-size: 13px; }
  .credit-controls .workspace-link { margin-top: 20px; }
  .credit-results { padding: 20px 20px 22px; border-top: 1px solid #e2e7dd; }
  .mode-tab { font-size: 12px; gap: 6px; }
  .mode-tab .ui-icon { width: 16px; height: 16px; }
  .result-stack { margin-top: 22px; }
  .delivery-pair { grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr); gap: 4px; }
  .delivery-art { width: 134px; height: 120px; margin-bottom: 14px; }
  .delivery-art img { width: 134px; height: 134px; }
  .delivery-total strong { font-size: 36px; }
  .delivery-total span { font-size: 15px; min-height: 41px; }
  .result-or { padding-top: 146px; font-size: 11px; }
  .delivery .delivery-scope { font-size: 11px; }
  .delivery .delivery-scope { min-block-size: 7.75em; }
  .delivery .delivery-rate { min-block-size: 3em; }
  .credit-results .alternative-note { margin-top: 20px; font-size: 11px; }
  .credit-results .alternative-note { min-block-size: calc(4.5em + 17px); text-align: center; text-wrap: balance; }
  .mix-section { margin-top: 44px; }
  .credits-page .mix-heading h2, .credits-page .usage-heading h2 { font-size: 27px; line-height: 1.3; }
  .credits-page .mix-heading h2, .credits-page .usage-heading h2 { display: grid; place-content: center; min-block-size: 2.6em; }
  .credits-page .usage-heading p, .credits-page .mix-heading p { min-block-size: 3.2em; text-wrap: balance; }
  .mix-heading { gap: 18px; }
  .mix-heading { align-items: center; text-align: center; }
  .mix-tabs { width: 100%; }
  .mix-tab { flex: 1; min-block-size: calc(2.6em + 16px); padding-inline: 6px; }
  .mix-receipt { grid-template-columns: 1fr auto; gap: 18px; margin-top: 18px; padding: 20px; }
  .mix-steps { grid-column: 1/-1; grid-row: 2; grid-template-columns: minmax(0,1fr); gap: 8px; }
  .mix-item { display: grid; grid-template-columns: 65px minmax(0,1fr) 58px; align-items: center; gap: 8px; padding: 10px; }
  .mix-item img { width: 36px; height: 36px; }
  .mix-item-count { font-size: 20px; }
  .mix-item-name { min-height: 0; margin-top: 0; font-size: 12px; }
  .mix-item-cost { margin-top: 0; padding-top: 0; border-top: 0; }
  .credits-usage { margin-top: 44px; padding-top: 30px; grid-template-columns: 1fr; gap: 20px; }
  .usage-heading .text-link { margin-top: 12px; }
  .usage-heading, .credits-page .mix-footnote { text-align: center; }
  .credits-page .mix-footnote { min-block-size: 3em; }
  html:lang(zh) .credits-page :is(.mix-heading h2, .usage-heading h2) { letter-spacing: 0; }
  .usage-details summary { font-size: 14px; min-height: 74px; }
  .rules-table th, .rules-table td { padding-inline: 5px; font-size: 11px; overflow-wrap: anywhere; }
  .credits-page .footer-labomni { padding-top: 48px; }
}
@media (max-width: 430px) {
  .mode-tab { flex-direction: column; gap: 4px; min-height: 53px; font-size: 11px; }
}
@media (max-width: 359px) {
  .credits-shell { width: calc(100% - 32px); }
  .credits-main { padding-top: 36px; }
  .credits-intro h1 { font-size: 33px; }
  .credit-controls { padding: 22px 18px; }
  .amount-editor input { font-size: 41px; }
  .amount-editor[data-long="true"] input { font-size: 32px; }
  .credit-results { padding: 18px 13px; }
  .delivery-art { width: 112px; height: 110px; }
  .delivery-art img { width: 122px; height: 122px; }
  .delivery-total strong { font-size: 32px; }
  .delivery-total span { font-size: 13px; min-height: 36px; }
  .result-or { padding-top: 133px; }
  .delivery .delivery-rate { font-size: 11px; }
  .mix-receipt { padding: 16px 14px; }
  .mix-item { grid-template-columns: 58px minmax(0,1fr) 53px; gap: 5px; padding: 9px 8px; }
  .mix-item img { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .credits-page .credits-main *, .credits-page .credits-main *::before { animation: none !important; transition-property: opacity,background-color,color,border-color !important; transition-duration: 120ms !important; }
  .credits-page .result-page, .credits-page .pressable:active { transform: none !important; }
  .credits-page .mode-indicator, .credits-page .mode-active-labels, .credits-page summary .ui-icon { transition-duration: 0ms !important; }
}
