/* wiklik.ai — PF / PJ chooser (wk-chooser.js, site_tpl/wk_chooser.html). Mobile first: a bottom sheet at 360–390 px
   (the two options stacked, each with its button, the whole sheet scrolls inside itself, never the page); from
   720 px a centred card with the options side by side. Colours from theme.css only. */
.wk-ch {
  padding: 0;
  border: 0;
  margin: auto auto 0;
  width: 100%;
  max-width: 100%;
  max-height: 92dvh;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-card);
  color: var(--ink);
  font-family: var(--font);
  box-shadow: 0 -12px 40px rgba(10, 11, 13, .18);
  overflow: hidden;
}
.wk-ch::backdrop { background: rgba(10, 11, 13, .55); }
.wk-ch[open] { display: flex; flex-direction: column; animation: wk-ch-up .22s ease-out; }
@keyframes wk-ch-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wk-ch[open] { animation: none; } }
.wk-ch-in { overflow-y: auto; overscroll-behavior: contain; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); }
.wk-ch-grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: -8px auto 12px; }
.wk-ch-head { display: flex; align-items: flex-start; gap: 12px; }
.wk-ch-head h2 { flex: 1; margin: 0; font: 700 1.25rem/1.25 var(--font-display); letter-spacing: -.01em; }
.wk-ch-x {
  flex: none; width: 40px; height: 40px; margin: -6px -6px 0 0; border: 0; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink-2); font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.wk-ch-x:focus-visible, .wk-ch-go:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wk-ch-lead { margin: 6px 0 16px; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.wk-ch-opts { display: grid; gap: 12px; }
.wk-ch-opt {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg-card);
}
.wk-ch[data-wk-from="pf"] .wk-ch-opt[data-opt="pf"],
.wk-ch[data-wk-from="pj"] .wk-ch-opt[data-opt="pj"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.wk-ch-tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--nav-active-ink); font-size: .78rem; font-weight: 700; }
.wk-ch-opt h3 { margin: 0; font: 700 1.05rem/1.3 var(--font-display); }
.wk-ch-opt p { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.wk-ch-req { color: var(--ink) !important; font-weight: 600; }
.wk-ch-opt ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.wk-ch-opt li { position: relative; padding-left: 22px; font-size: .9rem; line-height: 1.4; color: var(--ink); }
.wk-ch-opt li::before {
  content: ""; position: absolute; left: 2px; top: .3em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.wk-ch-go {
  display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: auto; padding: 10px 16px;
  border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; text-align: center;
}
.wk-ch-go.btn-primary { background: var(--accent); color: var(--accent-ink); }
.wk-ch-go.btn-primary:hover { background: var(--accent-hover); }
.wk-ch-go.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.wk-ch-note { margin: 14px 0 0; color: var(--ink-3); font-size: .82rem; line-height: 1.45; }
@media (min-width: 720px) {
  .wk-ch { margin: auto; max-width: 760px; max-height: 88vh; border-radius: var(--radius); box-shadow: 0 24px 64px rgba(10, 11, 13, .22); }
  .wk-ch-in { padding: 28px; }
  .wk-ch-grab { display: none; }
  .wk-ch-opts { grid-template-columns: 1fr 1fr; gap: 16px; }
  .wk-ch-opt { padding: 20px; }
}
