:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #263238;
  background: #fff;
  font-synthesis: none;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.container { max-width: 1000px; margin: 0 auto; padding: 24px 16px 32px; }
h1 { font-size: 22px; margin: 0 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
button, input, textarea { font: inherit; font-size: 16px; }
button, input { min-height: 44px; }
button { padding: 8px 14px; border: 1px solid #087f8c; border-radius: 4px; background: #087f8c; color: #fff; cursor: pointer; white-space: nowrap; touch-action: manipulation; }
button:hover:not(:disabled) { background: #066874; }
button:disabled { opacity: .5; cursor: default; }
button:focus, .table-scroll:focus { outline: 3px solid #73b9c1; outline-offset: 2px; }
input, textarea { width: 100%; min-width: 0; border: 1px solid #b7c6cc; border-radius: 4px; background: #fff; color: inherit; padding: 8px; outline: none; }
input:focus, textarea:focus { border-color: #087f8c; box-shadow: 0 0 0 2px #d9eef0; }
input[aria-invalid="true"] { border-color: #b3261e; }
textarea { resize: vertical; line-height: 1.6; }
.query-form { display: flex; align-items: stretch; }
.query-form textarea { flex: 1; }
.query-form button { min-width: 64px; margin-left: 8px; }
.notice { margin: 10px 0; font-size: 14px; color: #46616a; word-break: break-word; overflow-wrap: anywhere; }
.notice[data-tone="error"] { color: #ad3028; }
.hint { font-size: 12px; color: #617078; margin: 12px 0; word-break: break-word; overflow-wrap: anywhere; }
#results { min-width: 0; margin-top: 20px; }
.table-scroll { max-width: 100%; overflow-x: auto; isolation: isolate; }
#consumption-table { width: 100%; table-layout: auto; border-collapse: collapse; background: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 2px; text-align: center; font-weight: 400; word-break: break-word; overflow-wrap: anywhere; }
.date-column { position: sticky; left: 0; z-index: 1; width: 64px; min-width: 64px; background: #fff; }
.phone-heading { min-width: 58px; font-weight: 600; }
.phone-suffix { font-size: 16px; white-space: nowrap; }
.phone-heading sup { margin-left: 2px; font-size: 11px; }
thead th { border-bottom: 1px solid #d9e0e3; color: #4a555c; vertical-align: top; }
tbody tr:nth-child(odd), tbody tr:nth-child(odd) .date-column { background: #f0f2f3; }
tbody td { height: 46px; }
tbody td > span { white-space: nowrap; }
tbody .date-column > span { white-space: nowrap; }
.month-state { display: block; font-size: 11px; color: #846514; }
.money-input { width: 0; min-width: 100%; text-align: right; padding-left: 2px; padding-right: 2px; }
.missing-value { color: #7b878d; }
.query-error { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: #ad3028; }
.retry-button { min-width: 44px; margin-top: 6px; padding-left: 8px; padding-right: 8px; }
tfoot { border-top: 1px solid #d9e0e3; }
tfoot tr + tr { border-top: 1px solid #e5e9eb; }
.period-range { display: block; font-size: 11px; color: #617078; line-height: 1.4; margin-bottom: 3px; word-break: break-word; overflow-wrap: anywhere; }
.range-month { white-space: nowrap; }
.period-title { display: block; font-size: 13px; white-space: nowrap; }
.period-title > span { display: block; }
.average-value { font-size: 16px; font-weight: 600; color: #126876; white-space: nowrap; }
.total-value { display: block; font-size: 12px; color: #617078; margin-top: 3px; }
.total-value > span { display: block; }
.total-number { white-space: nowrap; }
.period-exclusions { display: block; margin-top: 4px; font-size: 11px; color: #846514; }
.group-summary { max-width: 600px; margin: 24px auto 0; text-align: center; }
.group-average + .group-average { margin-top: 20px; }
.group-average p { margin: 4px 0; }
.group-average .group-average-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; margin: 3px -3px; }
.group-average-line > * { margin: 1px 3px; }
.group-average .average-value { font-size: 24px; }
footer.hint { text-align: center; margin-top: 24px; }
@media (min-width: 600px) {
  th, td { padding-left: 8px; padding-right: 8px; }
  .date-column { width: 96px; min-width: 96px; }
  .phone-heading { min-width: 100px; }
  .money-input { padding-left: 6px; padding-right: 6px; }
  .period-range { font-size: 12px; }
}
@media (max-width: 359px) {
  .container { padding-left: 10px; padding-right: 10px; }
}
