.pu-entry, .pu-panel, .pu-notice { display: none; }
.pu-entry[hidden], .pu-panel[hidden], .pu-progress[hidden], .pu-notes[hidden],
.pu-legacy-text[hidden], .pu-legacy-link[hidden], .pu-error[hidden],
.pu-button[hidden], .pu-notice[hidden] { display: none !important; }

@media (max-width: 719px) {
  html.is-narrow.phone-tab-me .pu-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset, 0 10px 28px rgba(30, 27, 75, 0.07);
    color: inherit;
    font: inherit;
    text-align: left;
  }

  .pu-entry:active { transform: scale(0.99); }
  .pu-entry-ico {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.25);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
  }

  .pu-entry-main { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
  .pu-entry-main b { color: #0f172a; font-size: 15.5px; font-weight: 700; }
  .pu-entry-sub { overflow: hidden; color: #64748b; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
  .pu-entry-chevron { color: #94a3b8; font-size: 27px; line-height: 1; }

  html.is-narrow .pu-panel:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    flex-direction: column;
    touch-action: pan-y;
    background:
      radial-gradient(260px 220px at 12% 12%, rgba(129, 140, 248, 0.25), transparent 70%),
      radial-gradient(260px 240px at 95% 45%, rgba(56, 189, 248, 0.18), transparent 70%),
      #f5f6fc;
  }

  html.pu-open, html.pu-open body { overflow: hidden; }
  .pu-head {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    flex: none;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.58);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
  }

  .pu-head b { color: #0f172a; font-size: 17px; text-align: center; }
  .pu-back { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #4f46e5; font-size: 30px; line-height: 1; }
  .pu-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .pu-lead { margin: 2px 4px 12px; color: #475569; font-size: 13.5px; line-height: 1.55; }
  .pu-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset, 0 12px 32px rgba(30, 27, 75, 0.08);
  }

  .pu-row { display: flex; align-items: center; gap: 12px; padding: 15px 16px; }
  .pu-row + .pu-row { border-top: 1px solid rgba(148, 163, 184, 0.18); }
  .pu-row-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
  .pu-row-copy b { color: #0f172a; font-size: 15px; }
  .pu-row-sub { color: #64748b; font-size: 12px; line-height: 1.45; }
  .pu-row-value { max-width: 46%; overflow: hidden; color: #475569; font-size: 12.5px; font-weight: 650; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
  .pu-progress { display: flex; align-items: center; gap: 10px; margin: 14px 4px 0; color: #4f46e5; font-size: 12.5px; font-weight: 650; }
  .pu-progress-track { display: block; flex: 1; height: 7px; overflow: hidden; border-radius: 999px; background: rgba(99, 102, 241, 0.14); }
  .pu-progress-bar { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #6366f1); transition: width 180ms ease; }
  .pu-notes { margin: 14px 4px 0; padding-left: 20px; color: #475569; font-size: 12.5px; line-height: 1.6; }
  .pu-notes li + li { margin-top: 4px; }
  .pu-legacy-text, .pu-error { margin: 14px 4px 0; color: #92400e; font-size: 12.5px; line-height: 1.6; }
  .pu-error { padding: 10px 12px; border-radius: 14px; background: rgba(239, 68, 68, 0.1); color: #b91c1c; }
  .pu-legacy-link { display: inline-flex; margin: 10px 4px 0; color: #4f46e5; font-size: 13px; font-weight: 700; text-decoration: none; }
  .pu-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
  .pu-button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 6px 14px rgba(99, 102, 241, 0.23); color: #fff; font-size: 13px; font-weight: 700; }
  .pu-button.secondary { background: rgba(99, 102, 241, 0.12); box-shadow: none; color: #4f46e5; }
  .pu-button:disabled { opacity: 0.58; }

  html.is-narrow .pu-notice:not([hidden]) {
    position: fixed;
    right: 14px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(360px, calc(100vw - 28px));
    padding: 10px 10px 10px 13px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 16px;
    background: rgba(239, 246, 255, 0.96);
    box-shadow: 0 10px 28px rgba(30, 64, 175, 0.14);
    color: #1e3a8a;
    font-size: 12.5px;
    line-height: 1.45;
    pointer-events: none;
  }

  .pu-notice-open { flex: none; min-height: 30px; border: 0; border-radius: 999px; background: #4f46e5; color: #fff; font-size: 12px; font-weight: 700; pointer-events: auto; }
}
