.reader {
  cursor: pointer;
}

.power-button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(181, 50, 58, .16);
  border-radius: 99px;
  padding: 7px 12px 7px 8px;
  color: #9e2732;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 6px 18px rgba(121, 31, 39, .08);
  transition: transform 160ms ease, background 160ms ease;
}

.power-button > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ff7474, #c92d3a);
  font-size: 12px;
  font-weight: 900;
}

.power-button b { font-size: 9px; font-weight: 820; white-space: nowrap; }
.power-button:hover { background: #fff; transform: translateY(-1px); }
.power-button[hidden] { display: none; }

.power-dialog {
  width: min(680px, calc(100% - 28px));
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 30px;
  padding: 0;
  color: #0b3554;
  background: #f8fcff;
  box-shadow: 0 35px 110px rgba(3, 48, 79, .4);
}

.power-dialog[open] { animation: power-dialog-enter 260ms cubic-bezier(.2, .8, .2, 1) both; }
.power-dialog::backdrop { background: rgba(2, 31, 52, .68); backdrop-filter: blur(14px); }

.power-dialog-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(11, 75, 117, .1);
  padding: 25px 27px 22px;
  background: linear-gradient(145deg, #f9fdff, #edf8fd);
}

.power-dialog-symbol,
.power-confirmation-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #20b6e4, #075d91);
  box-shadow: 0 12px 25px rgba(7, 93, 145, .2);
  font-size: 24px;
  font-weight: 850;
}

