.gtd-return {
  position: fixed;
  z-index: 2000;
  top: calc(50dvh - 24px);
  right: 12px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid #ded2c0;
  border-radius: 50%;
  background: #fffaf0f2;
  box-shadow: 0 3px 15px #3e332b1f;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.gtd-return img { width: 28px; height: 28px; pointer-events: none; }
.gtd-return[hidden] { display: none; }
.gtd-return.is-dragging { cursor: grabbing; }
.gtd-return-tip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 12px;
  border: 1px solid #ded2c0;
  border-radius: 7px;
  background: #fffcf6;
  color: #3e332b;
  font: 12px/1.5 system-ui, sans-serif;
  white-space: nowrap;
  visibility: hidden;
  pointer-events: none;
}
.gtd-return:hover .gtd-return-tip, .gtd-return:focus-visible .gtd-return-tip { visibility: visible; }
.gtd-return.is-dragging .gtd-return-tip { visibility: hidden; }
.gtd-return-help { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gtd-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: #faf6ee;
  color: #3e332b;
  font-family: system-ui, sans-serif;
}
.gtd-loading[hidden], .gtd-loading [hidden] { display: none; }
.gtd-loading-card { width: min(100%, 440px); text-align: center; }
.gtd-loading-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.gtd-loading h1 { font: 400 clamp(28px, 6vw, 40px)/1.2 Georgia, serif; margin: 24px 0 16px; }
.gtd-loading p { line-height: 1.7; }
#gtd-loading-status { color: #746659; min-height: 3.4em; font-size: 14px; }
.gtd-loading-spinner {
  display: block;
  width: 38px;
  height: 38px;
  margin: 32px auto 0;
  border: 2px solid #ded2c0;
  border-top-color: #946249;
  border-radius: 50%;
  animation: gtd-spin 1s linear infinite;
}
.gtd-loading[data-state="failed"] .gtd-loading-spinner { display: none; }
.gtd-loading-actions { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; margin-top: 24px; }
.gtd-loading-actions a { color: #746659; font-size: 13px; text-underline-offset: 4px; }
.gtd-loading-actions button { border: 0; border-radius: 8px; background: #3e332b; color: #fffcf6; padding: 13px 22px; font: inherit; cursor: pointer; }
.gtd-loading a:focus-visible, .gtd-loading button:focus-visible, .gtd-return:focus-visible { outline: 2px solid #946249; outline-offset: 5px; }
@keyframes gtd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gtd-loading-spinner { animation: none; } }
