.rc {
  --rc-blue: #0877d8;
  --rc-ink: #122443;
  --rc-muted: #526379;
  --rc-line: #d7e3ef;
  background: #f3f7fc;
  color: var(--rc-ink);
}
.rc-wrap { padding-block: 34px 52px; }
.rc-crumb, .rc-related {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .9rem;
}
.rc-crumb { color: var(--rc-muted); }
.rc a { color: #075daa; text-underline-offset: .2em; }
.rc-hero { padding: clamp(24px, 4vw, 46px) 0 26px; }
.rc-hero h1 {
  margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.07; letter-spacing: -.035em; overflow-wrap: anywhere;
}
.rc-hero p { max-width: 62ch; margin: 0; color: var(--rc-muted); font-size: 1.1rem; }
.rc-layout { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.rc-panel {
  min-width: 0; padding: clamp(17px, 2.4vw, 28px); background: white;
  border: 1px solid var(--rc-line); border-radius: 20px;
}
.rc-panel h2 { margin: 0 0 18px; font-size: 1.35rem; line-height: 1.2; }
.rc-loans { display: grid; gap: 12px; }
.rc-loan, .rc-new { min-width: 0; margin: 0; padding: 0; border: 0; }
.rc-loan { padding: 8px 12px 12px; border: 1px solid var(--rc-line); border-radius: 12px; }
.rc-loan legend { padding-inline: 5px; font-weight: 700; }
.rc-new { margin-block: 24px 18px; padding-top: 7px; }
.rc-new legend { padding: 0; font-size: 1.16rem; font-weight: 750; }
.rc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rc-fields label { display: grid; grid-template-rows: 1fr auto; gap: 6px; min-width: 0; font-size: .9rem; font-weight: 650; }
.rc-fields input {
  display: block; min-width: 0; width: 100%; min-height: 46px; padding: 8px 10px;
  border: 1px solid #aebed0; border-radius: 8px; background: #f8fbff; color: var(--rc-ink);
  font: inherit; font-size: 1rem; font-weight: 550; text-align: left;
}
.rc-fields input[aria-invalid="true"] { border-color: #b42318; }
.rc :is(button,input,a):focus-visible { outline: 2px solid var(--rc-blue); outline-offset: 3px; }
.rc-tools { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 12px; }
.rc-tools button, .rc-remove {
  min-height: 44px; font: inherit; font-weight: 700; cursor: pointer; color: #075daa; background: transparent;
}
.rc-secondary { padding: 6px 13px; border: 1px solid #afc8e3; border-radius: 9px; }
.rc-example, .rc-remove { padding: 4px 0; border: 0; text-decoration: underline; text-underline-offset: .2em; }
.rc-remove { min-height: 44px; margin-top: 4px; font-size: .875rem; }
.rc-secondary:hover { background: #edf5ff; }
.rc-submit { min-height: 46px; cursor: pointer; }
.rc button:disabled { opacity: .6; cursor: default; }
.rc-help, .rc-empty { color: var(--rc-muted); }
.rc-help { margin: 10px 0 0; font-size: .86rem; line-height: 1.5; }
.rc-empty { margin: 0; padding: 20px; background: #f1f7ff; border-radius: 12px; }
.rc-error { color: #a32117; font-weight: 600; }
.rc-highlight { border-radius: 12px; padding: 16px 18px; background: #eaf4ff; color: #0c4078; }
.rc-highlight p { margin: 0; font-size: .9rem; }
.rc-highlight strong { display: block; margin: 2px 0; font-size: clamp(1.7rem, 4vw, 2.5rem); font-variant-numeric: tabular-nums; }
.rc-highlight span { display: block; }
.rc-table { margin: 14px 0; }
.rc-table table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .88rem; font-variant-numeric: tabular-nums; }
.rc-table :is(th,td) { padding: 9px 5px; border-bottom: 1px solid var(--rc-line); overflow-wrap: anywhere; }
.rc-table thead th { color: var(--rc-muted); font-weight: 600; }
.rc-table th:first-child { width: 43%; text-align: left; }
.rc-table :is(th,td):not(:first-child) { text-align: right; }
.rc-summary { margin: 12px 0; font-weight: 700; }
.rc-advice { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; margin-top: 9px; font-weight: 700; }
.rc-related { margin-top: 20px; }
.rc-related a, .rc-crumb a { display: inline-flex; align-items: center; min-height: 44px; }
.rc [hidden] { display: none !important; }
.rc-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) { .rc-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 540px) {
  .rc-wrap { padding-inline: 14px; padding-top: 18px; }
  .rc-fields { grid-template-columns: minmax(0, 1fr); }
  .rc-panel { border-radius: 14px; }
  .rc-submit { width: 100%; }
}
