#pile-targets{position:absolute;inset:0;pointer-events:none}.pile-target{position:absolute;pointer-events:auto;background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}.pile-target:hover:enabled{background:transparent;border:0}.pile-target svg{display:block;width:100%;height:100%;overflow:visible;pointer-events:none}.pile-target polygon{fill:transparent;stroke:#efd6a878;stroke-width:1.3;stroke-linejoin:round}.pile-target:hover polygon,.pile-target:focus-visible polygon{stroke:#ffdf9c;stroke-width:2;fill:#f0d49b0b}.pile-target:focus-visible{outline:none}.pile-target span{position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%);white-space:nowrap;font-size:14px;color:#f2e4c8;background:#0b1710dc;border-radius:20px;padding:5px 13px;pointer-events:none}.voice-option{display:flex;align-items:center;gap:10px;margin:24px 0 8px;font-size:15px;color:#cbd4c4}.voice-option input{accent-color:#ddbf8d;width:18px;height:18px}.spoken{color:#ead9b7;font:italic 19px/1.6 Georgia;min-height:2em;margin:12px 0 20px}.restart{display:block;width:100%;background:transparent;font-size:15px}#choose-controls button{font-size:17px;background:#dfc390;color:#132419}#ritual-title{min-height:2.32em}.scene-footer span{max-width:65%}#progress:after{transition:width .2s ease}.panel .return{display:block;margin:22px 0 0}@media(max-width:800px){.scene{height:67dvh}.pile-target span{font-size:12px;padding:4px 8px}#ritual-title{min-height:0}.spoken{font-size:19px}.scene-footer span{max-width:58%}}@media(prefers-reduced-motion:reduce){#progress:after{transition:none}}
#initial-options{margin:0 0 24px}#initial-options label{display:block;color:#d9c39b;margin-bottom:8px;font-size:16px}#initial-count{width:100%;padding:11px 14px;border:1px solid #c8b28550;border-radius:10px;background:#15231b;color:#eee9db}#initial-options .note{margin:10px 0 0}.latest-card{margin:22px 0 0}.latest-card span{display:block;font-size:13px;color:#a7b5a6;margin-bottom:4px}.latest-card strong{font:26px/1.2 Georgia;color:#edd6ab;display:block;overflow-wrap:anywhere}.drawn-cards{margin:18px 0;border:1px solid #c8b28540;border-radius:12px;overflow:hidden}.drawn-cards summary{cursor:pointer;padding:14px;font-size:16px;color:#e6d7b6}.drawn-cards summary span{float:right;font-size:14px;font-variant-numeric:tabular-nums;color:#acbba9}.drawn-cards ol{list-style:none;margin:0;padding:0 10px 10px;counter-reset:cards}.drawn-cards li{counter-increment:cards}.drawn-cards button{width:100%;display:flex;gap:10px;align-items:center;text-align:left;line-height:1.35;border:0;border-radius:8px;background:transparent;font-size:17px;padding:12px 8px;min-height:48px}.drawn-cards button:before{content:counter(cards,decimal-leading-zero);font-size:12px;color:#a79574;font-variant-numeric:tabular-nums}.drawn-cards button span:first-child{flex:1}.drawn-cards button .expand{font-size:14px;color:#a9b59f}.drawn-cards li.latest-draw button{background:#e2c5910d}#inspect-card{font-size:16px;margin-top:12px}