.power-dialog-header .eyebrow { margin: 0 0 4px; color: #078fce; }
.power-dialog-header h2 { margin: 0; font-size: 25px; letter-spacing: -.9px; }
.power-dialog-header p:last-child { margin: 5px 0 0; color: #6b8799; font-size: 10px; }
.power-dialog-close { width: 38px; height: 38px; border: 1px solid rgba(11, 75, 117, .13); border-radius: 50%; color: #416f8f; background: #fff; font-size: 21px; line-height: 1; }

.power-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 25px 27px 28px;
}

.power-options[hidden], .power-confirmation[hidden], .power-actions[hidden] { display: none; }

.power-option {
  display: grid;
  min-height: 190px;
  align-content: start;
  justify-items: start;
  border: 1px solid rgba(11, 75, 117, .12);
  border-radius: 22px;
  padding: 18px;
  color: #123f5e;
  background: #fff;
  box-shadow: 0 13px 30px rgba(7, 74, 113, .07);
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.power-option:hover { border-color: rgba(7, 143, 206, .35); box-shadow: 0 18px 35px rgba(7, 74, 113, .12); transform: translateY(-3px); }
.power-option > span { display: grid; width: 45px; height: 45px; margin-bottom: 25px; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(145deg, #1bb7e5, #0876ae); font-size: 21px; font-weight: 850; }
.power-option-reboot > span { background: linear-gradient(145deg, #42c4dd, #14889e); }
.power-option-shutdown > span { background: linear-gradient(145deg, #ff7270, #c62f3b); }
.power-option b { font-size: 14px; letter-spacing: -.25px; }
.power-option small { margin-top: 8px; color: #6b8799; font-size: 9px; font-weight: 620; line-height: 1.5; }

.power-confirmation {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 26px 27px 18px;
  border: 1px solid rgba(7, 143, 206, .16);
  border-radius: 22px;
  padding: 19px;
  background: linear-gradient(145deg, #f3fbff, #e5f5fc);
}

.power-confirmation h3 { margin: 0; font-size: 18px; letter-spacing: -.45px; }
.power-confirmation p { margin: 6px 0 0; color: #627f92; font-size: 10px; line-height: 1.5; }
.power-feedback { min-height: 18px; margin: 0 27px; color: #287867; font-size: 10px; font-weight: 750; text-align: center; }
.power-feedback.is-error { color: #bf3843; }
.power-feedback.is-success { color: #08784d; }
.power-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 27px 27px; }
.power-actions button { min-height: 43px; border-radius: 14px; padding: 0 18px; font-size: 10px; font-weight: 830; }
.power-cancel { border: 1px solid rgba(11, 75, 117, .15); color: #315f7b; background: #fff; }
.power-confirm { border: 0; color: #fff; background: linear-gradient(120deg, #0879b2, #08a3d4); box-shadow: 0 11px 24px rgba(7, 117, 172, .22); }
.power-confirm.is-shutdown { background: linear-gradient(120deg, #d83c46, #aa2430); box-shadow: 0 11px 24px rgba(174, 37, 48, .22); }
.power-confirm:disabled, .power-dialog-close:disabled { cursor: wait; opacity: .55; }

@keyframes power-dialog-enter {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .power-button b { display: none; }
  .power-button { padding-right: 8px; }
  .power-dialog { max-height: calc(100vh - 16px); overflow: auto; border-radius: 23px; }
  .power-dialog-header { grid-template-columns: auto 1fr auto; padding: 20px; }
  .power-dialog-symbol { width: 43px; height: 43px; border-radius: 14px; }
  .power-dialog-header h2 { font-size: 20px; }
  .power-options { grid-template-columns: 1fr; padding: 19px 20px 22px; }
  .power-option { min-height: auto; grid-template-columns: auto 1fr; column-gap: 13px; }
  .power-option > span { grid-row: span 2; margin: 0; }
  .power-option small { margin-top: 4px; }
  .power-confirmation { margin: 20px; }
  .power-feedback { margin-inline: 20px; }
  .power-actions { padding: 10px 20px 22px; }
}

.reader small {
  max-width: 92%;
  min-height: 1.3em;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity {
  min-width: 0;
}

.account-status-message {
  max-width: 470px;
  margin: 6px 0 0;
  color: #627d8d;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .account-heading {
    align-items: flex-start;
  }

  .account-status-message {
    font-size: 10px;
  }
}

.quantity:disabled {
  cursor: not-allowed;
  opacity: 0.34;
  filter: grayscale(0.45);
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.flow-signal {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  margin: 15px 0 6px;
  border: 1px solid rgba(7, 143, 206, 0.16);
  border-radius: 24px;
  padding: 13px 17px;
  text-align: left;
  background: linear-gradient(145deg, #f4fbff, #e9f7fd);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.95);
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

.flow-signal::after {
  position: absolute;
  right: -35px;
  width: 105px;
  height: 105px;
  border: 1px solid rgba(7, 143, 206, 0.08);
  border-radius: 50%;
  content: "";
}

.flow-signal-light {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 5px solid rgba(255, 255, 255, .88);
  border-radius: 50%;
  color: #fff;
  background: #8aa1ac;
  box-shadow: 0 9px 22px rgba(41, 84, 105, .2), inset 0 1px rgba(255,255,255,.38);
  transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
}

.flow-signal-light svg {
  position: absolute;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  transition: opacity .2s ease, transform .3s ease;
}

.flow-signal-stop { opacity: 0; transform: scale(.55); }

.flow-signal-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
}

.flow-signal-copy strong {
  color: #143f58;
  font-size: clamp(18px, 3.2vw, 24px);
  font-weight: 880;
  letter-spacing: -.65px;
}

.flow-signal-copy small {
  color: #698493;
  font-size: 10px;
  font-weight: 720;
}

.flow-signal.is-flowing {
  border-color: rgba(13, 171, 100, .34);
  background: linear-gradient(145deg, #effff7, #dff8eb);
  box-shadow: 0 12px 30px rgba(15, 151, 92, .12), inset 0 1px rgba(255,255,255,.95);
}

.flow-signal.is-flowing .flow-signal-light {
  background: linear-gradient(145deg, #35d287, #079b5b);
  box-shadow: 0 10px 26px rgba(5, 153, 87, .34), 0 0 0 7px rgba(45, 211, 134, .12), inset 0 1px rgba(255,255,255,.42);
  animation: flow-signal-pulse 1.35s ease-in-out infinite;
}

.flow-signal.is-flowing .flow-signal-copy strong { color: #08774a; }

.flow-signal.is-stopped {
  border-color: rgba(222, 63, 67, .35);
  background: linear-gradient(145deg, #fff5f4, #ffe8e6);
  box-shadow: 0 12px 30px rgba(199, 50, 55, .12), inset 0 1px rgba(255,255,255,.95);
}

.flow-signal.is-stopped .flow-signal-light {
  background: linear-gradient(145deg, #ff6964, #d82e36);
  box-shadow: 0 10px 26px rgba(201, 42, 50, .31), 0 0 0 7px rgba(231, 65, 70, .1), inset 0 1px rgba(255,255,255,.4);
  transform: scale(1.04);
}

.flow-signal.is-stopped .flow-signal-drop { opacity: 0; transform: scale(.55); }
.flow-signal.is-stopped .flow-signal-stop { opacity: 1; transform: scale(1); }
.flow-signal.is-stopped .flow-signal-copy strong { color: #b3262e; }

@keyframes flow-signal-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 26px rgba(5,153,87,.3), 0 0 0 6px rgba(45,211,134,.1), inset 0 1px rgba(255,255,255,.42); }
  50% { transform: scale(1.06); box-shadow: 0 13px 30px rgba(5,153,87,.36), 0 0 0 12px rgba(45,211,134,0), inset 0 1px rgba(255,255,255,.42); }
}

.automatic-service-notice {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 24px;
  border: 1px solid rgba(7, 143, 206, 0.22);
  border-radius: 20px;
  padding: 18px;
  color: #0b4770;
  background: linear-gradient(135deg, #e9f8ff, #f7fdff);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9);
}

.automatic-service-notice[hidden] {
  display: none;
}

.automatic-service-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #12bde7, #0874b5);
  box-shadow: 0 12px 24px rgba(7, 117, 181, 0.22);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.automatic-service-notice div {
  display: grid;
  gap: 5px;
}

.automatic-service-notice strong {
  font-size: 15px;
  letter-spacing: -0.25px;
}

.automatic-service-notice small {
  color: #58788c;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.progress-track.is-live {
  position: relative;
  overflow: hidden;
  background: #d9eef8;
}

.progress-track.is-live .progress-value {
  position: absolute;
  inset-block: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, #12bde7 34%, #76e5f8 66%, transparent);
  animation: live-water-progress 1.45s ease-in-out infinite;
}

.dispensing-card.is-automatic .secondary-action:disabled {
  border: 1px solid rgba(7, 143, 206, 0.2);
  border-radius: 999px;
  padding: 11px 17px;
  color: #0873aa;
  background: #eaf8ff;
  cursor: default;
  opacity: 1;
}

.live-water-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.live-water-stats[hidden],
.next-user-message[hidden] {
  display: none;
}

.live-water-stats div {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(7, 143, 206, 0.17);
  border-radius: 20px;
  padding: 15px 12px;
  background: linear-gradient(145deg, #f5fcff, #e7f7ff);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9);
}

.live-water-stats span {
  color: #668292;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-water-stats strong {
  overflow: hidden;
  color: #086b9e;
  font-size: clamp(22px, 3.2vw, 31px);
  font-weight: 850;
  letter-spacing: -1px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dispensing-card.is-thank-you .live-water-stats div {
  border-color: rgba(29, 171, 127, 0.22);
  background: linear-gradient(145deg, #f2fff9, #e1f8ee);
}

.dispensing-card.is-thank-you .live-water-stats strong {
  color: #087c65;
}

.next-user-message {
  margin: 14px 0 0 !important;
  color: #0a779f !important;
  font-weight: 760;
}

@keyframes live-water-progress {
  from { transform: translateX(-130%); }
  to { transform: translateX(390%); }
}

@media (max-width: 480px) {
  .dispense-top {
    align-items: center;
    gap: 12px;
  }

  .dispense-top > span {
    flex: 1 1 0;
    min-width: 0;
  }

  .dispense-top .eyebrow {
    font-size: 7px;
    text-align: left;
  }

  .dispense-top span:last-child {
    font-size: 10px;
    text-align: right;
  }

  .automatic-service-notice {
    align-items: flex-start;
    padding: 15px;
  }

  .automatic-service-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .live-water-stats {
    grid-template-columns: 1fr;
  }

  .flow-signal {
    gap: 12px;
    padding: 11px 13px;
  }

  .flow-signal-light {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-track.is-live .progress-value {
    left: 33%;
    animation: none;
  }

  .flow-signal.is-flowing .flow-signal-light { animation: none; }
}
