﻿.pwa-entry, .pwa-banner, .pwa-page {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #173344;
  font-size: 15px;
  line-height: 1.5;
}

.pwa-entry, .pwa-entry *, .pwa-banner, .pwa-banner *, .pwa-page *, .pwa-page {
  box-sizing: border-box;
}

.pwa-app-icon {
  flex: none;
  display: block;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2ecf1;
}

.pwa-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 600px;
  margin: 24px auto;
  padding: 16px 18px;
  border: 1px solid #d2e5f0;
  border-radius: 20px;
  background: linear-gradient(115deg, #f2f9fd, #fff 65%);
  box-shadow: 0 6px 24px rgba(21, 62, 84, 0.0352941176);
}

.pwa-entry-copy {
  flex: 1;
  min-width: 0;
}

.pwa-entry-copy strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.3px;
  line-height: 1.4;
  margin: 3px 0;
}

.pwa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #486878;
}

.pwa-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.pwa-entry-description {
  display: block;
  font-size: 12px;
  color: #506b7b;
}

.pwa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: #007ab6;
  color: #fff;
  text-decoration: none;
  font: 650 15px/1.4 system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.pwa-button:hover {
  color: #fff;
  background: #00689b;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 122, 182, 0.1490196078);
}

.pwa-button--compact {
  min-height: 44px;
  padding: 11px 14px;
  flex: none;
  font-size: 13px;
}

.pwa-button--secondary {
  background: transparent;
  color: #006b9f;
  border-color: #c8dfe9;
}

.pwa-button--secondary:hover {
  background: #edf7fc;
  color: #005780;
  box-shadow: none;
}

.pwa-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.pwa-link {
  color: #006b9f;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  transition: color 0.2s;
}

.pwa-link:hover {
  color: #004f76;
}

.pwa-button:focus-visible, .pwa-link:focus-visible, .pwa-close:focus-visible, .pwa-device:focus-visible, .pwa-page a:focus-visible, .pwa-page summary:focus-visible {
  outline: 3px solid #df920d;
  outline-offset: 4px;
}

.pwa-page {
  margin: 0;
  min-height: 100vh;
  background: #f5f9fc;
  color-scheme: light;
}

.pwa-page a {
  cursor: pointer;
}

.pwa-topbar {
  max-width: 1160px;
  margin: auto;
  padding: max(24px, env(safe-area-inset-top)) 32px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.pwa-brand img {
  width: 132px;
  height: auto;
  display: block;
}

.pwa-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.pwa-shell {
  max-width: 1160px;
  margin: auto;
  padding: 28px 32px 40px;
}

.pwa-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.pwa-hero {
  padding-top: 22px;
}

.pwa-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #cce2ee;
  border-radius: 999px;
  color: #006b9f;
  background: #eaf5fc;
  font-size: 12px;
  font-weight: 700;
}

.pwa-hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -1.8px;
  font-weight: 750;
  margin: 24px 0 20px;
}

.pwa-hero h1 em {
  font-style: normal;
  color: #007ab6;
}

.pwa-lead {
  max-width: 440px;
  margin: 0;
  color: #526b7b;
  font-size: 17px;
  line-height: 1.75;
}

.pwa-benefits {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 14px;
}

.pwa-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.pwa-benefit-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e4f2fa;
  color: #0075ac;
}

.pwa-home-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding: 18px 20px;
  max-width: 410px;
  background: #fff;
  border: 1px solid #dde9ef;
  border-radius: 18px;
}

.pwa-home-preview .pwa-app-icon {
  width: 60px;
  height: 60px;
  border-radius: 17px;
  box-shadow: 0 5px 14px rgba(23, 51, 68, 0.0470588235);
}

.pwa-home-preview strong {
  display: block;
  font-size: 14px;
}

.pwa-home-preview p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #526b7b;
}

.pwa-card {
  padding: 30px;
  border: 1px solid #dae6ed;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(21, 62, 84, 0.031372549);
}

.pwa-card-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.pwa-card-heading .pwa-app-icon {
  width: 52px;
  height: 52px;
}

.pwa-card-heading h2 {
  margin: 0 0 3px;
  font-size: 21px;
  letter-spacing: -0.6px;
}

.pwa-card-heading p {
  margin: 0;
  font-size: 12px;
  color: #526b7b;
}

.pwa-device-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  margin-bottom: 24px;
  background: #eef4f8;
  border-radius: 13px;
}

.pwa-device {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #506b7b;
  background: transparent;
  font: 600 13px system-ui;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.pwa-device:hover {
  color: #006b9f;
  background: #e1edf5;
}

.pwa-device[aria-pressed=true] {
  color: #006b9f;
  background: #fff;
  border-color: #d8e6ee;
  box-shadow: 0 2px 5px rgba(23, 51, 68, 0.0352941176);
}

.pwa-guide-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.pwa-guide-intro {
  margin: 0 0 20px;
  font-size: 12px;
  color: #526b7b;
  line-height: 1.65;
}

.pwa-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
  counter-reset: pwa-step;
}

.pwa-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  counter-increment: pwa-step;
}

.pwa-steps li::before {
  content: counter(pwa-step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d3e7f2;
  border-radius: 10px;
  background: #eef8fd;
  color: #006b9f;
  font-size: 11px;
  font-weight: 750;
}

.pwa-steps strong {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

.pwa-steps p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #526b7b;
  line-height: 1.7;
}

.pwa-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  margin: 0 3px;
  border: 1px solid #d7e5ec;
  border-radius: 6px;
  color: #006b9f;
}

.pwa-notice {
  padding: 14px 16px;
  margin: 0 0 20px;
  border: 1px solid #ead6aa;
  border-radius: 12px;
  background: #fff9eb;
  color: #735214;
  font-size: 13px;
  line-height: 1.7;
}

