.ap-shell {
  min-height: 100dvh;
  background: #f5f7f9;
  color: var(--ink);
}
.ap-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem max(5%, env(safe-area-inset-right)) .8rem max(5%, env(safe-area-inset-left));
  min-height: 62px;
  border-bottom: 1px solid #dce1e6;
  background: #fff;
}
.ap-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #102c42;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
}
.ap-brand img { width: 35px; height: 35px; }
.ap-bar button, .ap-bar > a:not(.ap-brand) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem .8rem;
  border: 1px solid #d3dae2;
  border-radius: 6px;
  background: #fff;
  color: #1a344a;
  font-weight: 600;
  text-decoration: none;
}
.ap-main { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
.ap-panel {
  width: min(91%, 640px);
  margin: clamp(24px, 7vh, 68px) auto;
  padding: clamp(24px, 5vw, 46px);
  background: #fff;
  border: 1px solid #dbe1e6;
  border-radius: 10px;
}
.ap-panel h1 {
  margin: 0 0 .65rem;
  font-size: clamp(1.8rem, 5vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -.045em;
}
.ap-panel p { margin-block: .6rem 1rem; color: #475868; }
.ap-login, .ap-choices { display: grid; gap: 1rem; margin-top: 1.5rem; }
.ap-login[hidden] { display: none; }
.ap-field { display: grid; gap: .35rem; font-weight: 600; }
.ap-field input, .ap-login input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1px solid #aebcc9;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}
.ap-action, .ap-login button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: .7rem 1.2rem;
  border: 1px solid #214dd0;
  border-radius: 5px;
  background: #244ed3;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
.ap-choice {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: .85rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid #d3dde6;
  border-inline-start: 3px solid #2859e8;
  border-radius: 4px;
  background: #fafbfd;
  color: #112d43;
  text-decoration: none;
}
.ap-choice span { color: #435767; }
.ap-choice strong, .ap-choice small { display: block; }
.ap-choice strong { color: #102c42; font-size: 1.06rem; }
.ap-choice small { margin-top: .2rem; font-size: .91rem; line-height: 1.45; }
.ap-panel .ap-kicker { color: #395470; font-size: .87rem; font-weight: 650; margin: 0 0 .45rem; }
.ap-back { display: inline-flex; align-items: center; min-height: 44px; margin: .4rem 5%; color: #214bb7; font-weight: 600; }
.ap-choice:hover, .ap-choice:focus-visible { background: #eff4fc; }
.ap-status[role="alert"] { color: #932a23; }
.ap-export { width: min(94vw, 46rem); max-height: 92dvh; overflow: auto; margin: auto; padding: 1.35rem; border: 1px solid #d3dae2; border-radius: 8px; color: var(--ink); }
.ap-export::backdrop { background: rgb(16 30 50 / 55%); }
.ap-export h2 { margin: 0 0 .8rem; font-size: 1.25rem; overflow-wrap: anywhere; }
.ap-export label { display: grid; gap: .35rem; font-weight: 600; }
.ap-export textarea { width: 100%; max-height: 48dvh; resize: vertical; padding: .65rem; border: 1px solid #9faab5; border-radius: 4px; background: #fafbfd; color: #18293a; font: 1rem/1.45 monospace; }
.ap-export-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.ap-export button { min-height: 44px; padding: .45rem .8rem; border: 1px solid #bbc6d0; border-radius: 5px; background: white; color: #173c70; }
@media (max-width: 550px) {
  .ap-panel { margin-block: 20px; padding: 22px 18px; }
  .ap-bar { padding-inline: 5%; }
}
[data-example-plans] .ap-action { margin: .4rem .5rem .3rem 0; }
[data-example-plans] .ap-action + .ap-action { background: white; color: #2248ae; }
[data-example-plans] summary { cursor: pointer; color: #2048b5; font-weight: 600; }
.ap-signup-link {min-height:44px;background:transparent;border:0;padding:0;color:#214bb7;font:inherit;font-weight:600;text-align:left;text-decoration:underline;cursor:pointer}
.ap-field select {min-height:46px;padding:.65rem .75rem;border:1px solid #8794a2;border-radius:4px;background:white;color:#17212d;font:inherit}
