@font-face {
  font-family: "Instrument Sans";
  src: url("/widgets/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/widgets/instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * Indie's v5 tokens. A form takes an accent, a style (data-form-style) and light or dark (data-theme).
 * Every style shares one layout; a style changes surfaces, corners and how the chosen type is marked.
 */
:root {
  color-scheme: light;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #ffffff;
  --s2: #f4f5f7;
  --s3: #e9ebef;
  --line: #e1e4ea;
  --field-line: #c9ced7;
  --field-hover: #aeb5c1;
  --fg: #0e1116;
  --mute: #5a6270;
  --faint: #6f7785;
  --bad-ink: #bb0916;
  --bad-wash: rgba(226, 53, 50, 0.09);
  --paper: 0 1px 2.5px rgba(0, 0, 0, 0.05);
  --acc: #1a6fe1;
  --on-acc: #ffffff;
  --ring: var(--ring-light, #1a6fe1);
  --acc-wash: color-mix(in srgb, var(--acc) 9%, var(--bg));
  --ring-soft: color-mix(in srgb, var(--ring) 22%, transparent);

  --pad: 28px;
  --r-mark: 12px;
  --r-field: 10px;
  --r-tile: 10px;
  --r-btn: 10px;
  --field-bg: var(--bg);
  --field-border: 1px solid var(--field-line);
  --field-shadow: var(--paper);
  --tile-bg: var(--bg);
  --tile-border: 1px solid var(--line);
  --tile-hover: var(--s2);
  --tile-on-bg: var(--acc-wash);
  --tile-on-fg: var(--fg);
  --tile-on-icon: var(--ring);
  --tile-on-edge: var(--ring);
  --title-weight: 600;
  --title-track: -0.025em;

  font: 16px/1.5 var(--sans);
  color: var(--fg);
  background: var(--bg);
  accent-color: var(--acc);
  caret-color: var(--ring);
  scrollbar-color: var(--s3) transparent;
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #13161c;
  --s2: #1a1e26;
  --s3: #2b313c;
  --line: #2a303b;
  --field-line: #3a414e;
  --field-hover: #535c6c;
  --fg: #eef1f6;
  --mute: #9ba3b3;
  --faint: #8a92a3;
  --bad-ink: #ff8f8a;
  --bad-wash: rgba(242, 96, 92, 0.14);
  --paper: 0 1px 2px rgba(0, 0, 0, 0.4);
  --ring: var(--ring-dark, #609efa);
  --acc-wash: color-mix(in srgb, var(--acc) 16%, var(--bg));
}

/* Soft: filled wells, round corners, the chosen type filled with the accent. */
:root[data-form-style="soft"] {
  --r-mark: 16px;
  --r-field: 14px;
  --r-tile: 16px;
  --r-btn: 999px;
  --field-bg: var(--s2);
  --field-border: 1px solid transparent;
  --field-shadow: none;
  --field-hover: var(--s3);
  --tile-bg: var(--s2);
  --tile-border: 1px solid transparent;
  --tile-hover: var(--s3);
  --tile-on-bg: var(--acc);
  --tile-on-fg: var(--on-acc);
  --tile-on-icon: var(--on-acc);
  --tile-on-edge: transparent;
}
/* Sharp: square corners and ink rules; the chosen type is inverted. */
:root[data-form-style="sharp"] {
  --r-mark: 0;
  --r-field: 0;
  --r-tile: 0;
  --r-btn: 0;
  --field-border: 1.5px solid var(--fg);
  --field-shadow: none;
  --field-hover: var(--fg);
  --tile-border: 1.5px solid var(--fg);
  --tile-on-bg: var(--fg);
  --tile-on-fg: var(--bg);
  --tile-on-icon: var(--bg);
  --tile-on-edge: var(--fg);
  --title-weight: 700;
  --title-track: -0.035em;
}
/* Minimal: no boxes. Underlined fields and text tabs. */
:root[data-form-style="minimal"] {
  --r-mark: 10px;
  --r-field: 0;
  --r-btn: 8px;
  --field-bg: transparent;
  --field-shadow: none;
  --title-weight: 500;
}
/* Banner: Classic with the header set on the accent. */
:root[data-form-style="banner"] {
  --title-track: -0.03em;
}

* {
  box-sizing: border-box;
}
::selection {
  background: var(--ring-soft);
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
}
main {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--pad) var(--pad) 22px;
}
[hidden] {
  display: none !important;
}

/* ---------- Header: the app's own mark beside the heading ---------- */
.intro {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
:root[data-embedded] .intro {
  padding-right: 40px;
}
.intro-text {
  min-width: 0;
  padding-top: 1px;
}
.mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: var(--r-mark);
  background: var(--acc);
  color: var(--on-acc);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 8%, transparent);
}
.mark:empty {
  display: none;
}
.mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
h1,
h2 {
  margin: 0;
  font-weight: var(--title-weight);
  letter-spacing: var(--title-track);
  line-height: 1.15;
  text-wrap: balance;
}
h1 {
  font-size: clamp(23px, 5.6vw, 27px);
}
h2 {
  font-size: 24px;
}
.intro p {
  margin: 5px 0 0;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
:root[data-form-style="banner"] main {
  padding-top: 0;
}
:root[data-form-style="banner"] .intro {
  margin: 0 calc(var(--pad) * -1);
  padding: calc(var(--pad) + 2px) var(--pad) 24px;
  background: var(--acc);
  color: var(--on-acc);
}
:root[data-form-style="banner"][data-embedded] .intro {
  padding-right: calc(var(--pad) + 40px);
}
:root[data-form-style="banner"] .intro p {
  color: color-mix(in srgb, var(--on-acc) 80%, transparent);
}
:root[data-form-style="banner"] .mark {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--on-acc) 30%, transparent);
}
:root[data-form-style="banner"] .mark:not(:has(img)) {
  background: var(--on-acc);
  color: var(--acc);
}
:root[data-form-style="banner"] ::selection {
  background: color-mix(in srgb, var(--on-acc) 30%, transparent);
}
:root[data-form-style="banner"] form ::selection {
  background: var(--ring-soft);
}

/* ---------- Kind of feedback ---------- */
.types {
  min-width: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}
legend,
label,
.label {
  display: block;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.type {
  position: relative;
  cursor: pointer;
}
.type input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.type span {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: var(--tile-border);
  border-radius: var(--r-tile);
  background: var(--tile-bg);
  color: var(--mute);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition:
    background-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1),
    color 160ms ease;
}
.type svg {
  width: 18px;
  height: 18px;
  color: var(--faint);
  transition: color 160ms ease;
}
.type .dots {
  fill: currentColor;
  stroke: none;
}
.type:hover span {
  background: var(--tile-hover);
  color: var(--fg);
}
.type input:checked + span {
  border-color: var(--tile-on-edge);
  background: var(--tile-on-bg);
  box-shadow: inset 0 0 0 1px var(--tile-on-edge);
  color: var(--tile-on-fg);
}
.type input:checked + span svg {
  color: var(--tile-on-icon);
}
.type input:focus-visible + span {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
:root[data-form-style="sharp"] .type input:checked + span {
  box-shadow: none;
}
/* Minimal: text tabs on one rule, the chosen one underlined in the accent. */
:root[data-form-style="minimal"] .type-grid {
  display: flex;
  gap: 18px;
  margin-top: 4px;
  border-bottom: 1px solid var(--line);
}
:root[data-form-style="minimal"] .type span {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  margin-bottom: -1px;
  padding: 0;
  font-size: 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
}
:root[data-form-style="minimal"] .type svg {
  display: none;
}
:root[data-form-style="minimal"] .type:hover span {
  background: transparent;
}
:root[data-form-style="minimal"] .type input:checked + span {
  border-bottom-color: var(--ring);
  background: transparent;
  box-shadow: none;
  color: var(--fg);
}
:root[data-form-style="minimal"] .type input:focus-visible + span {
  outline-offset: -2px;
}

/* ---------- Fields ---------- */
.field {
  min-width: 0;
  margin-top: 18px;
}
.opt {
  margin-left: 6px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 400;
}
input:not([type="file"], [type="radio"]),
textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 11px 13px;
  border: var(--field-border);
  border-radius: var(--r-field);
  outline: 0;
  background: var(--field-bg);
  box-shadow: var(--field-shadow);
  color: inherit;
  font: inherit;
  line-height: 1.45;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}
textarea {
  min-height: 104px;
  resize: vertical;
}
#steps {
  min-height: 72px;
}
::placeholder {
  color: var(--faint);
  opacity: 1;
}
input:not([type="file"], [type="radio"]):hover,
textarea:hover {
  border-color: var(--field-hover);
}
:root[data-form-style="soft"] input:not([type="file"], [type="radio"]):hover,
:root[data-form-style="soft"] textarea:hover {
  border-color: transparent;
  background: var(--s3);
}
input:not([type="file"], [type="radio"]):focus,
textarea:focus,
:root[data-form-style="soft"] input:not([type="file"], [type="radio"]):focus,
:root[data-form-style="soft"] textarea:focus {
  border-color: var(--ring);
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--ring-soft);
}
:root[data-form-style="sharp"] input:not([type="file"], [type="radio"]):focus,
:root[data-form-style="sharp"] textarea:focus {
  box-shadow: 0 0 0 1.5px var(--ring);
}
[aria-invalid="true"],
[aria-invalid="true"]:hover,
[aria-invalid="true"]:focus {
  border-color: var(--bad-ink) !important;
}
:root[data-form-style="minimal"] input:not([type="file"], [type="radio"]),
:root[data-form-style="minimal"] textarea {
  padding-inline: 0;
  border: 0;
  border-bottom: 1.5px solid var(--field-line);
}
:root[data-form-style="minimal"] textarea {
  min-height: 92px;
}
:root[data-form-style="minimal"] input:not([type="file"], [type="radio"]):hover,
:root[data-form-style="minimal"] textarea:hover {
  border-bottom-color: var(--field-hover);
}
:root[data-form-style="minimal"] input:not([type="file"], [type="radio"]):focus,
:root[data-form-style="minimal"] textarea:focus {
  border-bottom-color: var(--ring);
  background: transparent;
  box-shadow: 0 1.5px 0 var(--ring);
}
small {
  display: block;
  margin-top: 6px;
  color: var(--mute);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}