.pwa-notice strong {
  display: block;
  margin-bottom: 4px;
}

.pwa-card-actions {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #e2ebf0;
  display: grid;
  gap: 10px;
}

.pwa-card-actions .pwa-button {
  width: 100%;
}

.pwa-status {
  margin: 14px 0 0;
  font-size: 12px;
  color: #526b7b;
  text-align: center;
  line-height: 1.6;
}

.pwa-help {
  margin-top: 22px;
  border-top: 1px solid #e2ebf0;
  padding-top: 16px;
  font-size: 12px;
  color: #526b7b;
}

.pwa-help summary {
  min-height: 44px;
  display: list-item;
  font-weight: 650;
  color: #36556a;
  cursor: pointer;
}

.pwa-help p {
  margin: 10px 0 0;
  line-height: 1.7;
}

.pwa-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid #dae6ed;
  font-size: 12px;
  color: #526b7b;
}

.pwa-footer p {
  margin: 0;
}

.pwa-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pwa-banner {
  position: fixed;
  z-index: 1040;
  left: 12px;
  right: 12px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  max-width: 430px;
  margin: auto;
  padding: 16px;
  border: 1px solid #cce2ee;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(18, 62, 85, 0.1411764706);
}

.pwa-banner-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 30px;
}

.pwa-banner-heading .pwa-app-icon {
  width: 48px;
  height: 48px;
}

.pwa-banner-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  margin: 2px 0 3px;
}

.pwa-banner-copy p {
  margin: 0;
  font-size: 12px;
  color: #526b7b;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.pwa-banner-actions .pwa-button {
  flex: 1;
  min-height: 44px;
  font-size: 13px;
}

.pwa-banner-note {
  font-size: 11px;
  color: #526b7b;
}

.pwa-close {
  position: absolute;
  right: 5px;
  top: 5px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #526b7b;
  cursor: pointer;
  transition: background-color 0.2s;
}

.pwa-close:hover {
  background: #edf5fa;
}

.pwa-entry[hidden], .pwa-page [hidden], .pwa-banner[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .pwa-layout {
    gap: 32px;
  }
  .pwa-card {
    padding: 24px;
  }
}
@media (max-width: 700px) {
  .pwa-topbar {
    padding: max(16px, env(safe-area-inset-top)) 20px 12px;
  }
  .pwa-brand img {
    width: 110px;
  }
  .pwa-shell {
    padding: 12px 20px max(24px, env(safe-area-inset-bottom));
  }
  .pwa-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pwa-hero {
    padding-top: 8px;
  }
  .pwa-hero h1 {
    font-size: 36px;
    letter-spacing: -1.3px;
    margin: 20px 0 16px;
  }
  .pwa-lead {
    font-size: 15px;
    line-height: 1.7;
  }
  .pwa-benefits {
    margin: 22px 0 0;
    gap: 12px;
  }
  .pwa-home-preview {
    display: none;
  }
  .pwa-card {
    padding: 22px;
    border-radius: 20px;
  }
  .pwa-card-heading {
    margin-bottom: 20px;
  }
  .pwa-footer {
    margin-top: 28px;
  }
}
@media (max-width: 480px) {
  .pwa-entry {
    margin: 16px 12px 0;
    padding: 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .pwa-entry .pwa-app-icon {
    width: 44px;
    height: 44px;
  }
  .pwa-entry-copy strong {
    font-size: 14px;
  }
  .pwa-entry .pwa-button {
    width: 100%;
  }
  .pwa-entry-description {
    font-size: 11px;
  }
}
@media (prefers-color-scheme: dark) {
  .pwa-page {
    color-scheme: dark;
    background: #0f202d;
    color: #f0f6fa;
  }
  .pwa-entry, .pwa-banner, .pwa-card, .pwa-home-preview {
    background: #182d3c;
    border-color: #314b5d;
    color: #f0f6fa;
  }
  .pwa-eyebrow, .pwa-entry-description, .pwa-lead, .pwa-home-preview p, .pwa-card-heading p, .pwa-guide-intro, .pwa-steps p, .pwa-status, .pwa-help, .pwa-footer, .pwa-banner-copy p, .pwa-banner-note, .pwa-close {
    color: #b8cbd8;
  }
  .pwa-hero h1 em, .pwa-link, .pwa-benefit-icon, .pwa-role, .pwa-steps li::before, .pwa-inline-icon, .pwa-help summary {
    color: #7dd5fa;
  }
  .pwa-role, .pwa-benefit-icon, .pwa-steps li::before, .pwa-device-switch {
    background: #213d50;
    border-color: #39586c;
  }
  .pwa-device {
    color: #b8cbd8;
  }
  .pwa-device:hover, .pwa-device[aria-pressed=true], .pwa-close:hover {
    background: #304c60;
    color: #e4f6ff;
    border-color: #496a80;
  }
  .pwa-card-actions, .pwa-help, .pwa-footer, .pwa-inline-icon {
    border-color: #314b5d;
  }
  .pwa-button--secondary {
    color: #7dd5fa;
    border-color: #496a80;
  }
  .pwa-button--secondary:hover {
    background: #213d50;
    color: #dcf3ff;
  }
  .pwa-link:hover {
    color: #d1efff;
  }
  .pwa-notice {
    background: #3b311f;
    border-color: #6e5831;
    color: #f3d89f;
  }
  .pwa-brand {
    padding: 8px 10px;
    background: #fff;
    border-radius: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pwa-button, .pwa-link, .pwa-device, .pwa-close {
    transition: none;
  }
}
@media (display-mode: standalone) {
  .pwa-entry, .pwa-banner {
    display: none;
  }
}
