@font-face { font-family: 'Instrument Sans'; src: url('./instrument-sans-variable.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
/* Product buttons. Change the tokens on .pb to recolour one button, or on a parent to recolour all of them. */
.pb {
  --pb-accent: #c4501a; --pb-accent-hover: #e2611b; --pb-on-accent: #ffffff;
  /* The accent used as text, rings and outlines on light surfaces. Palettes darken it where the fill is white or pale. */
  --pb-ink: var(--pb-accent);
  --pb-field: #ffffff; --pb-field-text: #1f2124; --pb-hint: #8a8f99; --pb-line: rgb(16 20 30 / .1);
  --pb-success: #1e9e5a; --pb-danger: #e0484e; --pb-on-state: #ffffff;
  --pb-spring: cubic-bezier(.3, 1.25, .5, 1); --pb-spring-time: .6s; --pb-out: cubic-bezier(.2, .8, .2, 1);
  --h: 52px;
  font-family: 'Instrument Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
.pb *, .pb *::before, .pb *::after { box-sizing: border-box; }
.pb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The shared button body: a pill whose width springs between states. */
.pb-btn {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; height: var(--h); padding: 0; border: 0; border-radius: calc(var(--h) / 2);
  font-family: inherit; font-size: 15.5px; font-weight: 600; line-height: 1; letter-spacing: -.005em; white-space: nowrap; font-variant-numeric: tabular-nums;
  color: var(--pb-on-accent); background: var(--pb-accent); cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 1px 2px rgb(10 14 24 / .14), 0 8px 20px -10px var(--pb-accent);
  transition: width var(--pb-spring-time) var(--pb-spring), background .35s var(--pb-out), color .35s var(--pb-out), scale .2s var(--pb-out), box-shadow .35s var(--pb-out);
}
.pb-btn:focus-visible { outline: 2px solid var(--pb-ink); outline-offset: 3px; }
.pb[data-state=done] .pb-btn { color: var(--pb-on-state); background: var(--pb-success); box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 1px 2px rgb(10 14 24 / .14), 0 8px 20px -10px var(--pb-success); cursor: default; }
.pb[data-state=fail] .pb-btn { color: var(--pb-on-state); background: var(--pb-danger); box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 1px 2px rgb(10 14 24 / .14), 0 8px 20px -10px var(--pb-danger); cursor: default; }

/* Stacked labels: one shows at a time, swapping with a short lift and blur. */
.pb-t { grid-area: 1 / 1; position: relative; transition: opacity .22s var(--pb-out), translate .4s var(--pb-out), filter .3s var(--pb-out); }
.pb-t.pb-hide-up { opacity: 0; translate: 0 -7px; filter: blur(4px); }
.pb-t.pb-hide-down { opacity: 0; translate: 0 7px; filter: blur(4px); }

/* A layer for one-off rings (Delete's warning pulse). Success lands quietly, without a ring. */
.pb-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }

/* Three dots that hop while something is working. */
.pb-dots { display: flex; gap: 5px; }
.pb-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pb-hop .9s ease-in-out infinite paused; }
.pb-dots i:nth-child(2) { animation-delay: .13s; }
.pb-dots i:nth-child(3) { animation-delay: .26s; }
.pb[data-state=busy] .pb-dots i { animation-play-state: running; }
@keyframes pb-hop { 0%, 60%, 100% { translate: 0 0; opacity: .45; } 30% { translate: 0 -5px; opacity: 1; } }

/* A progress band that fills the button from the left. Clipped, not scaled, so its rounded end stays round. */
.pb-fill { position: absolute; inset: 0; border-radius: inherit; background: color-mix(in oklab, currentColor 18%, transparent);
  clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0 round calc(var(--h) / 2)); opacity: 0; transition: opacity .3s var(--pb-out); pointer-events: none; }
.pb[data-state=busy] .pb-fill { opacity: 1; }

/* A quiet secondary pill, used for Cancel and for "on" states. */
.pb-quiet { color: var(--pb-field-text); background: var(--pb-field); box-shadow: 0 0 0 1px var(--pb-line), 0 1px 2px rgb(10 14 24 / .08); }

@media (prefers-reduced-motion: reduce) { .pb, .pb * , .pb-btn::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; } }

/* ---- Fields (Product inputs) ---- */
.pb-f { width: var(--pb-w, 320px); max-width: 100%; }
/* Fields move smoothly and settle without overshoot; the bouncier spring is for buttons. */
.pb-f { --pb-spring: cubic-bezier(.22, 1, .36, 1); --pb-spring-time: .42s; }
.pb-label { display: block; margin: 0 0 8px 4px; font-size: 13.5px; font-weight: 600; color: inherit; }
.pb-box { position: relative; display: flex; align-items: center; gap: 8px; min-height: var(--h); padding: 0 6px 0 16px; border-radius: 16px; color: var(--pb-field-text); background: var(--pb-field);
  box-shadow: 0 0 0 1px var(--pb-line), 0 1px 2px rgb(10 14 24 / .06); transition: box-shadow .25s var(--pb-out), background .25s var(--pb-out); }