/* One framed stage keeps head, hands, deck and pointer targets aligned. */
.scene-stage.is-zooming{will-change:transform}
.scene-stage{position:absolute;left:0;top:0;width:1536px;height:1120px;transform-origin:0 0;pointer-events:none;mask-image:linear-gradient(to right,transparent,#000 30px,#000 calc(100% - 30px),transparent)}
.scene-stage>img,.scene-stage>canvas{position:absolute;left:0;top:var(--headroom,96px);width:1536px;height:1024px;object-fit:fill;transform:none}


#pile-targets{z-index:1}

/* Keep independently loaded layers out of the first paint until all are framed. */
.scene:not([data-load-state="ready"]) #scene-stage,
.scene:not([data-load-state="ready"]) #ambience,
.scene:not([data-load-state="ready"]) #card-targets,
.scene:not([data-load-state="ready"]) #pile-targets{visibility:hidden;pointer-events:none}
.scene-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;padding:70px 24px;z-index:3;background:radial-gradient(ellipse at 50% 45%,#17291f,#09140e 75%);text-align:center;color:#d9c6a1}
.scene-loading .loading-moon{font:48px/1 Georgia;color:#e5c793}
.scene[data-load-state="loading"] .scene-loading:not([hidden]) .aura-loading{transform-origin:center;animation:aura-loading-spin 4.8s linear infinite}
/* Two half-turn impulses keep the same direction without resetting at 180deg. */
@keyframes aura-loading-spin{0%{transform:rotate(0turn);animation-timing-function:cubic-bezier(.12,.8,.22,1)}37.5%{transform:rotate(.5turn)}50%{transform:rotate(.5turn);animation-timing-function:cubic-bezier(.12,.8,.22,1)}87.5%,100%{transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){.scene[data-load-state="loading"] .scene-loading:not([hidden]) .aura-loading{animation:none}}
.scene-loading p{font-size:17px;line-height:1.6;margin:0;max-width:28ch}
.scene-loading button{margin-top:5px;font-size:16px;min-height:44px}
.scene:not([data-load-state="ready"]) .scene-footer{visibility:hidden}

/* Independent room and character. No extended-photo seams or duplicate props. */
.scene{background:#07100b}.scene:before{display:none}.scene-stage{mask-image:none}
.scene-stage>.scene-background{inset:0 auto auto var(--room-left,0px);width:var(--room-width,100%);height:100%;object-fit:fill}
.scene-stage>#reference{mask-image:url('../tarotista-mascara-cuerpo.webp');mask-mode:luminance}
.scene-stage>#scene{mask-image:none}
.layout{grid-template-columns:clamp(185px,15.5vw,270px) minmax(0,1fr) clamp(290px,21vw,350px);height:100dvh;overflow:hidden}
.panel{padding:26px 20px;background:linear-gradient(155deg,#16221e,#0c1511 75%);scrollbar-width:thin;scrollbar-color:#95836a44 transparent}
.cards-panel{grid-column:1;grid-row:1;display:flex;flex-direction:column;border-left:0;border-right:1px solid #c9ae7830}
.scene{grid-column:2;grid-row:1}.chat-panel{grid-column:3;grid-row:1;display:flex;flex-direction:column}
.panel h2{font:30px/1.2 Georgia;color:#e6c995;margin:0 0 8px}.panel-description{font-size:14px;color:#b4beb0;margin:0 0 25px}.cards-panel .eyebrow{margin-bottom:15px}
.cards-panel .steps{gap:7px;font-size:11px}.cards-panel #progress{flex-shrink:0}.cards-panel .latest-card strong{font-size:23px}.cards-panel-bottom{margin-top:auto;padding-top:25px}
.cards-empty{font:italic 18px/1.6 Georgia;color:#a9b6aa;padding:25px 0}.cards-panel .drawn-cards{border:0;border-top:1px solid #c8b28533;border-radius:0;margin-top:22px;overflow:visible}
.drawn-cards summary{padding:15px 0;font-size:14px}.drawn-cards summary span{font-size:12px}.drawn-cards ol{padding:0}.drawn-cards button{padding:10px 2px;gap:9px;font-size:16px}.drawn-cards button:before{display:none}.drawn-cards button img{width:32px;height:48px;object-fit:cover;border-radius:3px;box-shadow:0 2px 8px #0006}.drawn-cards button span:not(.expand){flex:1}.drawn-cards button .expand{font-size:12px}.drawn-cards li+li{border-top:1px solid #d2be8e0b}
.chat-heading{display:flex;align-items:center;gap:12px;padding-bottom:23px;border-bottom:1px solid #c9ae7829;margin-bottom:28px}.chat-heading h2{font-size:25px;margin:0}.chat-heading p{font-size:12px;color:#9fae9d;margin:4px 0 0}.chat-avatar{display:grid;place-items:center;width:44px;height:44px;border:1px solid #cdb48250;border-radius:50%;font:31px Georgia;color:#dcc18c;background:#e3c48c08}.chat-avatar svg{display:block;width:18px;height:18px;flex:none}.presence-dot{width:7px;height:7px;background:#98bd92;border-radius:50%;margin-left:auto;box-shadow:0 0 12px #98bd9238}
.chat-conversation{flex:1}.chat-conversation .eyebrow{font-size:9px}.chat-panel h1{font-size:31px;min-height:0;margin-bottom:20px}.chat-panel .intro{font-size:17px;line-height:1.65;border:1px solid #bacbb51c;border-radius:2px 16px 16px;padding:16px;background:#ffffff03;margin:0 0 24px}.chat-panel #deck-count{font-size:13px;margin:0 0 20px}
.ritual-actions{flex-shrink:0}.chat-preferences{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:22px;border-top:1px solid #c9ae7829;padding-top:16px}.voice-option{font-size:13px;margin:0}.ambient-toggle{border:0;background:transparent;font-size:12px;color:#b5c0b1;padding:3px 0}.chat-panel .spoken{font-size:17px;min-height:0;margin:12px 0}.chat-panel .disclosure{font-size:11px;margin-bottom:0}
.chat-composer{position:relative;display:flex;gap:8px;align-items:center;border:1px solid #c9ae7838;border-radius:15px;padding:12px;margin-top:16px;background:#060d0955}.chat-composer textarea{resize:none;min-width:0;width:100%;border:0;background:transparent;color:#d8dccf;font:16px/1.4 system-ui;outline:0}.chat-composer textarea::placeholder{color:#8e9b8d}.chat-composer button{border:0;border-radius:50%;background:#d9be8a;color:#152118;padding:6px 12px}.chat-pending{font-size:12px;margin:9px 0 0}.thinking{display:flex;gap:6px;width:fit-content;padding:12px 16px;background:#ffffff05;border:1px solid #c9ae7820;border-radius:20px;margin-bottom:18px}.thinking i{width:5px;height:5px;border-radius:50%;background:#a5b0a0;animation:thinking 1.5s ease-in-out infinite}.thinking i:nth-child(2){animation-delay:.15s}.thinking i:nth-child(3){animation-delay:.3s}@keyframes thinking{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.scene header{inset:20px 20px auto}.brand{font-size:27px}.pill{display:none}.scene-footer{padding:35px 18px 22px}.scene-footer span{font-size:13px;max-width:55%}.scene-footer button{font-size:12px;white-space:nowrap}.scene-stage{mask-image:linear-gradient(to bottom,#000 calc(100% - 90px),transparent)}.cards-panel .steps{flex-wrap:wrap;row-gap:8px}
.close-panel,.mobile-dock{display:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:1000px){
 body{overflow:hidden}.layout{display:block;height:calc(100dvh - 66px)}.scene{width:100%;height:100%;min-height:0}.scene-stage{mask-image:linear-gradient(to bottom,#000 calc(100% - 70px),transparent)}
 .scene header{inset:20px 16px auto}.brand{font-size:25px}.scene-footer{padding:36px 16px 20px}.scene-footer span{font-size:14px;max-width:57%}
 .panel{position:fixed;inset:auto 0 66px;max-height:min(75dvh,750px);border:1px solid #c9ae7840;border-radius:22px 22px 0 0;padding:24px;z-index:5;box-shadow:0 -20px 80px #0008;overflow:auto;visibility:hidden;transform:translateY(calc(100% + 70px));transition:transform .25s ease,visibility .25s;}
 body[data-panel=cards] .cards-panel,body[data-panel=chat] .chat-panel{visibility:visible;transform:translateY(0);transition:transform .25s ease,visibility 0s}
 .close-panel{display:block;position:absolute;right:17px;top:14px;font-size:13px;padding:7px 13px}.chat-heading{padding-right:72px;margin-bottom:20px}.chat-heading h2{font-size:23px}.cards-panel-bottom{padding-top:12px}.chat-panel h1{font-size:27px}.chat-conversation .intro{margin-bottom:16px}.chat-preferences{margin-top:15px}.cards-panel .latest-card{margin-top:8px}.drawn-cards button{font-size:17px;padding:9px}.drawn-cards button img{width:35px;height:52px}
 .mobile-dock{position:fixed;inset:auto 0 0;height:66px;display:flex;align-items:center;gap:8px;background:#0a1510f5;border-top:1px solid #c9ae7838;padding:8px 12px max(8px,env(safe-area-inset-bottom));z-index:6}.mobile-dock button{flex:1;border:0;background:transparent;font-size:15px;padding:10px 8px}.mobile-dock button[aria-expanded=true],body[data-panel=""] .mobile-dock #mobile-action{background:#ddc18e;color:#18261c}.mobile-dock span{display:inline-grid;place-items:center;min-width:21px;height:21px;border-radius:50%;background:#d9bc8617;font-size:12px;margin-left:4px}
}
@media(prefers-reduced-motion:reduce){.panel{transition:none}.thinking i{animation:none}}
.decorations{position:absolute;inset:0;pointer-events:none;z-index:0}.scene-stage>#reference,.scene-stage>#scene{z-index:1}.scene-stage>#dealing{z-index:2}.decor-prop{position:absolute;pointer-events:none}.decor-prop img{position:absolute;inset:0;width:100%;height:100%;filter:brightness(.84)}.contact-shadow{position:absolute;left:50%;top:var(--contact-y);width:var(--shadow-width);height:9%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,#000b 5%,#0007 34%,#0002 60%,transparent 74%);filter:blur(3px)}.contact-shadow:after{content:"";position:absolute;inset:-40% -35%;border-radius:50%;background:radial-gradient(ellipse,#0005,transparent 67%);transform:translate(15%,8%);filter:blur(7px)}.scene>#ambience{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
/* Keep the contact dark at the foot and let the softer cast reach the cloth. */
#incense-anchor .contact-shadow{height:12%;background:radial-gradient(ellipse,#000f 0%,#000d 35%,#0007 60%,transparent 80%);filter:blur(2px)}
#incense-anchor .contact-shadow:after{inset:-55% -40%;background:radial-gradient(ellipse,#000b 0%,#0008 28%,#0004 52%,transparent 75%);transform:translate(9%,25%) rotate(-7deg);filter:blur(5px)}
.scene-stage>.cloth-tint{pointer-events:none}
.cloth-options{border:0;border-top:1px solid #c9ae7829;padding:19px 0 0;margin:22px 0 0}.cloth-options legend{float:left;width:100%;font-size:13px;color:#a7b5a4;margin:0 0 12px}.cloth-options div{display:flex;gap:9px;clear:both}.cloth-options button{width:25px;height:25px;min-width:25px;padding:0;border-radius:50%;border:1px solid #c7b4917a;background:var(--cloth-color,#1f4738)}.cloth-options button:hover:enabled{background:var(--cloth-color,#1f4738)}.cloth-options [data-cloth=purple]{--cloth-color:#493147}.cloth-options [data-cloth=wine]{--cloth-color:#a82332}.cloth-options [data-cloth=blue]{--cloth-color:#233f56}.cloth-options [data-cloth=black]{--cloth-color:#141b17}.cloth-options [aria-pressed=true]{outline:1px solid #f0d5a6;outline-offset:3px}
@media(max-width:600px){.cloth-options button{width:32px;height:32px;min-width:32px}.cloth-options div{gap:16px}}

.scene-stage{mask-image:none}.scene-stage>.cloth-tint{mask-image:none}

.music-controls{display:grid;grid-template-columns:1fr 82px;gap:8px 15px;align-items:center;margin-top:15px}.music-controls button{grid-row:1/3;background:transparent;border-radius:12px;font-size:13px;padding:10px 8px}.music-controls label{font-size:10px;color:#9daa98}.music-controls input{width:82px;accent-color:#d9bf90;margin:0;min-height:20px}

.music-piece{grid-column:1/-1;display:flex;gap:12px;align-items:center;border-top:1px solid #d9bf9020;padding-top:10px}.music-piece span{flex:1;min-width:0;font-size:14px;line-height:1.45;color:#b9c1b5}.music-controls .music-piece button{flex:none;font-size:13px;padding:7px 9px;min-height:38px}.music-piece button:disabled{opacity:.45;cursor:wait}

/* The inspector shares the table's projection, then brings that card forward. */
#card-dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:rgba(1,8,5,var(--inspection-shade,0));}
#card-dialog::backdrop{background:transparent;backdrop-filter:none}
#card-dialog figure{position:absolute;left:0;top:0;width:480px;height:720px;margin:0;transform-origin:0 0;will-change:transform;border-radius:13px;overflow:hidden;isolation:isolate;}
#card-dialog img{width:100%;height:100%;border-radius:0;object-fit:fill;user-select:none;-webkit-user-drag:none}
#card-dialog figcaption{left:15px;right:15px;top:630px;bottom:auto;height:69px;min-height:0;box-sizing:border-box;padding:0 36px;font:40px Georgia;letter-spacing:0;white-space:nowrap;}
#card-dialog figcaption::before,#card-dialog figcaption::after{content:'';position:absolute;top:50%;transform:translateY(-50%);width:24px;height:24px;background:#826942;mask:url('../../Marca/siente-tarot-aura-simbolo-tinta.svg') center/contain no-repeat}
#card-dialog figcaption::before{left:10px}#card-dialog figcaption::after{right:10px}
#card-dialog #close-card{position:absolute;z-index:1;top:max(12px,env(safe-area-inset-top),calc(var(--inspection-top,68px) - 56px));left:calc(var(--inspection-right,50%) - 12px);right:auto;transform:translateX(-100%);margin:0;width:max-content;white-space:nowrap;line-height:1;display:flex;align-items:center;justify-content:center;height:44px;min-height:44px;padding:8px 16px;font-size:16px;background:#132119ee;border:1px solid #bba16a88;color:#f5e9d2;box-shadow:0 4px 20px #0004;}
#card-dialog[data-state="opening"] #close-card,#card-dialog[data-state="closing"] #close-card{opacity:.65}
#card-dialog #close-card:focus-visible{outline:2px solid #efd7a0;outline-offset:3px}

/* Project hit areas into the viewport, like the dealing canvas. Nested perspective
   transforms inside the masked stage clip lower-card hit testing in Firefox. */
#card-targets{position:absolute;inset:0;z-index:1;pointer-events:none}
.table-card-target{position:absolute;left:0;top:0;width:480px;height:720px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;transform-origin:0 0;pointer-events:auto;cursor:zoom-in;touch-action:manipulation}
.table-card-target:hover:enabled,.table-card-target:focus-visible{background:transparent;border:0}
.table-card-target:focus-visible{outline:0;box-shadow:inset 0 0 0 12px #f4dfb6}
@media(hover:hover){.table-card-target:hover:enabled{box-shadow:inset 0 0 0 7px #eed4a899}}

/* The conversation owns the column; ambient controls open only on demand. */
.chat-panel{padding:20px;min-height:0;overflow:hidden}
.chat-heading{flex:none;gap:9px;padding-bottom:16px;margin-bottom:0}
.chat-identity{flex:1;min-width:0}.chat-heading h2{font-size:23px}.chat-heading p{font-size:12px;white-space:nowrap}
.chat-avatar{flex:none;width:34px;height:34px;font-size:26px}.presence-dot{flex:none;margin-left:0;width:6px;height:6px}
.chat-settings-button{flex:none;display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:12px;border-color:transparent;background:transparent;color:#d5c39f}
.chat-conversation{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 2px 16px;scrollbar-width:thin;scrollbar-color:#95836a44 transparent}
.chat-conversation:focus-visible{outline:1px solid #d5bd894d;outline-offset:-1px}
/* Ritual actions stay compact inside the chat column. */
#begin-ritual{display:block;width:fit-content;max-width:100%;min-height:44px;margin:4px auto 0;padding:10px 22px;font-size:16px;line-height:1.4;border-radius:14px}
#begin-ritual:focus-visible{outline:2px solid #35452f;outline-offset:-4px}
.chat-panel #ritual-title{font-size:23px;line-height:1.3;min-height:0;margin:0 0 14px}
.chat-panel .intro{font-size:17px;line-height:1.65;margin:0 0 16px;padding:15px;border-radius:3px 16px 16px}
.chat-panel .spoken:empty{display:none}.chat-panel .spoken{font-size:17px;margin:14px 0}
#listen-welcome{font-size:15px;padding:7px 14px;min-height:36px;margin:0 0 8px}
#ritual-invitation:has(+ .welcome-voice-controls:not([hidden])){margin-bottom:10px}
.chat-input-area{flex:none;padding-top:12px;border-top:1px solid #c9ae7829}
.question-message{margin:0 0 18px 18px;padding:13px 15px;border:1px solid #c9ae7826;border-radius:16px 3px 16px 16px;background:#bdcbb510}
.question-message-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#b8c4b4;font-size:13px}
.question-message-heading button{font-size:14px;padding:7px 10px;min-height:36px;border-radius:10px;background:transparent}
.question-message p{font-size:17px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0}
.question-error{font-size:14px;line-height:1.45;color:#ecc391;margin:8px 0 0}
.chat-composer:focus-within{border-color:#ddc18eaa}.chat-composer textarea:disabled{color:#9eaa9e}
.chat-composer[aria-busy="true"] #send-question:disabled{opacity:1;cursor:wait;color:transparent;position:relative}
.chat-composer[aria-busy="true"] #send-question::after{content:"";position:absolute;inset:0;margin:auto;width:14px;height:14px;border:2px solid #15211840;border-top-color:#152118;border-radius:50%;animation:question-sending .8s linear infinite}
@keyframes question-sending{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.chat-composer[aria-busy="true"] #send-question::after,#thinking i{animation:none}}
.chat-composer{margin-top:0;padding:12px}.chat-panel .chat-pending{margin:8px 0 0;font-size:13px;line-height:1.5;color:#9eaa9e}
.cards-panel #deck-count{font-size:14px;margin:-12px 0 22px}
.settings-dialog{inset:76px 18px auto auto;margin:0;width:350px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 100px);padding:22px;border-radius:20px;background:linear-gradient(150deg,#1a2a21,#0e1913);box-shadow:0 18px 80px #0008;overflow-y:auto;scrollbar-width:thin}
.settings-dialog::backdrop{background:#02080566;backdrop-filter:blur(2px)}
.settings-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-heading h2{font:27px/1.2 Georgia;color:#e6c995;margin:0}.settings-heading button{display:grid;place-items:center;width:40px;height:40px;padding:0;line-height:1;border-radius:12px;background:transparent}.settings-heading button svg{display:block;pointer-events:none}.settings-heading form{margin:0}
.settings-section{border-top:1px solid #c9ae7829;margin-top:20px;padding-top:18px}.settings-section h3{font:16px/1.4 system-ui;color:#e6dbbf;margin:0 0 14px}
.settings-dialog .voice-option{font-size:16px;margin:0;min-height:40px}.settings-dialog .voice-option input{flex:none;width:20px;height:20px}
.settings-dialog .music-controls{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0}
.settings-dialog .music-controls button,.settings-dialog .ambient-toggle{font-size:15px;min-height:44px;padding:10px 14px;background:#ffffff03;border:1px solid #c8b28540;border-radius:12px}
.settings-dialog .ambient-toggle{width:100%;color:#d5daca}.settings-dialog .music-controls label{font-size:14px;color:#b5c0b1;margin-top:4px}.settings-dialog .music-controls input{width:100%;min-height:28px}.settings-dialog .music-piece{padding-top:14px;align-items:center}.settings-dialog .music-piece span{font-size:15px}.settings-dialog .music-piece button{flex:none;padding:8px 12px}
.settings-dialog .disclosure{font-size:13px;line-height:1.6;margin:20px 0 0}
.card-sound-controls{display:grid;gap:8px;margin-top:8px;min-width:0}.card-sound-controls label{font-size:14px;color:#b5c0b1}.card-sound-controls input{width:100%;min-width:0;min-height:28px;margin:0;accent-color:#dfc38c}
/* Shared warm controls: unchecked boxes need explicit styling, not accent-color alone. */
:is(.settings-dialog,.history-preference,.account-choice,.memory-onboarding){--settings-control-light:#eee2cc;--settings-control-accent:#dfc28d;--settings-control-border:#bba278}
.settings-dialog{scrollbar-color:#8f8066 #14211a}
:is(.settings-dialog,.history-preference,.account-choice,.memory-onboarding) input[type="checkbox"]{appearance:none;-webkit-appearance:none;box-sizing:border-box;display:inline-block;background:var(--settings-control-light);border:1px solid var(--settings-control-border);border-radius:4px;cursor:pointer}
:is(.settings-dialog,.history-preference,.account-choice,.memory-onboarding) input[type="checkbox"]:checked{background-color:var(--settings-control-accent);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4.5 10 3.5 3.5 7.5-8' fill='none' stroke='%23202b45' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-size:100% 100%}
.settings-dialog input[type="range"]{appearance:none;-webkit-appearance:none;box-sizing:border-box;background:transparent;cursor:pointer;height:28px;padding:0;border:0}
.settings-dialog input[type="range"]::-webkit-slider-runnable-track{height:5px;border:0;border-radius:999px;background:var(--settings-control-light)}
.settings-dialog input[type="range"]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:20px;height:20px;margin-top:-7.5px;border:2px solid var(--settings-control-border);border-radius:50%;background:var(--settings-control-accent);box-shadow:0 1px 4px #0005}
.settings-dialog input[type="range"]::-moz-range-track{height:5px;border:0;border-radius:999px;background:var(--settings-control-light)}
.settings-dialog input[type="range"]::-moz-range-progress{height:5px;border-radius:999px;background:var(--settings-control-light)}
.settings-dialog input[type="range"]::-moz-range-thumb{box-sizing:border-box;width:20px;height:20px;border:2px solid var(--settings-control-border);border-radius:50%;background:var(--settings-control-accent);box-shadow:0 1px 4px #0005}
:is(.settings-dialog,.history-preference,.account-choice,.memory-onboarding) input[type="checkbox"]:focus-visible,.settings-dialog input[type="range"]:focus-visible{outline:2px solid var(--settings-control-accent);outline-offset:4px}
:is(.settings-dialog,.history-preference,.account-choice,.memory-onboarding) input[type="checkbox"]:disabled,.settings-dialog input[type="range"]:disabled{opacity:.5;cursor:not-allowed}
@media(forced-colors:active){
 :is(.settings-dialog,.history-preference,.account-choice,.memory-onboarding) input[type="checkbox"],:is(.settings-dialog,.history-preference,.account-choice,.memory-onboarding) input[type="checkbox"]:checked{appearance:auto;-webkit-appearance:auto;background-image:none}
 .settings-dialog input[type="range"]::-webkit-slider-runnable-track{background:CanvasText}
 .settings-dialog input[type="range"]::-webkit-slider-thumb{background:Highlight;border-color:CanvasText}
 .settings-dialog input[type="range"]::-moz-range-track,.settings-dialog input[type="range"]::-moz-range-progress{background:CanvasText}
 .settings-dialog input[type="range"]::-moz-range-thumb{background:Highlight;border-color:CanvasText}
}
@media(max-width:1000px){
 .chat-panel{height:min(82dvh,750px,calc(100dvh - 82px));max-height:none;padding:18px 20px;overflow:hidden}
 .chat-heading{padding-right:0;padding-bottom:14px;gap:8px;margin:0}.chat-heading h2{font-size:23px}
 .chat-heading .close-panel{position:static;flex:none;display:grid;place-items:center;width:40px;height:40px;padding:0;font-size:25px;border:0;background:transparent;border-radius:12px}
 .chat-conversation{padding-top:20px}.chat-panel #ritual-title{font-size:23px}.chat-input-area{padding-top:10px}
 .settings-dialog{inset:0;margin:auto;width:370px;max-height:calc(100dvh - 32px)}
}

/* Keep the frame and footer still; only revealed cards have their own scroll. */
.cards-panel{min-height:0;min-width:0;overflow:hidden;padding:20px 16px;gap:0}
.cards-panel> :not(.drawn-cards):not(.cards-empty):not(.cards-content){flex:none}
.cards-content{display:contents}
.cards-content> :not(.drawn-cards):not(.cards-empty){flex:none}
.cards-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cards-heading h2{font-size:25px;margin:0;line-height:1.3}
.cards-panel #deck-count{margin:5px 0 16px;font-size:14px}
.cards-panel .steps{display:grid;grid-template-columns:repeat(4,max-content);justify-content:space-between;gap:4px;font-size:10px}
.cards-panel #progress{margin:8px 0 14px}
.cards-panel #initial-options{margin:0 0 14px}
.cards-panel #initial-options label{font-size:14px;margin-bottom:5px}
.cards-panel #initial-count{padding:8px 10px;font-size:16px}
.cards-panel .cards-empty{flex:1;min-height:0;margin:0;padding:12px 0;font:16px/1.6 system-ui}
.cards-panel .latest-card{margin:0 0 12px}
.cards-panel #inspect-card{margin:0;padding:10px;min-height:66px;gap:8px;text-align:left}
.latest-card .latest-card-copy{flex:1;min-width:0;margin:0}
.latest-card .latest-card-copy>span{margin:0 0 3px;font-size:12px;line-height:1.3}
.cards-panel .latest-card strong{font:20px/1.2 Georgia;overflow-wrap:normal}
.latest-card .expand{flex:none;font-size:16px;margin:0}
.cards-panel .drawn-cards{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;margin:0;border:0}
.drawn-heading{display:flex;flex:none;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;border-top:1px solid #c8b28533}
.drawn-heading h3{font:14px/1.4 system-ui;color:#e6d7b6;margin:0}
.drawn-heading #drawn-count{flex:none;font-size:12px;color:#acbba9;font-variant-numeric:tabular-nums}
.cards-panel #drawn-list{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#95836a88 transparent;padding:0 4px 4px 0;margin:0}
.cards-panel #drawn-list:focus-visible{outline:1px solid #d5bd8999;outline-offset:-1px}
.cards-panel .drawn-cards button{font-size:16px;gap:8px;padding:8px 2px;min-height:60px}
.cards-panel .drawn-cards button img{flex:none;width:30px;height:45px}
.cards-panel .drawn-cards button span:not(.expand){min-width:0;overflow-wrap:anywhere}
.cards-panel-bottom{flex:none;margin-top:auto;padding:14px 0 0;border-top:1px solid #c9ae7829}
.cards-panel .cloth-options{border:0;margin:0;padding:0;min-width:0}
.cards-panel .cloth-options legend{font-size:13px;margin:0 0 9px;padding:0}
.cards-panel .cloth-options div{justify-content:space-between;gap:6px;padding:4px}
.cards-panel .cloth-options button{width:25px;height:25px;min-width:25px}
.settings-dialog .note{font-size:14px;margin:0 0 10px}.settings-dialog .return{margin:0;font-size:14px}
@media(max-width:1000px){
 .cards-panel{height:min(82dvh,750px,calc(100dvh - 82px));max-height:none;padding:16px 20px;overflow:hidden}
 .cards-heading .close-panel{position:static;display:grid;place-items:center;width:40px;height:40px;padding:0;font-size:25px;border:0;background:transparent}
 .cards-panel #deck-count{margin-top:0;margin-bottom:12px}
 .cards-panel .steps{font-size:11px}
 .cards-panel .cloth-options div{justify-content:flex-start;gap:18px}
 .cards-panel .cloth-options button{width:30px;height:30px;min-width:30px}
 .cards-panel .latest-card strong{font-size:21px}
}
@media(max-height:600px){
 .cards-panel{padding-top:10px;padding-bottom:10px}
 .cards-panel .steps,.cards-panel #progress,.cards-panel .latest-card{display:none}
 .cards-panel #deck-count{margin-bottom:8px}
 .cards-panel #initial-options{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px;margin-bottom:8px}
 .cards-panel #initial-options label{margin:0}
 .cards-panel-bottom{padding-top:8px}
 .cards-panel .cloth-options legend{margin-bottom:5px}
}

/* Reading bubbles share the existing scroll area and never alter deck layout. */
.reading-message{padding:15px;margin:0 0 16px;border:1px solid #bacbb526;border-radius:3px 16px 16px;background:#ffffff03}
.reading-message strong{font-size:14px;color:#e5ca97;font-weight:500}
.reading-message p{font-size:17px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0}
.reading-continuation-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
#reading-messages > .reading-continuation-controls{margin-bottom:16px}
.reading-continuation-controls button{flex:1 1 130px;min-height:44px;padding:10px 12px}
.reading-message.user{margin-left:18px;border-radius:16px 3px 16px 16px;background:#bdcbb510}
#reading-error{font-size:16px;line-height:1.5;padding:12px 0 18px;color:#e6cda8}
#reading-error button{font-size:15px;min-height:44px}
#reading-error[data-code="insufficient_credits"] .reading-error-notice{position:relative;padding:14px 14px 14px 34px;border:1px solid #d86a624d;border-radius:12px;background:#a9362a1a;color:#f1d3c7}
#reading-error[data-code="insufficient_credits"] .reading-error-notice::before{content:"";position:absolute;left:14px;top:22px;width:8px;height:8px;border-radius:50%;background:#ff756b;box-shadow:0 0 0 3px #ff756b24;animation:credit-alert-pulse 2s ease-out infinite}
@keyframes credit-alert-pulse{0%,100%{box-shadow:0 0 0 3px #ff756b24}65%{box-shadow:0 0 0 8px #ff756b00}}
@media(prefers-reduced-motion:reduce){#reading-error[data-code="insufficient_credits"] .reading-error-notice::before{animation:none}}
#reading-wait{font-size:15px;margin:10px 0 15px}
#reading-wait:not([hidden]){display:flex;align-items:center;gap:10px}
#reading-wait .thinking{flex:none;margin:0}
/* One activity indicator beside the latest status in the conversation. */
#thinking:has(~ #reading-wait:not([hidden])){display:none}

.reading-audio-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch;margin:0 0 12px}.reading-audio-controls button{box-sizing:border-box;width:100%;min-width:0;max-width:100%;font-size:13px;line-height:1.35;height:var(--reading-action-height,44px);min-height:var(--reading-action-height,44px);padding:3px 8px;border-radius:12px;white-space:normal}.reading-audio-controls span{grid-column:1/-1;font-size:12px;color:#afbbab;line-height:1.5}.reading-audio-controls span:empty{display:none}

/* Available credits, driven by the server wallet. */
.credit-balance{display:grid;gap:5px;margin:16px 0 0;font-variant-numeric:tabular-nums;line-height:1.25}
.credit-heading,.credit-amounts{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#aeb9aa}
.credit-demo{font-size:11px;color:#a49f8e}
.credit-track{height:3px;overflow:hidden;border-radius:10px;background:#e3c89821}
.credit-track>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#968764,#bfa77b)}
.credit-amounts{gap:6px;white-space:nowrap}
.credit-amounts strong{font-size:12px;font-weight:500;color:#c9bea5}
.credit-amounts strong span{font-size:12px;font-weight:400}
#mobile-credit-slot{display:none}
@media(max-width:1000px){
 .layout{height:calc(100dvh - 118px)}
 .panel{bottom:118px}
 .chat-panel,.cards-panel{height:min(82dvh,750px,calc(100dvh - 134px))}
 #mobile-credit-slot{display:block;position:fixed;inset:auto 0 66px;height:52px;padding:5px 16px;background:#0a1510fa;border-top:1px solid #c9ae7838;z-index:6}
 #mobile-credit-slot .credit-balance{gap:4px;margin:0}
}

/* Connection checks belong to the opening message, not the fixed chat footer. */
.reading-availability{border:1px solid #b99d6447;border-radius:12px;padding:13px 14px;margin:0 0 18px;background:#d8b46e08}
.reading-availability p{font-size:16px;line-height:1.5;margin:0 0 12px;color:#d4d8c8}
.reading-availability button{font-size:14px;min-height:44px;padding:10px 14px;max-width:100%;white-space:normal}
.reading-availability p:last-child{margin-bottom:0}

/* Select the method before sending; retain it throughout the consultation. */
#method-options{margin:0 0 10px;min-width:0}
#method-options label{display:block;font-size:14px;color:#d9c39b;margin-bottom:5px}
#spread-method{width:100%;max-width:100%;padding:9px 8px;border:1px solid #c8b28550;border-radius:10px;background:#15231b;color:#eee9db;font-size:15px}
#method-summary{display:flex;align-items:center;gap:6px;font-size:14px;line-height:1.4;color:#cab88f;margin:0 0 14px}
#method-summary[hidden]{display:none}
#method-summary-text{min-width:0}
#current-spread-info{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:#ddc18e}
#current-spread-info[hidden]{display:none}
#current-spread-info:hover{color:#f5dfb6;background:#ddc18e16}
#current-spread-info:focus-visible{outline:2px solid #ddc18e;outline-offset:2px}
@media(pointer:coarse){#current-spread-info{width:36px;height:36px}}
#method-description{font-size:14px;line-height:1.4;color:#b8c2b5;margin:7px 0 0}
.spread-info-link{display:inline-flex;align-items:center;gap:7px;min-height:38px;max-width:100%;padding:6px 0;border:0;border-radius:4px;background:transparent;color:#ddc18e;font-size:13px;line-height:1.4;text-align:left}
.spread-info-link svg{flex:none}.spread-info-link:hover:enabled{color:#f5dfb6;text-decoration:underline;text-underline-offset:4px}
.spread-info-link:focus-visible{outline:2px solid #ddc18e;outline-offset:2px}
/* Public method cards are independent of the live deck and character. */
.spread-info-dialog{box-sizing:border-box;width:min(540px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #c8ad7159;border-radius:22px;background:#13231b;color:#e7e6d9;box-shadow:0 24px 90px #0007;overflow:hidden}
.spread-info-dialog[open]{display:flex;flex-direction:column}
.spread-info-dialog{--info-enter:translateY(16px) scale(.975);--info-exit:translateY(10px) scale(.985);opacity:1;transform:none;transition:opacity 300ms ease,transform 300ms cubic-bezier(.22,1,.36,1)}
.spread-info-dialog::backdrop{opacity:1;transition:opacity 300ms ease}
.spread-info-dialog[data-motion="entering"]{opacity:0;transform:var(--info-enter)}
.spread-info-dialog[data-motion="closing"]{opacity:0;transform:var(--info-exit);transition-duration:200ms;pointer-events:none}
.spread-info-dialog[data-motion="entering"]::backdrop,.spread-info-dialog[data-motion="closing"]::backdrop{opacity:0}
.spread-info-dialog[data-motion="closing"]::backdrop{transition-duration:200ms}
.spread-info-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 24px 12px;flex:none}
.spread-info-header>div{min-width:0}.spread-info-header form{margin:0;flex:none}
.spread-info-eyebrow{margin:0 0 9px;color:#b8ad92;text-transform:uppercase;letter-spacing:.15em;font-size:10px;line-height:1.4}
.spread-info-header h2{font:400 30px/1.15 Georgia,serif;color:#e8cb93;margin:0;overflow-wrap:anywhere}
.spread-info-close{display:grid;place-items:center;width:40px;height:40px;min-width:40px;padding:0;border-radius:50%;border:1px solid #c8ad7140;background:transparent}
.spread-info-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 24px 20px;scrollbar-width:thin;scrollbar-color:#7b76594d transparent}
.spread-info-body>p{font-size:15px;line-height:1.65;margin:0 0 16px;color:#cdd3c7}
.spread-info-facts{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.spread-info-facts span{padding:5px 10px;border:1px solid #ccb37c30;border-radius:20px;font-size:12px;line-height:1.5;color:#d8c398}
.spread-info-illustration{padding:14px 16px;margin:0 0 20px;border-radius:14px;background:#08170f80;border:1px solid #c7b17b20}
.spread-info-illustration svg{display:block;width:100%;height:176px;overflow:visible}
.spread-info-illustration rect{fill:#2b4536;stroke:#d8bd82;stroke-width:1.7}
.spread-info-illustration text{fill:#ebd8b1;font-family:Georgia,serif;text-anchor:middle;dominant-baseline:central}
.spread-info-illustration .future rect{fill:transparent;stroke:#b6a37380;stroke-dasharray:7 6}
.spread-info-illustration .synthesis rect{fill:#574c31;stroke-dasharray:5 4}
.spread-info-illustration p{font-size:12px;line-height:1.5;color:#aebba9;text-align:center;margin:12px 0 0}
.spread-info-body h3{font-size:13px;font-weight:500;line-height:1.5;color:#e4cea4;margin:0 0 6px}
.spread-info-body>p:last-child{margin-bottom:0}
.spread-info-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;border-top:1px solid #c8ad712d;background:#112018;flex:none}
.spread-info-footer[hidden]{display:none}
.spread-info-browse{display:flex;align-items:center;gap:4px}.spread-info-browse button{display:grid;place-items:center;width:38px;height:40px;padding:0;border:0;background:transparent;font-size:21px}
.spread-info-browse span{min-width:49px;text-align:center;font-size:12px;color:#b4bdad;font-variant-numeric:tabular-nums}
.spread-info-dialog .spread-info-choose{min-height:44px;max-width:100%;padding:10px 17px;border:1px solid #e2c590;border-radius:24px;background:#e2c590;color:#142018;font-size:14px;line-height:1.4}
.spread-info-dialog .spread-info-choose:is(:hover,:focus-visible):enabled{background:#273c31;color:#e2c590;border-color:#e2c590}
.spread-info-dialog button:focus-visible{outline:2px solid #f0d4a0;outline-offset:3px}
@media(max-width:600px){
 .spread-info-dialog{inset:auto 0 0;width:100%;margin:0;max-height:calc(100dvh - 20px);border-radius:22px 22px 0 0;--info-enter:translateY(44px);--info-exit:translateY(30px)}
 .spread-info-header{padding:22px 20px 12px}.spread-info-header h2{font-size:27px}
 .spread-info-body{padding:0 20px 18px}.spread-info-illustration svg{height:155px}
 .spread-info-footer{padding:12px 16px max(12px,env(safe-area-inset-bottom))}
 .spread-info-dialog .spread-info-choose{padding:10px 13px}
}
@media(prefers-reduced-motion:reduce){.spread-info-dialog,.spread-info-dialog::backdrop{transition:none}.spread-info-dialog[data-motion]{transform:none}}
#spread-preview{margin:0 0 20px;border:1px solid #d9bc862b;border-radius:14px;padding:12px;background:#08140c66}
#spread-preview svg{display:block;width:100%;height:auto;max-height:200px}
#spread-preview polygon{fill:#263d30;stroke:#d4b783;stroke-width:2}
#spread-preview polygon.derived{fill:#695334;stroke-dasharray:7 5}
#spread-preview text{fill:#ead5ab;font:26px Georgia;text-anchor:middle;dominant-baseline:middle;paint-order:stroke;stroke:#1a2a21;stroke-width:3px}
#spread-description{font-size:15px;line-height:1.5;color:#c1cbbd;margin:8px 0 0}
.drawn-cards button small{display:block;font-size:12px;line-height:1.35;color:#b2ad98;margin-bottom:3px}
@media(max-height:600px){#method-summary{margin-bottom:6px;font-size:12px}#spread-preview{display:none}}

.extend-spread{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.extend-spread button{flex:1;min-height:44px;font-size:15px;padding:10px 12px;line-height:1.4}.extend-spread[hidden]{display:none}
.chat-input-area .draw-more-cards{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:40px;margin:0 0 10px;padding:8px 14px;border:1px solid #c8b28566;border-radius:12px;background:#dcc08d12;color:#ead2a4;font-size:14px;line-height:1.4;white-space:normal}
.chat-input-area .draw-more-cards[hidden]{display:none}
.chat-input-area .draw-more-cards:disabled{opacity:.55;cursor:default}

/* Explore the whole projected scene without moving individual cards. */
.layout{overflow:clip}
.scene{touch-action:none;overflow:clip}
.scene:focus-visible{outline:2px solid #ddc18e;outline-offset:-3px}
.scene.can-pan{cursor:grab}
.scene.is-panning,.scene.is-panning .table-card-target{cursor:grabbing}
.scene.is-panning{user-select:none}
.scene.is-panning .table-card-target:hover{box-shadow:none}
.scene.camera-moving .scene-stage{will-change:transform}
.table-card-target,.pile-target{touch-action:none}
.scene-footer{padding:24px 18px 18px;gap:12px}
.scene-footer #deal-status{display:flex;align-items:center;min-height:2.8em;flex:1;min-width:0;max-width:none;font-size:14px;line-height:1.4}
.table-navigation{max-width:100%;box-sizing:border-box;display:flex;align-items:center;gap:4px;flex:none;padding:4px;border:1px solid #b69d684d;border-radius:28px;background:#102018eb;box-shadow:0 5px 22px #0003;pointer-events:auto;cursor:default;touch-action:manipulation}
.scene-footer .table-navigation button{display:grid;place-items:center;flex:none;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:transparent;font-size:23px;line-height:1}
.scene-footer .table-navigation button:hover:enabled{background:#d9be8a1c}
.table-navigation button svg{pointer-events:none}
.table-navigation input{flex:0 1 88px;width:88px;min-width:0;height:34px;margin:0 3px;accent-color:#ddc18e;cursor:pointer;touch-action:pan-y}
/* Explicit native-range parts keep the zoom warm in WebKit, Chromium and Firefox. */
#table-zoom{appearance:none;-webkit-appearance:none;padding:0;border:0;border-radius:6px;background:transparent}
#table-zoom::-webkit-slider-runnable-track{height:4px;border:0;border-radius:999px;background:#76694e}
#table-zoom::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:17px;height:17px;margin-top:-6.5px;border:1px solid #f0d9ae;border-radius:50%;background:#ddc18e;box-shadow:0 1px 4px #0006}
#table-zoom::-moz-range-track{height:4px;border:0;border-radius:999px;background:#76694e}
#table-zoom::-moz-range-progress{height:4px;border-radius:999px;background:#76694e}
#table-zoom::-moz-range-thumb{width:15px;height:15px;border:1px solid #f0d9ae;border-radius:50%;background:#ddc18e;box-shadow:0 1px 4px #0006}
#table-zoom:disabled{opacity:.45;cursor:default}
.table-navigation output{font-size:13px;font-variant-numeric:tabular-nums;color:#ddcca9;width:49px;text-align:center;white-space:nowrap}
.scene-footer .table-navigation #closeup{color:#dfcca7;background:#d9be8a10}
#closeup[data-view-action="focus"] .view-reset,#closeup[data-view-action="reset"] .view-focus{display:none}
.scene-footer .table-navigation #table-fullscreen{color:#dfcca7}
#table-fullscreen .fullscreen-exit{display:none}
#table-fullscreen[aria-pressed=true]{background:#d9be8a24}
#table-fullscreen[aria-pressed=true] .fullscreen-enter{display:none}
#table-fullscreen[aria-pressed=true] .fullscreen-exit{display:block}
.fullscreen-notice{position:absolute;bottom:82px;right:18px;max-width:min(340px,calc(100% - 36px));padding:12px 16px;border:1px solid #c9ae7840;border-radius:12px;background:#102018f5;color:#e6d9bd;font-size:14px;line-height:1.5;z-index:4;pointer-events:none}
:root:fullscreen{width:100%;height:100%;background:#07100b}
:root:-webkit-full-screen{width:100%;height:100%;background:#07100b}
@media(max-width:1250px){.scene-footer{flex-wrap:wrap;justify-content:center}.scene-footer #deal-status{flex-basis:100%;justify-content:center;text-align:center;font-size:13px}.table-navigation input{width:100px}}
@media(max-width:1000px){.scene-footer{padding:18px 12px 12px;gap:7px}.scene-footer #deal-status{font-size:13px}.scene-footer .table-navigation button{width:42px;height:42px}.table-navigation input{width:94px}.table-navigation output{width:47px}}
@media(max-width:350px){.table-navigation input{width:48px;flex-basis:48px}.scene-footer .table-navigation button{width:38px;height:38px}.table-navigation output{width:44px}}
@media(max-height:500px) and (min-width:600px){.scene-footer{padding:12px 12px 8px;flex-wrap:nowrap}.scene-footer #deal-status{flex-basis:auto;justify-content:flex-start;text-align:left}.scene-footer .table-navigation button{width:34px;height:34px}.table-navigation input{width:78px}}

/* The preview asks once; authenticated hosts supply the name directly. */
.visitor-form{margin:16px 0 20px}.visitor-form label{display:block;margin-bottom:8px;color:#c4cdbf;font-size:15px}.visitor-form>div{display:flex;gap:8px}.visitor-form input{width:100%;min-width:0;border:1px solid #c9ae7845;border-radius:10px;padding:10px;background:#060d0955;color:#e7e5d6;font:16px/1.4 system-ui}.visitor-form button{padding:9px 12px;flex:none}.visitor-form .note{margin:8px 0 0;font-size:12px}.visitor-known{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 20px;font-size:14px;color:#b6c2b3}.visitor-known button{padding:5px 9px;font-size:12px}.visitor-form input:focus-visible{outline:2px solid #ddc18e;outline-offset:2px}

/* Rotate the face, never the physical plane, hit target or close control. */
#drawn-list button[data-orientation="reversed"] img{transform:rotate(180deg)}
#drawn-list .card-orientation{color:#d6bb88;font-size:12px}
#card-dialog[data-orientation="reversed"] img{transform:rotate(180deg)}
#card-dialog[data-orientation="reversed"] figcaption{top:21px;transform:rotate(180deg)}

#history-cycle{width:100%;min-width:0;flex:none;margin:4px 0 8px;padding:6px 8px;color:var(--text,#e7decb);background:#14231b;border:1px solid #46503c;border-radius:8px}#recycle-deck{max-width:100%;padding:10px 14px;border-radius:18px}

/* One visible quiet control also works with the mobile chat closed. */
.scene header .sound-toggle{display:grid;place-items:center;flex:none;width:42px;height:42px;min-width:42px;margin-left:auto;padding:0;border:1px solid #ddc18e66;border-radius:50%;background:#101e16dd;color:#e6c995;pointer-events:auto;box-shadow:0 2px 12px #0003}
.scene header .sound-toggle:hover{background:#23372b;color:#ffe0a9}
.scene header .sound-toggle:focus-visible{outline:2px solid #f0d5a6;outline-offset:3px}
.sound-toggle[aria-pressed=true]{box-shadow:0 0 0 2px #e6c99555!important}
.sound-toggle .sound-off,.sound-toggle[aria-pressed=true] .sound-on{display:none}
.sound-toggle[aria-pressed=true] .sound-off{display:block}

/* History is a separate reading space; it never squeezes the live chat. */
.chat-heading{gap:6px}.chat-heading .chat-avatar{width:34px;height:34px;flex:none}.chat-heading .presence-dot{margin-left:0;flex:none}.chat-heading .chat-settings-button{width:34px;height:38px}
.history-dialog{box-sizing:border-box;inset:0;margin:auto;width:min(960px,calc(100vw - 40px));height:min(760px,calc(100dvh - 40px));max-width:none;max-height:none;padding:0;border:1px solid #c8ad7159;border-radius:22px;background:#13231b;color:#e7e6d9;box-shadow:0 24px 90px #0008;overflow:hidden;opacity:1;transform:none;transition:opacity .25s ease,transform .25s ease}
.history-dialog[open]{display:flex;flex-direction:column}.history-dialog::backdrop{background:#020805b8;backdrop-filter:blur(4px)}.history-dialog[data-motion=entering],.history-dialog[data-motion=closing]{opacity:0;transform:translateY(14px) scale(.985)}
.history-dialog [hidden]{display:none!important}.history-dialog button{font-size:14px;line-height:1.4;color:#e2c590;max-width:100%;background:transparent;border:1px solid #c8ad714a;border-radius:12px;padding:9px 14px;min-height:40px}.history-dialog button:hover:enabled{background:#294034;color:#ffe1a7}.history-dialog button:focus-visible{outline:2px solid #f0d4a0;outline-offset:2px}
.history-heading{display:flex;justify-content:space-between;align-items:center;padding:21px 25px 16px;flex:none}.history-eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;margin:0 0 6px;color:#c8b58c}.history-heading h2{margin:0;font:32px Georgia;color:#e2c590}.history-heading button{display:grid;place-items:center;width:40px;padding:0;flex:none}
.history-preference{margin:0 25px 14px;padding:12px 15px;border:1px solid #c8ad7129;border-radius:12px;background:#e2c59005;flex:none}.history-preference label{display:flex;align-items:center;gap:10px;font-size:14px}.history-preference input{accent-color:#e2c590;width:18px;height:18px;flex:none}.history-preference p{font-size:12px;line-height:1.5;color:#acb8ab;margin:6px 0 0 28px}
.history-notice{margin:0 25px;font-size:13px;color:#e2c590;flex:none}.history-notice:not(:empty){padding-bottom:12px}
.history-workspace{display:grid;grid-template-columns:290px minmax(0,1fr);min-height:0;flex:1;border-top:1px solid #c8ad7129}.history-sidebar{display:flex;flex-direction:column;min-height:0;border-right:1px solid #c8ad7129;background:#08150d44}.history-list-heading{display:flex;justify-content:space-between;gap:8px;padding:16px;font-size:12px;color:#aebbaf;flex:none}.history-list{overflow-y:auto;padding:0 10px 14px;scrollbar-width:thin;scrollbar-color:#786c50 transparent}.history-dialog .history-entry{display:flex;flex-direction:column;text-align:left;width:100%;gap:8px;padding:16px;margin-bottom:8px;border-color:transparent;color:#dce1d5}.history-entry small{font-size:11px;color:#a8b6a6}.history-entry strong{font-size:15px;font-weight:500;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.history-entry span{font-size:12px;color:#cbb994}.history-dialog .history-entry[aria-current=true]{background:#24382c;border-color:#e2c59060}.history-entry .history-local{color:#e2c590}.history-empty{padding:0 16px;color:#aebcae;font-size:14px;line-height:1.65}
.history-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:36px;color:#b3c0b2}.history-placeholder>span{font-size:46px;color:#e2c590}.history-placeholder h3{font:25px Georgia;color:#e2c590;margin:16px 0 0}.history-placeholder p{max-width:330px;line-height:1.7;font-size:14px}
.history-detail{display:flex;flex-direction:column;min-height:0;padding:20px 24px 16px}.history-detail>h3{font:23px/1.3 Georgia;color:#e2c590;margin:0 0 8px;overflow-wrap:anywhere}.history-meta{font-size:11px;color:#a9b7a7;margin:0 0 15px}.history-detail>.history-back{display:none}.history-tabs{display:flex;gap:8px;padding-bottom:12px;flex:none}.history-tabs button[aria-pressed=true]{background:#e2c590;color:#142018;border-color:#e2c590}.history-content{overflow:auto;flex:1;min-height:60px;padding:2px 7px 5px 0;scrollbar-width:thin;scrollbar-color:#786c50 transparent}.history-message{border:1px solid #bda67629;padding:13px 16px;border-radius:0 15px 15px 15px;margin:0 0 12px;background:#0a180f40}.history-message.user{margin-left:22px;background:#e2c59008;border-radius:15px 0 15px 15px}.history-message>small{color:#d9c08e;font-size:12px}.history-message p{font-size:15px;line-height:1.7;margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.history-message .history-listen{font-size:12px;margin-top:12px;min-height:34px;padding:7px 12px}.history-message>.history-muted{display:block;margin-top:10px;color:#9aa999;font-size:11px}.history-muted{font-size:14px;color:#9aa999}
.history-detail-actions{display:flex;gap:10px;align-items:center;padding-top:12px;flex:none}.history-detail-actions button:first-child{background:#e2c590;color:#152219;border-color:#e2c590}.history-detail-actions button:last-child{margin-left:auto;font-size:12px}.history-confirm{padding:10px 12px;background:#32271e;border-radius:12px;flex:none}.history-confirm p{font-size:13px;margin:0 0 8px;line-height:1.5}.history-confirm>div{display:flex;gap:8px;justify-content:flex-end}
/* A complete card face, scoped to history: never inherit dialog figcaptions. */
.history-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:18px 14px;padding:8px 3px 16px}
.history-dialog .history-card{border:1px solid transparent;border-radius:14px;padding:10px 9px 12px;display:flex;flex-direction:column;align-items:center;gap:0;min-width:0;transition:background .2s,border-color .2s}
.history-dialog .history-card:hover:enabled{border-color:#c8ad7145;background:#e2c59009}
.history-card-face{position:relative;display:block;width:100%;aspect-ratio:2/3;container-type:inline-size;overflow:hidden;border-radius:5px;background:#e5d3ae;box-shadow:0 6px 16px #0005,inset 0 0 0 1px #c8ad7155}
.history-card-face.is-reversed{transform:rotate(180deg)}
.history-dialog .history-card-face img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:fill;border-radius:0;transform:none}
.history-dialog .history-card-name{position:absolute;left:3.125%;right:3.125%;top:87.5%;height:9.6%;margin:0;display:flex;align-items:center;justify-content:center;padding:0 9%;border:1px solid #665439;background:linear-gradient(105deg,#d7c399,#f2e6c9 25%,#e9d9b7 70%,#d8c49d);box-shadow:inset 0 0 0 1px #e7d7b6,inset 0 0 0 2px #ae9470;color:#392f22;font:normal var(--name-size,8cqw)/1 Georgia,serif;letter-spacing:0;text-transform:uppercase;white-space:nowrap}
.history-card-name::before,.history-card-name::after{content:'';position:absolute;top:50%;transform:translateY(-50%);width:5cqw;height:5cqw;background:#826942;mask:url('../../Marca/siente-tarot-aura-simbolo-tinta.svg') center/contain no-repeat}.history-card-name::before{left:2%}.history-card-name::after{right:2%}
.history-card-role{margin-top:12px;color:#dac79f;font-size:12px;line-height:1.4;text-align:center}.history-card-orientation{margin-top:4px;font-size:10px;color:#aab9a8}
.history-content>h3{font:20px Georgia;color:#e2c590}
.history-content[data-card-view=detail]{display:grid;grid-template-rows:auto minmax(170px,1fr) auto;gap:9px;padding:0;overflow:auto}
.history-card-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.history-dialog .history-card-back{font-size:12px;padding:4px 0;min-height:30px;border:0;border-radius:6px}.history-dialog .history-card-back:hover:enabled{background:transparent;color:#ffe1a7}.history-card-counter{font-size:11px;color:#adbaa9;font-variant-numeric:tabular-nums}
.history-card-stage{display:grid;place-items:center;min-height:0;container-type:size;padding:12px;border:1px solid #c8ad711c;border-radius:14px;background:radial-gradient(ellipse at 50% 45%,#34463170,#09180f99 80%)}
.history-dialog .history-card-large{position:relative;width:min(100cqw,66.666cqh,280px);height:auto;max-width:none;aspect-ratio:2/3;margin:0;text-align:center}
.history-dialog[data-card-view=detail] .history-preference,.history-dialog[data-card-view=detail] .history-sidebar,.history-dialog[data-card-view=detail] .history-tabs,.history-dialog[data-card-view=detail] .history-detail-actions,.history-dialog[data-card-view=detail] .history-footer,.history-dialog[data-card-view=detail] .history-back{display:none}
.history-dialog[data-card-view=detail] .history-workspace{grid-template-columns:minmax(0,1fr)}
.history-dialog[data-card-view=detail] .history-detail>h3{font-size:19px;-webkit-line-clamp:2;margin-bottom:5px}
.history-dialog[data-card-view=detail] .history-meta{margin-bottom:10px}
.history-dialog[data-card-view=detail] .history-content{grid-template-rows:auto minmax(0,1fr) auto;min-height:0;overflow:hidden}
.history-dialog[data-card-view=detail] .history-card-stage{background:radial-gradient(ellipse at 50% 45%,#34463150,#09180f80 80%)}
.history-card-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px}.history-dialog .history-card-navigation button{width:38px;min-height:36px;padding:4px;flex:none;font-size:20px;line-height:1}.history-card-position{display:flex;flex-direction:column;gap:2px;align-items:center;text-align:center;min-width:0}.history-card-position>span{font-size:12px;line-height:1.4;color:#dbc7a0}.history-card-position>small{font-size:11px;color:#aab9a8}
@media(max-width:700px){.history-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px}.history-dialog .history-card{padding:7px 5px 10px}.history-card-role{font-size:11px}}
@media(prefers-reduced-motion:reduce){.history-dialog .history-card{transition:none}}
.history-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 24px;border-top:1px solid #c8ad7129;background:#0e1c14;flex:none}.history-footer span{font-size:12px;line-height:1.5;color:#a6b4a3}.history-footer button{white-space:nowrap}
@media(max-width:700px){.history-dialog{width:calc(100vw - 16px);height:calc(100dvh - 20px);border-radius:18px}.history-heading{padding:16px 18px 12px}.history-heading h2{font-size:27px}.history-preference{margin:0 15px 12px;padding:10px}.history-preference p{margin-left:0;font-size:11px}.history-workspace{display:flex}.history-sidebar,.history-detail{width:100%;box-sizing:border-box}.history-sidebar{border-right:0}.history-placeholder{display:none}.history-dialog[data-view=list] .history-detail{display:none}.history-dialog[data-view=detail] .history-sidebar{display:none}.history-detail{padding:12px 17px}.history-detail>.history-back{display:block;align-self:flex-start;font-size:12px;margin-bottom:12px;min-height:30px;padding:3px 0;border:0}.history-detail>h3{font-size:20px;max-height:78px;overflow:auto}.history-meta{font-size:10px}.history-footer{padding:12px 16px}.history-notice{margin:0 16px}.history-message p{font-size:14px}.history-footer span{max-width:160px;font-size:11px}.history-detail-actions{gap:6px}.history-detail-actions button{font-size:12px}.history-detail-actions button:last-child{padding:9px}}
@media(prefers-reduced-motion:reduce){.history-dialog{transition:none;transform:none!important}}
.history-mobile-toolbar,.history-mobile-options{display:none}
@media(max-width:700px){
 .history-mobile-toolbar{display:flex;flex:none;padding:0 18px 12px}
 .history-mobile-toolbar button{width:100%;min-height:44px}
 .history-mobile-options:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
 .history-mobile-options>.history-options-back{align-self:flex-start;flex:none;margin:0 18px 12px;min-height:44px}
 .history-mobile-options-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:12px;scrollbar-width:thin}
 .history-dialog[data-view=detail]>.history-mobile-toolbar,
 .history-dialog[data-mobile-options=true]>.history-mobile-toolbar,
 .history-dialog[data-mobile-options=true]>.history-workspace,
 .history-dialog[data-mobile-options=true]>.history-footer{display:none}
 .history-list{min-height:0;flex:1;overscroll-behavior:contain}
 .history-list-heading{align-items:center}
 .history-list-heading small{text-align:right}
}

.history-detail>h3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;flex:none}.history-entry strong{overflow-wrap:anywhere}

/* Presence reflects the last service check; no green before confirmation. */
.presence-dot{transition:background-color .2s,box-shadow .2s}
.presence-dot[data-state=checking],.presence-dot[data-state=preview]{background:#89958c;box-shadow:none}
.presence-dot[data-state=ready]{background:#98bd92;box-shadow:0 0 12px #98bd9238}
.presence-dot[data-state=unavailable]{background:#dbb26b;box-shadow:0 0 10px #dbb26b28}

/* Account previews share the table's palette and keep the conversation intact. */
#open-checkout{padding:2px 7px;min-height:24px;line-height:1.2;font-size:11px;color:#e6c88f;border:1px solid #dfc38a55;background:transparent;border-radius:12px;margin-left:auto}
.credit-heading:has(#open-checkout){gap:8px}
.memory-access{float:right;margin:0 0 8px 16px;padding:6px 12px;font-size:12px;color:#e6c88f}
.account-dialog{width:min(630px,calc(100vw - 32px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #d6b87866;border-radius:22px;background:#15271e;color:#e5e9df;box-shadow:0 25px 90px #0009;opacity:1;transform:translateY(0);transition:opacity .2s,transform .2s;overflow:hidden}
.account-dialog[open]{display:flex;flex-direction:column}
.account-dialog::backdrop{background:#020d08c9;transition:opacity .2s}
.account-dialog[data-motion=entering],.account-dialog[data-motion=closing]{opacity:0;transform:translateY(16px)}
.account-dialog[data-motion=entering]::backdrop,.account-dialog[data-motion=closing]::backdrop{opacity:0}
.account-heading{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:24px 26px 18px;flex:none}
.account-heading h2{font-family:Georgia,serif;font-size:28px;color:#e6c88f;margin:5px 0}
.account-heading>button{display:grid;place-items:center;flex:none;width:38px;height:38px;padding:0;font-family:Arial,sans-serif;font-size:26px;line-height:1;border-radius:50%;color:#e6c88f}
.account-body{padding:0 26px 24px;overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-color:#716746 #13221a;scrollbar-width:thin}
.account-body p{line-height:1.6}.account-body .note{font-size:12px;color:#b8c3b4;line-height:1.6}
.account-choice{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid #d9c08c35;border-radius:14px;margin:16px 0;cursor:pointer;background:#ffffff03}
.account-choice input{accent-color:#e2c48e;flex:none;width:18px;height:18px;margin:3px 0 0}
.account-choice strong{display:block;color:#eadbb8;font-weight:500;line-height:1.5}.account-choice small{display:block;margin-top:6px;font-size:12px;line-height:1.6;color:#c0cabb}
.account-footer{border-top:1px solid #d9c08c30;padding:16px 26px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;font-size:12px;color:#c0cabb}
.account-footer>div{display:flex;gap:8px}.account-footer button{padding:10px 16px;font-size:13px}
.account-dialog button:hover,.account-dialog button:focus-visible{color:#f0d69f;background:#ffffff0a}
.account-dialog button:focus-visible{outline:2px solid #e6c88f;outline-offset:2px}
.account-dialog button:disabled{opacity:.45;cursor:default}
.memory-entry{padding:16px;border:1px solid #d9c08c30;border-radius:14px;margin-bottom:14px;background:#0c1a12}
.memory-entry small{font-size:11px;color:#b7c1b0}.memory-quote{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}
.memory-origin{font-size:12px;color:#aebba7;overflow-wrap:anywhere}.memory-origin summary{cursor:pointer;color:#dfc794}.memory-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}.memory-actions button{font-size:12px;padding:6px 12px}
.memory-edit textarea{display:block;box-sizing:border-box;width:100%;min-height:110px;padding:10px;margin:8px 0 12px;background:#07140d;border:1px solid #e0c58b66;border-radius:8px;color:#e4e8de;font:inherit;resize:vertical}.memory-edit button{margin-right:8px;padding:8px 12px}
.checkout-progress{display:flex;justify-content:space-between;gap:8px;padding:0 26px 16px;font-size:12px;color:#a5b1a0}.checkout-progress span{border-bottom:2px solid #7a775a44;padding-bottom:8px;flex:1}.checkout-progress [aria-current=step]{color:#e6c88f;border-color:#e6c88f}
.checkout-terms{padding:16px 20px;background:#0c1a12;border-radius:14px;border:1px solid #d9c08c30;font-size:14px}.checkout-terms h3{color:#e6c88f;font-size:15px;margin:0}.checkout-terms p:last-child{margin-bottom:0}
.credit-packages{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:20px 0}
.credit-package{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:15px 4px;border-radius:12px;min-width:0;background:#0c1a12;color:#e6c88f}.credit-package strong{font-family:Georgia,serif;font-size:25px;font-weight:400;white-space:nowrap}.credit-package small{font-size:10px;color:#c4cdbf;white-space:nowrap}.credit-package[aria-pressed=true]{background:#e3c89419;border-color:#e6c88f;box-shadow:inset 0 0 0 1px #e6c88f}
.checkout-summary{padding:16px;background:#0c1a12;border-radius:14px}.checkout-summary>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;font-size:13px}.checkout-summary strong{font-size:24px;color:#e6c88f}.checkout-summary>div:first-child{align-items:center}.checkout-summary>div>span:last-child{text-align:right;color:#e7d3a9}
@media(max-width:600px){.account-dialog{max-height:calc(100dvh - 20px);width:calc(100vw - 20px);max-width:calc(100vw - 20px);border-radius:18px}.account-heading{padding:18px 18px 12px}.account-heading h2{font-size:24px}.account-body{padding:0 18px 18px}.account-footer{padding:12px 18px;align-items:flex-start}.account-footer>span{display:none}.account-footer>div{width:100%;justify-content:space-between}.account-footer button{padding:10px 12px}.checkout-progress{padding:0 18px 12px;font-size:10px}.credit-packages{grid-template-columns:repeat(3,1fr)}.memory-access{float:none;margin:0 0 10px}}
@media(prefers-reduced-motion:reduce){.account-dialog,.account-dialog::backdrop{transition:none;transform:none!important}}

.conversation-cue:empty{display:none}.conversation-cue{color:var(--gold,#e3c68f);font-size:.94rem;line-height:1.55;margin:14px 0}

/* A quiet, full-width download at the end of a completed reading. */
.download-reading{display:flex;align-items:center;gap:9px;width:100%;box-sizing:border-box;padding:10px 12px!important;border-radius:12px!important;min-height:42px;font-size:13px!important;color:#e2c590!important;background:#e2c59008!important;border:1px solid #c8ad7150!important;margin:0 0 8px}
.download-reading[hidden]{display:none}.download-reading:hover:enabled{background:#e2c59016!important;color:#ffe1a7!important}.download-reading svg{flex:none}.download-reading small{margin-left:auto;font-size:10px;letter-spacing:1px;color:#c5b18a}.download-reading-status{font-size:12px;line-height:1.5;color:#c5b18a;margin:0 0 12px}.download-reading-status:empty{display:none}
.history-detail-actions{flex-wrap:wrap}.history-dialog [data-history-download]{font-size:12px;min-width:0}
@media(max-width:700px){.history-detail-actions [data-history-delete]{margin-left:auto}.history-detail-actions [data-history-resume],.history-detail-actions [data-history-download]{flex:1 1 auto}}

/* Camera mode belongs to the zoom toolbar, including narrow screens. */
.scene-footer .table-navigation #table-2d{font:600 13px/1 system-ui;letter-spacing:.03em;color:#dfcca7}
.scene-footer .table-navigation #table-2d[aria-pressed=true]{background:#ddc18e;color:#14231b}
@media(max-width:600px){.table-navigation{width:100%;gap:2px}.table-navigation input{flex:1 1 36px;width:36px}.scene-footer .table-navigation button{width:34px;height:40px}.scene-footer .table-navigation #closeup{width:34px}.table-navigation output{width:42px;font-size:12px}}

/* Cards are rasterized by the GPU in screen coordinates at device resolution. */
.scene>#dealing{inset:0;width:100%;height:100%;transform:none;object-fit:fill;pointer-events:none;z-index:1}

.scene-stage>.cloth-extension{top:0;width:var(--room-width);height:100%;pointer-events:none}
.scene-stage>.cloth-extension[data-side=left]{left:calc(var(--room-left) - var(--room-width))}
.scene-stage>.cloth-extension[data-side=right]{left:calc(var(--room-left) + var(--room-width))}

/* Fine velvet follows the table plane, independently of the room photograph. */
.cloth-detail{position:absolute;top:0;pointer-events:none;transform-origin:0 0}
.cloth-fabric{position:absolute;top:0;transform-origin:0 0;background-repeat:repeat;background-size:160px 160px}

/* The topic is independent from the chosen spread. */
#topic-options{margin:0 0 15px}#topic-options[hidden]{display:none}
.topic-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px;color:#d9c39b;font-size:14px}
.topic-label small{color:#aab4a6;font-size:11px}
:is(#choose-topic,#choose-spread){display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:42px;padding:9px 12px;border:1px solid #c8ad7145;border-radius:9px;background:#17291f;color:#e4d0aa;text-align:left;font-size:13px}
:is(#choose-topic,#choose-spread):hover:enabled{background:#24392b;border-color:#d9bd82}:is(#choose-topic,#choose-spread):focus-visible{outline:2px solid #e8cd99;outline-offset:3px}
.topic-dialog{width:min(610px,calc(100vw - 32px))}.topic-dialog .spread-info-header h2{font-size:31px;max-width:440px}.topic-dialog .spread-info-close{font-size:26px;line-height:1}
.topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0 18px}
.topic-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0;min-height:155px;padding:18px 14px;border:1px solid #b99e6c40;border-radius:15px;background:#1a2d22;color:#e7d4b0;text-align:left;transition:background 160ms,border-color 160ms,transform 160ms}
.topic-card svg{width:28px;height:28px;margin-bottom:3px;fill:none;stroke:#dfc18a;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.topic-card strong{font:400 18px/1.15 Georgia,serif}.topic-card span{font-size:12px;line-height:1.45;color:#b8c1b2}
.topic-card:hover{background:#263d2d;border-color:#d8bd82;transform:translateY(-2px)}.topic-card[aria-pressed="true"]{background:#2d402d;border-color:#e7cc96;box-shadow:inset 0 0 0 1px #e7cc96}
.topic-card[aria-pressed="true"]::after{content:'✓';position:absolute;right:12px;top:10px;color:#f0d4a0;font-size:15px}
.topic-card[data-topic="ninguno"]{background:transparent;border-style:dashed}.topic-dialog .topic-footnote{font-size:12px;line-height:1.5;color:#aeb8a9;margin:0;text-align:center}
.topic-summary{font-size:12px;line-height:1.5;color:#d8c398;margin:12px 0 5px}.topic-summary[hidden]{display:none}
@media(max-width:600px){.topic-dialog{width:100%}.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.topic-card{min-height:135px;padding:15px}.topic-dialog .spread-info-header h2{font-size:27px}.topic-card strong{font-size:18px}}
@media(prefers-reduced-motion:reduce){.topic-card{transition:none}.topic-card:hover{transform:none}}

.topic-card{align-items:center;text-align:center;gap:8px;padding:13px 12px;min-height:202px}
.topic-card .topic-art{display:grid;place-items:center;width:100%;height:108px;margin-bottom:3px}
.topic-art svg{width:36px;height:36px}.topic-art img{display:block;width:108px;height:108px;object-fit:contain;border-radius:5px;box-shadow:0 3px 10px #0004}
.topic-card[aria-pressed="true"]::after{border-radius:50%;background:#213523;box-shadow:0 0 0 1px #ddc18e;padding:1px 4px;right:7px;top:7px}
@media(max-width:600px){.topic-card{min-height:176px;padding:10px;gap:6px}.topic-card .topic-art{height:84px}.topic-art img{width:84px;height:84px}.topic-card strong{font-size:17px}}

.scene:not([data-load-state="ready"]) .scene-backdrop-stage,
.scene:not([data-load-state="ready"]) .cloth-detail{visibility:hidden}

/* All topics at the same level; the header stays visible while the list scrolls. */
.topic-dialog{width:min(900px,calc(100vw - 32px))}
.topic-dialog .spread-info-header{padding:20px 24px 10px}
.topic-dialog .spread-info-header h2{max-width:none;font-size:30px}
.topic-dialog .spread-info-body>p{margin-bottom:10px}
.topic-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.topic-card{min-height:152px;padding:10px 12px;gap:5px}
.topic-card .topic-art{height:76px;margin-bottom:2px}
.topic-art img{width:76px;height:76px}.topic-card strong{font-size:18px}
.topic-card span{font-size:12px;line-height:1.35}
@media(min-width:601px) and (max-width:760px){.topic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.topic-dialog{width:100%}.topic-dialog .spread-info-header{padding:20px 20px 10px}.topic-dialog .spread-info-header h2{font-size:26px}.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topic-card{min-height:154px;padding:10px}.topic-card strong{font-size:17px}.topic-dialog .spread-info-body>p{font-size:14px}}



/* Mobile consultation: one shared scene, panels above accessible touch controls. */
@media(max-width:1000px){
 /* Keep GPU layers inside their scene and out of the focused mobile chat. */
 .scene{isolation:isolate}
 :root[data-mobile-keyboard] body[data-panel=chat] .scene,:root[data-mobile-keyboard] body[data-panel=chat] .scene *{visibility:hidden}
 :root{--mobile-safe:env(safe-area-inset-bottom,0px);--mobile-dock:calc(54px + var(--mobile-safe));--mobile-credit:0px;--mobile-chrome:calc(var(--mobile-dock) + var(--mobile-credit))}
 .layout{height:calc(100dvh - var(--mobile-chrome))}
 .mobile-dock{height:var(--mobile-dock);padding:6px max(10px,env(safe-area-inset-right)) calc(4px + var(--mobile-safe)) max(10px,env(safe-area-inset-left));bottom:var(--mobile-bottom,0px);gap:6px}
 .mobile-dock button{min-height:44px;min-width:0;padding:8px 6px;font-size:14px;touch-action:manipulation}
 #chat-preview-note{display:none}
 #mobile-credit-slot{display:none;bottom:calc(var(--mobile-bottom,0px) + var(--mobile-dock));height:var(--mobile-credit);padding:6px max(14px,env(safe-area-inset-right)) 6px max(14px,env(safe-area-inset-left))}
 #mobile-credit-slot .credit-balance{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:16px 3px 17px;column-gap:16px;row-gap:3px;margin:0}
 #mobile-credit-slot .credit-heading{display:contents}
 #mobile-credit-slot .credit-heading>span:first-child{grid-area:1/1}
 #mobile-credit-slot .credit-demo{grid-area:1/1;justify-self:end}
 #mobile-credit-slot #open-checkout{grid-area:1/2/4/3;min-height:44px;padding:8px 14px;align-self:center}
 #mobile-credit-slot .credit-track{grid-area:2/1}
 #mobile-credit-slot .credit-amounts{grid-area:3/1}
 .panel{bottom:calc(var(--mobile-bottom,0px) + var(--mobile-chrome));left:env(safe-area-inset-left,0px);right:env(safe-area-inset-right,0px)}
 .chat-panel,.cards-panel{height:calc(var(--mobile-height,100dvh) - var(--mobile-chrome) - max(6px,env(safe-area-inset-top)));max-height:none;padding:14px 16px}
 .chat-heading{gap:5px;padding-bottom:10px}
 .chat-heading .chat-settings-button,.chat-heading .close-panel{width:44px;height:44px}
 .chat-heading p{white-space:normal;font-size:11px}
 .chat-avatar{width:28px;height:28px;font-size:22px}
 .chat-conversation{padding-top:14px}
 .chat-composer{padding:10px;gap:8px}
 .chat-composer textarea{min-height:56px;max-height:100px;font-size:16px;resize:none}
 .chat-composer #send-question{width:44px;height:44px;flex:none}
 .chat-panel .chat-pending{font-size:11px;margin-top:6px}
 .cards-heading .close-panel{position:static;min-width:44px;min-height:44px;padding:0}
 .cloth-options div{gap:8px;justify-content:space-between}
 .cards-panel .cloth-options button{width:30px;height:30px;min-width:30px;padding:0;touch-action:manipulation}
 .cards-panel .cloth-options div{gap:14px;justify-content:flex-start;flex-wrap:wrap}
 .cards-panel #current-spread-info{width:44px;height:44px;min-width:44px;min-height:44px}
 .cards-panel .cards-content{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-padding-block:8px;padding:4px;scrollbar-width:thin}
 .cards-content>*{flex:none}
 .cards-panel .drawn-cards{flex:none;overflow:visible}
 .cards-panel #drawn-list{flex:none;overflow:visible}
 .cards-panel .cards-empty{flex:none}
 .cards-panel .cards-panel-bottom{margin-top:auto}
 .cards-panel :is(button,select):focus-visible{outline:2px solid #f0d4a0;outline-offset:2px}
 .cards-panel #history-cycle{width:100%;min-width:0;min-height:44px;font-size:16px;color-scheme:dark;background:#15231b;color:#eee9db;border:1px solid #c8b28580;border-radius:8px;margin-bottom:8px}
 .cards-panel .latest-card strong{overflow-wrap:anywhere}
 #open-spread-info,#listen-welcome,#change-visitor,.question-message-heading button,.history-detail>.history-back{min-height:44px}
 .scene>header{padding-top:max(16px,env(safe-area-inset-top));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
 .scene-footer{padding:10px max(10px,env(safe-area-inset-right)) 10px max(10px,env(safe-area-inset-left))}
 .scene-footer .table-navigation button,.scene-footer .table-navigation #closeup{width:44px;height:44px}
 .scene-footer #deal-status{min-height:1.4em}
 :root:has(#credit-balance[hidden]){--mobile-credit:0px}
 #mobile-credit-slot:has(#credit-balance[hidden]){display:none}
 :root[data-mobile-keyboard]{--mobile-credit:0px;--mobile-safe:0px}
 :root[data-mobile-keyboard] #mobile-credit-slot{display:none}
 :root[data-mobile-keyboard] .chat-heading{padding-bottom:4px}
 :root[data-mobile-keyboard] .chat-panel{padding-top:8px;padding-bottom:8px}
 :root[data-mobile-keyboard] .chat-panel{transition:none}
 :root[data-mobile-keyboard] .reading-action-grid,
 :root[data-mobile-keyboard] .conversation-latest,
 :root[data-mobile-keyboard] .general-reading-action,
 :root[data-mobile-keyboard] .chat-input-area>.add-physical-spread{display:none}
 /* Keep dictation and send reachable without increasing the compact composer height. */
 :root[data-mobile-keyboard] .composer-actions{flex-direction:row}
 :root[data-mobile-keyboard] .chat-input-area{padding-top:6px}
 :root[data-mobile-keyboard] .chat-composer textarea{height:48px;min-height:48px}
 :root[data-mobile-keyboard] .chat-pending{display:none}
}
@media(max-width:600px){
 .table-navigation{width:100%;gap:0;padding:2px 0;justify-content:space-evenly}
 .table-navigation #table-zoom{display:none}
 .table-navigation output{width:30px;font-size:11px}
}
@media(max-width:350px){
 .chat-panel,.cards-panel{padding-left:12px;padding-right:12px}
 .chat-avatar{display:none}
 .chat-heading{gap:3px}
 .chat-heading h2{font-size:22px}
 .cloth-options div{gap:4px}
}
@media(max-width:1000px) and (max-height:500px){
 .chat-panel,.cards-panel{height:calc(var(--mobile-height,100dvh) - var(--mobile-chrome) - 6px);padding-top:6px;padding-bottom:6px}
 .chat-heading{padding-bottom:4px}
 .chat-input-area{padding-top:4px}
 .chat-composer textarea{height:44px;min-height:44px}
 .chat-panel .chat-pending{display:none}
 .scene-footer #deal-status{font-size:12px}
 .scene-footer{padding-top:6px;padding-bottom:6px}
 .cards-panel .cloth-options{margin-top:4px}
}

/* Share an existing consultation; keep the action quiet beside its PDF. */
.reading-export-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.reading-export-actions[hidden]{display:none}.reading-export-actions .download-reading{min-width:0;width:100%;font-size:12px;line-height:1.35;padding:10px 9px;margin:0;justify-content:center}.reading-export-actions small{display:none}.reading-export-actions svg{flex:none}.history-detail-actions{flex-wrap:wrap}
.share-dialog{width:min(570px,calc(100vw - 32px))}.share-dialog form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.share-body{padding-bottom:8px}.share-body>p:first-child{margin-top:0;color:#c9d0c5;font-size:14px}.share-attachment{display:flex;gap:14px;align-items:center;border:1px solid #d9c08c30;background:#0c1a12;border-radius:14px;padding:14px}.share-file-icon{flex:none;display:grid;place-items:center;width:42px;height:52px;border:1px solid #b49b62;border-radius:5px;color:#e6c88f;font-size:11px;letter-spacing:.08em}.share-attachment strong{color:#e6c88f;font-size:14px;font-weight:500}.share-attachment p{font-size:12px;color:#bec8b7;margin:5px 0 0;overflow-wrap:anywhere;max-height:56px;overflow:auto}.share-includes{margin:9px 0 23px}.share-fields{display:grid;grid-template-columns:1fr 1.35fr;gap:15px}.share-body label{display:block;color:#e0d5bb;font-size:13px}.share-body input,.share-body textarea{display:block;box-sizing:border-box;width:100%;margin:8px 0 0;padding:12px;border:1px solid #82724d88;border-radius:10px;background:#0b1711;color:#ebeee7;font:inherit;font-size:15px;min-height:44px}.share-body input:focus,.share-body textarea:focus{outline:2px solid #dcbc7b;outline-offset:2px}.share-body input::placeholder,.share-body textarea::placeholder{color:#869380}.share-message-label{margin-top:20px}.share-message-label span{color:#a5b29e}.share-body textarea{resize:vertical;min-height:105px;max-height:230px;line-height:1.5}.share-message-count{display:block;text-align:right;font-size:11px;color:#a8b49f;margin-top:6px}.share-status{font-size:13px;color:#edd2a0;overflow-wrap:anywhere;margin:8px 0;min-height:0}.share-status:empty{display:none}.share-dialog [data-share-send]{background:#e2c590;color:#152219;border-color:#e2c590;min-width:124px;min-height:44px}.share-dialog [data-share-preview]{min-height:44px}.share-dialog [data-share-send]:hover,.share-dialog [data-share-send]:focus-visible{background:#263d30;color:#f0d69f}.share-dialog input:disabled,.share-dialog textarea:disabled{opacity:.7}
@media(max-width:600px){.share-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.share-dialog .account-heading{padding:18px 18px 12px}.share-dialog .account-heading h2{font-size:26px}.share-dialog .account-body{padding-left:18px;padding-right:18px}.share-fields{grid-template-columns:1fr;gap:14px}.share-dialog .account-footer{padding:12px 18px}.share-includes{margin-bottom:16px}.share-message-label{margin-top:15px}.share-body input,.share-body textarea{font-size:16px}}

/* Choose a method after the topic, then inspect it before committing. */
.spread-selector-dialog{width:min(920px,calc(100vw - 32px))}
.spread-selector-dialog[data-view="detail"]{width:min(760px,calc(100vw - 32px))}
.spread-selector-dialog [hidden]{display:none!important}
.spread-selector-dialog [data-info-title]:focus{outline:none}
.spread-selector-dialog .spread-info-body>p{max-width:68ch}
.spread-catalog-section+.spread-catalog-section{margin-top:26px}
.spread-catalog-section>h3{font:400 21px/1.3 Georgia,serif;margin:4px 0 13px;color:#ead2a4}
.spread-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.spread-catalog-card{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;padding:15px;border:1px solid #bda47040;border-radius:15px;background:#192e22;text-align:left;color:#e9d5af;transition:background 160ms,border-color 160ms}
.spread-catalog-card[data-recommended="true"]{border-color:#bda47085;background:#23362a}
.spread-catalog-card:hover{background:#2c4130;border-color:#e2c590}
.spread-card-tag{color:#d5bc88;font-size:10px;line-height:1.4;text-transform:uppercase;letter-spacing:.09em}
.spread-catalog-card[data-recommended="false"] .spread-card-tag{color:#a7b5a7}
.spread-catalog-card .spread-info-illustration{margin:0;padding:8px;border:0;background:#0c1d1473;border-radius:9px}
.spread-catalog-card .spread-info-illustration svg{height:90px}
.spread-catalog-card strong{font:400 21px/1.2 Georgia,serif}
.spread-card-quantity{font-size:12px;line-height:1.4;color:#d1bb91}
.spread-card-reason{font-size:13px;line-height:1.5;color:#c5cdbf}
.spread-card-link{margin-top:auto;padding-top:6px;font-size:12px;line-height:1.4;color:#ebd1a1}
.spread-info-back{min-height:44px;padding:10px 12px;border:1px solid #c8ad7145;border-radius:24px;background:transparent;color:#dec69b;font-size:14px;line-height:1.4}
.spread-info-back:hover{background:#273c31;border-color:#e2c590}
.spread-detail-intro{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:22px;align-items:center}
.spread-detail-intro .spread-info-illustration{margin:0;padding:18px 14px}
.spread-detail-intro .spread-info-illustration svg{height:195px}
.spread-selector-dialog [data-info-detail] h3{font:400 20px/1.3 Georgia,serif;color:#ecd2a0;margin:0 0 10px}
.spread-selector-dialog [data-info-detail] ul{margin:0;padding-left:20px;color:#cdd3c7;font-size:14px;line-height:1.6}
.spread-selector-dialog [data-info-detail] li+li{margin-top:8px}
.spread-selector-dialog [data-info-detail] li::marker{color:#cbb17b}
.spread-detail-section{margin:22px 0}
.spread-detail-section p,.spread-detail-example p{font-size:14px;line-height:1.65;color:#cdd3c7;margin:0 0 10px}
.spread-detail-example{border-left:2px solid #cfb580;background:#203428;padding:16px 18px;border-radius:0 12px 12px 0;margin:22px 0}
.spread-detail-example p{margin:0;color:#eee0c3}
@media(max-width:600px){
 .spread-selector-dialog,.spread-selector-dialog[data-view="detail"]{width:100%}
 .spread-catalog-grid{grid-template-columns:1fr;gap:12px}
 .spread-catalog-card{display:grid;grid-template-columns:86px minmax(0,1fr);gap:6px 12px;padding:14px}
 .spread-catalog-card .spread-info-illustration{grid-column:1;grid-row:1 / 6;align-self:center;padding:6px}
 .spread-catalog-card .spread-info-illustration svg{height:104px}
 .spread-catalog-card>:not(.spread-info-illustration){grid-column:2}
 .spread-catalog-card strong{font-size:20px}.spread-card-reason{font-size:13px}
 .spread-detail-intro{grid-template-columns:1fr;gap:20px}
 .spread-detail-intro .spread-info-illustration svg{height:155px}
 .spread-selector-dialog .spread-info-header h2{font-size:26px}
 .spread-selector-dialog .spread-info-footer{flex-wrap:nowrap;gap:8px}
 .spread-info-back{padding:10px 12px}
}
@media(prefers-reduced-motion:reduce){.spread-catalog-card{transition:none}}

/* The saved table owns one fixed viewport: zoom never creates nested scrollbars. */
.history-tabs{flex-wrap:wrap}
.history-content[data-view="layout"]{overflow:hidden;padding:2px 0 0;min-height:0}
.history-layout-view{height:100%;display:flex;flex-direction:column;min-height:0}
.history-layout-view>p{flex:none;font-size:11px;line-height:1.4;margin:6px 0 0;color:#aebaa7}
.history-layout-view>section{display:flex;flex-direction:column;flex:1;min-height:0}
.history-layout-view>section[hidden]{display:none}
.history-layout-toolbar{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.history-layout-toolbar h3{margin:0;color:#e2c590;font:400 19px/1.3 Georgia,serif}
.history-dialog .history-layout-toolbar button{min-height:40px;padding:7px 14px}
.history-layout-scroll{flex:1;min-height:0;overflow:auto;border:1px solid #b99e6c55;border-radius:12px;background:#0e241a;overscroll-behavior:contain;scrollbar-width:none}
.history-layout-scroll::-webkit-scrollbar{display:none}
.history-layout-scroll:focus-visible{outline:2px solid #e2c590;outline-offset:-3px}
.history-layout-scroll.is-expanded{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.history-layout-scroll.is-dragging{cursor:grabbing}
.history-layout-surface{width:100%;height:100%}
.history-layout-surface svg{display:block;width:100%;height:100%;pointer-events:none}
.history-layout-surface.is-expanded{width:200%;height:200%}
.history-layout-cycle{display:flex;flex:none;align-items:center;gap:10px;font-size:13px;margin-bottom:8px}
.history-layout-cycle select{font:inherit;color:#ead5af;background:#14271c;border:1px solid #b99e6c55;border-radius:8px;padding:7px}
@media(max-width:600px){.history-layout-toolbar{gap:8px}.history-dialog .history-layout-toolbar button{min-height:44px}}

/* Leave the saved spread room to breathe, including on short/mobile screens. */
.history-dialog[data-view="detail"][data-history-view="layout"] .history-preference{display:none}
.history-dialog[data-view="detail"][data-history-view="layout"] .history-heading{padding-top:16px;padding-bottom:16px}
.history-dialog[data-view="detail"][data-history-view="layout"] .history-detail>h3{-webkit-line-clamp:2;font-size:21px}
@media(max-width:700px){
 .history-dialog[data-view="detail"][data-history-view="layout"] .history-footer{display:none}
 .history-dialog[data-view="detail"][data-history-view="layout"] .history-heading{padding:12px 17px}
 .history-dialog[data-view="detail"][data-history-view="layout"] .history-detail>h3{font-size:18px}
 .history-dialog[data-view="detail"][data-history-view="layout"] .history-meta{margin-bottom:8px}
}

/* Prominent confirmation: 200 ms in, 2.5 s readable, 200 ms out. */
.share-success{position:absolute;inset:0;z-index:5;display:grid;place-items:center;padding:20px;background:#07130dc4;pointer-events:none;animation:share-success-fade 2.9s both}
.share-success[hidden]{display:none}
.share-success-card{box-sizing:border-box;width:min(290px,100%);padding:30px 20px 32px;border:1px solid #e2c59099;border-radius:20px;background:#192e22;box-shadow:0 16px 55px #0008;text-align:center;color:#f5e7cd}
.share-success-check{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 18px;border:1px solid #e2c590;border-radius:50%;background:#e2c590;color:#192e22;font:30px/1 system-ui}
.share-success-card strong{display:block;font-size:20px;font-weight:500;line-height:1.4}
@keyframes share-success-fade{0%,100%{opacity:0}7%,93%{opacity:1}}
@media(prefers-reduced-motion:reduce){.share-success{animation:none}}

/* Account actions stay in the panel on compact screens. */
.wallet-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;font-size:12px}.wallet-actions a{color:inherit}.wallet-actions button,.wallet-actions select{max-width:100%;font:inherit;color:inherit;background:#ffffff0c;border:1px solid #a8946c66;border-radius:6px;padding:7px}.wallet-note{font-size:11px;line-height:1.4;margin:8px 0}

.wallet-actions{min-width:0}.wallet-actions select{width:100%;min-width:0;text-overflow:ellipsis}.wallet-actions select option{background:#14271c;color:#eee5cf}.wallet-actions button{min-height:44px}.wallet-actions a{display:inline-flex;align-items:center;min-height:44px}

/* Local preview chooser, shared by both character profiles. */
.character-picker{display:flex;gap:5px;pointer-events:auto}.character-picker a{padding:9px 12px;border:1px solid #bda27566;border-radius:18px;background:#101b19e8;color:#ead8b5;text-decoration:none;font:14px system-ui;min-height:40px;display:flex;align-items:center}.character-picker a[aria-current]{background:#624032;border-color:#d0ad76}.character-picker a:focus-visible{outline:2px solid #efcf91;outline-offset:3px}.scene header:has(.character-picker){flex-wrap:wrap;gap:8px}.character-ambience{pointer-events:none}

/* Equal visible insets: the master logo includes 52/600 left and 20/188 top whitespace. */
.scene>header{inset:20px 20px auto;padding:0;align-items:flex-start}
.scene>header .aura-brand--table{transform:translate(-8.666667%,-10.638298%)}
.scene>header .character-picker a{min-height:44px}
@media(max-width:1000px){
 .scene>header{inset:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) auto max(16px,env(safe-area-inset-left));padding:0}
}

/* Method information remains operable at narrow widths and large text sizes. */
.spread-info-dialog .spread-info-close{width:44px;height:44px;min-width:44px;min-height:44px}
.spread-info-dialog .spread-info-back{min-height:44px}
.spread-info-body:focus-visible{outline:2px solid #f0d4a0;outline-offset:-3px}
@media(max-width:1000px){
 .spread-info-dialog{max-height:calc(var(--mobile-height,100dvh) - max(12px,env(safe-area-inset-top)));bottom:var(--mobile-bottom,0px)}
 .spread-info-header{padding:16px 16px 10px;gap:10px}
 .spread-info-body{padding-inline:16px;overflow-wrap:anywhere;scroll-padding-block:8px}
 .spread-info-footer{gap:8px}
}
@media(max-height:500px){
 .spread-info-header{padding-block:8px}.spread-info-eyebrow{margin-bottom:4px}
 .spread-info-footer{padding-block:8px}
}

/* Optional narrated camera mode, sharing the existing 2D table projection. */
.scene-footer .table-navigation #table-reading-follow{color:#dfcca7}
.scene-footer .table-navigation #table-reading-follow[aria-pressed=true]{background:#ddc18e;color:#14231b;box-shadow:0 0 0 2px #ddc18e30}
.scene-footer .table-navigation #table-reading-follow[data-reading-hint]{outline:2px solid #edcc91;outline-offset:3px;background:#ddc18e22}
.reading-follow-hint{position:fixed;z-index:30;box-sizing:border-box;display:flex;gap:6px;width:310px;max-width:calc(100vw - 24px);padding:14px 10px 14px 16px;border:1px solid #cbb17d;border-radius:14px;background:#192e23;color:#f0e7d5;box-shadow:0 8px 30px #0006;font-size:14px;line-height:1.5}
.reading-follow-hint[hidden]{display:none}
.reading-follow-hint strong{display:block;color:#edcc91;font-size:15px}
.reading-follow-hint p{margin:5px 0 0}
.reading-follow-hint button{display:grid;place-items:center;flex:none;width:44px;height:44px;margin:-8px -4px 0 0;padding:0;border:0;border-radius:10px;background:transparent;color:#edcc91;cursor:pointer}
.reading-follow-hint button:hover{background:#ffffff10}
.reading-follow-hint button:focus-visible{outline:2px solid #edcc91;outline-offset:-2px}
.reading-follow-hint button svg{width:18px;height:18px}
.reading-follow-hint-arrow{position:absolute;left:var(--hint-arrow-x);bottom:-7px;width:12px;height:12px;background:#192e23;border-right:1px solid #cbb17d;border-bottom:1px solid #cbb17d;transform:translateX(-50%) rotate(45deg)}
@media(max-width:350px){.scene-footer .table-navigation{flex-wrap:wrap;justify-content:center;max-width:100%}.table-navigation output{margin-right:2px}}

.reading-audio-controls .reading-replay-controls{grid-column:1/-1;display:grid;gap:5px;text-align:center}.reading-audio-controls .reading-replay-controls[hidden]{display:none}.reading-replay-controls small{font-size:11px;color:#afbbab;line-height:1.4}

/* Draft dictation shares the composer on desktop and mobile. */
.composer-actions{display:flex;flex-direction:column;gap:6px;flex:none}
.chat-composer .composer-actions button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;flex:none}
.chat-composer #send-question:enabled:is(:hover,:focus-visible){background:#273c31;color:#dfc38c}
.chat-composer #send-question:enabled:focus-visible{outline:2px solid #dfc38c;outline-offset:3px}
.chat-composer #dictate-question{position:relative;isolation:isolate;overflow:hidden;background:transparent;color:#dcc08d;border:1px solid #c9ae784d}
.chat-composer #dictate-question:hover:not(:disabled){background:#dcc08d18;border-color:#dcc08d}
.chat-composer #dictate-question:focus-visible{outline:2px solid #dcc08d;outline-offset:3px}
.chat-composer #dictate-question[aria-pressed="true"]{color:#ffe8dc;border-color:#e8a391;background:#8f453f70}
/* Decorative voice bars indicate live capture, never volume or transcription. */
#dictate-question svg{position:relative;z-index:1;pointer-events:none}
.dictation-stop,.dictation-waveform,#dictate-question[aria-pressed="true"] .dictation-mic{display:none}
#dictate-question[aria-pressed="true"] .dictation-stop{display:block}
#dictate-question[data-state="listening"] .dictation-stop{display:none}
#dictate-question[data-state="listening"] .dictation-waveform{display:block}
#dictate-question[data-state="listening"] .dictation-waveform rect{transform-box:fill-box;transform-origin:center;animation:dictation-bars 1.15s ease-in-out infinite}
#dictate-question[data-state="listening"] .dictation-waveform rect:nth-child(2){animation-duration:.95s;animation-delay:-.3s}
#dictate-question[data-state="listening"] .dictation-waveform rect:nth-child(3){animation-duration:1.3s;animation-delay:-.7s}
#dictate-question[data-state="listening"] .dictation-waveform rect:nth-child(4){animation-duration:1.05s;animation-delay:-.5s}
#dictate-question[data-state="listening"] .dictation-waveform rect:nth-child(5){animation-duration:1.25s;animation-delay:-.9s}
@keyframes dictation-bars{0%,100%{transform:scaleY(.35)}25%{transform:scaleY(.85)}55%{transform:scaleY(.5)}75%{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){#dictate-question[data-state="listening"] .dictation-waveform rect{animation:none}}
.dictation-status{margin:8px 0 0;color:#dec8a4;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.dictation-status[hidden]{display:none}

/* Progress and pause are always close to the ongoing conversation. */
.reading-journey{border-top:1px solid #c8a66b44;padding:14px 0 4px;margin:12px 0;color:var(--text,#eee4d5)}
.reading-journey .note{margin:7px 0 10px;line-height:1.5}
.reading-journey .reading-continuation-controls{margin-bottom:12px}
.reading-journey-dialog{box-sizing:border-box;width:min(510px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #c8a66b66;border-radius:16px;background:#191912;color:#eee4d5;padding:24px;box-shadow:0 20px 70px #0008}
.reading-journey-dialog::backdrop{background:#0009}
.reading-journey-dialog h2{font-family:Georgia,serif;font-weight:400;margin:0 0 16px;font-size:26px}
.reading-journey-dialog p{line-height:1.6;margin:12px 0}
.reading-journey-dialog .note{color:#c5c0b1;font-size:13px}
.reading-journey-dialog .reading-continuation-controls{margin:20px 0 0}
@media(max-width:600px){
 .reading-journey-dialog{padding:20px;font-size:14px}
 .reading-journey-dialog h2{font-size:24px;margin-bottom:12px}
 .reading-journey-dialog p{line-height:1.45;margin:10px 0}
 .reading-journey-dialog .reading-continuation-controls{margin-top:16px}
}
.reading-continuation-controls button{white-space:normal;overflow-wrap:anywhere;max-width:100%}

/* Replay and generated summary have separate explanatory labels. */
.reading-audio-controls .reading-replay-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}.reading-replay-controls>div{display:grid;gap:5px;min-width:0}.reading-replay-controls>div[hidden]{display:none}
@media(max-width:600px){.reading-audio-controls{--reading-action-height:54px}}

/* Let the conversation occupy the panel; occasional actions open on demand. */
/* Intrinsic labels share the spare width equally, so both main labels have equal visual padding. */
.reading-action-grid{display:grid;grid-template-columns:auto auto;column-gap:8px}
.reading-toolbar,.reading-secondary-toolbar{display:grid;grid-template-columns:subgrid;grid-column:1/-1;gap:8px;margin-bottom:8px;align-items:stretch}
.reading-toolbar button,.reading-secondary-toolbar button{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;height:44px;padding:8px;font-size:12px;line-height:1.35;border-radius:12px;white-space:nowrap}
.reading-secondary-toolbar>[data-replay-action]{min-width:0}
.reading-secondary-toolbar>[hidden]{display:none}
.reading-secondary-toolbar:has(>[data-replay-action][hidden])>#add-physical-spread,.reading-secondary-toolbar:has(>#add-physical-spread[hidden])>[data-replay-action]{grid-column:1/-1}
.reading-toolbar #listen-reading,.reading-secondary-toolbar #listen-reading-all{background:#182720e6;color:#eee9db;border-color:#c8b28550}
:is(#listen-reading,#listen-reading-all)::after{content:"No consume créditos";display:block;margin-top:3px;font:400 10px/1.2 system-ui;letter-spacing:0;color:inherit}
.reading-toolbar #listen-reading,.reading-secondary-toolbar #listen-reading-all{height:auto;min-height:48px}
.reading-toolbar #new-ritual{margin:0;background:transparent;color:#dfc38c;border-color:#bca27380}
.reading-secondary-toolbar #add-physical-spread{margin:0;background:#213629;color:#e5c88e;border-color:#998255}
.reading-toolbar :is(#listen-reading,#new-ritual):enabled:is(:hover,:focus-visible),.reading-secondary-toolbar :is(#listen-reading-all,#add-physical-spread):enabled:is(:hover,:focus-visible){background:#273c31;color:#efd6a3;border-color:#dfc38c}
.chat-input-area>#reading-voice-status{display:block;font-size:12px;line-height:1.5;color:#c7cbbd;margin-bottom:8px}
.chat-input-area>#reading-voice-status:empty{display:none}
.reading-toolbar :focus-visible,.reading-secondary-toolbar :focus-visible,.reading-utilities :focus-visible,[data-summary-action] button:focus-visible{outline:2px solid #edcc91;outline-offset:2px}
.reading-summary-inline:has(>[data-summary-action]:not([hidden])){margin:16px 0 8px}
[data-summary-action]{display:grid;gap:6px;text-align:center}
[data-summary-action][hidden]{display:none}
[data-summary-action] button{box-sizing:border-box;width:100%;min-height:44px;padding:8px 12px;font-size:13px;line-height:1.35;border:1px solid #dfc38c80;border-radius:25px;background:transparent;color:#dfc38c}
[data-summary-action] button:enabled:is(:hover,:focus-visible){background:#273c31;color:#efd6a3;border-color:#dfc38c}
#reading-summary-note{font-size:11px;line-height:1.4;color:#afbbab}
.reading-save-options{margin:8px 0 0;color:#dfc38c;font-size:13px}
.reading-save-options[hidden]{display:none}
.reading-save-options>summary{cursor:pointer;padding:8px 0;min-height:28px}
.reading-save-options .reading-export-actions{margin:8px 0}
.reading-utilities .feedback-banner{border-top:1px solid #c8b28533;margin-top:14px;padding-top:12px}
.feedback-banner .feedback-review-link{display:block;margin-top:10px;min-height:44px;padding:8px 12px;font-size:13px;line-height:1.35;text-decoration:none;border:1px solid #c8b28566;border-radius:10px;background:#213629;color:#eee9db}
.feedback-banner .feedback-review-link:enabled:is(:hover,:focus-visible){background:#273c31;color:#efd6a3;border-color:#dfc38c}

/* A compact header clears the face on portrait phones with spare table space. */
.scene.portrait-composition>header{inset:0 0 auto;display:grid;grid-template-columns:minmax(80px,1fr) auto 44px;grid-template-rows:44px;align-items:center;gap:8px;box-sizing:border-box;padding:max(10px,env(safe-area-inset-top)) 12px 10px;background:#102019;border-bottom:1px solid #c9ae7829}
.scene.portrait-composition>header .brand{grid-column:1;grid-row:1;width:110px;max-width:100%;margin:0}
.scene.portrait-composition>header .brand img{width:100%;height:auto}
.scene.portrait-composition>header .sound-toggle{grid-column:3;grid-row:1;position:static;justify-self:end;width:44px;height:44px;margin:0}
.scene.portrait-composition>header .character-picker{grid-column:2;grid-row:1;position:static;display:flex;gap:4px;transform:none;margin:0}
.scene.portrait-composition>header .character-picker a{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:0 9px;font-size:12px;line-height:1.2}
/* Finished methods expose their existing export actions beside the reading. */
.reading-completion{display:grid;gap:8px;margin:16px 0}
.reading-completion[hidden]{display:none}
.reading-completion .reading-export-actions{grid-template-columns:1fr;width:100%}
.reading-completion .download-reading,.reading-completion>[data-deepen-completed]{width:100%;min-height:44px;font-size:13px!important;border-radius:25px!important;justify-content:center;color:#dfc38c!important}
.reading-completion>[data-deepen-completed]{background:transparent;border-color:#dfc38c80}
.reading-completion button:enabled:is(:hover,:focus-visible){background:#273c31!important;color:#efd6a3!important;border-color:#dfc38c!important}
.reading-completion button:focus-visible{outline:2px solid #dfc38c;outline-offset:3px}
.chat-conversation:has(.reading-completion:not([hidden])) [data-completed-followup]{display:none}
.reading-journey:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center;padding:8px 0 0;margin:8px 0 4px}
.reading-journey>strong{font-size:14px}
.reading-journey>.reading-continuation-controls{grid-column:2;grid-row:1;margin:0}
.reading-journey>.reading-continuation-controls button{flex:none;min-height:44px;padding:8px 12px;font-size:13px;background:transparent}
.reading-journey:has(.reading-continuation-controls button:first-child:not([hidden]))>.reading-continuation-controls{grid-column:1/-1;grid-row:3}
.reading-journey>.note{grid-column:1/-1;grid-row:2;margin:0 0 6px;font-size:12px;line-height:1.45}
.reading-continuation-controls .continue-now{display:flex;align-items:center;justify-content:center;gap:10px;background:#dfc38c;color:#16251c;border-color:#efd6a3;font-weight:650}
.reading-continuation-controls .continue-now:enabled:is(:hover,:focus-visible){background:#273c31;color:#dfc38c;border-color:#dfc38c}
.reading-continuation-controls .continue-now:focus-visible{outline:2px solid #dfc38c;outline-offset:3px}
/* These short actions share one compact row; longer reading choices still wrap. */
:is([data-scheduled-clarification],[data-continuation-draw],[data-context-continuation]) button{flex:1 1 0;min-width:0;min-height:44px;padding:8px 10px;font-size:13px;line-height:1.25;white-space:nowrap;overflow-wrap:normal}
:is([data-scheduled-clarification],[data-continuation-draw],[data-context-continuation]) .continue-now{gap:6px}
.continue-now:enabled:is(:hover,:focus-visible) .continue-now-icon{animation:none;opacity:1}
.continue-now-icon{display:inline-block;font-size:13px;animation:continue-beacon 2s ease-in-out infinite}
@keyframes continue-beacon{0%,100%{opacity:1}50%{opacity:.3}}
@media(prefers-reduced-motion:reduce){.continue-now-icon{animation:none}}

#reading-error[data-code="insufficient_credits"] #reading-error-text{margin:0 0 12px}
#reading-error-purchase{min-height:44px;padding:10px 18px;background:#e5bd78;color:#20170f;border:1px solid #e5bd78;border-radius:9px;font-weight:700;max-width:100%}
#reading-error-purchase:hover{background:#f1cf94}

#reading-error[data-code="insufficient_credits"] .reading-error-notice + #retry-reading{margin-top:14px}

/* A same-consultation action stays with the explanation; 44px touch target. */
.chat-conversation > .draw-more-cards{display:block;width:100%;min-height:44px;margin:12px 0;padding:8px 12px;border:1px solid #c8b28566;border-radius:12px;background:#dcc08d12;color:#ead2a4;font-size:13px;line-height:1.4}
.chat-conversation > .draw-more-cards[hidden]{display:none}
.chat-conversation > .draw-more-cards:disabled{opacity:.55;cursor:default}

/* Account consent replaces the browser archive choice on account tables. */
.history-preference label[hidden],.account-choice[hidden]{display:none}
.account-history-summary{display:block;color:#b7b8a3;font-size:12px;font-weight:400;line-height:1.5;margin:4px 0 0 28px}
.account-history-settings{display:inline-block;color:#e6c98b;margin-top:8px;min-height:44px;align-content:center}

@media(max-width:700px){.account-history-summary{margin-left:0}}

/* A choice of questions is easier to scan as two compact full-width rows. */
.reading-continuation-controls[data-focus-choices] button{flex-basis:100%;font-size:13px;text-align:left}
.reading-continuation-controls button:is([data-draw-question],[data-reply-context]){flex:1 1 100%;min-height:44px;padding:10px 12px;font-size:13px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-align:left}
.reading-continuation-controls button[data-reply-context]{text-align:center}
.reading-continuation-controls button[data-write-own-question]{flex:1 1 100%;min-height:44px;padding:10px 12px;background:transparent;color:#dfc38c;border-color:#dfc38c80;font-size:13px;line-height:1.35;text-align:center;white-space:normal;overflow-wrap:normal}
.reading-continuation-controls button[data-write-own-question]:enabled:is(:hover,:focus-visible){background:#273c31;color:#efd6a3;border-color:#dfc38c}
.reading-continuation-controls button[data-write-own-question]:focus-visible{outline:2px solid #dfc38c;outline-offset:3px}

/* Keep the export disclosure close to the fixed composer. */
.chat-conversation:has(>.reading-utilities){padding-bottom:8px}

/* Siente is the permanent featured recommendation in the catalogue. */
.spread-catalog-card[data-featured="true"]{border:2px solid #dfc38c;padding:14px;background:linear-gradient(145deg,#354533,#23362a);box-shadow:0 0 0 1px #dfc38c18}
.spread-catalog-card[data-featured="true"] .spread-card-tag{align-self:flex-start;justify-self:start;max-width:100%;box-sizing:border-box;padding:5px 9px;border-radius:20px;background:#dfc38c;color:#17291e;font-size:11px;font-weight:700;letter-spacing:.025em;text-transform:none}
.spread-catalog-card[data-featured="true"]:hover{border-color:#f0d7a7;background:#354b35}

/* Separate history confirmations from the action row above. */
.history-detail > .history-confirm{margin-top:12px}

/* Conversation actions share a compact rhythm; keep the fixed toolbar separate. */
#reading-messages .reading-continuation-controls{gap:5px}
#reading-messages > .reading-continuation-controls:last-child{margin-bottom:5px}
.chat-conversation:has(>#reading-messages>.reading-continuation-controls:last-child)>.reading-summary-inline:has(>[data-summary-action]:not([hidden])){margin-top:5px}
.reading-continuation-controls[data-scheduled-clarification] button[data-draw-question]{background:transparent;color:#dfc38c;border-color:#dfc38c80;text-align:center;line-height:1.35}
.reading-continuation-controls[data-scheduled-clarification] button[data-draw-question]:enabled:is(:hover,:focus-visible){background:#273c31;color:#efd6a3;border-color:#dfc38c}
.reading-continuation-controls[data-scheduled-clarification] button[data-draw-question]:focus-visible{outline:2px solid #dfc38c;outline-offset:3px}

/* The same continuation stays available when a reply has no prepared proposal. */
.chat-conversation > .draw-more-cards{border-radius:25px;background:transparent;color:#dfc38c;border-color:#dfc38c80;text-align:center;line-height:1.35;margin-bottom:5px}
.chat-conversation > .draw-more-cards:enabled:is(:hover,:focus-visible){background:#273c31;color:#efd6a3;border-color:#dfc38c}
.chat-conversation > .draw-more-cards:focus-visible{outline:2px solid #dfc38c;outline-offset:3px}
.chat-conversation > .draw-more-cards:not([hidden]) + .reading-summary-inline:has(>[data-summary-action]:not([hidden])){margin-top:5px}

/* General reading: a deliberate entry alongside topics, with native focus. */
.topic-card[data-topic="general"]{grid-column:1/-1;display:grid;grid-template-columns:44px 1fr;column-gap:14px;row-gap:5px;min-height:90px;align-items:center;text-align:left;padding:16px 20px;border-color:#dfc28d80;background:#263d2d}
.topic-card[data-topic="general"] .topic-art{grid-row:1/3;width:44px;height:44px;margin:0}
.topic-card[data-topic="general"] strong{padding-right:20px}
.general-reading-action{margin:0 0 12px;padding:14px;border:1px solid #dfc28d55;border-radius:15px;background:#263d2d}
.general-reading-action p{margin:0 0 12px;color:#d8dccf;font:14px/1.5 system-ui}
.general-reading-action button{width:100%;min-height:44px;padding:12px 14px;background:#dfc28d;color:#202b45;border:0;border-radius:12px;font:16px/1.35 system-ui;cursor:pointer}
.general-reading-action button:hover:not(:disabled){background:#e9cfa1}.general-reading-action button:disabled{opacity:.55;cursor:default}
.general-reading-action button:focus-visible{outline:3px solid #dfc28d;outline-offset:3px}
.general-reading-action[hidden]{display:none}

/* Follow the newest content after layout; keep an explicit way back from older messages. */
.chat-conversation{overflow-anchor:none;scrollbar-color:#b29d79aa transparent}
.conversation-latest{flex:none;align-self:center;min-height:36px;padding:6px 16px;margin:4px 0 8px;border:1px solid #c8b28566;border-radius:18px;background:#233b2c;color:#ead2a4;font:inherit;font-size:13px;touch-action:manipulation}
.conversation-latest[hidden]{display:none}
.conversation-latest:hover{background:#304b39}
.conversation-latest:focus-visible{outline:2px solid #dfc38c;outline-offset:3px}

/* Navigation names stay fixed; ritual actions belong to the visible table. */
#mobile-ritual-action{display:none}
@media(max-width:1000px){#mobile-ritual-action:not([hidden]){display:block;position:absolute;left:50%;bottom:80px;transform:translateX(-50%);min-height:44px;padding:10px 18px;background:#ddc18e;color:#18261c;border-radius:12px;white-space:nowrap}}

/* Mobile conversation keeps occasional tools behind one explicit menu. */
#mobile-chat-options{display:none}
.mobile-chat-options-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:hidden;padding:16px;border:1px solid #c8b28570;border-radius:18px;background:#112018;color:#eee9db}
.mobile-chat-options-dialog[open]{display:flex;flex-direction:column}
.mobile-chat-options-dialog::backdrop{background:#030a07b8}
.mobile-chat-options-dialog header{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex:none}
.mobile-chat-options-dialog h2{font:22px Georgia,serif;margin:0;flex:1}
.mobile-chat-options-dialog header button{width:44px;height:44px;padding:0;flex:none;font-size:26px}
.mobile-chat-options-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:3px;scrollbar-width:thin}
.mobile-chat-options-list button{display:flex;flex-direction:column;align-items:flex-start;gap:10px;width:100%;min-width:0;min-height:130px;text-align:left;padding:14px 12px;font-size:14px;line-height:1.3;border-radius:12px;background:#1a2c21;border:1px solid #c8b28550;color:#eee9db;touch-action:manipulation}
.mobile-option-icon{width:30px;height:30px;flex:none;color:#dfc38c}
.mobile-option-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.mobile-chat-options-list .mobile-option-label{font-weight:500}
.mobile-option-description{display:block;color:#b5c0b0;font-size:11px;line-height:1.4;font-weight:400;white-space:normal}
#mobile-chat-shortcuts .mobile-option-icon,#mobile-chat-shortcuts .mobile-option-description{display:none}
#mobile-chat-shortcuts .mobile-option-copy{display:contents}
#mobile-chat-shortcuts .mobile-option-label{font-weight:400}
.mobile-chat-options-list button:disabled{opacity:.45}
.mobile-chat-options-list button[hidden]{display:none}
.mobile-chat-options-note{font-size:12px;line-height:1.5;color:#b5c0b0;margin:14px 0 0}
@media(max-width:1000px){
 #mobile-chat-options{display:block;box-sizing:border-box;height:36px;min-height:36px;padding:6px 10px;flex:none;font-size:13px;background:transparent;border:1px solid #c8b28550;border-radius:22px;color:#dfc38c}
 .chat-heading{gap:4px;padding-bottom:6px;margin-bottom:0}
 .chat-panel{padding-top:8px;padding-bottom:8px}
 .chat-heading h2{font-size:23px;line-height:1.1}
 .chat-heading p{white-space:nowrap;font-size:11px;line-height:1.2;margin-top:3px}
 .chat-heading .chat-avatar{flex:none}
 .chat-heading .presence-dot{flex:none;width:5px;height:5px;margin-left:0}
 .chat-heading:has(#mobile-chat-options)>.chat-settings-button,.chat-heading:has(#mobile-chat-options)>#open-table-guide{display:none}
 .chat-conversation{padding-top:8px}
 :root:has(#mobile-chat-options) :is(#visitor-known,.reading-action-grid,.reading-audio-controls,.reading-save-options,.chat-input-area>#reading-voice-status,#method-options){display:none}
}

@media(max-width:1000px){.scene>header{inset:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) auto max(8px,env(safe-area-inset-left));padding:0}.scene.portrait-composition>header{inset:0 0 auto;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) 6px max(8px,env(safe-area-inset-left))}.cards-panel .cloth-options legend{margin-bottom:5px}}

@media(max-width:1000px){
 .scene>header .sound-toggle{width:40px;height:40px;min-height:40px}
 .scene>header .character-picker a{min-height:40px;padding:7px 12px;box-sizing:border-box;font-size:14px;line-height:20px;border-radius:22px}
 .scene.portrait-composition>header{grid-template-columns:minmax(80px,1fr) auto 40px;grid-template-rows:40px}
 .scene.portrait-composition>header .character-picker a{min-height:40px;padding:0 9px;font-size:12px}
}
#mobile-response-status{display:none}
@media(max-width:1000px){#mobile-response-status:not([hidden]){display:block;position:absolute;left:50%;bottom:112px;transform:translateX(-50%);max-width:calc(100% - 32px);box-sizing:border-box;margin:0;padding:8px 14px;border:1px solid #c8b28570;border-radius:16px;background:#102019ed;color:#e8d4ae;text-align:center;font-size:13px;line-height:1.4;pointer-events:none}}

@media(max-width:1000px){.cards-panel{padding-top:8px}.cards-heading h2{margin-top:0}}

@media(max-width:1000px){.mobile-dock #mobile-action,.mobile-dock [data-open-panel]{border:1px solid #dfc28d66;border-radius:22px}.mobile-dock [data-open-panel][aria-expanded=true],body[data-panel=""] .mobile-dock #mobile-action{border-color:#ddc18e}}

@media(max-width:1000px){#scene-loading .aura-loading{width:56px;height:56px}}

@media(max-width:1000px){
 .cards-heading .close-panel,#chat-panel .chat-heading button.close-panel{position:relative;inset:auto;display:grid;place-items:center;border:1px solid #dfc28d66;border-radius:50%;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;font-size:0;line-height:0}
 .cards-heading .close-panel::before,.chat-heading .close-panel::before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:16px;height:16px;background:currentColor;clip-path:polygon(10% 0,50% 40%,90% 0,100% 10%,60% 50%,100% 90%,90% 100%,50% 60%,10% 100%,0 90%,40% 50%,0 10%)}
}

@media(max-width:1000px){
 .mobile-dock a.consultation-exit-mobile{border-radius:22px}
 .chat-input-area{border-top:0;background:#0b1712;padding-top:9px;box-shadow:none}
 .chat-composer{border-color:#dfc28d99;background:#08120d}
}

@media(max-width:1000px){#credit-balance #open-checkout{border-radius:22px}}

@media(max-width:1000px){
 .cards-panel :is(#history-cycle,.wallet-actions select){appearance:none;-webkit-appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 5 5 5 5-5' fill='none' stroke='%23dfc28d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:14px 14px}
}
@media(max-width:1000px) and (forced-colors:active){.cards-panel :is(#history-cycle,.wallet-actions select){appearance:auto;-webkit-appearance:auto;background-image:none}}

/* One visible seam: do not double the panel border with the dock border. */
@media(max-width:1000px){body[data-panel=chat] .mobile-dock,body[data-panel=cards] .mobile-dock{border-top-color:transparent}}

@media(max-width:1000px){
 .scene.portrait-composition>header{display:flex;justify-content:space-between;inset:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) auto max(8px,env(safe-area-inset-left));padding:0;background:transparent;border-bottom:0}
 .scene-footer{background:none}
 .chat-composer textarea{padding:0}
 #retry-question{min-height:44px;padding:8px 16px;border-radius:22px;margin-top:8px}
 #mobile-response-status:not([hidden]){padding:10px 18px;font-size:14px;border-color:#dfc28db3;background:#102019f5}
 #mobile-response-status::after{content:"";display:inline-block;vertical-align:middle;width:5px;height:5px;border-radius:50%;background:currentColor;box-shadow:8px 0 currentColor,16px 0 currentColor;margin-left:10px;margin-right:16px;animation:mobile-response-dots 1.2s ease-in-out infinite}
}
@keyframes mobile-response-dots{0%,60%,100%{transform:translateY(0);box-shadow:8px 0 currentColor,16px 0 currentColor}15%{transform:translateY(-3px);box-shadow:8px 3px currentColor,16px 3px currentColor}30%{transform:translateY(0);box-shadow:8px -3px currentColor,16px 0 currentColor}45%{transform:translateY(0);box-shadow:8px 0 currentColor,16px -3px currentColor}}
@media(prefers-reduced-motion:reduce){#mobile-response-status::after{animation:none}}

/* Desktop: align the writing area with the same 12px inset on every side. */
@media(min-width:1001px){.chat-composer textarea{align-self:stretch;height:auto;padding:0}}

/* Mobile waiting stays over the cloth; audio failures remain actionable. */
@media(max-width:1000px){
 .scene>header,.scene.portrait-composition>header{background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:0}
 .scene>header::before,.scene>header::after{display:none}
 #mobile-response-status:not([hidden]){top:var(--table-wait-center,70%);bottom:auto;transform:translate(-50%,-50%)}
 :root:has(#mobile-chat-options) .chat-input-area>#reading-voice-status[data-code]:not([data-code=""]){display:block;margin:8px 0;font-size:13px;line-height:1.4}
 :root:has(#mobile-chat-options) .chat-input-area:has(>#reading-voice-status[data-code]:not([data-code=""])) .reading-action-grid{display:block}
 :root:has(#mobile-chat-options) .chat-input-area:has(>#reading-voice-status[data-code]:not([data-code=""])) :is(.reading-secondary-toolbar,#new-ritual){display:none}
}

/* Completion actions stay in the scrollable conversation on phones. */
@media(max-width:1000px){
 .reading-completion{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
 .reading-completion>[data-summary-action]:not([hidden]),.reading-completion-audio{display:contents}
 .reading-completion [data-summary-action]>button{grid-column:1;grid-row:1}
 .reading-completion>.reading-export-actions{grid-column:2;grid-row:1;display:flex;align-items:stretch}
 .reading-completion .reading-export-actions[hidden]{display:none}
 .reading-completion-audio>[data-replay-action]:not([hidden]){display:contents}
 .reading-completion-audio>#listen-reading{grid-column:1;grid-row:2}
 .reading-completion-audio [data-replay-action]>button{grid-column:2;grid-row:2}
 .reading-completion-audio>#new-ritual{grid-column:1/-1;grid-row:3}
 .reading-completion>[data-deepen-completed]{grid-column:1/-1;grid-row:4}
 .reading-completion[data-method="si-no"]>[data-deepen-completed]{display:none}
 .reading-completion #download-reading-status{grid-column:1/-1}
 .reading-completion button,.reading-completion .download-reading,.reading-completion>[data-deepen-completed]{box-sizing:border-box;min-width:0;width:100%;min-height:40px;padding:6px 8px;margin:0;font-size:12px!important;line-height:1.25;border-radius:22px!important;background:transparent;color:#dfc38c}
 .reading-completion .download-reading svg{width:15px;height:15px}
 .reading-completion #new-ritual{background:#dfc28d;color:#18261c}
}

@media(max-width:1000px){
 .chat-composer #send-question[data-mode="send"]{display:grid;place-items:center;position:relative;font-size:0;line-height:0;padding:0}
 .chat-composer #send-question[data-mode="send"]::before{content:"";display:block;position:absolute;inset:0;margin:auto;width:23px;height:23px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20V4M5 11l7-7 7 7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
}

/* Direct preparation shortcuts: one compact row below the mobile chat heading. */
#mobile-chat-shortcuts{display:none}
@media(max-width:1000px){
 #mobile-chat-shortcuts{display:flex;gap:8px;flex:none;margin:12px 0 6px;padding:0;align-items:center}
 #mobile-chat-shortcuts button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:36px;height:36px;width:auto;margin:0;padding:6px 12px;border:1px solid #c8b28560;border-radius:22px;background:transparent;color:#dfc38c;font-size:13px;line-height:1.2;white-space:nowrap}
 #mobile-chat-shortcuts button[aria-haspopup="dialog"]::after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
 #mobile-chat-shortcuts button:enabled:is(:hover,:focus-visible){background:#dfc28d18;border-color:#dfc28d}
 #mobile-chat-shortcuts button:focus-visible{outline:2px solid #dfc28d;outline-offset:2px}
 #mobile-chat-shortcuts button:disabled{opacity:.45;cursor:default}
}

/* Keep the wait state in the navigation, never over the spread. */
@media(max-width:1000px){




}


#mobile-chat-shortcuts[hidden]{display:none}

/* Waiting shares the action-caption row below the table, outside card geometry. */
@media(max-width:1000px){
 .scene-footer #deal-status[hidden]{display:none}
 .scene-footer #mobile-response-status:not([hidden]){display:flex;position:static;inset:auto;transform:none;flex:1 0 100%;align-items:center;justify-content:center;width:100%;max-width:none;min-height:1.4em;box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#fff;font-size:clamp(12px,3.3vw,14px);line-height:1.4;text-align:center;white-space:nowrap;pointer-events:none}
 .scene-footer #mobile-response-status[data-retry=true]{pointer-events:auto;cursor:pointer;min-height:44px;text-decoration:underline;text-underline-offset:4px}
 .scene-footer #mobile-response-status[data-retry=true]::after{display:none}
}

/* Keep all three chat actions on one line on narrow phones. */
@media(max-width:360px){#mobile-chat-shortcuts{gap:6px}#mobile-chat-shortcuts button{font-size:12px;padding-inline:8px;gap:5px}}

@media(max-width:1000px){
 .scene-footer .conversation-cue:not(:empty){flex:1 0 100%;max-height:5.8em;overflow-y:auto;overscroll-behavior:contain;margin:0;padding:2px 8px;color:#efd08c;font-size:14px;line-height:1.4;text-align:center;overflow-wrap:anywhere;pointer-events:auto}
 .scene-footer .conversation-cue:not(:empty)~#mobile-response-status:not([data-retry=true]),.scene-footer .conversation-cue:not(:empty)~#deal-status{display:none}
}

/* Direct own-deck entry, shared by desktop and mobile. */
:root:has(#physical-chat-entry) #add-physical-spread{display:none}
#physical-chat-entry{flex:none;margin:10px 0 8px}
#physical-chat-entry[hidden]{display:none}
#physical-chat-entry button{box-sizing:border-box;width:100%;min-height:40px;padding:8px 14px;border:1px solid #c8b28560;border-radius:12px;background:#213629;color:#e5c88e;font-size:13px;line-height:1.4}
#physical-chat-entry button:enabled:is(:hover,:focus-visible){background:#273c31;border-color:#dfc38c}
#physical-chat-entry button:focus-visible{outline:2px solid #dfc28d;outline-offset:2px}
@media(max-width:1000px){#physical-chat-entry{margin:0 0 8px}}

/* Preparation fills one row; the own-deck action fills the row below. */
#physical-chat-entry [data-action="add-physical-spread"]{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.physical-deck-icon{width:21px;height:23px;flex:none}
@media(max-width:1000px){
 #mobile-chat-shortcuts button{flex:1 1 auto;min-height:40px;height:40px}
 #physical-chat-entry{margin:0 0 8px}
 #mobile-chat-shortcuts[hidden]+#physical-chat-entry{margin-top:12px}
 #physical-chat-entry button{width:100%;min-height:42px;white-space:nowrap;border-radius:22px;padding:8px 12px;line-height:1.2}
 #physical-chat-entry [data-action="add-physical-spread"]{border-color:#dfc28d90;background:#2b3c2b}
 #physical-chat-entry .physical-deck-icon{transform-origin:50% 75%}
 /* Do not spend the invitation while the mobile Chat panel is hidden. */
 body[data-panel="chat"] #physical-chat-entry [data-action="add-physical-spread"]:enabled{animation:physical-deck-glow 4.8s ease-in-out .25s infinite}
 body[data-panel="chat"] #physical-chat-entry button:enabled .physical-deck-icon{animation:physical-deck-invite 4.8s ease-in-out .25s infinite}
}
/* The desktop chat also keeps the own-deck icon alive while available. */
@media(min-width:1001px){
 #physical-chat-entry button:enabled .physical-deck-icon{transform-origin:50% 75%;animation:physical-deck-invite 4.8s ease-in-out .25s infinite}
}
@keyframes physical-deck-glow{0%,44%,100%{background-color:#2b3c2b;box-shadow:0 0 0 0 #dfc28d00}18%{background-color:#4a5133;box-shadow:0 0 12px 1px #dfc28d55}}
@keyframes physical-deck-invite{0%,44%,100%{transform:translateY(0) rotate(0deg) scale(1)}15%{transform:translateY(-2px) rotate(-14deg) scale(1.15)}29%{transform:translateY(-1px) rotate(8deg) scale(1.08)}}
@media(prefers-reduced-motion:reduce){#physical-chat-entry [data-action="add-physical-spread"],#physical-chat-entry .physical-deck-icon{animation:none!important}}

/* Keep the summary cost with its action, and completion labels consistent. */
#summarize-reading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
#summarize-reading #reading-summary-note{display:block;margin:0;color:inherit;font:400 10px/1.2 system-ui;letter-spacing:0}
.mobile-reading-actions[hidden]{display:none!important}
.table-reading-actions{flex:1 0 100%;width:100%;display:none;grid-template-columns:repeat(2,minmax(0,250px));justify-content:center;gap:8px;pointer-events:none;animation:table-actions-enter .28s ease both;transition:opacity .24s ease,transform .24s ease}
.table-reading-actions[hidden]{display:none!important}
.table-reading-actions[data-leaving=true]{animation:table-actions-exit .24s ease forwards;pointer-events:none}
.scene-footer .table-reading-actions button{box-sizing:border-box;width:100%;min-width:0;min-height:50px;padding:9px 10px;border:1px solid #dfc38c80;border-radius:22px;background:#112018ed;color:#eee9db;font:400 14px/1.25 system-ui;text-align:center;white-space:normal;pointer-events:auto;touch-action:manipulation}
.scene-footer .table-reading-actions small{display:block;margin-top:3px;font:400 10px/1.2 system-ui;color:inherit}
.table-reading-actions[inert]{pointer-events:none}.table-reading-actions[inert] button{pointer-events:none}
@keyframes table-actions-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes table-actions-exit{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(5px)}}
@media(max-width:1000px){
 .scene-footer:has(>.table-reading-actions:not([hidden])){flex-wrap:wrap}
 .table-reading-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .scene-footer .table-reading-actions button{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-width:0;min-height:48px;padding:7px 10px;border:2px solid #dfc38c;border-radius:25px;background:transparent;color:#dfc38c;font:400 13px/1.25 system-ui;text-align:center;white-space:normal;pointer-events:auto;touch-action:manipulation}
.scene-footer .table-reading-actions small{display:block;margin-top:3px;font:400 10px/1.2 system-ui;color:inherit}
.scene-footer .table-reading-actions button:enabled:is(:hover,:focus-visible){background:transparent;color:#dfc38c;border-color:#dfc38c}
.scene-footer .table-reading-actions button:focus-visible{outline:2px solid #dfc38c;outline-offset:3px}
.scene-footer .table-reading-actions button{position:relative}
.scene-footer .table-reading-actions button:enabled{box-shadow:0 0 8px #dfc38c4d}
.scene-footer .table-reading-actions button::after{content:"";position:absolute;inset:-2px;border:2px solid #dfc38c;border-radius:inherit;opacity:0;pointer-events:none}
}
/* With side columns, Chat owns the actions; keep its labelled buttons equal. */
@media(min-width:1001px){
 .reading-toolbar button,.reading-secondary-toolbar button{border-radius:25px}
 .chat-panel :is(#summarize-reading,#listen-reading,#listen-reading-all,#new-ritual){box-sizing:border-box;height:44px;min-height:44px;padding:4px 10px;border-radius:25px;font-size:13px;line-height:1.35}
}
@keyframes table-action-halo{0%,100%{box-shadow:0 0 6px #dfc38c26}40%{box-shadow:0 0 12px 2px #dfc38ca6,0 0 22px 3px #dfc38c66}}
@keyframes table-action-ring{0%{inset:-2px;opacity:0}20%{opacity:.75}65%,100%{inset:-7px;opacity:0}}
@media(max-width:1000px) and (prefers-reduced-motion:no-preference){
 body[data-panel=""] .table-reading-actions:not([hidden]):not([inert]) button:enabled{animation:table-action-halo 3.6s ease-in-out infinite}
 body[data-panel=""] .table-reading-actions:not([hidden]):not([inert]) button:enabled::after{animation:table-action-ring 3.6s ease-out infinite}
}

@media(prefers-reduced-motion:reduce){.table-reading-actions{animation:none;transition:none}}
.reading-mobile-playback{display:none}
@media(max-width:1000px){
 .reading-mobile-playback:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
 .reading-mobile-playback>[data-replay-action]:not([hidden]){display:contents}
 .reading-mobile-playback button{min-width:0;width:100%;min-height:44px;padding:8px;font:400 13px/1.25 system-ui;white-space:normal;border-radius:22px;background:transparent;color:#dfc38c}
 .mobile-reading-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
 .chat-conversation:has(>.reading-mobile-playback:not([hidden]))>.mobile-reading-actions:not([hidden]){margin-bottom:8px}
 .mobile-reading-actions:not([hidden])~.reading-mobile-playback:not([hidden]){margin-top:8px}
 .mobile-reading-actions button{min-width:0;min-height:48px;padding:8px 10px;font:400 13px/1.25 system-ui;text-align:center;white-space:normal}
 .mobile-reading-actions small{display:block;margin-top:3px;font:400 10px/1.2 system-ui;color:inherit}
 .mobile-reading-actions [data-question-siente]{grid-column:1;grid-row:2}
 .mobile-reading-actions [data-restart-siente]{grid-column:2;grid-row:2}
 .mobile-reading-action-source{display:none!important}
}
@media(max-width:1000px){
 .reading-completion :is(button,#new-ritual,.download-reading){min-height:44px;font-size:13px!important;line-height:1.25;font-weight:400}
}

/* Retired hints may still be created by a previously cached scroll module. */
.conversation-scroll-hint{display:none!important}

/* Once Mesa offers continuation, keep only summary and restart in mobile Chat. */
@media(max-width:1000px){
 :root:has(.table-reading-actions) .mobile-reading-actions>:is([data-continue-siente],[data-question-siente]){display:none}
 :root:has(.table-reading-actions) .mobile-reading-actions>[data-summarize-siente]{grid-column:1;grid-row:1}
 :root:has(.table-reading-actions) .mobile-reading-actions>[data-restart-siente]{grid-column:2;grid-row:1}
}


/* Two 15s hints (1.5s fades included), then 180s quiet; stable footer space. */
@keyframes deck-note-cycle{0%{opacity:0;visibility:visible}0.714286%,6.428571%{opacity:1;visibility:visible}7.142857%,100%{opacity:0;visibility:hidden}}
@keyframes deck-note-cycle-still{0%,7.142856%{opacity:1;visibility:visible}7.142857%,100%{opacity:0;visibility:hidden}}
@media(max-width:1000px){
 .scene-footer #deal-status[data-recurring-note]{display:grid}
 .scene-footer #deal-status[data-recurring-note]>span{grid-area:1/1;width:100%;max-width:none;font:inherit;opacity:0;visibility:hidden;animation:deck-note-cycle 210s ease-in-out infinite}
 .scene-footer #deal-status[data-recurring-note]>span+span{animation-delay:15s}
 body[data-panel]:not([data-panel=""]) #deal-status[data-recurring-note]>span,#deal-status[data-recurring-note][data-note-paused]>span,#deal-status[data-recurring-note][hidden]>span{animation-play-state:paused}
}
@media(max-width:1000px) and (prefers-reduced-motion:reduce){
 .scene-footer #deal-status[data-recurring-note]>span{animation-name:deck-note-cycle-still;animation-timing-function:step-end}
}

/* Shared action geometry inside the consultation. Card tiles and table hit
   targets keep their content-driven shapes; icon-only dismissals stay circular. */
:root{--mesa-action-height:44px;--mesa-action-radius:25px}
body :is(#consultation-settings,dialog) button:not(:where(
 .topic-card,.spread-catalog-card,.history-entry,.history-card,.history-layout-card,
 .physical-result,.physical-slot,.physical-position-row,.mobile-chat-options-list button,
 [aria-label^="Cerrar"],.guide-close,.credit-prompt-close,[data-onboarding-close],
 .history-card-navigation button,.spread-info-browse button
)),
body :is(.visitor-form button,.visitor-known button,.question-message-heading button,
 .reading-availability button,.extend-spread button,.general-reading-action button,.wallet-actions button,
 .feedback-review-link,#check-reading,#demo-question,#edit-question,#retry-reading,#retry-question,
 #reading-error-purchase,#listen-welcome,#begin-ritual,#choose-left,#choose-right,#recycle-deck,
 #retry-scene,#open-spread-info,#choose-topic,#choose-spread,.add-physical-spread,
 #physical-chat-entry button,#mobile-chat-shortcuts button){
 box-sizing:border-box;min-height:var(--mesa-action-height);height:auto;
 border-radius:var(--mesa-action-radius);padding:4px 14px;
 font-size:13px;line-height:1.35;white-space:normal;
}
body :is(#consultation-settings,dialog) :is(button[aria-label^="Cerrar"],.guide-close,.credit-prompt-close,[data-onboarding-close],.history-card-navigation button,.spread-info-browse button){
 box-sizing:border-box;flex-shrink:0;width:44px;height:44px;min-height:44px;
 border-radius:50%;padding:0;
}
/* Larger choices contain descriptions and retain the height needed to read them. */
body :is(.mobile-chat-options-list button,.topic-card,.spread-catalog-card,.mobile-reading-actions button,.reading-mobile-playback button){border-radius:var(--mesa-action-radius)}
body .download-reading,body .reading-completion button{border-radius:var(--mesa-action-radius)!important}
body .download-reading{min-height:var(--mesa-action-height);padding:4px 14px!important}
@media(max-width:1000px){body #mobile-chat-shortcuts button{padding:4px 8px}}

/* Keep short footer labels together even at the narrowest mobile width. */
body #consultation-tour .guide-footer button{padding:4px 8px;white-space:nowrap}
body #consultation-history .history-footer button{flex-shrink:0;white-space:nowrap}
