/* PassLab (v0.41): three clear steps, one column on phones. Uses the site's colour variables. */
.pl { max-width: 820px; margin: 28px auto 8px; display: flex; flex-direction: column; gap: 28px; }
.pl [hidden] { display: none !important; }

.pl-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 16px);
  padding: 34px 34px 30px; box-shadow: var(--shadow); }
.pl-num { margin: 0 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.pl-step > h2 { margin: 0 0 22px; font-size: 1.6rem; color: var(--ink); }
.pl-step h3 { margin: 0 0 14px; font-size: 1.05rem; color: var(--ink); }

/* step 1: two big buttons */
.pl-market { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pl-big { display: block; cursor: pointer; position: relative; }
.pl-big input { position: absolute; opacity: 0; pointer-events: none; }
.pl-big-in { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; min-height: 124px; justify-content: center;
  border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--surface-2); transition: border-color .15s, background .15s, transform .15s; }
.pl-big-in b { font-size: 1.7rem; color: var(--ink); letter-spacing: .01em; }
.pl-big-in small { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.pl-big:hover .pl-big-in { border-color: var(--accent-line); transform: translateY(-2px); }
.pl-big input:checked + .pl-big-in { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.pl-big input:focus-visible + .pl-big-in { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* step 2: the pickers */
.pl-picks { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 520px; }
.pl-field { display: flex; flex-direction: column; gap: 8px; }
.pl-label { font-size: 1rem; font-weight: 680; color: var(--ink); }
.pl select, .pl input[type=number], .pl input[type=email], .pl input[type=search], .pl input[type=file] {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-2); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.pl select:focus, .pl input:focus, .dd-btn:focus-visible { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(46, 230, 255, .16); }

.dd { position: relative; }
.dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); cursor: pointer;
  border: 1.5px solid var(--line-2); border-radius: 12px; }
.dd-btn[aria-expanded=true] { border-color: var(--cyan); }
.dd-panel { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface-2);
  border: 1.5px solid var(--cyan-line); border-radius: 14px; padding: 10px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); }
.dd-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: 280px; overflow-y: auto; }
.dd-list button { width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 12px;
  font: inherit; font-size: 1rem; color: var(--ink); background: none; border: 0; border-radius: 9px; cursor: pointer; text-align: left; }
.dd-list button:hover, .dd-list button:focus-visible { background: var(--surface-3); outline: none; }
.dd-list small { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.dd-none { padding: 12px; color: var(--muted); }
.dd-custom { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.dd-custom button { color: var(--cyan); font-weight: 650; }

/* the read-only rules card */
.pl-summary { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 16px; }
.pl-sum-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.pl-sum-title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.pl-link { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 650; color: var(--cyan); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pl-sum-grid { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pl-sum-grid dt { font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.pl-sum-grid dd { margin: 0; font-size: 1.02rem; font-weight: 680; color: var(--ink); line-height: 1.35; }
.pl-sum-note { margin: 16px 0 0; font-size: .85rem; color: var(--muted); }
.pl-sum-note:empty { display: none; }
.pl-rules { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }

/* field grids (edit rules, step 3, more settings) */
.pl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 8px; }
.pl-grid label, .pl-wide > label { display: flex; flex-direction: column; gap: 8px; font-size: 1rem; font-weight: 680; color: var(--ink); }
.pl-grid small { font-weight: 450; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.pl-grid small:empty { display: none; }
.pl-wide { grid-column: 1 / -1; }
.pl .mode-switch { margin: 0 0 20px; }
.pl .trade-read { margin-top: 4px; }

.pl-more { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.pl-more > summary { cursor: pointer; font-weight: 680; font-size: 1.02rem; color: var(--ink); padding: 6px 0; list-style: none; }
.pl-more > summary::-webkit-details-marker { display: none; }
.pl-more > summary::before { content: "+"; display: inline-block; width: 1.4em; color: var(--accent-text); font-weight: 700; }
.pl-more[open] > summary::before { content: "\2212"; }
.pl-more-in { padding-top: 20px; display: flex; flex-direction: column; gap: 22px; }
.pl .check { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 600; font-size: .97rem; color: var(--ink-2); }
.pl .check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--accent); }

/* email step + run */
.pl-run { padding: 4px 6px 0; }
.pl-email { background: var(--surface-2); border: 1px solid var(--cyan-line); border-radius: 16px; padding: 24px; margin-bottom: 22px; }
.pl-email-h { margin: 0 0 14px; font-size: 1.12rem; font-weight: 680; color: var(--ink); line-height: 1.4; }
.pl-consent { margin: 12px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.pl-consent a { color: var(--cyan); font-weight: 650; }
.pl-go { width: 100%; padding: 18px 26px; font-size: 1.12rem; }
.pl .flash.error { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); margin: 0 0 12px; }

@media (max-width: 720px) {
  .pl { gap: 20px; margin-top: 18px; }
  .pl-step { padding: 24px 18px 22px; }
  .pl-step > h2 { font-size: 1.35rem; }
  .pl-market { grid-template-columns: 1fr; }
  .pl-big-in { min-height: 96px; padding: 20px; }
  .pl-sum-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pl-grid { grid-template-columns: 1fr; }
  .pl-email { padding: 18px; }
}

/* 0.47.0: Step 2 shows greyed out until Step 1 is picked, so the steps never read 1 then 3 */
.pl-step.pl-wait { opacity: .55; }
.pl-step.pl-wait > :not(.pl-num):not(h2):not(.pl-wait-note) { display: none; }
.pl-step:not(.pl-wait) > .pl-wait-note { display: none; }
.pl-step.pl-wait > h2 { margin-bottom: 8px; }