.pb-box:focus-within { box-shadow: 0 0 0 1px var(--pb-accent), 0 0 0 4px color-mix(in oklab, var(--pb-accent) 20%, transparent); }
.pb-f.pb-error .pb-box { box-shadow: 0 0 0 1px var(--pb-danger), 0 0 0 4px color-mix(in oklab, var(--pb-danger) 18%, transparent); }
.pb-input { flex: 1; min-width: 0; height: var(--h); margin: 0; padding: 0; border: 0; background: none; outline: none; font-family: inherit; font-size: 16px; font-weight: 500; color: inherit; caret-color: var(--pb-accent); }
.pb-input::placeholder { color: var(--pb-hint); font-weight: 400; }
.pb-prefix { flex: none; font-size: 16px; font-weight: 500; color: var(--pb-hint); }
/* A small pill inside a field: a toggle, a suggestion, a status. */
.pb-chip { flex: none; display: inline-grid; place-items: center; height: 32px; padding: 0 11px; border: 0; border-radius: 10px; font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: inherit; background: color-mix(in oklab, var(--pb-field-text) 6%, var(--pb-field)); cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background .2s var(--pb-out), color .2s var(--pb-out), opacity .2s var(--pb-out), scale .3s var(--pb-spring), translate .3s var(--pb-out); }
.pb-chip:hover { background: color-mix(in oklab, var(--pb-field-text) 11%, var(--pb-field)); }
.pb-chip:active { scale: .94; transition: scale .08s var(--pb-out); }
.pb-chip:focus-visible { outline: 2px solid var(--pb-ink); outline-offset: 2px; }
/* The line under a field: a hint, a warning or a result. It changes with a short lift. */
.pb-note { min-height: 20px; margin: 8px 0 0 4px; font-size: 13.5px; line-height: 20px; color: var(--pb-hint); transition: color .2s var(--pb-out); }
.pb-note.pb-swap { animation: pb-note .3s var(--pb-out); }
.pb-note:empty { min-height: 0; margin: 0; }
.pb-f.pb-error .pb-note { color: var(--pb-danger); }
@keyframes pb-note { from { opacity: 0; translate: 0 4px; } }
.pb-roll { position: relative; display: inline-grid; overflow: hidden; height: 1.3em; line-height: 1.3em; vertical-align: middle; }
.pb-roll > span { grid-area: 1 / 1; }

