:root {
  color-scheme: light;
  --ink: #171c33;
  --sand: #f8e3b2;
  --paper: #fffdf6;
  --green: #65aa93;
  --coral: #e98156;
  --yellow: #ffdf64;
  --muted: #5b5e69;
  --line: #222437;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
a {
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #4764d6;
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(35px, 4.4vw, 58px);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -2.7px;
  margin: 20px 0 16px;
}
h1 > span {
  color: #a43f26;
}
h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 16px;
  line-height: 1.35;
}
.shell {
  max-width: 1160px;
  margin: auto;
  padding: 0 32px;
}
.header {
  height: 96px;
  border-bottom: 1px solid #171c3326;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 900;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.logo small {
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.4px;
}
.blue {
  color: #386ece;
}
.green {
  color: #448876;
}
.coral {
  color: #cb5a47;
}
.logo-icon {
  font-size: 38px;
  color: #416fcb;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.text-link {
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 4px;
}
.text-link:hover {
  text-decoration: underline;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 42px 0 32px;
}
.intro p {
  color: #454756;
  font-size: 17px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.spark {
  display: inline-block;
  margin-right: 6px;
  font-size: 15px;
  color: #996135;
}
.travel-stamp {
  width: 167px;
  height: 167px;
  flex-shrink: 0;
  border: 2px solid var(--ink);
  background: var(--coral);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(10deg);
  margin-right: 34px;
  box-shadow: 4px 4px 0 var(--ink);
}
.travel-stamp > span {
  font-size: 17px;
  font-weight: 800;
}
.travel-stamp > b {
  font-size: 60px;
  line-height: 1.1;
}
.travel-stamp > small {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.7px;
}
.notice {
  background: #fffdf6b8;
  border: 1px solid #171c3338;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 24px;
  color: #55535d;
  font-size: 13px;
}
.plan-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 24px;
}
.plan-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: #c9b3ed;
  border-radius: 14px;
  font-size: 32px;
  flex-shrink: 0;
}
.plan-title {
  flex: 1;
  min-width: 0;
}
.plan-title h2 {
  margin: 3px 0 4px;
  overflow-wrap: anywhere;
}
.plan-title p {
  font-size: 13px;
  color: var(--muted);
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--ink);
  border-radius: 30px;
  background: #dcefdc;
  padding: 5px 11px;
}
.badge.lavender {
  background: #e8dcf6;
}
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 26px;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 24px;
}
.icon-button {
  width: 35px;
  height: 35px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  font-size: 23px;
  display: grid;
  place-items: center;
  line-height: 1;
}
.icon-button:hover {
  background: var(--yellow);
}
.usage-main {
  display: grid;
  gap: 22px;
  margin: 20px 0;
}
.usage-meters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.meter {
  min-width: 0;
  text-align: center;
}
.meter-graphic {
  position: relative;
  width: min(100%, 180px);
  aspect-ratio: 1;
  margin: 0 auto -16px;
}
.meter-graphic > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.meter-graphic > svg > path {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
}
.meter-track {
  stroke: #ece8da;
}
.meter-progress {
  stroke: var(--green);
}
.traffic-meter .meter-progress {
  stroke: var(--coral);
}
.meter-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #388c76;
  background: #dfe9d7;
  transform: translate(-50%, -50%);
}
.traffic-meter .meter-icon {
  color: #ef6e40;
  background: #f9dfca;
}
.meter-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.meter-caption {
  position: relative;
}
.meter-caption strong {
  display: block;
  min-height: 1.3em;
  font-size: clamp(20px, 2.35vw, 27px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.8px;
}
.meter-caption small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
#remaining-unit {
  font-size: 0.72em;
}
.usage-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #dedbce;
}
.usage-facts > div {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.usage-facts small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.usage-facts b {
  font-size: 16px;
}
.dot {
  margin-top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.green-dot {
  background: var(--green);
}
.coral-dot {
  background: var(--coral);
}
.outline-dot {
  border: 1px solid #9b9c9d;
}
.validity {
  background: #f0eddf;
  border-radius: 10px;
  padding: 12px 15px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.validity > span {
  font-size: 28px;
  line-height: 1;
}
.validity small,
.validity strong {
  display: block;
}
.validity small {
  font-size: 11px;
  color: var(--muted);
}
.validity strong {
  font-size: 15px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.update-note {
  font-size: 11px;
  margin-top: 13px;
}
.install-card > .muted {
  margin: 18px 0;
}
.install-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.qr-box {
  min-width: 0;
  background: white;
  border: 1px solid #e4e1d8;
  border-radius: 12px;
  aspect-ratio: 1;
  flex: 0 1 184px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.qr-box img {
  width: 100%;
  height: auto;
  display: block;
}
.qr-box > span {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  padding: 36px 12px;
}
.install-actions {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-width: 145px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.button:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}
.button.yellow {
  background: var(--yellow);
}
.green-button {
  background: #bfe0cf;
}
.button.small {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
}
.install-actions > .text-link {
  text-align: center;
  margin-top: 5px;
  font-size: 12px;
}
.manual {
  margin-top: 25px;
  border-top: 1px solid #dedbce;
  padding-top: 15px;
}
.manual summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  gap: 12px;
}
.manual summary::-webkit-details-marker {
  display: none;
}
.manual dl {
  font-size: 12px;
  margin: 16px 0;
}
.manual dt {
  color: var(--muted);
  margin-top: 10px;
}
.manual dd {
  margin: 4px 0;
  overflow-wrap: anywhere;
  user-select: all;
  font-family: monospace;
  font-size: 13px;
}
.manual #copy-state {
  display: block;
  font-size: 12px;
  padding-top: 6px;
}
.steps-card {
  margin-top: 28px;
  box-shadow: 4px 4px 0 var(--ink);
}
.steps-card .eyebrow {
  color: #747064;
}
.steps-card h2 {
  font-size: 27px;
  margin-top: 5px;
}
.tabs {
  display: flex;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  padding: 3px;
  background: #eee9dc;
}
.tabs button {
  border: 0;
  border-radius: 6px;
  padding: 8px 13px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}
.tabs button[aria-selected='true'] {
  background: var(--ink);
  color: white;
}
ol {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
ol li {
  display: flex;
  gap: 12px;
}
ol li > span {
  font-size: 11px;
  font-weight: 800;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 50%;
  flex: 0 0 29px;
  height: 29px;
  display: grid;
  place-items: center;
}
ol p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.7;
}
.tip {
  border-top: 1px solid #dedbce;
  padding-top: 15px;
  font-size: 12px;
  color: #56575c;
  display: flex;
  gap: 9px;
}
.details-strip {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 5px;
  margin: 34px 0;
  padding: 0 5px;
}
.details-strip small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}
.details-strip strong {
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.save-note {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ecdcae;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 32px;
}
.save-note > span {
  font-size: 26px;
}
.save-note p {
  font-size: 12px;
  flex: 1;
  color: #454652;
}
.save-note strong {
  color: var(--ink);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #171c3326;
  padding: 24px 0 34px;
  font-size: 11px;
  color: #575861;
  margin-top: 20px;
}
footer a {
  text-decoration: none;
}
.empty {
  text-align: center;
  margin: 10px auto 60px;
  padding: 40px 24px;
  max-width: 640px;
}
.empty-icon {
  font-size: 50px;
}
.empty p {
  color: var(--muted);
  margin: 15px 0 25px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}
@media (min-width: 1300px) {
  .intro {
    padding-top: 46px;
  }
}
@media (max-width: 900px) {
  .shell {
    padding: 0 22px;
  }
  .card {
    padding: 22px;
  }
  .dashboard-grid {
    gap: 20px;
    grid-template-columns: 1fr 1fr;
  }
  .usage-main {
    gap: 18px;
  }
  .meter {
    width: auto;
  }
  .usage-facts {
    width: 100%;
    gap: 9px;
  }
  .usage-facts b {
    font-size: 15px;
  }
  .usage-facts small {
    font-size: 10px;
  }
  .install-body {
    flex-direction: column;
    gap: 16px;
  }
  .qr-box {
    width: 155px;
    flex-basis: auto;
  }
  .install-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .install-actions > .text-link {
    grid-column: 1/-1;
  }
  .install-actions .button {
    font-size: 12px;
    padding: 10px;
  }
  .install-card > .muted {
    font-size: 12px;
  }
  .card-heading h2 {
    font-size: 19px;
  }
  .install-card .card-heading {
    flex-wrap: wrap;
  }
  .details-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  ol {
    gap: 18px;
  }
  .travel-stamp {
    margin-right: 10px;
  }
}
@media (max-width: 620px) {
  .shell {
    padding: 0 18px;
  }
  .header {
    height: 78px;
  }
  .logo {
    font-size: 24px;
    gap: 6px;
  }
  .logo-icon {
    font-size: 31px;
  }
  .logo small {
    font-size: 12px;
  }
  .header-actions {
    gap: 10px;
  }
  .header-actions .text-link {
    font-size: 12px;
  }
  .header-actions .small {
    font-size: 0;
    min-width: 36px;
    padding: 8px;
    min-height: 34px;
  }
  .header-actions .small:after {
    content: '↓';
    font-size: 18px;
  }
  .intro {
    padding: 28px 0 26px;
    position: relative;
  }
  .intro h1 {
    font-size: 38px;
    letter-spacing: -1.8px;
    margin: 14px 0;
  }
  .intro p {
    font-size: 13px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.1px;
  }
  .travel-stamp {
    display: none;
  }
  .plan-bar {
    gap: 10px;
    flex-wrap: wrap;
    margin: 4px 0 20px;
  }
  .plan-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    font-size: 26px;
  }
  .plan-title h2 {
    font-size: 18px;
  }
  .plan-title p {
    font-size: 11px;
  }
  .plan-bar > .badge {
    margin-left: 54px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .card {
    padding: 21px;
    border-radius: 16px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .card-heading h2 {
    font-size: 21px;
  }
  .usage-main {
    gap: 18px;
    margin: 16px 0;
  }
  .meter {
    width: auto;
  }
  .usage-facts {
    gap: 8px;
  }
  .usage-facts small {
    font-size: 11px;
  }
  .usage-facts b {
    font-size: 16px;
  }
  .install-card .card-heading {
    flex-wrap: nowrap;
  }
  .install-card .card-heading h2 {
    font-size: 20px;
  }
  .install-body {
    flex-direction: row;
    gap: 14px;
  }
  .qr-box {
    width: 150px;
    flex: 0 1 150px;
  }
  .install-actions {
    display: flex;
    width: auto;
    min-width: 120px;
  }
  .install-actions .button {
    font-size: 12px;
    padding: 10px 9px;
  }
  .badge {
    font-size: 10px;
    padding: 4px 9px;
  }
  .steps-card {
    margin-top: 24px;
  }
  .steps-card > .card-heading {
    align-items: flex-end;
  }
  .steps-card h2 {
    font-size: 25px;
  }
  .tabs button {
    font-size: 11px;
    padding: 7px 10px;
  }
  ol {
    grid-template-columns: 1fr;
    gap: 23px;
    margin: 25px 0;
  }
  ol p {
    font-size: 13px;
    margin-top: 6px;
  }
  ol h3 {
    font-size: 16px;
  }
  .details-strip {
    gap: 10px 12px;
    margin: 29px 0;
  }
  .save-note {
    flex-wrap: wrap;
    padding: 16px;
    gap: 10px;
  }
  .save-note p {
    flex-basis: 80%;
  }
  .save-note > .button {
    margin-left: 34px;
  }
  .save-note > span {
    align-self: flex-start;
  }
  .notice {
    font-size: 12px;
  }
  footer {
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
  }
  .manual {
    margin-top: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media (max-width: 620px) {
  .plan-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }
  .plan-bar > .badge {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    justify-self: start;
  }
  .plan-title h2 {
    line-height: 1.3;
  }
}
.card,
.meter {
  min-width: 0;
}
@media (max-width: 620px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 360px) {
  .header {
    gap: 10px;
  }
  .logo {
    font-size: 22px;
  }
  .logo small {
    display: none;
  }
  .intro h1 {
    font-size: 33px;
  }
  .usage-main {
    gap: 16px;
  }
  .meter {
    width: auto;
  }
  .usage-facts {
    gap: 8px;
  }
  .usage-facts > div {
    gap: 5px;
  }
  .usage-facts small {
    font-size: 9px;
  }
  .usage-facts b {
    font-size: 13px;
  }
  .install-card .card-heading {
    flex-wrap: wrap;
  }
  .install-body {
    flex-direction: column;
  }
  .qr-box {
    width: 170px;
    flex-basis: auto;
  }
  .install-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .install-actions > .text-link {
    grid-column: 1/-1;
  }
  .steps-card > .card-heading {
    flex-wrap: wrap;
    gap: 14px;
  }
}

.cancelled-card {
  text-align: center;
  padding: 48px 24px;
  margin-bottom: 32px;
}
.cancelled-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #f5cfbd;
  font-size: 42px;
  line-height: 1;
}
.cancelled-card h2 {
  font-size: clamp(24px, 4vw, 32px);
}
.cancelled-card p {
  max-width: 460px;
  margin: 14px auto 24px;
  color: var(--muted);
}
.cancelled-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.loading-actions {
  display: none;
}
#dashboard.is-loading {
  pointer-events: none;
  user-select: none;
}
.is-loading
  :is(
    #plan-name,
    #plan-meta,
    #status,
    .details-strip strong,
    .usage-facts b,
    #time-left,
    #updated,
    #installed,
    #install-hint
  ),
.is-loading .loading-actions span,
.is-loading .qr-box,
.is-loading .meter-caption strong {
  color: transparent;
  background: linear-gradient(100deg, #e6e1d5 25%, #f4f0e7 45%, #e6e1d5 65%);
  background-size: 250% 100%;
  animation: skeleton-shimmer 1.7s ease-in-out infinite;
  border-color: transparent;
  border-radius: 7px;
}
.is-loading #plan-name {
  width: min(310px, 100%);
  min-height: 1.25em;
}
.is-loading #plan-meta {
  width: min(230px, 85%);
  min-height: 1.5em;
}
.is-loading #status {
  min-width: 115px;
}
.is-loading .details-strip strong {
  display: block;
  width: min(150px, 90%);
  min-height: 1.5em;
}
.is-loading .usage-facts b {
  display: block;
  min-width: 75px;
}
.is-loading #time-left {
  width: min(220px, 100%);
  min-height: 1.5em;
}
.is-loading #updated {
  width: 85%;
}
.is-loading .meter-caption strong {
  width: 80%;
  min-height: 1em;
  margin: auto;
}
.is-loading .meter-caption small {
  visibility: hidden;
}
.is-loading .meter-progress,
.is-loading .meter-icon,
.is-loading .qr-box > *,
.is-loading #refresh {
  visibility: hidden;
}
.is-loading .install-actions > a {
  display: none !important;
}
.is-loading .loading-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  grid-column: 1/-1;
}
.is-loading .loading-actions span {
  display: block;
  height: 46px;
}
.is-loading .loading-actions span:last-child {
  height: 18px;
  width: 80%;
  margin: 5px auto 0;
}
@keyframes skeleton-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -150% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-loading * {
    animation: none !important;
  }
}
