:root {
  color-scheme: light;
  --ink: #38362f;
  --muted: #6e695f;
  --accent-strong: #b65539;
  background: #f7edde;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.mode-flow {
  position: fixed;
  top: var(--flow-top, 0px);
  left: 0;
  width: 100%;
  height: var(--flow-height, 100dvh);
  overflow: hidden;
  isolation: isolate;
  background: #f7edde url("/assets/cotton-paper-warm.webp") center / cover;
}
.mode-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  background: #f7edde;
  isolation: isolate;
  contain: paint;
}
.mode-panel.is-active {
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}
.mode-panel.is-under {
  visibility: visible;
  z-index: 1;
}
.mode-panel.is-over {
  border-radius: var(--sheet-round, 0px) var(--sheet-round, 0px) 0 0;
  box-shadow: 0 -8px 38px #30231425;
  will-change: transform;
}
.mode-panel iframe {
  position: absolute;
  top: env(safe-area-inset-top);
  left: 0;
  width: 100%;
  height: calc(100% - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  border: 0;
  background: #f7edde;
}
.mode-flow[data-switching] .standard-return {
  pointer-events: none;
}
.flow-status {
  position: absolute;
  z-index: 125;
  bottom: calc(22px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 12px 18px;
  border-radius: 18px;
  background: #fffaf5;
  color: var(--ink);
  font: 14px/1.6 sans-serif;
  box-shadow: 0 4px 22px #30231420;
}
.flow-status:empty {
  display: none;
}
.standard-return {
  --return-pull: 0px;
  --return-stretch: 1;
  position: fixed;
  z-index: 120;
  top: 0;
  left: 50%;
  width: 44px;
  height: calc(60px + env(safe-area-inset-top));
  transform: translateX(-50%);
  color: var(--ink, #38362f);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.mode-flow[data-handle-mode="explore"] .standard-return {
  left: calc(var(--mode-header-start) + var(--mode-header-slot) + 22px);
}
.standard-return-cord {
  position: absolute;
  top: 0;
  left: calc(50% - 1px);
  width: 2px;
  height: calc(14px + env(safe-area-inset-top));
  border-radius: 0 0 2px 2px;
  background: var(--muted, #6e695f);
  transform: scaleY(var(--return-stretch));
  transform-origin: center top;
  opacity: 0.6;
}
.standard-return-ring {
  position: absolute;
  top: calc(8px + env(safe-area-inset-top));
  left: -2px;
  overflow: visible;
  transform: translateY(var(--return-pull));
  filter: drop-shadow(0 3px 3px #49352118);
}
.return-ring-body {
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-opacity: 0.62;
}
.return-ring-rim {
  fill: none;
  stroke: var(--lg-rim, #ffffffc7);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.return-ring-arrow {
  fill: none;
  stroke: var(--accent-strong, #b65539);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.standard-return[data-pulling] {
  cursor: grabbing;
}
.standard-return[data-ready] .return-ring-body {
  stroke: var(--accent-strong, #b65539);
  stroke-width: 1.8;
  stroke-opacity: 1;
}
.standard-return:focus-visible {
  outline: 2px solid var(--accent-strong, #b65539);
  outline-offset: 3px;
  border-radius: 0 0 24px 24px;
}
@media (prefers-reduced-motion: no-preference) {
  .return-ring-body {
    transition:
      stroke 140ms ease-out,
      stroke-width 140ms ease-out,
      stroke-opacity 140ms ease-out;
  }
}
body.reduce-motion .standard-return * {
  transition: none !important;
}
body:is([data-theme="contrast"], .high-contrast) .return-ring-body {
  stroke-opacity: 1;
  stroke-width: 2;
  fill: var(--surface, #fff);
}
@media (forced-colors: active) {
  .standard-return {
    color: ButtonText;
  }
  .standard-return-cord {
    background: ButtonText;
  }
  .return-ring-body {
    fill: Canvas;
    stroke: ButtonText;
    stroke-opacity: 1;
  }
  .return-ring-arrow {
    stroke: LinkText;
  }
  .return-ring-rim {
    display: none;
  }
}
