@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; }

.ck{--calm:cubic-bezier(.22,1,.36,1);--ck-note:#6b7280;color:var(--pb-field-text);-webkit-tap-highlight-color:transparent}
.ck *{box-sizing:border-box}
.ck-plate{width:300px;max-width:100%;margin-inline:auto;padding:6px 16px;border-radius:20px;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)}
.ck-one{padding:0 16px}
.ck-one .ck-row{min-height:62px}
/* The colour swells from the middle, then the tick draws itself. Nothing reacts to the press. */
.ck-row{position:relative;display:flex;align-items:center;gap:12px;min-height:46px;font-size:15.5px;font-weight:500;cursor:pointer}
.ck-row input{position:absolute;width:1px;height:1px;opacity:0;margin:0;pointer-events:none}
.ck-box{position:relative;flex:none;display:block;width:22px;height:22px;border-radius:7px;background:color-mix(in oklab,var(--pb-field-text) 10%,var(--pb-field))}
.ck-box::before{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--pb-accent);opacity:0;scale:.55;transition:scale .3s var(--calm) var(--d,0s),opacity .2s ease var(--d,0s)}
.ck-box svg{position:absolute;inset:0;width:22px;height:22px;overflow:visible;fill:none;stroke:var(--pb-on-accent);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.ck-tick{stroke-dasharray:1 1;stroke-dashoffset:1;transition:stroke-dashoffset .16s ease var(--d,0s)}
input:checked~.ck-box::before{opacity:1;scale:1}
input:checked~.ck-box .ck-tick{stroke-dashoffset:0;transition:stroke-dashoffset .32s var(--calm) calc(var(--d,0s) + .06s)}
input:focus-visible~.ck-box{outline:2px solid var(--pb-ink);outline-offset:2px}
.ck-text{flex:1;min-width:0}
@media(prefers-reduced-motion:reduce){.ck *,.ck *::before,.ck *::after{transition-duration:.01ms!important;transition-delay:0s!important}}
