.pwa-card {
  min-width: 0;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--card);
  box-shadow: var(--card-shadow);
  color: var(--ink);
}
.pwa-install-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.pwa-icon { display: block; border-radius: 27%; box-shadow: 0 2px 0 #642c3b; }
.pwa-heading { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.pwa-subheading { margin: 0; font-size: 1.04rem; line-height: 1.4; }
.pwa-copy, .pwa-sheet-copy { margin: 4px 0 0; line-height: 1.5; color: var(--muted); }
.pwa-copy { font-size: .92rem; }
.pwa-reminder-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 16px 0; }
.pwa-button, .pwa-close, .pwa-toggle { cursor: pointer; font: inherit; touch-action: manipulation; }
.pwa-button {
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--line);
}
.pwa-button:enabled:hover { border-color: var(--accent); }
.pwa-toggle {
  position: relative;
  flex: none;
  width: 52px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}
.pwa-toggle::before, .pwa-toggle::after { content: ""; position: absolute; border-radius: 24px; }
.pwa-toggle::before { inset: 8px 1px; background: var(--muted); }
.pwa-toggle::after { inset: 12px auto auto 5px; width: 20px; height: 20px; background: var(--card); }
.pwa-toggle[aria-checked="true"]::before { background: var(--ok); }
.pwa-toggle[aria-checked="true"]::after { transform: translateX(22px); }
.pwa-toggle:disabled, .pwa-hour:disabled { opacity: .55; cursor: default; }
.pwa-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--soft);
  font-weight: 650;
}
.pwa-zone { display: inline-block; font-size: .83rem; color: var(--muted); font-weight: 500; }
.pwa-time .pwa-hour {
  flex: none;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--input-line);
  border-radius: 9px;
  background-color: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.pwa-status:not(:empty), .pwa-retry { margin-top: 10px; }
.pwa-status:empty { margin: 0; }
.pwa-sheet {
  box-sizing: border-box;
  position: fixed;
  inset: auto 0 0;
  margin: auto auto 0;
  width: min(100%, 460px);
  max-width: 100%;
  max-height: 88vh;
  max-height: 88dvh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-radius: var(--window-radius) var(--window-radius) 0 0;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--window-shadow);
}
.pwa-sheet::backdrop { background: #241a20a6; }
.pwa-sheet .pwa-heading { margin-top: 14px; font-size: 1.35rem; }
.pwa-sheet-copy { margin: 10px 0 18px; }
.pwa-close {
  position: absolute;
  inset: 13px 13px auto auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  font-size: 1.5rem;
  line-height: 1;
}
.pwa-action { width: 100%; }
.pwa-install, .pwa-action { background: var(--action); border-color: transparent; color: white; box-shadow: var(--action-shadow); }
.pwa-steps { display: grid; gap: 12px; padding: 0; margin: 18px 0 0; list-style: none; }
.pwa-step { display: flex; align-items: center; gap: 14px; font-size: .97rem; line-height: 1.5; }
.pwa-drawing {
  box-sizing: border-box; flex: none; width: 48px; height: 48px; padding: 8px;
  border-radius: 12px; background: var(--blue-soft); color: var(--info);
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round;
}
.pwa-sheet .pwa-card { border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.pwa-sheet .pwa-install-row, .pwa-button[hidden] { display: none; }
.pwa-button:focus-visible, .pwa-close:focus-visible, .pwa-hour:focus-visible, .pwa-toggle:focus-visible {
  outline: 3px solid var(--info); outline-offset: 3px;
}
@media (max-width: 460px) {
  .pwa-install-row { column-gap: 10px; }
  .pwa-button { padding-inline: 10px; }
}
@media (min-width: 600px) {
  .pwa-sheet { margin-bottom: 24px; border-radius: var(--window-radius); }
}
@media (prefers-reduced-motion: no-preference) {
  .pwa-toggle::after { transition: transform .16s; }
}
@media (prefers-reduced-motion: reduce) {
  .pwa-card .pwa-button, .pwa-card .pwa-toggle, .pwa-sheet .pwa-button, .pwa-sheet .pwa-close { transition: none; }
}
