
.cutc2627-wrap,
.cutc2627-wrap * { box-sizing: border-box; }

.cutc2627-wrap {
  --cutc-primary: #571580;
  --cutc-text: #1f2430;
  --cutc-muted: #667085;
  --cutc-line: #e7e7ef;
  --cutc-bg: #ffffff;
  --cutc-net: #532987;
  --cutc-ni: #50A2A7;
  --cutc-pension: #a994c3;
  --cutc-tax: #E9C46A;
  color: var(--cutc-text);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0 auto;
}

.cutc2627-app {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.cutc2627-inputs,
.cutc2627-results {
  min-width: 0;
  width: 100%;
}

@media (min-width: 1100px) {
  .cutc2627-app {
    grid-template-columns: minmax(320px, 42%) minmax(320px, 58%);
    align-items: start;
  }
}

.cutc2627-section {
  padding: 0 0 20px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--cutc-line);
  width: 100%;
  min-width: 0;
}

.cutc2627-inputs .cutc2627-section:last-child,
.cutc2627-results .cutc2627-section:last-child {
  margin-bottom: 0;
}

.cutc2627-section-title {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 10px;
}

.cutc2627-section-note {
  font-size: 13px;
  line-height: 1.45;
  color: var(--cutc-muted);
  margin: 0 0 14px;
}

.cutc2627-stack {
  display: grid;
  gap: 12px;
}

.cutc2627-field {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(130px, 190px);
  align-items: center;
  gap: 12px;
  width: 100%;
}

.cutc2627-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.cutc2627-input,
.cutc2627-select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--cutc-line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--cutc-text);
  font-size: 15px;
  line-height: 1.2;
}

.cutc2627-input:focus,
.cutc2627-select:focus {
  outline: none;
  border-color: var(--cutc-primary);
  box-shadow: 0 0 0 3px rgba(87, 21, 128, 0.12);
}

.cutc2627-help {
  display: block;
  margin-top: 6px;
  color: var(--cutc-muted);
  font-size: 12px;
  line-height: 1.45;
}

.cutc2627-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--cutc-text);
  margin-top: 14px;
}

.cutc2627-check input { margin-top: 3px; }

.cutc2627-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cutc2627-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 15px;
}

.cutc2627-table td,
.cutc2627-table th {
  border-bottom: 1px solid var(--cutc-line);
  padding: 10px 6px;
  vertical-align: top;
}

.cutc2627-table th {
  text-align: left;
  font-weight: 400;
}

.cutc2627-table td:last-child,
.cutc2627-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

.cutc2627-summary-table td {
  font-size: 15px;
  font-weight: 400;
}

.cutc2627-summary-table td:first-child {
  width: 72%;
}

.cutc2627-summary-table tr:last-child td {
  border-bottom: none;
}

.cutc2627-chart-wrap {
  display: grid;
  gap: 16px;
  justify-items: center;
  width: 100%;
  max-width: 100%;
}

.cutc2627-chart {
  width: min(100%, 320px);
  margin: 0 auto;
}

.cutc2627-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.cutc2627-chart-center,
.cutc2627-chart-center tspan:first-child,
.cutc2627-chart-center tspan:last-child {
  font-size: 15px;
  fill: var(--cutc-text);
  font-weight: 400;
}

.cutc2627-legend {
  width: 100%;
  display: grid;
  gap: 10px;
}

.cutc2627-legend-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

.cutc2627-swatch {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  display: inline-block;
}

.cutc2627-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
}

.cutc2627-list li + li {
  margin-top: 10px;
}

.cutc2627-inline-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cutc2627-link {
  color: var(--cutc-primary);
  text-decoration: underline;
}

.cutc2627-small {
  font-size: 12px;
  color: var(--cutc-muted);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .cutc2627-app { gap: 20px; }
  .cutc2627-section { padding-bottom: 18px; margin-bottom: 18px; }
  .cutc2627-field {
    grid-template-columns: minmax(145px, 1fr) minmax(120px, 150px);
    gap: 10px;
  }
  .cutc2627-table td,
  .cutc2627-table th { padding: 9px 4px; }
}

@media (max-width: 480px) {
  .cutc2627-field {
    grid-template-columns: minmax(140px, 1fr) minmax(120px, 145px);
    gap: 10px;
  }
  .cutc2627-label,
  .cutc2627-input,
  .cutc2627-select,
  .cutc2627-list,
  .cutc2627-legend-item,
  .cutc2627-summary-table td,
  .cutc2627-table { font-size: 14px; }
  .cutc2627-chart { width: min(100%, 250px); }
}
