.sms-calc { padding: 36px 0; background: #f1f5f8; color: #294461; scroll-margin-top: 56px; }
.sms-calc h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; color: #294461; }
.calc-intro { margin: 9px 0 20px; line-height: 1.45; }
.calc-card { overflow: hidden; background: #fff; border: 1px solid #c9d6e1; border-radius: 10px; }
.sms-calc [hidden] { display: none !important; }
.calc-controls { padding: 24px 28px 17px; }
.calc-controls fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-controls legend, .calc-volume label { font-size: 18px; line-height: 1.3; font-weight: 700; color: #294461; }
.calc-controls legend { width: auto; margin: 0 0 10px; padding: 0; border: 0; }
.calc-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-modes label { display: flex; align-items: center; gap: 12px; margin: 0; padding: 13px 16px; background: #fff; border: 1px solid #b7c8d7; border-radius: 6px; cursor: pointer; }
.calc-modes label:has(input:checked) { border-color: #365a80; background: #edf4fa; box-shadow: inset 0 0 0 1px #365a80; }
.calc-modes input[type=radio] { position: static; appearance: auto; width: 18px; height: 18px; margin: 0; opacity: 1; flex: none; accent-color: #365a80; }
.calc-modes label strong, .calc-modes label small { display: block; line-height: 1.35; }
.calc-modes label strong { font-size: 17px; color: #294461; }
.calc-modes label small { font-size: 14px; color: #465e72; margin-top: 3px; }
.calc-network-rate { margin: 10px 0 0; color: #465e72; font-size: 14px; line-height: 1.4; }
.calc-volume { margin: 22px 0 3px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.calc-volume label { margin: 0; }
.sms-calc #sms-volume { width: 148px; max-width: 52%; min-height: 44px; padding: 7px 12px; text-align: right; color: #294461; background: white; border: 1px solid #9eb3c5; border-radius: 4px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; box-sizing: border-box; }
.sms-calc #sms-volume[aria-invalid=true] { border-color: #a72d22; }
.sms-calc .calc-error { color: #a72d22; margin: 4px 0; }
.sms-calc input[type=range] { display: block; appearance: none; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; }
.sms-calc input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 4px; background: linear-gradient(to right,#4778ab var(--fill),#d8e3ed var(--fill)); }
.sms-calc input[type=range]::-webkit-slider-thumb { appearance: none; margin-top: -7px; width: 20px; height: 20px; border-radius: 50%; border: 3px solid #365a80; background: #ffcc29; }
.sms-calc input[type=range]::-moz-range-track { height: 6px; background: #d8e3ed; }
.sms-calc input[type=range]::-moz-range-progress { height: 6px; background: #4778ab; }
.sms-calc input[type=range]::-moz-range-thumb { border: 3px solid #365a80; background: #ffcc29; border-radius: 50%; }
.calc-ticks { display: flex; justify-content: space-between; font-size: 13px; color: #445e75; }
#sms-volume-info { margin: 10px 0 0; color: #465e72; font-size: 14px; line-height: 1.4; }
.calc-summary { padding: 18px 28px; background: #294461; color: white; }
.calc-summary dl { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 14px; align-items: start; margin: 0; }
.calc-summary dt { font-size: 15px; font-weight: 400; }
.calc-summary dd { font-size: clamp(20px,2.5vw,26px); margin: 4px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-summary [data-result] { white-space: nowrap; }
.calc-summary small { display: block; font-size: 13px; color: #d5e4f1; font-weight: 400; }
.calc-total { text-align: right; }
.calc-summary .calc-total dd { color: #ffda54; font-size: clamp(26px,3.3vw,38px); line-height: 1.1; }
.calc-action { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #7892ab; }
.calc-action p { margin: 0; line-height: 1.4; }
.calc-action a { flex: none; }
.calc-breakdown summary { display: list-item; cursor: pointer; font-weight: 700; padding: 13px 28px; }
.calc-breakdown table { margin: 0 auto; width: calc(100% - 56px); border-collapse: collapse; font-variant-numeric: tabular-nums; }
.calc-breakdown th, .calc-breakdown td { padding: 7px 6px; border-bottom: 1px solid #d8e3ed; text-align: right; }
.calc-breakdown th:first-child { text-align: left; }
.calc-breakdown [data-total] { font-weight: 700; white-space: nowrap; }
.calc-breakdown p { margin: 10px 28px 15px; font-size: 14px; }
.calc-source { font-size: 13px; line-height: 1.5; color: #475d70; margin: 12px 0 0; }
.calc-source a { color: #294461; text-decoration: underline; }
.sms-calc :focus-visible { outline: 2px solid #4778ab; outline-offset: 2px; }
@media (max-width: 767px), (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  .sms-calc input[type=range] { height: 44px; }
}
@media (max-width: 767px) {
  .sms-calc { padding: 24px 0; scroll-margin-top: 4px; }
  .calc-controls, .calc-summary { padding: 16px; }
  .calc-modes { grid-template-columns: 1fr; gap: 8px; }
  .calc-volume { margin-top: 16px; }
  .calc-summary dl { grid-template-columns: 1fr 1fr; }
  .calc-total { grid-column: 1 / -1; border-top: 1px solid #7892ab; padding-top: 10px; text-align: left; }
  .calc-action { display: grid; }
  .calc-action a { justify-self: start; max-width: 100%; min-height: 44px; align-content: center; padding-inline: 14px; white-space: normal; }
  .calc-breakdown summary { min-height: 44px; padding: 12px 16px; }
  .calc-breakdown p { margin-inline: 16px; }
  .calc-breakdown table { display: block; width: auto; margin: 0 16px; }
  .calc-breakdown thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .calc-breakdown tbody, .calc-breakdown tr { display: block; }
  .calc-breakdown tbody tr + tr { margin-top: 12px; }
  .calc-breakdown tbody th { display: block; color: #294461; background: #eff4f8; }
  .calc-breakdown tbody td { display: flex; justify-content: space-between; gap: 6px; }
  .calc-breakdown tbody td::before { content: attr(data-label); font-weight: 400; }
  .calc-breakdown td[data-total] { background: #f1f5f8; }
  .calc-breakdown td[data-total]::before { font-weight: 700; }
}
@media (max-width: 399px) {
  .calc-summary dl { grid-template-columns: 1fr; gap: 10px; }
  .calc-summary dl > div:not(.calc-total) { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
  .calc-summary dd { margin-top: 0; }
}
