.rt-page, .rh-tool, .rt-tarif {
  --rt-text: var(--ink, #191b1d);
  --rt-muted: var(--muted, #555b62);
  --rt-line: var(--line, #dedfe3);
  --rt-brand: var(--accent, #16acab);
  --rt-gray: #f5f5f7;
  --rt-control-line: #767c83;
  color: var(--rt-text);
}
.rt-page .aside {
  align-self: start;
  border: 1px solid var(--rt-line);
  border-radius: 1.5rem;
  padding: clamp(1.35rem, 2.6vw, 2.2rem);
  background: var(--rt-gray);
}
.rt-page .aside a, .rt-page .copy-block a {
  color: var(--rt-text);
  text-decoration: underline;
  text-decoration-color: #83898e;
  text-underline-offset: .22em;
}
.rh-tool {
  min-width: 0;
  width: 100%;
  line-height: 1.5;
}
.rh-tool *, .rh-tool *::before, .rh-tool *::after { box-sizing: border-box; }
.rh-tool [hidden] { display: none !important; }
.rh-tool :is(button, input, select) { font: inherit; color: var(--rt-text); }
.rh-tool a { color: var(--rt-text); }
.rh-tool fieldset, .rh-tool legend { min-width: 0; padding: 0; border: 0; margin: 0; }
.rh-tool .rt-panel {
  min-width: 0;
  margin: 0;
  padding: clamp(1.3rem, 3.4vw, 2.7rem);
  border: 1px solid var(--rt-line);
  border-radius: clamp(1.25rem, 2vw, 1.8rem);
  background: white;
  box-shadow: 0 2px 7px rgba(24, 28, 33, .035);
}
.rh-tool :is(.rt-finder, .rt-form) { max-width: 49rem; }
.rh-tool .rt-panel :is(h2, legend) {
  max-width: 24ch;
  margin: 0 0 1.3rem;
  font-size: clamp(1.55rem, 2.7vw, 2.4rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.rh-tool .rt-panel p { max-width: 58ch; }
.rh-tool .rt-panel .rt-overline {
  margin: 0 0 .55rem;
  color: var(--rt-muted);
  font-size: .94rem;
  font-weight: 550;
  letter-spacing: -.01em;
}
.rh-tool .rt-choices { display: grid; gap: .65rem; }
.rh-tool .rt-choice {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  min-height: 3.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rt-line);
  border-radius: .95rem;
  background: #f8f8f9;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s, box-shadow .18s, border-color .18s;
}
.rh-tool .rt-choice:has(input:checked) {
  border-color: var(--rt-text);
  background: white;
  box-shadow: inset 0 0 0 1px var(--rt-text);
}
.rh-tool .rt-choice :is(strong, small) { display: block; }
.rh-tool .rt-choice strong { font-size: 1.04rem; font-weight: 650; line-height: 1.35; }
.rh-tool .rt-choice small { margin-top: .18rem; }
.rh-tool :is(.rt-choice small, .rt-field small, .rt-note) {
  color: var(--rt-muted);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.5;
}
.rh-tool :is(.rt-choice, .rt-check) input {
  width: 1.2rem;
  height: 1.2rem;
  min-width: 1.2rem;
  margin: .12rem 0 0;
  accent-color: var(--rt-text);
}
.rh-tool .rt-check {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  min-height: 2.875rem;
  margin-top: .7rem;
  padding: .72rem 0;
  cursor: pointer;
}
.rh-tool .rt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin-top: 1.55rem;
}
.rh-tool :is(.rt-primary, .rt-secondary, .rt-calclink) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  max-width: 100%;
  padding: .68rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--rt-brand);
  color: #191b1d;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.3;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s, box-shadow .18s, border-color .18s;
}
.rh-tool .rt-secondary {
  border-color: var(--rt-line);
  background: white;
  color: var(--rt-text);
}
.rh-tool :is(.rt-back, .rt-textbutton) {
  min-height: 2.875rem;
  padding: .55rem .15rem;
  border: 0;
  background: transparent;
  color: var(--rt-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #858a90;
  text-underline-offset: .2em;
  cursor: pointer;
}
.rh-tool .rt-back { margin-top: .45rem; }
.rh-tool .rt-field {
  display: grid;
  gap: .48rem;
  min-width: 0;
  margin: 1.12rem 0 0;
  font-weight: 600;
}
.rh-tool .rt-field :is(input, select) {
  min-width: 0;
  min-height: 3rem;
  width: 100%;
  padding: .67rem .85rem;
  border: 1px solid var(--rt-control-line);
  border-radius: .8rem;
  background-color: white;
  color: var(--rt-text);
  font-size: 1rem;
  font-weight: 450;
}
.rh-tool .rt-inputs { container: price-inputs / inline-size; }
.rh-tool .rt-price-options { margin-block-start: 1.1rem; }
.rh-tool .rt-price-options > legend {
  margin: 0 0 .48rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: normal;
}
.rt-price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .45rem;
}
@container price-inputs (min-width: 24rem) {
  .rt-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rt-price-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 3rem;
  padding: .6rem .72rem;
  border: 1px solid var(--rt-line);
  border-radius: .7rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.rt-price-option input {
  flex: none;
  width: 1.12rem;
  height: 1.12rem;
  margin: 0;
  accent-color: #087170;
}
.rt-price-option:has(input:checked) { background: #edf7f7; border-color: #087170; }
.rt-price-option:has(input:disabled) {
  color: var(--rt-muted);
  background: var(--rt-gray);
  border-style: dashed;
  cursor: default;
}
.rt-price-option:has(input:focus-visible) { outline: 3px solid var(--rt-text); outline-offset: 2px; }
.rh-tool .rt-price-option input:focus-visible { outline: none; }
.rh-tool .rt-calculator {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(.8rem, 1.4vw, 1.4rem);
  align-items: start;
}
.rh-tool .rt-breakdown {
  border-color: transparent;
  background: var(--rt-gray);
  box-shadow: none;
}
.rh-tool .rt-estimate {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1rem;
  margin: .2rem 0 1.65rem;
}
.rh-tool .rt-hours-total {
  color: var(--rt-muted);
  font-size: .9rem;
  font-weight: 600;
}
.rh-tool .rt-total {
  display: block;
  margin: 0;
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -.065em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.rh-tool .rt-receipt { margin: 0 0 1.2rem; }
.rh-tool .rt-receipt div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .8rem;
  padding: .7rem 0;
  border-bottom: 1px solid #d5d7da;
}
.rh-tool .rt-receipt :is(dt, dd) { margin: 0; }
.rh-tool .rt-receipt dt { line-height: 1.4; }
.rh-tool .rt-receipt dd {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: end;
  white-space: nowrap;
}
.rh-tool .rt-summary div { grid-template-columns: minmax(5rem,.7fr) minmax(0,1fr); }
.rh-tool .rt-summary dd { white-space: normal; overflow-wrap: anywhere; }
.rh-tool .rt-calclink { margin-top: 1.15rem; }
.rh-tool .rt-stepper {
  display: inline-flex;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--rt-control-line);
  border-radius: 999px;
  background: white;
}
.rh-tool .rt-stepper button {
  min-width: 2.95rem;
  min-height: 2.95rem;
  padding: .2rem .6rem;
  border: 0;
  background: transparent;
  font-weight: 550;
  font-size: 1.3rem;
  cursor: pointer;
}
.rh-tool .rt-stepper button:first-child { border-radius: 999px 0 0 999px; }
.rh-tool .rt-stepper button:last-child { border-radius: 0 999px 999px 0; }
.rh-tool .rt-stepper button:disabled { opacity: .42; cursor: default; }
.rh-tool .rt-stepper input {
  width: 4rem;
  min-height: 2.95rem;
  border: 0;
  border-inline: 1px solid var(--rt-line);
  border-radius: 0;
  text-align: center;
  font-weight: 650;
  appearance: textfield;
  -moz-appearance: textfield;
}
.rh-tool .rt-stepper input::-webkit-inner-spin-button,
.rh-tool .rt-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.rh-tool .rt-form .rt-note { margin: 1.2rem 0 0; }
.rh-tool .rt-error { margin-top: .9rem; color: #9b281b; font-weight: 600; }
.rh-tool .rt-field [aria-invalid="true"] { border-color: #9b281b; }
.rh-tool :is(input, select, button, a):focus-visible, .rh-tool [data-focus]:focus-visible,
.rt-page .aside a:focus-visible, .rt-page .copy-block a:focus-visible {
  outline: 3px solid var(--rt-text);
  outline-offset: 3px;
}
.rh-tool .rt-choice:has(input:focus-visible) {
  outline: 3px solid var(--rt-text);
  outline-offset: 2px;
}
.rh-tool .rt-choice input:focus-visible { outline: none; }
.rh-tool .rt-stepper :focus-visible { z-index: 1; }
.rt-tarif { margin-top: clamp(2.2rem, 5vw, 4.25rem); }
.rt-tariftable {
  width: 100%;
  margin: 1.1rem 0 1.35rem;
  border-spacing: 0;
  font-size: 1rem;
}
.rt-tariftable caption {
  padding: 0 0 .9rem;
  color: var(--rt-muted);
  font-size: .9375rem;
  text-align: start;
}
.rt-tariftable :is(th, td) {
  padding: .78rem .9rem;
  border-bottom: 1px solid var(--rt-line);
  text-align: start;
  vertical-align: top;
}
.rt-tariftable thead th { border: 0; background: var(--rt-gray); font-weight: 650; }
.rt-tariftable thead th:first-child { border-radius: .8rem 0 0 .8rem; }
.rt-tariftable thead th:last-child { border-radius: 0 .8rem .8rem 0; }
.rt-tariftable tbody th { font-weight: 500; }
.rt-tariftable td { font-weight: 600; font-variant-numeric: tabular-nums; }
.rt-tarifnotes { max-width: 74ch; color: var(--rt-muted); line-height: 1.6; }
.rt-tarifnotes strong { color: var(--rt-text); }
@media (hover: hover) {
  .rh-tool .rt-choice:hover { border-color: #959ba1; background: white; box-shadow: 0 3px 9px rgba(24,28,33,.07); }
  .rh-tool :is(.rt-primary, .rt-calclink):hover { background: #39bbbb; color: #191b1d; box-shadow: 0 4px 12px rgba(24,28,33,.1); }
  .rh-tool .rt-secondary:hover { border-color: #7a8187; background: #f7f7f8; }
  .rh-tool .rt-stepper button:not(:disabled):hover { background: var(--rt-gray); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .rh-tool :is(.rt-choice, .rt-primary, .rt-secondary, .rt-calclink):hover,
  .rh-tool :is(.rt-primary, .rt-secondary, .rt-calclink):focus-visible,
  .rh-tool .rt-choice:has(input:focus-visible) { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .rh-tool *, .rh-tool *::before, .rh-tool *::after { transition: none !important; }
}
@media (max-width: 48rem) {
  .rh-tool .rt-calculator { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 28rem) {
  .rt-page .aside { border-radius: 1.1rem; }
  .rh-tool .rt-panel { padding: 1.05rem; border-radius: 1.15rem; }
  .rh-tool .rt-actions { align-items: stretch; flex-direction: column; }
  .rh-tool .rt-receipt div { gap: .5rem; }
  .rt-tariftable { font-size: .9375rem; }
  .rt-tariftable :is(th, td) { padding: .62rem .35rem; overflow-wrap: anywhere; }
}
@media (forced-colors: active) {
  .rh-tool :is(.rt-primary, .rt-secondary, .rt-calclink) { border: 1px solid ButtonText; }
  .rh-tool .rt-choice:has(input:checked) { border: 2px solid Highlight; }
  .rt-price-option:has(input:checked) { border-color: Highlight; }
  .rt-price-option:has(input:disabled) { color: GrayText; border-color: GrayText; }
}
