/* The pages that walk the owner through something: connecting the subscriptions (the stepper of the board Fogli-3), and the new project (a form with its main button above the keyboard). */
.wizard-in { max-width: 520px; margin: 0 auto; padding: 8px 20px calc(var(--tab-room, 0px) + 32px); display: grid; gap: 20px; align-content: start; }
.page:first-child > .wizard-in { padding-top: calc(var(--top) + 8px); }
.wprog { display: flex; gap: 6px; }
.wprog i { flex: 1; height: 4px; border-radius: 2px; background: var(--track); transition: background 340ms var(--ease); }
.wprog i.on { background: var(--acc); }
.wprog i.done { background: var(--ok-f); }
.hero { display: grid; justify-items: start; gap: 12px; }
.hero .badge { width: 56px; height: 56px; border-radius: 18px; }
.hero .badge .ic { width: 28px; height: 28px; }
.hero p { text-wrap: pretty; }
/* the stepper: a numbered circle, a line down to the next step */
.vsteps { list-style: none; margin: 0; padding: 0; display: grid; }
.vstep { display: flex; gap: 14px; }
.vs-rail { display: flex; flex-direction: column; align-items: center; width: 32px; flex: none; }
.vs-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 var(--f); background: var(--field); box-shadow: inset 0 0 0 1.5px var(--line2); color: var(--tx3); }
.vs-n .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.vs-line { flex: 1; width: 2px; margin: 4px 0; border-radius: 1px; background: var(--line2); }
.vstep.now .vs-n { background: transparent; box-shadow: inset 0 0 0 2.5px var(--acc); color: var(--acc-tx); }
.vstep.done .vs-n { background: var(--acc); box-shadow: none; color: var(--on-acc); }
.vstep.done .vs-line { background: var(--acc); opacity: .5; }
.vs-body { flex: 1; min-width: 0; display: grid; gap: 2px; align-content: start; padding-bottom: 18px; justify-items: start; }
.vstep:last-child .vs-body { padding-bottom: 0; }
.vs-t { font-weight: 700; padding-top: 5px; }
.vstep:not(.now):not(.done) .vs-t { color: var(--tx2); }
.vs-body > .btn, .vs-body > .code-big, .vs-body > .paste, .vs-body > .waiting { margin-top: 10px; }
.vs-body > .paste ~ .btn { margin-top: 8px; }
.vs-body > .btn.blk { margin-top: 8px; }
.paste { display: flex; align-items: flex-start; gap: 8px; width: 100%; }
.paste .fieldrow { flex: 1; min-width: 0; }
.code-big { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 8px 8px 16px; border-radius: 18px; background: var(--field); border: 1px solid var(--line); }
.code-big .mono { flex: 1 1 auto; min-width: 0; font: 500 24px/1 var(--m); letter-spacing: .1em; white-space: nowrap; user-select: all; -webkit-user-select: all; }
.waiting { display: flex; align-items: center; gap: 10px; color: var(--tx2); font: 500 13px/17px var(--f); }
.success { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 8px 0 0; }
.success .orb { margin-bottom: 18px; }
.linkrow { display: grid; }
.guide.grp { list-style: none; margin: 0; padding: 0; }
.summary { display: block; }
/* a form page with its main button at the foot of the visible area (above the keyboard) */
.page.form { display: flex; flex-direction: column; }
.page.form > .page-in { flex: 1 0 auto; width: 100%; padding-bottom: calc(var(--foot-h) + 16px); }
/* The main button sits at the bottom of the FULL screen and stays there when the keyboard comes up: the keyboard covers it (a tap outside the field brings it back). */
:root { --foot-h: calc(24px + 60px + 8px + 48px + var(--sab)); }          /* the block of a form page's buttons: main button, a ghost one, margins, safe area */
.sticky-foot { position: fixed; z-index: 5; left: 0; right: 0; top: calc(var(--full-h, 100vh) - var(--foot-h)); height: var(--foot-h); padding: 12px 0 calc(8px + var(--sab)); background: linear-gradient(to bottom, transparent, var(--bg) 18px); }
.sticky-foot > div { max-width: 640px; margin: 0 auto; padding: 0 20px; display: grid; gap: 8px; }
@media (min-width: 900px) {                                   /* two panes, no keyboard: the button stays at the foot of its own pane */
  .sticky-foot { position: sticky; top: auto; bottom: 0; height: auto; }
  .page.form > .page-in { padding-bottom: 56px; }
}
/* The page of an account (views/account.js): its title, the switch Abbonamento | API, and under it the page of the side chosen, laid out as the page of a service is (a grid with the gaps of .wizard-in). */
.account-host { display: grid; }
.account-body { display: grid; gap: 20px; align-content: start; min-width: 0; }