.field-error {
  margin: 6px 0 0;
  color: var(--bad-ink);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Screenshot ---------- */
.file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 6px;
  padding: 0 13px;
  border: 1.5px dashed var(--field-line);
  border-radius: var(--r-field);
  background: var(--bg);
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}
:root[data-form-style="soft"] .file {
  border-color: var(--s3);
  background: var(--s2);
}
:root[data-form-style="sharp"] .file {
  border-color: var(--fg);
}
:root[data-form-style="minimal"] .file {
  padding-inline: 0;
  border-width: 0 0 1.5px;
  background: transparent;
}
.file svg {
  width: 18px;
  height: 18px;
  color: var(--faint);
  transition: color 150ms ease;
}
.file:hover,
.file.drag {
  border-color: var(--ring);
  background: var(--acc-wash);
  color: var(--fg);
}
:root[data-form-style="minimal"] .file:hover,
:root[data-form-style="minimal"] .file.drag {
  background: transparent;
}
.file:hover svg,
.file.drag svg {
  color: var(--ring);
}
.file:focus-within {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px var(--ring-soft);
}
.file input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.file-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attached {
  margin-top: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  background: var(--bg);
}
#preview {
  display: block;
  width: 100%;
  max-height: 150px;
  border-radius: max(0px, calc(var(--r-field) - 5px));
  object-fit: contain;
  background: var(--s2);
}
.attached-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 0 6px;
}
.attached-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--mute);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Disclosure, errors, actions ---------- */
details {
  margin-top: 16px;
  color: var(--mute);
  font-size: 13px;
}
summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  border-radius: 4px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}
summary:hover {
  color: var(--fg);
}
summary svg {
  width: 14px;
  height: 14px;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
details[open] summary svg {
  transform: rotate(90deg);
}
details p {
  margin: 6px 0 0;
}
#context {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
#error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: var(--r-field);
  background: var(--bad-wash);
  color: var(--bad-ink);
  font-size: 14px;
  font-weight: 500;
  white-space: pre-wrap;
}
#error:empty {
  display: none;
}
svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-btn);
  font: 600 15px/1.2 var(--sans);
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    opacity 150ms ease,
    transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
