
.cto-n-app--bo,
.cto-n-app--co {
  --n-canvas: #f1efec;
  --n-surface: #ffffff;
  --n-surface-2: #faf8f6;
  --n-ink: #2c2530;
  --n-ink-2: #4a4150;
  --n-muted: #6f6773;
  --n-line: #e5e0e2;
  --n-line-strong: #d3ccd0;
  --n-accent: #6d1f47;
  --n-accent-press: #571739;
  --n-accent-tint: #f4e8ef;
  --n-on-accent: #ffffff;
  --n-link: #6d1f47;
  --n-danger: #c62f38;
  --n-danger-ink: #a8232c;
  --n-danger-tint: #fbe9e9;
  --n-warning: #b3730f;
  --n-warning-tint: #fbefdc;
  --n-success: #2f7d5d;
  --n-success-tint: #e5f1ea;
  --n-info: #3a6ea5;
  --n-info-tint: #e7f0fa;
  --n-shadow: 44 37 48;
  --n-r-dialog: 10px;
  --n-r-toast: 10px;
  --n-r-btn: 7px;
  --n-r-field: 7px;
  --n-font-heading: "Bricolage Grotesque", "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --n-font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --n-heading-weight: 700;
  --n-error-weight: 600;
  --swal2-backdrop: rgb(44 37 48 / 45%);
}

.cto-n-app--fo1 {
  --n-canvas: #f7f3ec;
  --n-surface: #ffffff;
  --n-surface-2: #f6f2ea;
  --n-ink: #1f2933;
  --n-ink-2: #3b4652;
  --n-muted: #5b6676;
  --n-line: #e4e7e1;
  --n-line-strong: #d9ded6;
  --n-accent: #1f6f3d;
  --n-accent-press: #18592f;
  --n-accent-tint: #e6f0e9;
  --n-on-accent: #ffffff;
  --n-link: #1f6f3d;
  --n-danger: #b91c1c;
  --n-danger-ink: #b91c1c;
  --n-danger-tint: #fdecec;
  --n-warning: #b45309;
  --n-warning-tint: #fdf1e3;
  --n-success: #1f6f3d;
  --n-success-tint: #e6f0e9;
  --n-info: #2f5f8f;
  --n-info-tint: #e8eff7;
  --n-shadow: 31 41 51;
  --n-r-dialog: 1rem;
  --n-r-toast: .75rem;
  --n-r-btn: 2rem;
  --n-r-field: .5rem;
  --n-font-heading: "Inter", "Segoe UI", Arial, sans-serif;
  --n-font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --n-heading-weight: 800;
  --n-error-weight: 700;
  --swal2-backdrop: rgb(31 41 51 / 45%);
}

.cto-n-app--fo2 {
  --n-canvas: #ffffff;
  --n-surface: #ffffff;
  --n-surface-2: #f8f8f8;
  --n-ink: #161616;
  --n-ink-2: #3a3a3a;
  --n-muted: #6b6b6b;
  --n-line: #e6e6e6;
  --n-line-strong: #d9d9d9;
  --n-accent: #333140;
  --n-accent-press: #1f1d29;
  --n-accent-tint: #ededf0;
  --n-on-accent: #ffffff;
  --n-link: #333140;
  --n-danger: #b91c1c;
  --n-danger-ink: #b91c1c;
  --n-danger-tint: #fdecec;
  --n-warning: #b45309;
  --n-warning-tint: #fdf1e3;
  --n-success: #1f7a45;
  --n-success-tint: #e6f2ea;
  --n-info: #2f5f8f;
  --n-info-tint: #e8eff7;
  --n-shadow: 0 0 0;
  --n-r-dialog: 1rem;
  --n-r-toast: .625rem;
  --n-r-btn: .625rem;
  --n-r-field: .625rem;
  --n-font-heading: "Inter", "Segoe UI", Arial, sans-serif;
  --n-font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --n-heading-weight: 800;
  --n-error-weight: 700;
  --swal2-backdrop: rgb(22 22 22 / 45%);
}

.cto-n--success { --n-tone: var(--n-success); --n-tone-tint: var(--n-success-tint); }
.cto-n--info    { --n-tone: var(--n-info);    --n-tone-tint: var(--n-info-tint); }
.cto-n--warning { --n-tone: var(--n-warning); --n-tone-tint: var(--n-warning-tint); }
.cto-n--danger  { --n-tone: var(--n-danger);  --n-tone-tint: var(--n-danger-tint); }

