/* First-run setup wizard (Cafe POS edition only). Colours come from the theme variables, so it follows the chosen accent. */
#setup-root {
  position: fixed;
  inset: 0;
  z-index: 400;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  padding: 20px 12px calc(20px + var(--safe-b, 0px));
  background: var(--paper);
}
.su-card {
  width: 100%;
  max-width: 560px;
  margin: auto 0;
  padding: 22px 22px 20px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-m);
}
.su-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  margin-bottom: 6px;
}
.su-mini {
  width: 40px;
  height: 40px;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 0 0 1px var(--line);
}
.su-step {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.su-dots {
  display: flex;
  gap: 6px;
  margin: 4px 0 14px;
}
.su-dots i {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
}
.su-dots i.done {
  background: var(--red);
  opacity: 0.55;
}
.su-dots i.now {
  background: var(--red);
}
.su-card h2 {
  margin-bottom: 4px;
  font-size: 22px;
  color: var(--maroon);
}
.su-card h1 {
  font-size: 26px;
}
.su-sub {
  margin-bottom: 14px;
  font-size: 13px;
}
.su-body {
  margin-top: 6px;
}
.su-body .field {
  margin-bottom: 12px;
}
.su-body textarea {
  width: 100%;
}
.su-hero {
  padding: 8px 0 18px;
  text-align: center;
}
.su-hero img {
  width: 104px;
  height: 104px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-s);
}
.su-big {
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  justify-content: center;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}
.su-nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.su-nav .btn {
  min-height: 46px;
}
#su-err,
#su-conn {
  min-height: 18px;
  margin-top: 8px;
}
.su-opts {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.su-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  cursor: pointer;
}
.su-opt.on {
  border-color: var(--red);
  background: var(--red-l);
}
.su-opt input {
  margin-top: 4px;
  accent-color: var(--red);
}
.su-opt span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.su-opt small {
  color: var(--muted);
}
.su-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.su-logo > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.su-logo img {
  flex: none;
  width: 72px;
  height: 72px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 0 0 1px var(--line);
}
@media (max-width: 480px) {
  #setup-root {
    padding: 12px 8px calc(16px + var(--safe-b, 0px));
  }
  .su-card {
    padding: 18px 16px;
    border-radius: 18px;
  }
  .su-logo {
    flex-direction: column;
    align-items: flex-start;
  }
}
