/* Sweat Rate and Hydration Calculator. Only what the shared CSS lacks; classes are prefixed swr-. */
.swr-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.swr-form legend { font-weight: 800; color: var(--ink); padding: 0; margin-bottom: 8px; }
.swr-units { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.swr-units .choice { padding: 12px 14px; min-height: 48px; align-items: center; }
.swr-error { border: 3px solid var(--red); background: #fff1ef; color: var(--ink); padding: 14px 18px; margin: 0; }
.swr-error ul { margin: 6px 0 0; padding-left: 1.2em; }
.swr-form [aria-invalid="true"] { border-color: var(--red); background: #fff1ef; }
.swr-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.swr-buttons .btn { min-height: 48px; }
.swr-warn { border: 4px solid var(--red); background: #fff7d6; padding: 18px 22px; margin: 24px 0 0; font-weight: 600; }
.swr-warn h3 { margin: 0 0 8px; }
.swr-warn p:last-child { margin-bottom: 0; }
.swr-bigs { display: grid; gap: 18px; margin: 4px 0 18px; }
.swr-bigl { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #E2E8F0; }
.swr-alt { display: block; font-weight: 700; color: #E2E8F0; }
.swr-band { font-size: 1.1rem; margin: 6px 0 10px; }
.swr-band-icon { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; background: var(--yellow); color: var(--black); font-weight: 900; }
.swr-gauge-wrap { background: var(--white); border: 3px solid var(--yellow); padding: 8px 8px 4px; margin: 0 0 16px; }
.swr-gauge-svg { width: 100%; height: auto; display: block; }
.swr-next { padding-left: 1.2em; }
.swr-next li { margin-bottom: 8px; }
.swr-small { font-size: .92rem; color: #E2E8F0; }
.result a { color: var(--yellow); }
.swr-split { display: grid; gap: 28px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.swr-split > * { min-width: 0; }
.swr-photo { margin: 0; }
.swr-photo img { width: 100%; max-width: 300px; aspect-ratio: 3 / 4; object-fit: cover; border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--yellow); margin: 0 auto; }
.swr-photo.wide img { max-width: 440px; aspect-ratio: auto; }
.swr-steps { counter-reset: swrstep; list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 14px; }
.swr-steps li { counter-increment: swrstep; position: relative; padding: 12px 14px 12px 64px; background: var(--white); border: 3px solid var(--ink); }
.swr-steps li::before { content: counter(swrstep); position: absolute; left: 0; top: 0; bottom: 0; width: 48px; display: flex; align-items: center; justify-content: center; background: var(--red); color: var(--white); font-weight: 900; font-size: 1.3rem; }
.swr-bands { width: 100%; }
.swr-chip { display: inline-block; padding: 2px 10px; font-weight: 800; font-size: .8rem; border: 2px solid var(--ink); }
.swr-chip.ok { background: #9AE6B4; color: var(--ink); }
.swr-chip.warn { background: #F6E05E; color: var(--ink); }
.swr-chip.stop { background: #C53030; color: var(--white); }
.swr-static-gauge, .swr-urine { width: 100%; height: auto; display: block; max-width: 640px; }
.swr-svg-box { background: var(--white); border: 3px solid var(--ink); padding: 10px; margin: 16px 0; max-width: 680px; }
.swr-signs { columns: 1; padding-left: 1.2em; }
.swr-print-head, .swr-print-foot { border: 2px solid #000; padding: 10px 14px; margin: 0 0 12px; font-weight: 700; }
.swr-log { width: 100%; border-collapse: collapse; margin: 12px 0; }
.swr-log th, .swr-log td { border: 1px solid #000; padding: 10px 6px; height: 34px; font-size: .85rem; }
.swr-log thead th { background: #fff; color: #000; }
.swr-photos-row { display: grid; gap: 16px; }
@media (min-width: 700px) {
  .swr-bigs { grid-template-columns: repeat(3, 1fr); }
  .swr-signs { columns: 2; }
}
@media (min-width: 900px) {
  .swr-split { grid-template-columns: 300px minmax(0, 1fr); }
  .swr-split.right { grid-template-columns: minmax(0, 1fr) 300px; }
  .swr-split.right .swr-photo { order: 2; }
}
@media print {
  .swr-form, .swr-warn { break-inside: avoid; }
  .swr-bigl, .swr-alt, .swr-small { color: #000 !important; }
  .swr-gauge-wrap { border-color: #000; }
}

.swr-bands td:last-child, .swr-log td:last-child { font-weight: 400; white-space: normal; }
.swr-bands th, .swr-bands td { vertical-align: middle; }
.tool-form .row.swr-unit-row { grid-template-columns: 1fr; }
.swr-units { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