.primary {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  background: var(--acc);
  color: var(--on-acc);
  box-shadow:
    0 1px 2px rgba(14, 17, 22, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
:root[data-form-style="sharp"] .primary,
:root[data-form-style="minimal"] .primary {
  box-shadow: none;
}
.primary:hover {
  background: color-mix(in srgb, var(--acc) 88%, #000);
}
.primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
:root[data-form-style="minimal"] .primary {
  width: auto;
  padding: 0 22px;
}
.secondary {
  border: 1px solid var(--field-line);
  background: var(--bg);
  box-shadow: var(--paper);
  color: var(--fg);
}
.secondary:hover {
  background: var(--s2);
}
:root[data-form-style="soft"] .secondary {
  border-color: transparent;
  background: var(--s2);
  box-shadow: none;
}
:root[data-form-style="soft"] .secondary:hover {
  background: var(--s3);
}
:root[data-form-style="sharp"] .secondary {
  border: 1.5px solid var(--fg);
  box-shadow: none;
}
.ghost {
  min-height: 40px;
  padding: 0 10px;
  background: transparent;
  color: var(--mute);
  font-size: 13px;
}
.ghost:hover {
  background: var(--s2);
  color: var(--bad-ink);
}
.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 12.5px;
  text-align: center;
}
.foot svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}
.foot span {
  overflow-wrap: anywhere;
}
:root[data-form-style="minimal"] .foot {
  justify-content: flex-start;
  text-align: left;
}

/* ---------- Sent ---------- */
#success {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 26px;
  text-align: center;
  outline: 0;
}
:root[data-form-style="banner"] #success {
  padding-top: calc(var(--pad) + 20px);
}
#success p {
  max-width: 34ch;
  margin: 8px 0 0;
  color: var(--mute);
  font-size: 15px;
}
.done {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--acc-wash);
  color: var(--ring);
  animation: done-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
