.nb-dialog,
.nb-dialog *,
.nb-dialog *::before,
.nb-dialog *::after {
  box-sizing: border-box;
}
.nb-dialog button,
.nb-dialog input,
.nb-dialog select,
.nb-dialog textarea {
  font-family: inherit;
}
.nb-dialog {
  --nb-red: #b20d12;
  --nb-ink: #292523;
  --nb-muted: #736b65;
  width: min(840px, calc(var(--nb-vw, 1vw) * 100 - 40px));
  max-width: none;
  height: min(1120px, calc(var(--nb-vh, 1vh) * 100 - 32px));
  max-height: calc(var(--nb-vh, 1vh) * 100 - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  overflow: clip;
  border: 0;
  border-radius: 32px;
  color: var(--nb-ink);
  background: #fff;
  box-shadow: 0 36px 130px #21140740;
  font-family: Inter, 'PingFang SC', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

.nb-dialog {
  display: flex;
  flex-direction: column;
  animation: nb-dialog-enter 220ms ease-out both;
}
.nb-modal-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: clamp(12px, calc(var(--nb-vh, 1vh) * 2), 28px)
    clamp(20px, calc(var(--nb-vw, 1vw) * 4), 48px);
}
.nb-modal-card > * {
  flex-shrink: 0;
}
.nb-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--nb-muted);
  font-size: 15px;
}
.nb-wordmark {
  font-weight: 850;
}
.nb-saved-count {
  padding: 8px 14px;
  background: #f4f2ef;
  border-radius: 8px;
}
.nb-dialog-heading {
  text-align: center;
  margin-top: clamp(6px, calc(var(--nb-vh, 1vh) * 1.2), 24px);
}
.nb-dialog-heading .nb-kicker {
  margin: 0 0 8px;
  color: var(--nb-red);
  font-weight: 750;
  font-size: clamp(16px, calc(var(--nb-vw, 1vw) * 1.8), 19px);
}
.nb-dialog-heading h2 {
  font-size: clamp(28px, calc(var(--nb-vw, 1vw) * 4), 46px);
  line-height: 1.25;
  margin: 0;
  font-weight: 850;
  outline: none;
}
.nb-dialog-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--nb-muted);
  font-size: clamp(16px, calc(var(--nb-vw, 1vw) * 2), 22px);
  line-height: 1.45;
}
.nb-scene {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  margin: 8px 0;
  border-radius: 24px;
  background: radial-gradient(
    ellipse at center,
    #f9f0e2 0,
    #fcf8f2 53%,
    #fff 74%
  );
}
.nb-illustration {
  display: block;
  width: min(100%, 520px);
  height: 100%;
  max-height: 460px;
  margin: 0 auto;
  overflow: hidden;
}
.nb-illustration--ask,
.nb-illustration--duplicate {
  width: min(100%, 470px);
  max-height: 300px;
}
.nb-saved-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  padding: 17px;
  border-radius: 12px;
  background: #f7f6f3;
  font-size: 17px;
  color: var(--nb-muted);
}
.nb-saved-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.nb-saved-note strong {
  color: var(--nb-ink);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.nb-saved-note small,
.nb-live-weight small,
.nb-weight-compare small {
  font-size: 0.48em;
  font-weight: 500;
}
.nb-saved-note > span:last-child {
  padding-left: 18px;
  border-left: 1px solid #dcd7d0;
  font-size: 15px;
}
.nb-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.nb-button {
  min-height: clamp(64px, calc(var(--nb-vh, 1vh) * 5.4), 80px);
  padding: 14px 20px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  font-size: clamp(18px, calc(var(--nb-vw, 1vw) * 2), 22px);
  font-weight: 750;
  cursor: pointer;
  transition: background 160ms, transform 160ms;
  line-height: 1.4;
}
.nb-button:active {
  transform: translateY(2px);
}
.nb-button--primary {
  color: #fff;
  background: var(--nb-red, #b20d12);
}
.nb-button--primary:hover {
  background: #970b10;
}
.nb-button--more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.nb-button__plus {
  display: block;
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.nb-button--secondary {
  color: var(--nb-red, #b20d12);
  border-color: #d6a2a5;
  background: #fff6f6;
}
.nb-button--secondary:hover {
  background: #fce8e9;
}
.nb-button:disabled {
  background: #ebe6e1;
  color: #847b75;
  border-color: transparent;
  cursor: not-allowed;
  transform: none;
}
.nb-dialog :is(button, input, select, summary, a):focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}
.nb-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 8px 0 12px;
  font-size: 18px;
  color: #827a72;
}
.nb-steps li {
  display: flex;
  align-items: center;
  gap: 11px;
}
.nb-steps li + li::before {
  content: '';
  width: 44px;
  height: 1px;
  background: #ded9d2;
  margin-right: 4px;
}
.nb-steps li span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d9d3ca;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 750;
}
.nb-steps .is-current {
  color: var(--nb-red);
  font-weight: 750;
}
.nb-steps .is-current span {
  background: var(--nb-red);
  color: #fff;
  border-color: var(--nb-red);
}
.nb-steps .is-complete {
  color: #2b7059;
}
.nb-steps .is-complete span {
  background: #e6f1eb;
  border-color: #c5dfd1;
}
.nb-live-weight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border: 1px solid #e8e4df;
  border-radius: 16px;
  background: #faf9f7;
}
.nb-live-weight > div > span {
  display: block;
  font-size: 15px;
  color: var(--nb-muted);
}
.nb-live-weight strong {
  display: block;
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
  font-weight: 750;
  white-space: nowrap;
}
.nb-live-weight p {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  color: #2e725b;
  margin: 0;
  max-width: 55%;
  line-height: 1.5;
}
.nb-live-weight i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.nb-live-weight.is-pending p {
  color: #93610d;
}
.nb-wait-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 12px;
}
.nb-wait-actions p {
  color: var(--nb-muted);
  font-size: 16px;
  margin: 0;
  text-align: center;
}
.nb-continue-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}
.nb-continue-button > span {
  font-size: 26px;
  font-weight: 500;
}
.nb-weight-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  padding: 12px;
  background: #fff6e8;
  border: 1px solid #edd9b8;
  border-radius: 16px;
}
.nb-weight-compare div {
  display: grid;
  gap: 5px;
  text-align: center;
}
.nb-weight-compare div > span {
  font-size: 16px;
  color: #7b6038;
}
.nb-weight-compare strong {
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}
.nb-similar {
  font-size: 28px;
  color: #ac741e;
}
.nb-dialog--duplicate .nb-kicker {
  color: #97600d;
}
.nb-inline-status {
  margin: 6px 0 0;
  font-size: 14px;
  text-align: center;
  color: #97600d;
}
.nb-hand-bowl {
  transform-box: view-box;
  transform-origin: 260px 300px;
}
.nb-illustration--remove .nb-hand-bowl {
  animation: nb-lift-bowl 3.4s ease-in-out infinite;
}
.nb-illustration--place .nb-hand-bowl {
  animation: nb-place-bowl 3.4s ease-in-out infinite;
}
.nb-direction {
  animation: nb-guide-pulse 2s ease-in-out infinite;
}
.nb-placement-target {
  animation: nb-guide-pulse 2s ease-in-out infinite;
}
.nb-pair-steam {
  animation: nb-steam 3s ease-in-out infinite;
}
.nb-question-mark {
  animation: nb-guide-pulse 3s ease-in-out infinite;
}
@keyframes nb-dialog-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes nb-lift-bowl {
  0%,
  20%,
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
  60%,
  83% {
    transform: translate(42px, -150px);
    opacity: 1;
  }
  94% {
    transform: translate(42px, -150px);
    opacity: 0;
  }
  95% {
    transform: translate(0, 0);
    opacity: 0;
  }
}
@keyframes nb-place-bowl {
  0%,
  15%,
  100% {
    transform: translate(42px, -150px);
    opacity: 1;
  }
  54%,
  82% {
    transform: translate(0, 0);
    opacity: 1;
  }
  92% {
    transform: translate(0, 0);
    opacity: 0;
  }
  93% {
    transform: translate(42px, -150px);
    opacity: 0;
  }
}
@keyframes nb-guide-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}
@keyframes nb-steam {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(3px);
  }
  50% {
    opacity: 0.85;
    transform: translateY(-5px);
  }
}
.nb-dialog[data-narrow] {
  width: calc(var(--nb-vw, 1vw) * 100 - 24px);
  height: calc(var(--nb-vh, 1vh) * 100 - 24px);
  max-height: calc(var(--nb-vh, 1vh) * 100 - 24px);
  border-radius: 23px;
}
.nb-dialog[data-narrow] .nb-modal-card {
  padding: 14px 18px;
}
.nb-dialog[data-narrow] .nb-modal-top {
  font-size: 12px;
}
.nb-dialog[data-narrow] .nb-dialog-heading {
  margin-top: 8px;
}
.nb-dialog[data-narrow] .nb-dialog-heading .nb-kicker {
  font-size: 16px;
}
.nb-dialog[data-narrow] .nb-modal-actions {
  gap: 10px;
  margin-top: 12px;
}
.nb-dialog[data-narrow] .nb-button {
  font-size: 17px;
  min-height: 64px;
  padding: 12px 10px;
  border-radius: 12px;
}
.nb-dialog[data-narrow] .nb-steps {
  gap: 16px;
  font-size: 15px;
}
.nb-dialog[data-narrow] .nb-steps li {
  gap: 7px;
}
.nb-dialog[data-narrow] .nb-steps li + li::before {
  display: none;
}
.nb-dialog[data-narrow] .nb-live-weight {
  padding: 10px 14px;
  gap: 10px;
}
.nb-dialog[data-narrow] .nb-live-weight p {
  font-size: 14px;
}
.nb-dialog[data-narrow] .nb-weight-compare {
  gap: 25px;
}
.nb-dialog[data-compact] .nb-dialog-heading {
  margin-top: clamp(6px, calc(var(--nb-vh, 1vh) * 1.2), 24px);
}
.nb-dialog[data-compact] .nb-saved-note {
  padding: 10px;
}
.nb-dialog[data-compact] .nb-live-weight strong {
  font-size: 30px;
  line-height: 1.2;
}
.nb-dialog[data-compact] .nb-weight-compare strong {
  font-size: 28px;
}
.nb-dialog[data-short] .nb-modal-card {
  padding-top: 10px;
  padding-bottom: 10px;
}
.nb-dialog[data-short] .nb-dialog-heading h2 {
  font-size: 28px;
}
.nb-dialog[data-short] .nb-dialog-heading .nb-kicker {
  font-size: 15px;
  margin-bottom: 4px;
}
.nb-dialog[data-short] .nb-dialog-heading > p:last-child {
  margin-top: 4px;
  font-size: 16px;
}
.nb-dialog[data-short] .nb-steps {
  margin-top: 4px;
  margin-bottom: 8px;
}
.nb-dialog[data-short] .nb-live-weight {
  padding-top: 8px;
  padding-bottom: 8px;
}
.nb-dialog[data-short] .nb-wait-actions {
  margin-top: 8px;
}
.nb-dialog[data-short] .nb-wait-actions p {
  font-size: 14px;
}
@media (prefers-reduced-motion: reduce) {
  .nb-dialog,
  .nb-dialog *,
  .nb-dialog *::before {
    animation: none !important;
    transition: none !important;
  }
  .nb-illustration--remove .nb-hand-bowl,
  .nb-illustration--place .nb-hand-bowl {
    transform: translate(20px, -95px);
  }
}

