.xtsrc {
  box-sizing: border-box; color-scheme: light; max-width: 100%; margin: 2rem 0;
  background: #fffaf1; color: #102743; border: 1px solid #d9dfdc; border-radius: 16px;
  padding: clamp(15px, 3vw, 28px); font: 15px/1.5 system-ui, sans-serif;
}
.xtsrc[hidden], [data-xtsrc-fallback][hidden] { display: none !important; }
.xtsrc *, .xtsrc *::before, .xtsrc *::after { box-sizing: border-box; }
.xtsrc .xtsrc-header { margin-bottom: 21px; }
.xtsrc .xtsrc-header h3 { margin: 0 0 7px; color: #102743; font: 700 clamp(23px, 3vw, 32px)/1.15 Georgia, serif; }
.xtsrc .xtsrc-header p, .xtsrc .xtsrc-note { margin: 0; color: #476078; font-size: 13px; line-height: 1.5; }
.xtsrc .xtsrc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; margin: 0; }
.xtsrc .xtsrc-inputs { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.xtsrc .xtsrc-inputs legend, .xtsrc .xtsrc-results h4 { margin: 0 0 13px; padding: 0; color: #102743; font: 700 15px/1.4 system-ui, sans-serif; }
.xtsrc .xtsrc-inputs label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; color: #31475b; font-size: 13px; font-weight: 600; }
.xtsrc .xtsrc-inputs output { white-space: nowrap; color: #165b7d; font-weight: 750; font-variant-numeric: tabular-nums; }
.xtsrc .xtsrc-inputs input[type=range] { display: block; width: 100%; height: 28px; margin: 0 0 10px; padding: 0; accent-color: #137e84; cursor: pointer; }
.xtsrc button { min-height: 36px; padding: 5px 12px; background: #fffdf7; color: #102743; border: 1px solid #a8c1c7; border-radius: 8px; font: 650 12px system-ui, sans-serif; cursor: pointer; }
.xtsrc input:focus-visible, .xtsrc button:focus-visible { outline: 2px solid #167d83; outline-offset: 3px; }
.xtsrc .xtsrc-results { min-width: 0; background: #ebf5f5; border: 1px solid #c2d9dc; border-radius: 12px; padding: 14px; }
.xtsrc .xtsrc-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 15px; }
.xtsrc .xtsrc-figures dt { margin: 0; color: #38536a; font-size: 12px; line-height: 1.35; }
.xtsrc .xtsrc-figures dd { margin: 4px 0 0; color: #102743; font: 700 clamp(20px, 3.4vw, 28px)/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.xtsrc .xtsrc-bars { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; padding-top: 10px; border-top: 1px solid #c5d9dd; }
.xtsrc .xtsrc-bars > div:not(.xtsrc-track) { display: flex; justify-content: space-between; gap: 7px; color: #31475b; font-size: 12px; }
.xtsrc .xtsrc-bars strong { white-space: nowrap; color: #102743; }
.xtsrc .xtsrc-track { width: 100%; height: 7px; margin-bottom: 4px; background: #d2e4e8; border-radius: 12px; overflow: hidden; }
.xtsrc .xtsrc-track span { display: block; height: 100%; background: #216599; border-radius: 12px; }
.xtsrc span[data-bar=capacity] { background: #188180; }
.xtsrc .xtsrc-status { margin: 10px 0 0; padding: 7px 9px; background: #def0eb; color: #225c51; border-radius: 6px; font-size: 12px; font-weight: 650; }
.xtsrc .xtsrc-status[data-state=over] { background: #fff2dd; color: #7c4713; }
.xtsrc .xtsrc-note { margin-top: 14px; }
.xtsrc .xtsrc-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 595px) { .xtsrc .xtsrc-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } .xtsrc .xtsrc-inputs input[type=range] { height: 38px; } }
