.salary-page { background: #f4f6f5; color: #193832; }
.tax-shell { width: min(1120px, 92%); margin: auto; padding: 100px 0 88px; }
.tax-shell nav, .tax-shell p { font-size: 15px; line-height: 1.75; }
.tax-shell nav, .tax-intro p, .tax-panel p, .tax-help p { color: #476159; }
.tax-intro { margin: 32px 0 28px; }
.tax-kicker { font-size: 12px; font-weight: 700; letter-spacing: .13em; color: #29765d; }
.tax-intro h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.15; margin: 10px 0; }
.tax-shell h2 { font-size: 23px; margin: 0 0 8px; }
.tax-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.tax-panel, .tax-result, .tax-help { min-width: 0; border-radius: 18px; padding: clamp(20px, 3vw, 36px); }
.tax-panel, .tax-help { background: white; border: 1px solid #d6e1db; }
.tax-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.tax-fields label { display: block; font-size: 14px; font-weight: 650; }
.tax-fields input, .tax-fields select { width: 100%; min-width: 0; box-sizing: border-box; padding: 10px; margin-top: 5px; border-radius: 7px; border: 1px solid #94aaa1; background: white; color: #16392e; font: inherit; font-size: 16px; }
.tax-shell :focus-visible { outline: 3px solid #508bba; outline-offset: 2px; }
.tax-fields [aria-invalid=true] { border-color: #a44129; }
.tax-panel fieldset { border: 0; border-top: 1px solid #ccd9d2; margin: 20px 0 0; min-width: 0; padding: 12px 0 0; }
.tax-panel legend { font-weight: 700; padding-right: 10px; }
.tax-panel .tax-note { margin: 16px 0 0; font-size: 13px; }
.tax-result { background: #123e37; color: #fff; }
.tax-result .tax-kicker { color: #b5d9c8; }
.tax-result h2, .tax-result h3 { font-weight: 550; font-size: 17px; margin: 22px 0 3px; color: white; }
.tax-result strong { font-size: clamp(28px, 3.4vw, 46px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tax-result #net { font-size: clamp(23px, 2.5vw, 32px); }
.tax-result #status { color: #d5e8df; }
.tax-result details { border-top: 1px solid #69867c; padding-top: 13px; margin-top: 15px; }
.tax-result summary { cursor: pointer; }
.tax-result dl div { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.tax-result dd { margin: 0; overflow-wrap: anywhere; }
.tax-help { margin-top: 20px; }
.tax-help a { color: #18634e; text-decoration: underline; }
@media (max-width: 720px) {
  .tax-grid { grid-template-columns: minmax(0, 1fr); }
  .tax-shell { padding-top: 82px; }
  .tax-intro { margin-top: 22px; }
}
@media (max-width: 420px) {
  .tax-fields { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* Tool colours follow the same categories in the directory and worksheets. */
.salary-page { --ink: #193947; --accent: #235e6c; --wash: #e5f1f1; color: var(--ink); }
.tone-pricing { --accent: #185569; --wash: #e3eff3; }
.tone-refund { --accent: #246454; --wash: #e5f3eb; }
.tone-settlement { --accent: #474c79; --wash: #eeedf7; }
.tone-vat { --accent: #80532b; --wash: #faf0df; }
.tone-salary { --accent: #624d70; --wash: #f3eaf3; }
.tax-shell { padding-top: clamp(30px, 4vw, 56px); }
.tax-shell nav[aria-label="面包屑"] { font-size: 13px; }
.tax-intro { margin: 25px 0; }
.tax-intro .tax-kicker, .tool-menu small { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.tool-symbol { width: 28px; height: 28px; padding: 5px; box-sizing: content-box; border-radius: 9px; background: var(--wash); }
.tax-intro h1 { color: var(--ink); letter-spacing: -.035em; font-weight: 750; }
.tax-intro p { max-width: 68ch; }
.tax-panel, .tax-help { border-radius: 12px; border-color: #cbd9dc; }
.tax-panel h2 { font-size: 21px; margin-bottom: 18px; }
.tax-fields input, .tax-fields select { background: #f6f9fa; border-color: #adbec4; color: var(--ink); font-variant-numeric: tabular-nums; }
.tax-fields input:focus, .tax-fields select:focus { background: white; outline: 2px solid var(--accent); outline-offset: 1px; }
.tax-result { position: relative; background: var(--accent); border-radius: 12px 12px 2px 2px; border-top: 5px solid var(--ink); }
.tax-result::after { content: ""; position: absolute; inset: auto 0 -6px; height: 7px; background: linear-gradient(135deg,var(--accent) 25%,transparent 25%) 0 0/14px 14px, linear-gradient(225deg,var(--accent) 25%,transparent 25%) 0 0/14px 14px; }
.tax-result details { border-color: #ffffff60; }
.tax-result .tax-kicker, .tax-result #status { color: #f3f5fa; }
.tax-help { margin-top: 25px; }
.tone-salary .tax-panel details { padding: 9px 0; }
.tone-salary .tax-panel summary, .tone-salary #year summary { color: #624d70; font-weight: 650; cursor: pointer; }
.tone-salary #planning > label { display: grid; gap: 5px; }
.tone-salary #method { padding: 8px; font: inherit; }
.tone-salary #overrides { padding-left: 14px; }
.tone-salary #year-result { padding: 14px; background: #f3eaf3; color: #493755; }
.salary-scroll { overflow-x: auto; max-width: 100%; }
.salary-scroll table { width: 100%; font-variant-numeric: tabular-nums; border-collapse: collapse; }
.salary-scroll th, .salary-scroll td { padding: 8px; white-space: nowrap; text-align: right; border-bottom: 1px solid #ddd; }