.pisell-lowcode-modal-root
  .pisell-pc-modal.hdl-kiosk-modal
  .hdl-kiosk-dialog.hdl-next-bowl-modal {
  padding: 0;
  background: transparent;
  border: 0;
}
.hdl-next-bowl-modal .nb-dialog {
  max-width: 100%;
  width: 100%;
}

/* The host supplies placement and focus isolation; the prototype owns its surface. */
.pisell-lowcode-modal-root.hdl-next-bowl-overlay .hdl-kiosk-modal__mask {
  background: #18141091 !important;
}
.pisell-lowcode-modal-root.hdl-next-bowl-overlay
  .pisell-pc-modal.hdl-kiosk-modal,
.pisell-lowcode-modal-root.hdl-next-bowl-overlay
  .pisell-pc-modal.hdl-kiosk-modal
  .pisell-lowcode-modal-content,
.pisell-lowcode-modal-root.hdl-next-bowl-overlay
  .pisell-pc-modal.hdl-kiosk-modal
  .pisell-lowcode-modal-body {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pisell-lowcode-modal-root.hdl-next-bowl-overlay
  .pisell-pc-modal.hdl-kiosk-modal {
  max-width: none !important;
}
.pisell-lowcode-modal-root.hdl-next-bowl-overlay
  .pisell-pc-modal.hdl-kiosk-modal
  .nb-dialog
  :is(button, input, select, summary, a):focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}