.cto-n-dialog .swal2-icon,
.cto-n-toast .swal2-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--n-tone-tint);
  color: var(--n-tone);
  font-size: 1rem;
  line-height: 1;
}
.cto-n-dialog .swal2-icon .swal2-icon-content,
.cto-n-toast .swal2-icon .swal2-icon-content {
  display: flex;
  font-size: inherit;
}
.cto-n-glyph {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cto-n-dialog .swal2-icon.swal2-icon-show,
.cto-n-toast .swal2-icon.swal2-icon-show,
.cto-n-dialog .swal2-icon.swal2-icon-show .swal2-icon-content,
.cto-n-toast .swal2-icon.swal2-icon-show .swal2-icon-content {
  animation: none;
}

.cto-n-dialog .swal2-close,
.cto-n-toast .swal2-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--n-r-btn);
  background: transparent;
  color: var(--n-muted);
  font: inherit;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.cto-n-dialog .swal2-close:hover,
.cto-n-toast .swal2-close:hover {
  background: var(--n-surface-2);
  color: var(--n-ink);
}
.cto-n-dialog .swal2-close:focus-visible,
.cto-n-toast .swal2-close:focus-visible {
  outline: 2px solid var(--n-accent);
  outline-offset: 1px;
  box-shadow: none;
}
.cto-n-dialog .swal2-close .cto-n-glyph,
.cto-n-toast .swal2-close .cto-n-glyph {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 2;
}

.swal2-container.cto-n-container--dialog {
  padding: 1rem;
}
.cto-n-dialog.swal2-popup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: .875rem;
  align-items: start;
  width: min(30rem, 100%);
  padding: 1.375rem 1.5rem 1.25rem;
  border: 1px solid var(--n-line);
  border-radius: var(--n-r-dialog);
  background: var(--n-surface);
  color: var(--n-ink);
  font-family: var(--n-font-body);
  font-size: 1rem;
  text-align: left;
  box-shadow:
    0 1.5rem 3rem -1rem rgb(var(--n-shadow) / 38%),
    0 .125rem .375rem rgb(var(--n-shadow) / 8%);
}
.cto-n-dialog .swal2-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 2.5rem;
  height: 2.5rem;
}
.cto-n-dialog .swal2-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: .4375rem 2rem 0 0;
  color: var(--n-ink);
  font-family: var(--n-font-heading);
  font-size: 1.1875rem;
  font-weight: var(--n-heading-weight);
  line-height: 1.3;
  letter-spacing: -.01em;
  text-align: left;
  text-wrap: balance;
}
.cto-n-dialog .swal2-html-container {
  grid-column: 2;
  grid-row: 2;
  margin: .375rem 0 0;
  padding: 0;
  color: var(--n-ink-2);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
  overflow-wrap: anywhere;
}
.cto-n-dialog .swal2-actions {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: flex-end;
  gap: .5rem;
  width: auto;
  margin: 1.25rem 0 0;
  padding: 0;
}

