.r2-tax-main {
  max-width: 1020px;
}

.r2-tax-shell {
  margin: 26px 0 28px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(32, 33, 29, 0.14);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(32, 33, 29, 0.06);
}

.r2-tax-label-caps {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b5952;
  margin-bottom: 10px;
}

.r2-tax-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.r2-preset-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(32, 33, 29, 0.18);
  background: #faf8ef;
  color: #20211d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.r2-preset-pill:hover {
  border-color: #2563eb;
  color: #1d4ed8;
}

.r2-preset-pill.is-active {
  background: #20211d;
  border-color: #20211d;
  color: #ffffff;
}

.r2-tax-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
  padding-top: 18px;
  border-top: 1px solid rgba(32, 33, 29, 0.1);
}

.r2-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #20211d;
  min-width: 0;
}

.r2-field-wide {
  grid-column: 1 / -1;
}

.r2-field input,
.r2-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(32, 33, 29, 0.22);
  background: #faf8ef;
  color: #20211d;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

.r2-field input:focus,
.r2-field select:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
  background: #ffffff;
}

.r2-field input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.r2-tax-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #f0fdf4;
  border: 1px solid rgba(21, 128, 61, 0.28);
}

.r2-tax-banner.is-warn {
  background: #fef9c3;
  border-color: rgba(161, 98, 7, 0.28);
}

.r2-tax-banner strong {
  font-size: 16.5px;
  font-weight: 800;
  color: #1c1917;
}

.r2-share-tax-btn {
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(32, 33, 29, 0.24);
  background: #ffffff;
  color: #20211d;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.r2-share-tax-btn:hover {
  border-color: #2563eb;
  color: #1d4ed8;
}

.r2-tax-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.r2-tax-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(32, 33, 29, 0.14);
  background: #faf8ef;
  min-width: 0;
}

.r2-tax-card.is-ok {
  border-color: #15803d;
  background: #f0fdf4;
}

.r2-tax-card.is-warn {
  border-color: #b45309;
  background: #fffbeb;
}

.r2-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 10px;
}

.r2-card-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #1c1917;
}

.r2-tax-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(32, 33, 29, 0.08);
  color: #292524;
}

.r2-tax-card.is-ok .r2-tax-badge {
  background: #dcfce7;
  color: #166534;
}

.r2-tax-card.is-warn .r2-tax-badge {
  background: #fef3c7;
  color: #92400e;
}

.r2-tax-status {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: #1c1917;
  line-height: 1.35;
}

.r2-tax-detail {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #57534e;
}

.r2-tax-metrics {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(32, 33, 29, 0.1);
}

.r2-tax-metrics div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.r2-tax-metrics dt {
  margin: 0;
  color: #57534e;
}

.r2-tax-metrics dd {
  margin: 0;
  font-weight: 800;
  color: #1c1917;
  font-variant-numeric: tabular-nums;
}

.r2-tax-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 860px) {
  .r2-tax-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .r2-tax-shell {
    padding: 16px;
  }

  .r2-tax-form {
    grid-template-columns: 1fr;
  }

  .r2-tax-actions {
    flex-direction: column;
  }

  .r2-tax-actions .r2-button {
    width: 100%;
    text-align: center;
  }
}
