.tax-estimate {
  --te-accent: #126f75;
  --te-line: #dce5e8;
  --te-muted: #586d77;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px clamp(14px, 2.8vw, 42px);
  color: #243d47;
}
.te-header { margin-bottom: 20px; }
.te-header h1 { margin: 0; font-size: 22px; }
.te-header p, .te-result header span, .te-basis p, .te-status { color: var(--te-muted); font-size: 13px; }
.te-header p { margin: 8px 0 0; }
.te-header p span { margin: 0 8px; }
.te-layout { display: grid; grid-template-columns: minmax(310px, .85fr) minmax(360px, 1.3fr); gap: 18px; align-items: start; }
.te-card { min-width: 0; padding: 22px; border: 1px solid var(--te-line); border-radius: 8px; background: white; }
.te-card h2 { margin: 0; font-size: 16px; }
.te-input-row { display: flex; gap: 12px; align-items: center; margin: 23px 0 18px; }
.te-amount { display: flex; flex: 1; min-width: 0; align-items: center; padding-right: 12px; border: 1px solid #a8bbbf; border-radius: 5px; }
.te-amount:focus-within { border-color: var(--te-accent); outline: 2px solid #c3e6e6; }
.te-amount input { width: 0; min-width: 0; flex: 1; padding: 10px 12px; height: 44px; border: 0; border-radius: 5px; color: inherit; background: transparent; }
.cw-shell .te-amount input:focus-visible { outline: 0; }
.te-amount span { font-size: 12px; color: var(--te-muted); white-space: nowrap; }
.te-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.te-actions button { min-height: 38px; padding: 7px 14px; cursor: pointer; color: var(--te-accent); background: #fff; border: 1px solid var(--te-accent); border-radius: 5px; }
.te-actions button:first-child { background: var(--te-accent); color: white; }
.te-actions button:hover { box-shadow: 0 0 0 2px #cce6e7; }
.te-status:empty, .te-basis:empty { display: none; }
.te-status { margin-top: 12px; }
.te-form:has([aria-invalid="true"]) .te-status { color: #a53724; }
.te-settings { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--te-line); }
.tax-estimate summary { cursor: pointer; color: var(--te-accent); font-weight: 600; }
.te-fields { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.te-fields label { display: grid; gap: 5px; font-size: 13px; }
.te-fields select, .te-fields input:not([type="checkbox"]) { width: 100%; height: 34px; padding: 4px 7px; border: 1px solid #bdcbcf; border-radius: 4px; background: #fff; color: inherit; }
.te-fields .te-check { display: flex; align-items: center; }
.te-fields .te-check, .te-fields .te-wide { grid-column: 1/-1; }
.te-check input { accent-color: var(--te-accent); }
.te-policy-note, .te-policy-links { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: var(--te-muted); }
.te-policy-links { display: flex; gap: 12px; }
.te-policy-links a { color: var(--te-accent); }
.te-result header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.te-table { overflow-x: auto; }
.te-table table { width: 100%; border-collapse: collapse; white-space: nowrap; font-variant-numeric: tabular-nums; }
.te-table th, .te-table td { padding: 12px 10px; text-align: right; border-bottom: 1px solid var(--te-line); }
.te-table th:first-child { text-align: left; }
.te-table thead th { font-size: 13px; font-weight: 500; color: var(--te-muted); background: #f2f6f7; }
.te-table tbody th { font-weight: 400; background: #fff; color: #243d47; }
.te-table tbody td:last-child { font-weight: 600; }
.te-table tfoot :is(th, td) { color: var(--te-accent); font-weight: 700; background: #eaf6f5; border: 0; }
.te-basis p { line-height: 1.65; margin: 12px 0 0; }
.te-ledger { margin-top: 15px; }
.te-ledger dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 12px; margin: 14px 0 0; }
.te-ledger dt { color: var(--te-muted); font-size: 12px; }
.te-ledger dd { margin: 4px 0 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 1010px) { .te-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .tax-estimate { padding: 14px 9px; }
  .te-card { padding: 14px; }
  .te-fields { grid-template-columns: minmax(0, 1fr); }
  .te-table td, .te-table th { padding: 10px 6px; font-size: 13px; }
}