/* A layer drawn exactly over an input's text, for letters that need to move (password reveal, rolling digits). */
.pb-mirror { position: absolute; z-index: 1; display: flex; align-items: center; white-space: pre; pointer-events: none; font-variant-numeric: tabular-nums; }
.pb-mirror > span { position: relative; display: inline-grid; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.pb-mirror > span > span { grid-area: 1 / 1; }
.pb-quiet-text { color: transparent !important; }

/* Phone: a white plate with two grey wells. The code well opens a sheet of countries; the number never moves. */
.ph{--calm:cubic-bezier(.22,1,.36,1);--open:cubic-bezier(.32,.72,0,1);--well:color-mix(in oklab,var(--pb-field-text) 9%,var(--pb-field));position:relative;width:380px;max-width:100%;height:64px}
.ph *{box-sizing:border-box}
.ph-plate{position:absolute;z-index:5;top:0;left:0;right:0;height:64px}
/* The head never changes. Behind it a full-height sheet only slides, so opening and folding need no repainting. */
.ph-head{position:relative;z-index:2;display:flex;gap:6px;height:64px;padding:6px;border-radius:22px;background:var(--pb-field)}
.ph-head::before{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 1px var(--pb-line);clip-path:inset(-2px -2px 50% -2px);pointer-events:none}
.ph-clip{position:absolute;z-index:1;top:32px;left:-70px;right:-70px;height:340px;overflow:hidden;pointer-events:none}
.ph-sheet{position:absolute;top:0;left:70px;right:70px;height:276px;border-radius:22px;background:var(--pb-field);box-shadow:0 0 0 1px var(--pb-line),0 1px 2px rgb(10 14 24 / .06),0 10px 24px -12px rgb(10 14 24 / .2);translate:0 -244px;pointer-events:auto;will-change:translate;transition:translate .62s var(--open)}
/* The deep shadow lives on its own layer and fades in near the top, so it has no hard edge beside the field. */
.ph-shade-clip{z-index:0;-webkit-mask-image:linear-gradient(transparent,#000 46px);mask-image:linear-gradient(transparent,#000 46px)}
.ph-shade{position:absolute;top:0;left:70px;right:70px;height:276px;border-radius:22px;box-shadow:0 2px 4px rgb(10 14 24 / .06),0 22px 44px -18px rgb(10 14 24 / .32);translate:0 -244px;opacity:0;will-change:translate,opacity;transition:translate .62s var(--open),opacity .5s var(--pb-out)}
.ph[data-phase=open] .ph-shade{opacity:1}
.ph-well{position:relative;isolation:isolate;flex:1 1 0;min-width:0;display:flex;align-items:center;height:52px;cursor:text}
/* A code is two or three digits, so its well never changes size. */
.ph-well.code{flex:0 0 78px}
.ph-well::before{content:"";position:absolute;inset:0;border-radius:16px;background:var(--well)}
.ph-ring{position:absolute;inset:0;border-radius:16px;background:var(--pb-field);box-shadow:0 0 0 1.5px var(--pb-ink),0 0 0 4px color-mix(in oklab,var(--pb-ink) 18%,transparent),0 8px 18px -10px rgb(10 14 24 / .3);opacity:0;scale:.975;will-change:opacity,scale;transition:opacity .42s var(--pb-out),scale .6s var(--open)}
.ph-well:focus-within{z-index:1}
.ph-well:focus-within .ph-ring{opacity:1;scale:1}
.ph input{position:relative;z-index:2;width:100%;height:100%;min-width:0;margin:0;padding:0 16px;border:0;border-radius:inherit;background:none;outline:none;font-family:inherit;font-size:16px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--pb-field-text);caret-color:var(--pb-ink);will-change:opacity}
.ph input::placeholder{color:var(--pb-hint);font-weight:400}
.ph-n{padding-right:44px!important}
/* The whole number is already there in grey, so typing only darkens it: brackets and spaces never shift the digits. */
.ph-ghost{position:absolute;z-index:1;left:0;top:0;bottom:0;display:flex;align-items:center;padding:0 16px;font-size:16px;font-weight:500;font-variant-numeric:tabular-nums;white-space:pre;color:var(--pb-hint);pointer-events:none}
.ph-ghost b{font-weight:inherit;visibility:hidden}
.ph-ghost[hidden]{display:none}
/* A drawn check when the number is whole. */
.ph-ok{position:absolute;z-index:3;right:15px;top:50%;width:18px;height:18px;margin-top:-9px;fill:none;stroke:var(--pb-success);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;opacity:0;transition:opacity .15s var(--pb-out)}
.ph-ok path{stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .36s var(--calm)}
.ph-whole .ph-ok{opacity:1}
.ph-whole .ph-ok path{stroke-dashoffset:0}
/* The window slides with the sheet and the rows counter-slide inside it, so they stay still and the sheet's edge reveals them. */
.ph-reveal{position:absolute;z-index:3;top:-2px;left:6px;right:6px;height:304px;overflow:hidden;translate:0 -244px;pointer-events:none;will-change:translate;transition:translate .62s var(--open)}
.ph-list{position:absolute;top:60px;left:0;right:0;height:0;translate:0 244px;will-change:translate;transition:translate .62s var(--open)}
.ph-knob{position:absolute;pointer-events:none;left:0;right:0;top:0;height:46px;border-radius:16px;background:var(--well);opacity:0;will-change:translate,opacity;transition:translate .32s var(--calm),opacity .18s var(--pb-out)}
.ph-row{pointer-events:auto;position:absolute;z-index:1;left:0;right:0;top:0;display:flex;align-items:center;height:46px;padding:0 16px;font-size:16px;font-weight:500;color:var(--pb-field-text);white-space:nowrap;cursor:pointer;user-select:none;font-variant-numeric:tabular-nums;transition:opacity .16s var(--pb-out)}
.ph-row.out{opacity:0;pointer-events:none}
.ph-row.out i{transition:none}
.ph-rc{flex:0 0 66px}
.ph-rn{min-width:0;overflow:hidden;text-overflow:ellipsis;transition:opacity .14s var(--pb-out)}
.ph-row i{font-style:normal;transition:color .2s var(--pb-out)}
.ph-q .ph-row i{color:var(--pb-hint)}
.ph-q .ph-row i.on{color:var(--pb-field-text)}
.ph-none{position:absolute;pointer-events:none;left:16px;right:16px;top:6px;margin:0;height:46px;line-height:46px;font-size:15.5px;color:var(--pb-hint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .2s var(--pb-out)}
.ph-empty .ph-none{opacity:1}
@media(prefers-reduced-motion:reduce){.ph,.ph *{animation:none!important;transition-duration:.01ms!important;transition-delay:0s!important}}
