.transmission-prompt-dialog { width: min(100%, 440px); }
#transmissionList .swipe-delete-row { position: relative; overflow: hidden; border-radius: 14px; background: transparent; }
#transmissionList .swipe-delete-row .conversation-item { position: relative; z-index: 1; transition: transform .22s cubic-bezier(.2,.8,.2,1); touch-action: pan-y; }
#transmissionList .swipe-delete-row.swiping .conversation-item { transition: none; }
#transmissionList .swipe-delete-action { position: absolute; inset: 0 0 0 auto; width: 82px; padding: 0; border: 0; background: #050505; color: #fff; font-size: 13px; cursor: pointer; opacity: 0; transition: opacity 0s .22s; }
#transmissionList .swipe-delete-row.swiping .swipe-delete-action, #transmissionList .swipe-delete-row.open .swipe-delete-action { opacity: 1; transition: opacity 0s; }
#transmissionList .swipe-delete-action:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.transmission-prompt-copy { line-height: 1.75; }
.transmission-prompt-copy code { display: inline-block; margin: 1px 2px; padding: 0 4px; border-radius: 4px; background: #eeeeea; color: #555550; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
.transmission-settings-name-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 440px); gap: 16px; }
.transmission-prompt-input { width: 100%; min-height: 220px; max-height: 55dvh; padding: 13px; border: 1px solid #d9d9d4; border-radius: 12px; outline: 0; resize: vertical; background: #fafaf8; color: #383835; font: inherit; font-size: 13px; line-height: 1.65; }
.transmission-prompt-input:focus { border-color: #777772; background: #fff; }
body.show-transmission .home-shell,
body.show-transmission-thread .home-shell,
body.show-transmission-thread #transmissionPage,
body.show-transmission-settings .home-shell,
body.show-transmission-settings #transmissionPage,
body.show-transmission-settings #transmissionThreadPage { display: none; }
.transmission-wait-button { color: #777493; }
.transmission-wait-button svg { width: 24px; height: 24px; stroke-width: 1.45; }
.transmission-wait-button.waiting { animation: tarot-wait-pulse 1.8s ease-in-out infinite; cursor: wait; }
.transmission-wait-button:disabled { opacity: .55; }
.tarot-modal { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 18px; background: rgba(61, 63, 89, .24); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.tarot-modal.open { opacity: 1; pointer-events: auto; }
.tarot-table { position: relative; width: min(100%, 570px); min-height: min(680px, calc(100dvh - 36px)); max-height: calc(100dvh - 36px); padding: 32px 24px 24px; overflow-y: auto; border: 1px solid rgba(151, 151, 199, .35); border-radius: 28px; background: radial-gradient(circle at 50% 5%, rgba(255,255,255,.9), transparent 34%), linear-gradient(155deg, #f7f9ff 0%, #f0f0fb 48%, #f7f4fc 100%); color: #656581; box-shadow: 0 28px 80px rgba(62, 64, 106, .22), inset 0 0 55px rgba(177, 192, 236, .14); text-align: center; transform: translateY(18px) scale(.97); transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.tarot-modal.open .tarot-table { transform: translateY(0) scale(1); }
.tarot-table::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(155, 158, 206, .22); border-radius: 20px; pointer-events: none; }
.tarot-close { position: absolute; z-index: 2; top: 16px; right: 17px; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(133,135,177,.22); border-radius: 50%; background: rgba(255,255,255,.5); color: #8888a4; font-size: 21px; line-height: 1; cursor: pointer; }
.tarot-stars { height: 20px; color: #aaa9cc; font-size: 13px; letter-spacing: .16em; }
.tarot-eyebrow { margin: 8px 0 5px; color: #9695b4; font-size: 9px; font-weight: 700; letter-spacing: .28em; }
.tarot-title { margin: 0; color: #62627f; font-family: "Great Vibes", cursive; font-size: 31px; font-weight: 400; }
.tarot-guidance { min-height: 20px; margin: 9px 0 15px; color: #9292ab; font-size: 12px; }
.tarot-deck-stage { position: relative; display: grid; min-height: 315px; place-items: center; overflow: hidden; border: 1px solid rgba(151,153,197,.18); border-radius: 22px; background: radial-gradient(ellipse at center, rgba(205,215,244,.28), rgba(255,255,255,.18) 52%, transparent 72%); }
.tarot-deck { position: relative; width: 104px; height: 176px; perspective: 700px; transition: opacity .3s ease; }
.tarot-deck-card, .tarot-choice, .tarot-picked-card { position: absolute; inset: 0; border: 1px solid rgba(117,120,171,.5); border-radius: 9px; background: linear-gradient(145deg, #e9effd, #eeeaf9); box-shadow: 0 9px 25px rgba(85,88,135,.15); }
.tarot-deck-card::before, .tarot-choice::before, .tarot-picked-card.back::before { content: "✦"; position: absolute; inset: 7px; display: grid; place-items: center; border: 1px solid rgba(123,127,180,.38); border-radius: 5px; color: #9ba5cc; font-size: 25px; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(151,166,213,.07) 10px 11px); }
.tarot-deck-card { transform: translate(var(--rest-x), var(--rest-y)) rotate(var(--rest-r)); will-change: transform; }
.tarot-deck.shuffling .tarot-deck-card { animation: tarot-thorough-shuffle 1.05s cubic-bezier(.45,.02,.28,1) var(--shuffle-delay) 3 both; }
.tarot-deck.cutting .tarot-deck-card { animation: tarot-three-pile-cut 1.8s cubic-bezier(.4,0,.2,1) var(--cut-delay) both; }
.tarot-deck.settled .tarot-deck-card { animation: tarot-deck-settle .34s ease-out both; }
.tarot-card-fan { position: absolute; inset: 17px 13px; display: none; grid-template-columns: repeat(4, 68px); align-content: start; justify-content: center; gap: 12px 10px; padding: 18px 8px; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y proximity; overscroll-behavior-y: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.tarot-card-fan.open { display: grid; }
.tarot-card-fan::before, .tarot-card-fan::after { display: none; }
.tarot-choice { position: relative; inset: auto; width: 68px; height: 116px; padding: 0; scroll-snap-align: start; cursor: pointer; transition: transform .2s ease, filter .2s ease, opacity .2s ease; }
.tarot-choice:hover:not(:disabled), .tarot-choice:focus-visible { filter: brightness(1.025); transform: translateY(-8px); outline: none; }
.tarot-choice:disabled { cursor: default; opacity: .34; }
.tarot-choice.selected { display: none; pointer-events: none; }
.tarot-selection { display: flex; min-height: 126px; align-items: center; justify-content: flex-start; gap: 11px; margin: 14px 0 12px; padding: 4px max(12px, calc((100% - 76px) / 2)); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.tarot-selection:empty { min-height: 0; margin: 0; padding: 0; }
.tarot-picked { display: grid; width: 76px; flex: 0 0 76px; gap: 5px; justify-items: center; scroll-snap-align: center; cursor: pointer; animation: tarot-reveal .45s ease both; }
.tarot-picked-card { position: relative; width: 62px; height: 100px; overflow: hidden; background: linear-gradient(165deg, #fcfcff, #e7eafa); }
.tarot-picked-card::after { content: attr(data-symbol); position: absolute; inset: 7px; display: grid; place-items: center; border: 1px solid rgba(132,136,184,.28); border-radius: 4px; color: #8589b2; font-family: Georgia, serif; font-size: 25px; }
.tarot-picked-card.reversed::after { transform: rotate(180deg); }
.tarot-picked-name { max-width: 76px; overflow: hidden; color: #757590; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tarot-picked-position { color: #aaa9bd; font-size: 9px; }
.tarot-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tarot-action { min-width: 82px; padding: 9px 15px; border: 1px solid rgba(130,132,176,.28); border-radius: 999px; background: rgba(255,255,255,.58); color: #777792; font-size: 12px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.tarot-action:hover:not(:disabled) { background: rgba(222,226,247,.78); transform: translateY(-1px); }
.tarot-action.primary { background: #dedff1; color: #666681; }
.tarot-action.confirm { min-width: 142px; background: #8d8dab; color: #fff; }
.tarot-action:disabled { opacity: .4; cursor: default; }
#transmissionThreadPage .message-bubble.waiting-bubble { color: #8a89a1; font-style: italic; }
#transmissionThreadPage .message.message-notice { align-self: center; display: flex; width: 100%; max-width: 100%; justify-content: center; margin: 5px 0; padding: 0 36px; }
#transmissionThreadPage .message-notice-content { max-width: min(100%, 520px); padding: 4px 10px; border: 0; background: transparent; color: #898997; font: inherit; font-size: 12px; line-height: 1.65; text-align: center; white-space: pre-wrap; cursor: pointer; }
#transmissionThreadPage .message-notice-content:hover { color: #62627f; }
#transmissionThreadPage .message-notice-content:focus-visible { outline: 2px solid rgba(98,98,127,.35); outline-offset: 3px; border-radius: 4px; }
#transmissionThreadPage .reading-notice .message-notice-content { padding: 4px 10px; border: 0; border-radius: 0; background: transparent; color: #898997; }
.tarot-reading-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(45,46,66,.34); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.tarot-reading-modal.open { opacity: 1; pointer-events: auto; }
.tarot-reading-dialog { position: relative; width: min(100%, 520px); max-height: min(78dvh, 680px); padding: 34px 26px 26px; overflow-y: auto; border: 1px solid rgba(151,151,199,.34); border-radius: 24px; background: linear-gradient(155deg, #fbfbff, #f0f0fa); box-shadow: 0 25px 70px rgba(42,43,70,.24); transform: translateY(12px) scale(.98); transition: transform .22s ease; }
.tarot-reading-modal.open .tarot-reading-dialog { transform: none; }
.tarot-reading-title { margin: 4px 0 20px; color: #62627f; font-size: 21px; text-align: center; }
.tarot-reading-content { color: #4f4f64; font-size: 14px; line-height: 1.9; white-space: pre-wrap; }
@keyframes tarot-thorough-shuffle {
  0%, 100% { transform: translate(var(--rest-x), var(--rest-y)) rotate(var(--rest-r)); }
  14% { transform: translate(var(--split-x), -10px) rotate(var(--split-r)); }
  36% { transform: translate(var(--split-x), 8px) rotate(var(--split-r)); }
  58% { transform: translate(var(--meet-x), var(--riffle-y)) rotate(var(--meet-r)); }
  76% { transform: translate(var(--bridge-x), var(--bridge-y)) rotate(var(--bridge-r)); }
}
@keyframes tarot-three-pile-cut {
  0%, 10% { transform: translate(var(--rest-x), var(--rest-y)) rotate(var(--rest-r)); }
  28%, 48% { transform: translate(var(--pile-x), var(--pile-y)) rotate(var(--pile-r)); }
  64% { transform: translate(var(--pile-x), calc(var(--pile-y) - 12px)) rotate(var(--pile-r)); }
  84%, 100% { transform: translate(0, var(--stack-y)) rotate(0deg); }
}
@keyframes tarot-deck-settle { from { transform: translateY(-7px); } to { transform: translate(var(--rest-x), var(--rest-y)) rotate(var(--rest-r)); } }
@keyframes tarot-reveal { from { opacity: 0; transform: translateY(10px) rotateY(80deg); } to { opacity: 1; transform: none; } }
@keyframes tarot-wait-pulse { 50% { opacity: .42; transform: scale(.92); } }
@media (max-width: 430px) {
  .tarot-table { padding: 28px 15px 18px; }
  .tarot-deck-stage { min-height: 285px; }
  .tarot-card-fan { grid-template-columns: repeat(4, minmax(0, 59px)); gap: 10px 7px; padding-right: 5px; padding-left: 5px; }
  .tarot-choice { width: 59px; height: 101px; }
}
