:root{--page:#edf0f5;--paper:#fff;--ink:#293d57;--muted:#69788c;--line:#d4dde9;--accent:#3a63a0;--soft:#e8eef7;--gold:#a98a48;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Kaku Gothic ProN",sans-serif;color:var(--ink);background:var(--page)}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);border-radius:9px;padding:11px 17px;font-size:14px}button:hover{border-color:var(--accent);background:var(--soft)}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #c1a15a;outline-offset:3px}.wrap{max-width:1080px;margin:auto;padding:0 30px}header{display:flex;justify-content:space-between;align-items:center;padding:26px 0;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;color:var(--accent);text-decoration:none;font-size:18px;letter-spacing:.15em}.brand small{display:block;font-size:11px;letter-spacing:.23em;margin-top:5px;color:var(--muted)}.sigil{font-size:45px;color:var(--gold)}nav{display:flex;gap:6px}nav button{border-color:transparent;background:transparent}nav .active,.switch .active{background:var(--accent);color:white}#count{font-size:12px;margin-left:5px}main{padding:32px 0 50px}.heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:25px}.eyebrow{font-size:11px;letter-spacing:.18em;color:var(--gold);margin:0 0 10px}h1{font-family:serif;font-weight:500;font-size:29px;margin:0;letter-spacing:.06em}h2{font-size:15px;font-weight:600;margin:0}.panel{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:22px}.question{border-top:3px solid var(--accent);margin-bottom:28px}label{display:block;font-size:14px;font-weight:600}textarea,input[type=text]{width:100%;background:transparent;border:1px solid var(--line);color:var(--ink);border-radius:7px;padding:12px;font-size:16px}textarea{resize:vertical;line-height:1.6}#question{border:0;padding:12px 0 5px;font-size:20px;min-height:76px}textarea::placeholder,input::placeholder{color:#919ca9}.meta{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);margin-top:8px}#saveStatus{color:var(--accent)}.reading-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.section-title span{font-size:12px;color:var(--muted)}.throw{margin-bottom:14px;background:white;border:1px solid var(--line);border-radius:13px;padding:20px}.throw-top{display:flex;gap:12px;align-items:center;margin-bottom:18px}.throw-number{font-size:12px;color:var(--gold);letter-spacing:.1em;white-space:nowrap}.throw-top input{padding:8px 10px;font-size:14px}.dice-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.die{border:1px solid var(--line);border-radius:10px;padding:13px 7px;text-align:center;min-height:126px;background:#f9fafc;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}.die.selected{border-color:#7e9ac1;background:var(--soft)}.die.locked{background:#fff;border-color:#b8c7db}.die .symbol{font-family:"Apple Symbols","Segoe UI Symbol",serif;font-size:38px;line-height:1.1;color:var(--accent)}.die .kind{font-size:11px;letter-spacing:.12em;color:var(--muted)}.die .name{font-size:14px}.die .hint{font-size:11px;color:var(--muted)}.die input{accent-color:var(--accent)}.throw-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px}.throw-controls select{max-width:145px;border:1px solid var(--line);border-radius:7px;background:white;padding:9px;font-size:12px;color:var(--ink)}.roll{background:var(--accent);color:#fff;border-color:var(--accent);min-width:140px}.roll:hover{background:#2d5084;color:white}.roll-time{font-size:11px;color:var(--muted);margin:12px 0 0}.add{width:100%;border-style:dashed;background:transparent}.future{margin-top:20px;color:var(--muted);font-size:13px}.future summary{cursor:pointer}.future p{line-height:1.7}.note p,.export p{font-size:12px;line-height:1.7;color:var(--muted)}.note textarea{font-size:14px}.export{margin-top:16px}.export button{width:100%;margin-top:10px}.check{display:flex;gap:8px;align-items:center;font-size:13px;font-weight:400;margin-top:16px}.check input{accent-color:var(--accent)}.quiet{background:transparent}.secondary{background:var(--soft);border-color:#b7c8df}footer{border-top:1px solid var(--line);padding:20px 0 28px;display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}footer span:first-child{letter-spacing:.15em;color:var(--accent)}.history-help{font-size:13px;color:var(--muted);line-height:1.8}.history-item{display:block;width:100%;text-align:left;padding:20px;margin:12px 0}.history-item strong{display:block;font-size:17px;margin:10px 0}.history-item p{font-size:14px;margin:5px 0;line-height:1.6}.history-item small{color:var(--muted)}.empty{text-align:center;padding:60px 20px;color:var(--muted)}.calendar-head{display:flex;justify-content:space-between;align-items:center;margin:24px 0 16px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.weekday{text-align:center;font-size:12px;color:var(--muted);padding:8px}.day{min-height:94px;background:white;border:1px solid var(--line);border-radius:8px;padding:8px;font-size:12px}.day.today{border-color:var(--accent)}.day button{display:block;max-width:100%;padding:5px;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--soft);margin-top:6px}.rolling .symbol{animation:pulse .16s infinite alternate}@keyframes pulse{to{opacity:.3;transform:translateY(-5px) rotate(12deg)}}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:12px 20px;border-radius:10px;font-size:14px;display:none;max-width:90vw}.switch{display:flex;gap:5px}[hidden]{display:none!important}@media(max-width:760px){.wrap{padding:0 16px}header{padding:18px 0}.heading{align-items:flex-start}h1{font-size:23px}.heading .quiet{font-size:12px;padding:9px}.reading-layout{grid-template-columns:1fr}.section-title span{font-size:11px}.panel,.throw{padding:16px}.die{min-height:120px}.brand{font-size:15px}nav button{padding:9px 12px}footer{flex-wrap:wrap}footer span:last-child{width:100%}.day{min-height:75px;padding:4px}.day button{font-size:10px}.heading .switch button{padding:9px;font-size:12px}}@media(prefers-reduced-motion:reduce){.rolling .symbol{animation:none}}

.throw-note{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.throw-note label{margin-bottom:9px;color:var(--muted)}.throw-note textarea{font-size:14px}.summary-note{margin-top:24px}.export{margin-top:0}
/* The tray is the active reading surface; stopped pieces retain their DOM nodes. */
.reading-layout{grid-template-columns:minmax(0,1fr) 220px;gap:20px}.tray{position:relative;display:flex;align-items:center;justify-content:center;gap:18px;min-height:300px;padding:58px 18px 40px;border-radius:24px;background:radial-gradient(ellipse at 50% 35%,#35516d,#20384e 75%);border:10px solid #a8b6c7;box-shadow:inset 0 0 0 2px #62788e,inset 0 12px 35px #102639aa,0 4px 12px #273d571a;perspective:750px;overflow:hidden}.tray:after{content:'';position:absolute;inset:12px;border:1px solid #a5b6c32d;border-radius:12px;pointer-events:none}.tray-inscription{position:absolute;bottom:16px;font-size:10px;letter-spacing:.26em;color:#c2ccd67a}.tray-empty{color:#c5cfd9;font-size:14px;position:absolute}.physical-die{width:126px;flex:0 1 126px;min-width:0;text-align:center;position:relative;z-index:1;--dice-light:#eef4fc;--dice-face:#d7e4f2;--dice-side:#93aac4;--dice-edge:#7891ad;--face-ink:#2b4c72}.physical-die.sign{--dice-light:#f9f3e2;--dice-face:#eee0bc;--dice-side:#b9a77a;--dice-edge:#9e8c61;--face-ink:#715522}.physical-die.house{--dice-light:#e6efee;--dice-face:#c6dcd9;--dice-side:#83a7a2;--dice-edge:#6f928c;--face-ink:#285e56}.dice-solid{position:relative;width:100%;aspect-ratio:140/150;filter:drop-shadow(6px 12px 5px #06192988);transform-origin:50% 65%;transform-style:preserve-3d}.dice-solid svg{width:100%;height:100%;display:block;overflow:visible}.facet{stroke:var(--dice-edge);stroke-width:1.2;stroke-linejoin:round}.facet.cap{fill:var(--dice-light)}.facet.side{fill:var(--dice-side)}.facet.face{fill:var(--dice-face)}.dice-face{position:absolute;left:16%;top:32%;width:68%;height:44%;display:flex;align-items:center;justify-content:center;font-family:'Apple Symbols','Segoe UI Symbol',serif;font-size:45px;color:var(--face-ink);text-shadow:0 1px 0 #ffffffa0}.d7 .dice-face{left:13%;top:31%;width:51%;transform:skewY(12deg);font-size:42px}.house .dice-face{font-size:29px;letter-spacing:-.06em}.piece-caption{display:block;margin-top:18px;font-size:10px;letter-spacing:.12em;color:#d5dfe9a6}.result-names{display:flex;justify-content:center;gap:30px;padding:18px 8px;min-height:76px;font-size:18px;text-align:center}.result-names small{display:block;font-size:10px;letter-spacing:.13em;color:var(--muted);margin-bottom:6px}.throw-controls{align-items:center;margin-top:0;flex-wrap:wrap}.tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.dice-choices{display:flex;gap:12px;flex-wrap:wrap}.dice-choices label{font-size:13px;font-weight:400;cursor:pointer}.dice-choices input{accent-color:var(--accent)}.throw-controls select{max-width:170px;font-size:11px;padding:7px}.roll{min-width:140px;padding:14px 20px;letter-spacing:.06em;box-shadow:0 4px 12px #3a63a02b}.compact{padding:14px 18px;background:#ffffff80}.compact-top{display:flex;align-items:center;gap:12px}.compact-top strong{font-size:14px;flex:1}.compact-top button{padding:5px 10px;font-size:12px;background:transparent}.mini-dice{display:flex;align-items:center;gap:9px;margin-top:12px}.mini-piece{display:inline-flex;align-items:center;justify-content:center;width:35px;height:38px;background:#dce6f3;color:#2b4c72;clip-path:polygon(50% 0,90% 22%,100% 70%,73% 100%,27% 100%,0 70%,10% 22%);font-size:23px;font-family:serif}.mini-piece.prism{clip-path:polygon(0 16%,30% 0,100% 16%,100% 86%,70% 100%,0 86%)}.compact-names{font-size:12px;color:var(--muted)}.compact-note{font-size:13px;white-space:pre-wrap;color:var(--muted);margin-bottom:0}.active-throw{border-color:#b2c3d8}.dice-in-motion .question,.dice-in-motion aside,.dice-in-motion .summary-note,.dice-in-motion .future{opacity:.55;transition:opacity .2s}.in-flight .piece-caption{opacity:.5}.revealed{animation:result-reveal .25s ease-out}@keyframes result-reveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(max-width:760px){.reading-layout{grid-template-columns:1fr}.tray{min-height:285px;gap:12px}.physical-die{max-width:132px}.compact-names{display:none}}@media(max-width:420px){.tray{gap:4px;min-height:255px;border-width:7px;padding-left:7px;padding-right:7px}.dice-face{font-size:35px}.d7 .dice-face{font-size:33px}.house .dice-face{font-size:23px}.piece-caption{font-size:8px;letter-spacing:.04em}.result-names{gap:18px;font-size:16px}.tools{gap:12px}.throw-controls{gap:16px}.roll{width:100%}}@media(prefers-reduced-motion:reduce){.revealed{animation:none}.dice-in-motion .question{transition:none}}

/* Sibling lockup to Astro Dear: small gold spark, close word spacing. */
.brand{display:block;letter-spacing:normal;color:var(--ink)}.brand-lockup{display:block}.brand-title{display:block;font-size:24px;font-weight:650;line-height:1.25;letter-spacing:.025em;white-space:nowrap}.logo-spark{display:inline-block;font-size:.5em;font-weight:400;line-height:0;margin-inline:.05em;transform:translateY(-.05em);color:var(--gold);vertical-align:middle}.brand small{font-size:12px;line-height:1.5;font-weight:400;font-style:italic;letter-spacing:.025em;margin-top:5px;color:var(--muted)}.brand:hover .brand-title{color:var(--accent)}@media(max-width:420px){.brand-title{font-size:21px}.brand small{font-size:11px}}
/* Signalia neutral shell; material palettes live independently of UI accents. */
:root{--page:#f3f3f1;--paper:#fff;--ink:#303740;--muted:#737a81;--line:#dcdfdf;--accent:#455b70;--soft:#eceff1;--gold:#a18c60;--planet-material:#66509a;--planet-shadow:#33284f;--planet-edge:#aa98cf;--planet-ink:#f3dfa0;--sign-material:#297a5c;--sign-shadow:#173f33;--sign-edge:#84b89a;--sign-ink:#f3dfa0;--house-material:#326dad;--house-shadow:#1b3658;--house-edge:#8cb4db;--house-ink:#f3dfa0}
header{padding:22px 0}.brand-title{letter-spacing:.015em}.logo-spark{font-size:.55em;margin-inline:.05em;transform:translateY(-.05em)}main{padding-top:20px}.heading{margin-bottom:12px}.eyebrow,.throw-number{color:var(--muted)}.question{border-top:1px solid var(--line);padding:14px 20px;margin-bottom:18px}.question label{font-size:12px;color:var(--muted)}#question{min-height:44px;font-size:17px;padding:8px 0;line-height:1.5}.meta{margin-top:3px}.section-title{margin-bottom:10px}.section-title span{display:none}.active-throw{border-color:var(--line)}.throw-top{margin-bottom:12px}.tray{min-height:310px;border:8px solid #697786;background:radial-gradient(ellipse at 45% 30%,#30445b,#172a3d 80%);box-shadow:inset 0 0 0 1px #99a8b755,inset 0 15px 35px #091a2ca6,0 5px 14px #1d2b3a26;isolation:isolate}.tray:before{content:'';position:absolute;inset:0;opacity:.12;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.4' filter='url(%23n)'/%3E%3C/svg%3E")}.physical-die{width:150px;flex-basis:150px;--material:var(--planet-material);--material-shadow:var(--planet-shadow);--material-edge:var(--planet-edge);--material-ink:var(--planet-ink)}.physical-die.sign{--material:var(--sign-material);--material-shadow:var(--sign-shadow);--material-edge:var(--sign-edge);--material-ink:var(--sign-ink)}.physical-die.house{--material:var(--house-material);--material-shadow:var(--house-shadow);--material-edge:var(--house-edge);--material-ink:var(--house-ink)}.dice-solid{aspect-ratio:160/170;filter:none;transform-style:flat;z-index:2}.dice-solid svg{position:relative;z-index:2}.contact-shadow{position:absolute;left:17%;width:68%;height:17%;top:69%;border-radius:50%;background:radial-gradient(ellipse,#030b13d9 0,#030b1380 38%,transparent 72%);filter:blur(4px);opacity:.62;z-index:0;pointer-events:none}.piece-caption{margin-top:2px;color:#c5ced78c;font-size:10px}.roll{background:#455b70;border-color:#455b70;box-shadow:0 3px 8px #25354520}.roll:hover{background:#354b60}.mini-piece{background:#e6e7e2;color:var(--ink)}.compact{background:#ffffffa0}.export{background:#fafaf9}.result-names{font-size:17px;min-height:68px}.tray-inscription{bottom:13px;color:#b7c3cf66}@media(max-width:760px){.physical-die{max-width:150px}.tray{min-height:300px}header{padding:18px 0}}@media(max-width:420px){.tray{min-height:260px;gap:1px;padding-top:42px;padding-bottom:40px}.piece-caption{font-size:8px}.question{padding:12px 14px}.throw{padding:12px}.contact-shadow{filter:blur(3px)}}

.contact-shadow{top:68%;height:12%;filter:blur(2.5px)}
.tray{display:block;padding:0;min-height:330px;height:330px;cursor:pointer;touch-action:manipulation}.physics-canvas{display:block;width:100%;height:100%;position:absolute;inset:0}.tray-inscription,.tray-action,.tray-empty{z-index:2;pointer-events:none}.tray-inscription{left:0;width:100%;text-align:center;bottom:12px}.tray-action{position:absolute;top:13px;left:0;width:100%;text-align:center;color:#c0cbd5a0;font-size:11px;letter-spacing:.05em}.tray-empty{left:0;top:46%;width:100%;text-align:center}.tray:focus-visible{outline:3px solid var(--accent);outline-offset:4px}.result-names em{display:block;font-size:10px;font-style:normal;color:var(--muted);margin-top:6px}.engine-error{color:#8c423e;font-size:14px;line-height:1.6}.engine-loading{color:var(--muted);padding:30px;text-align:center}@media(max-width:420px){.tray{height:290px;min-height:290px}.result-names{gap:12px;font-size:15px}}
.dice-readout{position:absolute;z-index:3;transform:translateX(-50%);width:126px;padding:8px 10px;border:1px solid #dde4ea66;border-radius:10px;background:#f6f6f0f2;color:#334a59;text-align:center;box-shadow:0 3px 12px #06142144;pointer-events:none}.dice-readout.sign{background:#f6ead2f5;color:#65502e;border-color:#d5b679}.dice-readout.house{background:#e3e8edf5;color:#354351}.dice-readout small{display:block;font-size:9px;letter-spacing:.08em;opacity:.7}.readout-line{display:flex;align-items:center;justify-content:center;gap:7px;margin:3px 0}.readout-symbol{font-family:'Apple Symbols','Segoe UI Symbol',serif;font-size:29px;line-height:1.05}.readout-line strong{font-size:15px;font-weight:600}.readout-name{display:block;font-size:11px;opacity:.8}.tray-action{opacity:.75}@media(max-width:500px){.dice-readout{width:91px;padding:7px 3px}.readout-line{gap:3px}.readout-symbol{font-size:23px}.readout-line strong{font-size:12px}.readout-name{font-size:10px}.dice-readout small{font-size:8px}}
.confirm-roll{background:#e7eee9;border-color:#9dad9f;font-weight:600}.confirm-roll:hover{background:#d9e6dd}.throw-controls{justify-content:flex-start}.throw-controls .tools{width:100%}
.tray{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
/* Vertical room for the taller dice bounces. */
@media (min-width: 761px){.tray{min-height:430px}}

/* The tray is an input surface only before rolling, then a reading surface. */
.tray{border:1px solid #33495e;border-radius:20px;padding:0;background:#172a3d;box-shadow:inset 0 0 20px #0c1a2b44;cursor:default;min-height:390px}
.tray:before,.tray:after,.tray-inscription{display:none}
.tray.ready{cursor:pointer}
.tray-action{position:absolute;top:auto;bottom:20px;left:50%;transform:translateX(-50%);width:max-content;max-width:90%;padding:10px 18px;border-radius:24px;background:#e8edf2e8;color:#344759;font-size:15px;font-weight:600;letter-spacing:.03em;pointer-events:none}
.tray-action:empty{display:none}
.choose-again{border-color:transparent;color:var(--muted);background:transparent}
.confirm-roll{font-weight:650;min-height:48px}
@media(max-width:760px){.tray{min-height:360px;padding:0;border-width:1px}}
@media(max-width:420px){.tray{min-height:350px}.throw{padding:10px}.result-names{gap:22px;font-size:18px}}
.tray.ready .tray-action{top:50%;bottom:auto;transform:translate(-50%,-50%)}

/* Compact throws share the current dice palette, including symbol ink. */
.mini-piece.planet{background:var(--planet-material);color:var(--planet-ink)}
.mini-piece.sign{background:var(--sign-material);color:var(--sign-ink)}
.mini-piece.house{background:var(--house-material);color:var(--house-ink)}

/* Match optical size: numerals fill more of their font box than symbols. */
.mini-piece{line-height:1;font-family:"Apple Symbols","Segoe UI Symbol",serif}
.mini-piece.house{font-family:system-ui,sans-serif;font-size:18px;font-weight:400;letter-spacing:-.04em}
.mini-sun{display:block;width:24px;height:24px;flex:none}

.tray{touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.tray.reading-result{cursor:pointer}.tray.reading-result:not(.ready) .tray-action{top:auto;bottom:12px;transform:translateX(-50%);background:transparent;font-size:11px;color:#c6d3dfa0;padding:0}.tray.holding .tray-action{top:auto;bottom:12px;transform:translateX(-50%);font-size:12px;background:transparent;color:#dce5ef}.throw-controls .tools{opacity:.8}.tray.ready .tray-action{font-size:14px;padding:10px 16px}

.tray.reading-result:not(.ready){cursor:default}

/* Leave visible flight room above and around full-size dice. */
.tray{min-height:450px}@media(max-width:760px){.tray{min-height:440px}}@media(max-width:420px){.tray{min-height:420px}}

/* Preparation and records stay on the page; the casting surface lives in its own room. */
.cast-entry{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:22px;padding:16px 20px;background:#455b70;color:#fff;border-color:#455b70;font-size:16px;letter-spacing:.02em}
.cast-entry:hover{background:#354b60;color:#fff}.cast-entry:disabled{background:#e9ecef;border-color:var(--line);color:var(--muted)}
.cast-complete{font-size:12px;color:var(--muted);line-height:1.8;margin:18px 0 0}
.recorded-dice{display:flex;gap:24px;flex-wrap:wrap;margin:25px 0}
.recorded-result{display:flex;gap:10px;align-items:center;font-size:16px}.recorded-result small{display:block;font-size:9px;letter-spacing:.12em;color:var(--muted);margin-bottom:5px}
.recorded-result .mini-piece{width:48px;height:52px;font-size:29px}.recorded-result .mini-piece.house{font-size:24px}
.cast-room-open{overflow:hidden}
.cast-room{padding:0;border:1px solid #74899a45;border-radius:24px;width:min(1100px,calc(100vw - 56px));height:min(840px,calc(100dvh - 48px));max-width:none;max-height:none;background:#263b4e;color:#e9edf2;box-shadow:0 24px 100px #09162566;overflow:hidden}
.cast-room::backdrop{background:#111d2bcc;backdrop-filter:blur(7px)}
.casting-space{height:100%;display:flex;flex-direction:column;position:relative}
.cast-close{position:absolute;right:16px;top:16px;z-index:5;width:44px;height:44px;padding:0;background:#203447aa;border-color:#9cb0c13d;color:#dce6ed;font-size:27px;line-height:1;font-weight:300;border-radius:50%}
.cast-close:hover{background:#3c5366;color:white;border-color:#9cb0c1}
.cast-room .tray{flex:1;width:100%;height:auto;min-height:0;border:0;border-radius:0;box-shadow:none;background:transparent;touch-action:none}
.cast-room .tray:focus-visible{outline:1px solid #b9c6d355;outline-offset:-6px}
.cast-room .tray-action,.cast-room .tray.ready .tray-action{top:auto;bottom:24px;transform:translateX(-50%);background:transparent;color:#dce5edb3;font-size:13px;font-weight:400;padding:0;letter-spacing:.04em}
.cast-receive{position:absolute;inset:auto 0 0;z-index:3;min-height:100px;opacity:0;visibility:hidden;pointer-events:none;padding:0 28px 26px;text-align:center;background:linear-gradient(transparent,#172a3d40)}
.cast-room .result-names{min-height:0;padding:8px 0 20px;gap:48px;font-size:23px;color:#f0eee3;animation:cast-receive .4s ease-out}
.cast-room .result-names small{font-size:9px;letter-spacing:.16em;color:#a9b9c6;margin-bottom:9px}
#castConfirm{min-width:240px;padding:15px 24px;background:#e4e9ee;color:#283f50;border:1px solid #edf1f5;border-radius:12px;font-size:15px;letter-spacing:.03em}
#castConfirm:hover{background:white}
#castError:empty{display:none}#castError{font-size:13px;color:#f0c4ac;line-height:1.8;margin:8px 0 16px}
#castDiscard{margin:16px 0 0}#castDiscard p{margin:0 0 6px;font-size:12px;color:#adbdca}#castDiscardButton{font-size:12px;background:transparent;color:#b9c8d4;border-color:#a7bac333;padding:8px 14px}
@keyframes cast-receive{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.cast-room{width:100vw;height:100dvh;margin:0;inset:0;border:0;border-radius:0}.cast-close{top:max(12px,env(safe-area-inset-top));right:12px}.cast-receive{--receive-clearance:clamp(96px,16dvh,160px);padding:0 16px calc(var(--receive-clearance) + env(safe-area-inset-bottom));min-height:calc(72px + var(--receive-clearance) + env(safe-area-inset-bottom))}.cast-room .result-names{gap:22px;font-size:19px}#castConfirm{width:100%;min-width:0;max-width:400px}.recorded-dice{gap:16px}.recorded-result{font-size:14px}}
@media(prefers-reduced-motion:reduce){.cast-room .result-names{animation:none}}

.throw-controls:empty{display:none}

/* Results overlay the full-height canvas only after the dice have stopped. */
.cast-room.has-result .cast-receive,.cast-room.has-error .cast-receive{opacity:1;visibility:visible;pointer-events:auto}
.cast-room .cast-receive{transition:opacity .35s ease-out}
@media(prefers-reduced-motion:reduce){.cast-room .cast-receive{transition:none}}

/* The result itself is the reference trigger. Shared dialog styling lives in its own generated asset. */
.symbol-reference { border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; padding: 6px; min-height: 44px; cursor: pointer; text-align: left; }
.symbol-reference:hover { background: #61735b0d; }
.symbol-reference:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.recorded-result.symbol-reference { font-size: 16px; }
.cast-room .symbol-reference { text-align: center; }
.cast-room .symbol-reference:hover { background: #ffffff0d; }
.result-names .symbol-reference small { display: block; }
.mini-dice .symbol-reference { padding: 0; min-height: 44px; width: 40px; height: 44px; border-radius: 0; font: 23px Georgia, serif; }
.mini-dice .symbol-reference:hover { background: #d5dfcf; }
.mini-dice .symbol-reference:focus-visible { clip-path: none; border-radius: 6px; }
@media (max-width: 760px) { .recorded-result.symbol-reference { font-size: 14px; } }

/* A functional history heading shares the working UI typography. */
#historyView h1{font-family:inherit;font-size:24px;font-weight:600;letter-spacing:0;line-height:1.3}
.roll-time:empty{display:none}
@media(max-width:760px){#historyView h1{font-size:20px}}

/* Keep the Question focus ring inside the field, clear of its label and metadata. */
.question label{margin-bottom:8px}
#question{display:block;border:1px solid var(--line);padding:10px 12px;min-height:48px;field-sizing:content;max-height:240px}
#question:focus-visible{outline:2px solid #c1a15a;outline-offset:-2px}
.question .meta{margin-top:8px}
.question .meta:has(#saveStatus:empty){display:none}
.question #saveStatus{margin-left:auto}

/* Match the library's protected-record menu without competing with the content. */
.history-toolbar{display:flex;align-items:center;gap:12px;margin:20px 0 14px;color:var(--muted);font-size:13px}
#historyCount{margin-right:auto;white-space:nowrap}
#lockedFilter{font-size:13px;padding:9px 12px}
#lockedFilter.active{background:var(--soft);border-color:var(--accent);color:var(--accent)}
.history-capacity-info{position:relative}
.history-capacity-info summary{cursor:pointer;list-style:none;font-size:20px;padding:6px}
.history-capacity-info summary::-webkit-details-marker,.history-menu summary::-webkit-details-marker{display:none}
.history-capacity-info p{position:absolute;right:0;top:100%;z-index:6;width:min(300px,calc(100vw - 48px));margin:4px 0;padding:14px;background:var(--paper);border:1px solid var(--line);border-radius:10px;font-size:12px;line-height:1.8;box-shadow:0 8px 24px #263b4e16}
article.history-item{position:relative;padding:0;display:flex;align-items:flex-start;border:1px solid var(--line);border-radius:13px;background:var(--paper)}
article.history-item.is-locked{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
.history-open{flex:1;min-width:0;border:0;background:transparent;border-radius:13px;text-align:left;padding:20px}
.history-open:hover{background:var(--soft)}
.history-date{display:flex;align-items:center;gap:8px}
.history-lock-state{display:inline-flex;color:var(--accent)}
.history-lock-state svg,.history-menu-items svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.history-menu{position:relative;margin:12px 12px 0 0}
.history-menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:8px;font-size:24px;line-height:1;color:var(--muted)}
.history-menu summary:hover{background:var(--soft)}
.history-menu-items{position:absolute;right:0;top:100%;z-index:5;min-width:150px;padding:5px;background:var(--paper);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #263b4e20}
.history-menu-items button{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;border:0;text-align:left;padding:10px 12px;font-size:13px}
.history-menu-items button[aria-pressed=true]{color:var(--accent);background:var(--soft)}
@media(max-width:760px){.history-open{padding:16px}.history-menu{margin:8px 8px 0 0}.history-toolbar{gap:8px}}

/* Quiet Throw slips: symbols lead, tools stay compact. */
.reading-layout,.reading-layout>section{min-width:0}
.throw-rail{display:flex;align-items:stretch;gap:12px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding:2px;padding:3px 2px 8px;touch-action:pan-x pan-y}
.throw-cards{display:contents}
.throw.throw-card{position:relative;display:flex;flex-direction:column;flex:0 0 calc((100% - 144px)/3);min-width:210px;max-width:260px;min-height:184px;margin:0;padding:10px 14px;background:var(--paper);scroll-snap-align:start}
/* A shared reading stage keeps one, two and three dice on the same plane. */
.throw.throw-card.cast-throw{height:186.5px;min-height:186.5px}
.cast-throw .throw-info{flex:0 0 46px;min-width:0}
.throw-result-stage{flex:1;min-height:116px;display:grid;place-items:center;min-width:0}
.throw-card .throw-result-stage .recorded-dice{margin:0;padding:0}
.throw.throw-card.pending-throw{min-height:210px;background:color-mix(in srgb,var(--accent) 3%,var(--paper));border-color:color-mix(in srgb,var(--accent) 28%,var(--line))}
.throw-card input.throw-inline-label{width:100%;min-width:0;font-size:14px;font-weight:500;line-height:1.5;padding:3px 4px;margin:3px -4px 0;border:1px solid transparent;border-radius:5px;background:transparent;text-overflow:ellipsis}
.throw-card input.throw-inline-label{cursor:text;transition:background .15s,border-color .15s}
.throw-card input.throw-inline-label:hover{border-color:var(--line);background:var(--soft)}
.throw-card input.throw-inline-label:focus{border-color:var(--gold);background:var(--paper)}
.throw-card .recorded-dice{display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;gap:8px;margin:auto 0;padding-top:2px}
.throw-card .recorded-result.symbol-reference{display:flex;align-items:center;justify-content:center;padding:3px 2px;width:66px;flex:0 0 66px;min-height:0;text-align:center;font-size:12px}
.throw-card .recorded-result .mini-piece{width:50px;height:52px;font-size:31px;flex:none;line-height:1}
.throw-card .recorded-result .mini-piece.house{font-size:26px}
.throw-card .mini-sun{width:31px;height:31px}
.throw-card .recorded-result.symbol-reference{cursor:pointer;border-radius:9px;transition:background .15s,transform .12s}
@media(hover:hover){.throw-card .recorded-result.symbol-reference:hover{background:var(--soft);transform:translateY(-2px)}}
.throw-card .recorded-result.symbol-reference:active{background:var(--soft);transform:scale(.94)}
.throw-card .recorded-result.symbol-reference:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.throw-card .recorded-dice.three-dice{display:grid;grid-template-columns:repeat(2,66px);gap:0 8px;justify-content:center}
.throw-card .three-dice .recorded-result:first-child{grid-column:1 / -1;justify-self:center}
.throw-scroll-controls{display:flex;justify-content:flex-end;gap:6px;margin:2px 0 0}
.throw-scroll-controls button{width:30px;height:30px;padding:0;font-size:20px;line-height:1;border-color:transparent;background:transparent;color:var(--muted)}
.throw-scroll-controls button:hover{background:var(--soft)}
.throw-scroll-controls button:disabled{opacity:.25}
.throw-dice-toggles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:start;margin:8px 0 6px}
.throw-tool{min-width:0;text-align:center;border-radius:7px}
.throw-dice-toggle{position:relative;display:block;cursor:pointer;font-size:12px;font-weight:400;--choice-color:var(--planet-material)}
.throw-dice-toggle.sign{--choice-color:var(--sign-material)}
.throw-dice-toggle.house{--choice-color:var(--house-material)}
.throw-dice-toggle input{position:absolute;width:1px;height:1px;opacity:0;left:50%;top:50%;margin:0}
.throw-dice-toggle>span{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:58px;padding:6px 3px;border:1px solid color-mix(in srgb,var(--line) 75%,transparent);border-radius:7px;color:var(--ink);background:var(--paper);white-space:nowrap;line-height:16px}
.throw-dice-toggle input:checked+span{border-color:color-mix(in srgb,var(--accent) 28%,var(--line));background:color-mix(in srgb,var(--accent) 5%,var(--paper));box-shadow:none}
.throw-dice-toggle input:checked+span::after{content:'✓';position:absolute;right:4px;top:2px;font-size:10px;line-height:12px;color:var(--accent);font-weight:700}
.throw-dice-toggle input:focus-visible+span{outline:2px solid var(--gold);outline-offset:2px}
.throw-dice-toggle input:disabled+span{opacity:.5;cursor:default}
.throw-dice-toggle .choice-die{width:22px;height:22px;max-width:none;margin:0;filter:drop-shadow(0 0 .4px var(--ink))}
.throw-dice-toggle .choice-die-body{fill:var(--choice-color);stroke:var(--choice-color)}
.throw-dice-toggle input:not(:checked)+span .choice-die-body{fill:transparent;stroke:var(--choice-color);stroke-width:3}
.throw-planet-mode{width:calc(200% + 6px);max-width:none;min-height:36px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--ink);padding:4px 5px;font-size:12px;margin:10px 0 0;cursor:pointer}
.throw-planet-mode:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.throw-planet-mode:hover{border-color:var(--line);background:var(--paper)}
.throw-choice-error{font-size:11px;color:var(--muted);line-height:1.5;margin:0 0 6px}
.throw-card .cast-entry{align-self:flex-end;width:auto;min-width:90px;margin:auto 0 0;padding:8px 14px;font-size:13px;min-height:44px;background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:none}
.throw-card .cast-entry:hover{background:color-mix(in srgb,var(--accent) 88%,#000);border-color:var(--accent)}
.throw-card .cast-entry>span{margin-left:12px}
.throw-add-card{flex:0 0 108px;min-height:184px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:1px solid var(--line);border-radius:13px;background:transparent;color:var(--muted);scroll-snap-align:start;font-size:12px}
.throw-add-card>span{font-size:24px;font-weight:300;color:var(--muted)}
.summary-note>label{margin-bottom:12px}
.reading-exit{margin:20px 0 4px;display:flex;justify-content:center}
.reading-exit-button{min-width:180px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:24px;background:var(--paper);border-color:var(--line);color:var(--accent);font-size:14px}
.reading-exit-button:hover{border-color:var(--accent);background:var(--soft)}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
@media(max-width:680px){.throw-rail{scroll-snap-type:x mandatory;gap:12px}.throw.throw-card{flex-basis:min(260px,calc(100% - 36px));min-width:0;min-height:206px}.throw-add-card{flex-basis:108px;min-height:206px}.throw-card input.throw-inline-label{font-size:16px}.throw.throw-card{padding-top:12px;padding-bottom:12px}.throw.throw-card.pending-throw{min-height:218px}.throw-planet-mode{font-size:12px;min-height:36px}.reading-exit-button{width:100%;max-width:320px}}

/* Pick the tools visually; native checkboxes keep keyboard and touch behavior. */
.dice-picker{display:flex;gap:12px;align-items:flex-start;flex-wrap:nowrap;min-width:0;max-width:100%}
.dice-choice-column{width:94px;min-width:0}
.dice-choice{position:relative;display:block;cursor:pointer;--choice-color:var(--planet-material);--choice-ink:var(--planet-ink)}
.dice-choice.sign{--choice-color:var(--sign-material);--choice-ink:var(--sign-ink)}
.dice-choice.house{--choice-color:var(--house-material);--choice-ink:var(--house-ink)}
.dice-choice input{position:absolute;right:8px;top:8px;width:16px;height:16px;margin:0;z-index:1;accent-color:var(--choice-color);cursor:pointer}
.dice-choice-card{display:flex;flex-direction:column;align-items:center;padding:22px 8px 10px;gap:3px;border:1px solid var(--line);border-radius:10px;background:var(--paper);transition:background .15s,border-color .15s}
.dice-choice:has(input:checked) .dice-choice-card{border-color:var(--choice-color);background:color-mix(in srgb,var(--choice-color) 7%,var(--paper))}
.dice-choice:has(input:focus-visible) .dice-choice-card{outline:2px solid var(--accent);outline-offset:3px}
.dice-choice input:focus-visible{outline:0}
.dice-choice:has(input:disabled){opacity:.5;cursor:default}
.choice-die{width:52px;max-width:100%;height:auto;aspect-ratio:1;overflow:visible;flex:none;margin-bottom:4px}
.choice-die-body{fill:transparent;stroke:var(--choice-color);stroke-width:1.8;stroke-linejoin:round}
.choice-die-mark{fill:var(--choice-color);font:23px system-ui,sans-serif}
.dice-choice:has(input:checked) .choice-die-body{fill:var(--choice-color)}
.dice-choice:has(input:checked) .choice-die-mark{fill:var(--choice-ink)}
.dice-choice-name{font-size:12px;font-weight:500;line-height:1.3}
.dice-choice-column select.dice-planet-mode{width:100%;max-width:none;margin-top:7px;padding:7px 3px;font-size:11px;min-height:32px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink)}
@media(max-width:680px){.dice-picker{gap:8px}.dice-choice-column{width:86px}}
@media(prefers-reduced-motion:reduce){.dice-choice-card{transition:none}}

/* Reuse the selection d7 silhouette in every recorded Throw. */
.throw-card .mini-piece.prism{position:relative;clip-path:none;background:transparent}
.mini-prism{position:absolute;inset:0;width:100%;height:100%;transform:scale(1.15)}
.mini-prism .choice-die-body{fill:var(--planet-material);stroke:var(--planet-material)}
.mini-prism-mark{fill:currentColor;font:46px "Apple Symbols","Segoe UI Symbol",serif}

@media(prefers-reduced-motion:reduce){.throw-card .recorded-result.symbol-reference{transition:none}}

@media(max-width:680px){.throw.throw-card.cast-throw{height:206px;min-height:206px}.cast-throw .throw-info{flex-basis:49px}}

/* Optical balance: the two lower dice carry more visual weight. */
.throw-result-stage .recorded-dice.three-dice{transform:translateY(-5px)}

/* The editable Throw name is the only card heading. Order stays in the data. */
.throw-info{display:flex;align-items:flex-start;gap:8px;min-width:0}
.throw-info input.throw-inline-label{flex:1;width:0;min-width:0;margin:0 -4px;padding:3px 4px}
.throw-info .throw-status{flex:none;margin-top:4px;font-size:10px;color:var(--muted);white-space:nowrap;border:1px solid var(--line);border-radius:5px;background:var(--paper);padding:1px 5px}

/* Shared metadata markers, matching Geomancy's note and location icons. */
.reading-data-icon{display:inline-flex;width:14px;height:14px;color:var(--accent);margin-left:8px;vertical-align:middle}
.reading-data-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.reading-metadata{display:inline-flex;align-items:center;margin-left:auto}
.reading-metadata:empty{display:none}
.reading-metadata .reading-data-icon{width:17px;height:17px;margin-right:8px}


/* Copyright stays quiet; future legal links can share the existing flex footer. */
.app-shell footer .footer-copyright{letter-spacing:normal;color:var(--muted)}