:root[data-form-style="sharp"] .done {
  border-radius: 0;
}
.done svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: done-draw 460ms 140ms cubic-bezier(0.65, 0, 0.35, 1) both;
}
@keyframes done-in {
  from {
    transform: scale(0.82);
    opacity: 0;
  }
}
@keyframes done-draw {
  from {
    stroke-dashoffset: 1;
  }
}
.done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.done-actions .primary {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 22px;
}

.honey {
  position: absolute;
  left: -10000px;
  top: 0;
}

@media (min-width: 500px) {
  .type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .type span {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-height: 70px;
    padding: 11px 9px 10px 11px;
    font-size: 13px;
  }
  .pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 14px;
  }
}
@media (max-width: 440px) {
  :root {
    --pad: 18px;
  }
  main {
    padding-bottom: 18px;
  }
  .intro {
    gap: 12px;
  }
  .mark {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }
  .type span {
    gap: 7px;
    padding: 8px 10px;
    font-size: 13.5px;
  }
  :root[data-form-style="minimal"] .type-grid {
    justify-content: space-between;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  .done,
  .done svg {
    transition: none !important;
    animation: none !important;
  }
}
@media (forced-colors: active) {
  input:not([type="file"], [type="radio"]),
  textarea,
  .file,
  .type span,
  button {
    border: 1px solid ButtonText;
  }
  .type input:checked + span {
    border: 2px solid Highlight;
  }
}
