.tax-page { min-height: calc(100dvh - 49px); padding-bottom: 15px; background: #f7f3f5; color: #352d42; }
.tax-hero { position: relative; isolation: isolate; overflow: hidden; padding: 20px 15px 28px; background: linear-gradient(111deg, #3f2848, #8c4762); color: #fff; }
.tax-hero h2 { margin: 7px 0 5px; font-size: clamp(23px, 6.3cqw, 32px); line-height: 1.25; }
.tax-hero p, .tax-subhero p { margin: 0; font-size: 13px; line-height: 1.55; }
.tax-hero p { color: #f6e4ee; }
.tax-hero .tax-kicker, .tax-subhero .tax-kicker { font-size: 12px; }
.tax-kicker span { margin-left: 3px; padding: 1px 4px; border: 1px solid #ffcee27d; border-radius: 4px; font-size: 11px; }
.tax-art { position: absolute; z-index: -1; right: -9px; bottom: -10px; width: 143px; color: #ffdbea; opacity: .38; }
.tax-panel { margin: 9px 12px 0; padding: 11px; border: 1px solid #eee2e8; border-radius: 9px; background: #fff; }
.tax-catalog { position: relative; margin-top: -9px; }
.tax-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 7px; }
.tax-heading h2, .tax-heading h3 { margin: 0; font-size: 16px; }
.tax-heading > span, .tax-heading > a { color: #765d76; font-size: 12px; }
.tax-heading > a { color: #85436e; }
.tax-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tax-tile { position: relative; display: grid; align-content: start; gap: 5px; min-width: 0; padding: 8px; border: 1px solid #eee4e9; border-radius: 7px; background: #fefbfc; }
.tax-tile:hover { border-color: #d9b7c9; background: #fdf4f8; }
.tax-tile strong { font-size: clamp(12px, 3.6cqw, 16px); line-height: 1.35; }
.tax-tile small { color: #715d72; font-size: 12px; line-height: 1.45; }
.tax-emblem { display: grid; flex: none; place-items: center; width: 35px; height: 35px; border-radius: 7px; background: #f7e6ef; color: #8f4972; }
.tax-emblem[data-tax-tone="violet"] { background: #f0ebfb; color: #6d5498; }
.tax-emblem[data-tax-tone="blue"] { background: #e9f1fd; color: #3a629c; }
.tax-emblem[data-tax-tone="amber"] { background: #fbf0df; color: #915b28; }
.tax-emblem .icon { width: 19px; height: 19px; }
.tax-tile .tax-next { position: absolute; top: 17px; right: 7px; width: 15px; height: 15px; color: #92758b; }
.tax-notice, .tax-muted { margin: 7px 0 0; color: #6a5e72; font-size: 12px; line-height: 1.55; }
.tax-notice { margin: 10px 12px 0; text-align: center; }
.tax-subhero { display: flex; align-items: center; gap: 8px; padding: 14px 15px; background: linear-gradient(108deg, #f4e6ef, #fcf9fc); }
.tax-subhero h2 { margin: 3px 0; color: #623a58; font-size: clamp(19px, 5.2cqw, 26px); }
.tax-subhero p { color: #775f75; }
.tax-message { margin: 8px 12px 0; padding: 6px 7px; border: 1px solid #d9e6df; border-radius: 6px; background: #edf7f2; color: #365f56; font-size: 13px; }
.tax-message:empty { display: none; }
.tax-form, .tax-records, .tax-rows { display: grid; gap: 6px; }
.tax-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tax-form label { display: grid; gap: 4px; min-width: 0; color: #6c5069; font-size: 13px; font-weight: 650; }
.tax-form select, .tax-form textarea { width: 100%; min-width: 0; min-height: 41px; padding: 6px; border: 1px solid #ecdee6; border-radius: 6px; background: #fdf9fc; color: #513953; font-size: 16px; font-weight: 400; }
.tax-form textarea { resize: vertical; }
.tax-form textarea::placeholder { font-size: 13px; }
.tax-form .primary { background: #834363; }
.tax-error { margin: 0; color: #9d3836; font-size: 13px; }
.tax-check, .tax-record, .tax-rows > div { display: grid; gap: 4px; padding: 7px; border: 1px solid #f0e5eb; border-radius: 6px; background: #fcf9fb; }
.tax-check p, .tax-record small, .tax-record p, .tax-rows dd { margin: 0; color: #6d5b73; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.tax-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; }
.tax-metrics div { padding: 5px; border-radius: 5px; background: #f8eef4; }
.tax-metrics dt { color: #775c74; font-size: 11px; }
.tax-metrics dd { margin: 2px 0 0; color: #80486d; font-size: 19px; font-weight: 700; }
.tax-rows { margin: 5px 0; }
.tax-rows dt, .tax-record-top strong { color: #513951; font-size: 14px; }
.tax-rows dt { font-weight: 700; }
.tax-records { margin-top: 6px; }
.tax-record-top { display: flex; align-items: start; justify-content: space-between; gap: 5px; }
.tax-badge { flex: none; padding: 2px 4px; border-radius: 4px; background: #f3eaf5; color: #754d78; font-size: 11px; }
.tax-badge.high { background: #f9e8e6; color: #8b423b; }
.tax-text-button { justify-self: start; min-height: 31px; padding: 3px 5px; border: 0; border-radius: 5px; background: #f4edf5; color: #75496d; font-size: 12px; }