.cto-n-list {
  display: grid;
  gap: .125rem;
  margin: .75rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--n-line);
}
.cto-n-list li {
  display: flex;
  gap: .625rem;
  padding: .5625rem 0;
  border-bottom: 1px solid var(--n-line);
}
.cto-n-list li::before {
  content: "";
  flex: none;
  width: .375rem;
  height: .375rem;
  margin-top: .5625rem;
  border-radius: 50%;
  background: var(--n-danger);
}
.cto-n-list .cto-n-item {
  display: block;
  min-width: 0;
}
.cto-n-list .cto-n-item-label {
  display: block;
  color: var(--n-ink);
  font-weight: 650;
}
.cto-n-list button.cto-n-item-label {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--n-link);
  font: inherit;
  font-weight: 650;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  cursor: pointer;
}
.cto-n-list button.cto-n-item-label:hover {
  text-decoration-thickness: 2px;
}
.cto-n-list button.cto-n-item-label:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
.cto-n-list button.cto-n-item-label:focus-visible {
  outline: 2px solid var(--n-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.cto-n-list .cto-n-item-text {
  display: block;
  color: var(--n-ink-2);
}

.cto-n-ref {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .375rem .625rem;
  margin: .875rem 0 0;
  padding: .5rem .5rem .5rem .75rem;
  border-radius: var(--n-r-field);
  background: var(--n-surface-2);
  border: 1px solid var(--n-line);
  color: var(--n-muted);
  font-size: .8125rem;
}
.cto-n-ref code {
  color: var(--n-ink);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.cto-n-ref button {
  margin-left: auto;
  padding: .25rem .625rem;
  border: 1px solid var(--n-line-strong);
  border-radius: var(--n-r-btn);
  background: var(--n-surface);
  color: var(--n-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cto-n-ref button:focus-visible {
  outline: 2px solid var(--n-accent);
  outline-offset: 2px;
}

.cto-n-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin: 0;
  padding: .625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--n-r-btn);
  font-family: var(--n-font-body);
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cto-n-btn:focus-visible {
  outline: 2px solid var(--n-accent);
  outline-offset: 2px;
}
.cto-n-btn--primary {
  background: var(--n-accent);
  color: var(--n-on-accent);
}
.cto-n-btn--primary:hover {
  background: var(--n-accent-press);
  box-shadow: 0 .375rem .875rem rgb(var(--n-shadow) / 16%);
}
.cto-n-btn--secondary {
  border-color: var(--n-line-strong);
  background: var(--n-surface);
  color: var(--n-ink);
}
.cto-n-btn--secondary:hover {
  border-color: var(--n-muted);
  background: var(--n-surface-2);
}

.swal2-container.cto-n-container--toast {
  padding: 4.25rem 1rem 1rem;
}
.cto-n-toast.swal2-popup.swal2-toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: .75rem;
  align-items: start;
  width: min(23.5rem, calc(100vw - 2rem));
  padding: .875rem 2.75rem .9375rem .875rem;
  overflow: hidden;
  border: 1px solid var(--n-line);
  border-radius: var(--n-r-toast);
  background: var(--n-surface);
  color: var(--n-ink);
  font-family: var(--n-font-body);
  box-shadow:
    0 .875rem 1.75rem -.75rem rgb(var(--n-shadow) / 32%),
    0 .125rem .25rem rgb(var(--n-shadow) / 6%);
}
.cto-n-toast .swal2-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 2rem;
  height: 2rem;
}
.cto-n-toast .swal2-icon .cto-n-glyph {
  width: 1.0625rem;
  height: 1.0625rem;
  stroke-width: 2.5;
}
.cto-n-toast .swal2-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: .375rem 0 0;
  color: var(--n-ink);
  font-family: var(--n-font-body);
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}
.cto-n-toast .swal2-html-container {
  grid-column: 2;
  grid-row: 2;
  margin: .125rem 0 0;
  padding: 0;
  color: var(--n-ink-2);
  font-size: .875rem;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
}
.cto-n-toast .swal2-timer-progress-bar-container {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
}
.cto-n-toast .swal2-timer-progress-bar {
  height: 3px;
  background: var(--n-tone);
  opacity: .5;
}

@keyframes cto-n-dialog-in {
  from { opacity: 0; transform: translateY(.5rem) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes cto-n-dialog-out {
  to { opacity: 0; transform: scale(.985); }
}
@keyframes cto-n-toast-in {
  from { opacity: 0; transform: translateX(1rem); }
  to   { opacity: 1; transform: none; }
}
@keyframes cto-n-toast-in-mobile {
  from { opacity: 0; transform: translateY(-.75rem); }
  to   { opacity: 1; transform: none; }
}
@keyframes cto-n-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes cto-n-fade-out { to { opacity: 0; } }

.cto-n-dialog-in  { animation: cto-n-dialog-in .2s cubic-bezier(.16, 1, .3, 1) both; }
.cto-n-dialog-out { animation: cto-n-dialog-out .12s ease-in both; }
.cto-n-toast-in   { animation: cto-n-toast-in .24s cubic-bezier(.16, 1, .3, 1) both; }
.cto-n-toast-out  { animation: cto-n-fade-out .15s ease-in both; }

@media (prefers-reduced-motion: reduce) {
  .cto-n-dialog-in, .cto-n-toast-in { animation: cto-n-fade-in .12s linear both; }
  .cto-n-dialog-out, .cto-n-toast-out { animation: cto-n-fade-out .1s linear both; }
  .cto-n-toast .swal2-timer-progress-bar-container { display: none; }
}
html.cto-reduce-motion .cto-n-dialog-in,
html.cto-reduce-motion .cto-n-toast-in { animation: cto-n-fade-in .12s linear both; }
html.cto-reduce-motion .cto-n-dialog-out,
html.cto-reduce-motion .cto-n-toast-out { animation: cto-n-fade-out .1s linear both; }
html.cto-reduce-motion .cto-n-toast .swal2-timer-progress-bar-container { display: none; }

@media (max-width: 40rem) {
  .swal2-container.cto-n-container--toast {
    padding: .75rem .75rem 0;
  }
  .cto-n-toast-in { animation-name: cto-n-toast-in-mobile; }
  .cto-n-dialog .swal2-actions .cto-n-btn { flex: 1 1 100%; }
  .cto-n-dialog.swal2-popup { padding: 1.25rem 1.125rem 1.125rem; }
}

@media (forced-colors: active) {
  .cto-n-dialog.swal2-popup,
  .cto-n-toast.swal2-popup { border: 2px solid CanvasText; }
  .cto-n-btn { border: 1px solid ButtonText; }
}

.cto-n-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cto-n-native-hidden { display: none !important; }

html:not(.cto-n-native) #APEX_SUCCESS_MESSAGE,
html:not(.cto-n-native) #APEX_ERROR_MESSAGE {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  animation: cto-n-native-release 0s linear 2s forwards;
}
@keyframes cto-n-native-release { to { max-height: 2000px; opacity: 1; } }

