.desk-result-head:has([data-daily-tarot-share]) {
  gap: 8px;
}
.desk-result-head .daily-tarot-share-entry {
  flex: none;
  white-space: nowrap;
}
.daily-export-dialog {
  --daily-export-paper: #eeebe3;
  --daily-export-ink: #292922;
  --daily-export-muted: #706f65;
  --daily-export-line: #d8d5cb;
  --daily-export-accent: #885844;
  width: min(520px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  color: var(--daily-export-ink);
  background: var(--daily-export-paper);
  font: 400 14px/1.7 "Helemate Noto Serif SC", "Songti SC", serif;
  font-synthesis: none;
  box-sizing: border-box;
}
.daily-export-dialog[open] {
  display: flex;
  flex-direction: column;
}
.daily-export-dialog::backdrop {
  background: rgba(41, 41, 34, 0.4);
}
.daily-export-dialog *,
.daily-export-dialog *::before,
.daily-export-dialog *::after {
  box-sizing: border-box;
}
.daily-export-dialog button {
  appearance: none;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  padding: 7px 10px;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  cursor: pointer;
}
.daily-export-dialog button:focus-visible {
  outline: 1px solid var(--daily-export-accent);
  outline-offset: -3px;
}
.daily-export-dialog button:disabled {
  opacity: 0.4;
  cursor: wait;
}
.daily-export-header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px 4px 24px;
}
.daily-export-header h2 {
  margin: 0;
  font: 400 19px/1.7 "Helemate Noto Serif SC", "Songti SC", serif;
}
.daily-export-header .daily-export-close {
  width: 44px;
  padding: 0;
  font-size: 27px;
  color: var(--daily-export-muted);
}
.daily-export-tabs {
  display: flex;
  flex: none;
  gap: 26px;
  padding: 0 24px 10px;
}
.daily-export-tabs button {
  min-width: 48px;
  min-height: 40px;
  padding: 5px 0;
  color: var(--daily-export-muted);
}
.daily-export-tabs button[aria-selected="true"] {
  color: var(--daily-export-accent);
  box-shadow: inset 0 -1px currentColor;
}
.daily-export-preview {
  min-height: 180px;
  max-height: min(590px, calc(100dvh - 244px));
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 18px 24px;
  background: #dedbd2;
  text-align: center;
}
.daily-export-preview img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: 0 2px 7px rgba(41, 41, 34, 0.08);
}
.daily-export-preview[data-format="long"] img {
  width: min(100%, 380px);
}
.daily-export-preview img[hidden] {
  display: none;
}
.daily-export-footer {
  flex: none;
  padding: 10px 24px 15px;
}
.daily-export-status {
  margin: 0 0 4px;
  min-height: 19px;
  color: var(--daily-export-muted);
  font-size: 11px;
}
.daily-export-status:empty {
  display: none;
}
.daily-export-dialog .daily-export-save {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  color: var(--daily-export-accent);
  border-bottom: 1px solid currentColor;
  font-size: 15px;
}
.daily-export-note {
  margin: 9px 0 0;
  color: var(--daily-export-muted);
  font-size: 10px;
  text-align: center;
}
@media (max-width: 600px) {
  .daily-export-dialog {
    width: 100%;
    max-height: calc(100dvh - 25px);
    margin: auto 0 0;
    border-radius: 2px 2px 0 0;
  }
  .daily-export-preview {
    max-height: calc(100dvh - 225px);
    padding: 16px 26px;
  }
  .daily-export-footer {
    padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-height: 650px) {
  .daily-export-preview {
    min-height: 120px;
    max-height: calc(100dvh - 215px);
  }
  .daily-export-header {
    padding-top: 5px;
  }
  .daily-export-tabs {
    padding-bottom: 5px;
  }
}
