/* Luminous library: shared transparent surfaces; existing paintings stay intact. */
.dash{--glass-line:#c49a5b70;--glass-warm:#ffd48b;--glass-shadow:0 18px 46px #0005,inset 0 1px 0 #efe8ff24,inset 0 -1px 0 #dcb37715;--header-height:76px;background:#030812;color:#fff1d7}
.dash .main{isolation:isolate}.dash .main::before{content:'';position:absolute;z-index:-1;inset:0;pointer-events:none;background:radial-gradient(ellipse at 79% 7%,#4c33772b,transparent 33%),radial-gradient(ellipse at 4% 43%,#31346620,transparent 24%),radial-gradient(ellipse at 50% 94%,#5d365231,transparent 26%);opacity:.3;mask-image:linear-gradient(#0008,#000 32%,transparent 65%)}
.dash .main::after{content:'';position:fixed;z-index:-1;inset:76px 0 0;pointer-events:none;background:radial-gradient(ellipse at 7% 98%,#55487824,transparent 31%),radial-gradient(ellipse at 87% 100%,#a86e4024,transparent 27%);animation:universe-breathe 14s ease-in-out infinite alternate}
.dash .stage.view{max-width:1640px}.dash h1,.dash h2,.dash h3{text-shadow:0 1px 8px #0004}.dash h1 b{color:#ffdc8b;font-weight:500;font-style:italic}.dash .eyebrow{color:#f3ca78}.dash .track>span{background:linear-gradient(90deg,#ffd778,#ffe6a5);box-shadow:0 0 9px #ffc4534d}
/* Specular rims, transmitted violet/warm light and restrained edge caustics. */
.dash :is(.cont,.library-glance,.collection-sections,.explore-start,.community-start,.community-feed-panel,.community-upcoming,.community-featured,.community-featured-group,.community-panel,.community-person,.reader-stat-strip,.reader-panel,.reader-journey,.settings-sections,.settings-panel,.home-stats,.home-community,.home-path-goals,.header-popover,.header-search,.oracle-tools){border-color:var(--glass-line);background:radial-gradient(ellipse at 2% 0,#d2d9ff19,transparent 44%),radial-gradient(ellipse at 100% 100%,#a583bd17,transparent 48%),linear-gradient(125deg,#171e3299,#090d1ac9 53%,#1d1b30a3);box-shadow:var(--glass-shadow);backdrop-filter:blur(24px) saturate(1.3);-webkit-backdrop-filter:blur(24px) saturate(1.3)}
.dash :is(.explore-start,.community-start,.reader-panel,.reader-stat-strip,.settings-panel,.settings-sections){position:relative;border-radius:24px}
.dash :is(.explore-start,.community-start,.reader-stat-strip,.settings-panel,.settings-sections)::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(80px 2px at 18% 0,#ffe6ad,transparent),radial-gradient(110px 2px at 74% 100%,#ffcf83bb,transparent);opacity:.8}
.dash :is(.library-book,.bookc,.world,.explore-journey,.explore-interests>button,.community-start-list>button,.library-path-tile,.library-note-folder){border-color:#c4995e85;box-shadow:inset 0 1px 0 #ffdc9b16,0 8px 28px #0003;transition:transform .25s,border-color .25s,box-shadow .25s}
.dash :is(.library-book,.bookc,.world,.explore-journey,.explore-interests>button,.community-start-list>button,.library-path-tile,.library-note-folder):hover{border-color:#f3cd84;box-shadow:0 0 18px #ffbe4b30,inset 0 1px 0 #ffe5b33b;transform:translateY(-3px)}
.dash .library-book,.dash .bookc{position:relative;overflow:hidden}.dash .library-book::before,.dash .bookc::before{content:'';position:absolute;inset:5px;z-index:2;border-radius:inherit;pointer-events:none;background:linear-gradient(#e9b854,#e9b854) left top/17px 1px no-repeat,linear-gradient(#e9b854,#e9b854) left top/1px 17px no-repeat,linear-gradient(#e9b854,#e9b854) right top/17px 1px no-repeat,linear-gradient(#e9b854,#e9b854) right top/1px 17px no-repeat,linear-gradient(#d6a752,#d6a752) left bottom/12px 1px no-repeat,linear-gradient(#d6a752,#d6a752) right bottom/12px 1px no-repeat;opacity:.55}
.dash .library-book:hover::before,.dash .bookc:hover::before{opacity:1}.dash .library-book-copy,.dash .bookc .tt{text-shadow:0 2px 8px #000b}
.dash .collection-main{background:linear-gradient(140deg,#0e132229,#070c1555);border-color:transparent;box-shadow:none;backdrop-filter:none}.dash .collection-rail .library-glance{background:radial-gradient(at 0 0,#c7c6fa18,transparent 50%),linear-gradient(135deg,#1e1e2da6,#090e1ab8);border-radius:24px}.dash .collection-rail .library-owl{display:none}.dash .collection-sections{padding:12px}.dash .collection-sections button{padding:13px}.dash .collection-rail .library-ring{box-shadow:0 0 18px #ffbd4c28,inset 0 0 10px #dca83b42}.dash .collection-toolbar{border-color:#c59a5b36}.dash .collection-filter,.dash .collection-sort select{background:#080d1b70;border-color:#c4985370;box-shadow:inset 0 1px 0 #fff1c30b}.dash .collection-main .library-book-grid{gap:19px 15px}.dash .collection-main .library-jacket{height:195px}
.dash .unified-header{background:#040910ee;box-shadow:0 1px 0 #efc76e0a}.dash .unified-header .primary-nav a.on,.dash .unified-header .primary-nav a:hover{background:radial-gradient(ellipse at 50% 100%,#e9b44d18,transparent 72%);color:#ffe7b5;text-shadow:0 0 12px #ffcf6e58}.dash .primary-nav a.on::after{height:2px;background:linear-gradient(90deg,transparent,#ffda80,transparent);box-shadow:0 0 12px #ffbe5b99}.dash .header-popover,.dash .header-search{background:linear-gradient(125deg,#323248bd,#0a1021e8 66%,#363044bd);backdrop-filter:blur(30px) saturate(1.5)}
.dash .compact-hero{height:350px;min-height:350px;margin-bottom:20px;overflow:visible}.dash .compact-hero .hero-art{overflow:hidden}.dash .compact-hero .hero-art .art{object-position:65% 49%;filter:saturate(1.1)}.dash .compact-hero .hero-inner{padding-top:32px;max-width:800px}.dash .compact-hero h1{font-size:48px}.dash .compact-hero .cont{width:565px;bottom:14px;border-radius:22px;background:radial-gradient(at 90% 0,#d59f6630,transparent 58%),linear-gradient(130deg,#47404b8c,#171528a8);backdrop-filter:blur(20px) saturate(1.4);border-color:#e5bd7bbb;box-shadow:inset 0 1px 1px #ffebbf55,0 0 18px #e6b15223}.dash .compact-hero .cont .cover{width:85px}.dash .compact-hero .cont h3{font-size:29px}.dash .compact-hero .cont .sub{font-size:12px}.dash .compact-hero .reading-cta{font-size:12px;min-height:34px}.dash .compact-hero .cont .body{padding:12px 17px}.dash .home-discovery-row .home-preview{border:0}.dash .home-book-grid .bookc{height:275px}.dash .home-world-grid .world{height:275px}.dash .home-world-grid .world .wbody{background:linear-gradient(transparent,#080c17ee 50%)}
.dash .explore-hero{min-height:260px}.dash .explore-hero::after{background:linear-gradient(90deg,#040915ed,#04091582 34%,transparent 76%),linear-gradient(0deg,#040915,transparent 29%)}.dash .explore-start{padding:25px 22px}.dash .explore-start-grid>button{background:linear-gradient(135deg,#b7bcde0d,#090f1c70);box-shadow:inset 0 1px 0 #fff1ca11}.dash .explore-search{background:#070d1a8c;box-shadow:inset 0 1px 0 #fff0d520,0 0 12px #f1bd4930}.dash .explore-heading h2{font-size:30px}.dash .explore-type{background:#060c17b5;backdrop-filter:blur(12px)}
.dash .community-start-list>button{background:linear-gradient(90deg,#141a2f86,#090d1966)}.dash .community-feed-panel,.dash .community-upcoming,.dash .community-featured-group{border-radius:22px}.dash .community-feed-row{border-color:#be98512b}.dash .community-panel-heading{border-color:#be985124}.dash .community-hub-content .community-feed-copy>button{font-size:23px}.dash .community-person{border-radius:20px}.dash .community-featured-art{border-radius:inherit;overflow:hidden}.dash .community-start{padding:23px 15px}.dash .community-start-list>button.on{border-color:#efc97f;box-shadow:inset 0 1px 0 #ffdda845,0 0 12px #eac26b22}
.dash .reader-identity{min-height:285px}.dash .reader-identity::after{background:linear-gradient(90deg,#040915e8,#04091583 38%,transparent 79%),linear-gradient(0deg,#040915,transparent 30%)}.dash .reader-portrait{background:radial-gradient(at 10% 0,#c79c4a66,transparent 45%),linear-gradient(135deg,#39303f9c,#19182ac7);box-shadow:0 0 20px #ebbd552a,inset 0 1px 0 #ffe5b644;border-color:#e8be71}.dash .reader-stat-strip{padding:25px 10px;position:relative;z-index:2}.dash .reader-stat-strip>div{border-color:#cda96226}.dash .reader-panel{padding:24px}.dash .reader-journey{border-radius:24px;border-color:#c49a5b70;overflow:hidden}.dash .reader-skill-note{color:#d7c4aa}.dash .reader-journey .track{box-shadow:0 0 8px #ffc15025}
/* Settings uses actual, accessible local sections rather than an endless stack. */
.dash .settings-hero{height:230px;min-height:230px;margin-bottom:6px}.dash .settings-hero>div:last-child{padding-top:35px}.dash .settings-hero h1{font-size:49px}.dash .settings-hero p{font:italic 22px/1.4 var(--serif)}.dash .settings-workspace{display:grid;grid-template-columns:280px minmax(0,1fr);gap:25px;align-items:start}.dash .settings-sections{display:flex;flex-direction:column;padding:17px 12px;gap:8px}.dash .settings-sections button{display:flex;align-items:center;gap:16px;min-height:59px;padding:13px 17px;text-align:left;color:#ead9b7;font:22px/1.2 var(--serif);border:1px solid transparent;border-radius:17px;background:transparent}.dash .settings-sections button svg{width:25px;height:25px;flex-shrink:0;color:#f5c873}.dash .settings-sections button.on,.dash .settings-sections button:hover{border-color:#e7b9697a;background:radial-gradient(at 0 0,#d5b87d23,transparent 70%),linear-gradient(130deg,#45415376,#17172770);box-shadow:inset 0 1px 0 #ffe6aa38,0 0 13px #f1bc4e1b;color:#fff1d4}.dash .settings-content{min-width:0}.dash .settings-panel[hidden]{display:none}.dash .settings-content .settings-panel{padding:28px 34px;min-height:392px}.dash .settings-panel>header{padding-bottom:22px;margin-bottom:0;border-bottom:1px solid #cda96226}.dash .settings-panel>header h2{font-size:32px}.dash .settings-option{border:0;border-bottom:1px solid #cda96221;border-radius:0;background:transparent;box-shadow:none;padding:21px 0;min-height:95px;gap:20px}.dash .settings-option:last-child{border:0}.dash .settings-option .settings-glyph{background:linear-gradient(145deg,#e7c68915,#514c7c13);border:1px solid #dfbd7a12;border-radius:17px;width:53px;height:53px}.dash .settings-copy h3{font-size:23px}.dash .settings-copy p{font-size:13px;line-height:1.65}.dash .settings-panel .toggle{box-shadow:inset 0 1px 3px #0005;border-color:#d6c49422;background:#1e2432}.dash .settings-panel .toggle.on{background:linear-gradient(100deg,#9a6a2d,#c28d4344);border-color:#edc77e66;box-shadow:0 0 12px #ffba3d17}.dash .settings-reset{border-top:1px solid #cda96226;margin-top:12px;padding-top:18px}.dash .settings-reset summary{cursor:pointer;color:#dec8a5;display:flex;gap:10px;align-items:center}.dash .settings-reset summary svg{width:16px}.dash .settings-about{padding:30px 8px;max-width:560px}.dash .settings-about>svg{width:33px;height:33px;color:#f3cc87;filter:drop-shadow(0 0 8px #d99838aa)}.dash .settings-about h3{font-size:32px;margin:15px 0}.dash .settings-about p{font-size:15px;line-height:1.8;margin-bottom:25px}.dash .settings-reader{padding:28px 0}.dash .settings-facts{margin-top:24px}.dash .settings-footnote{font-size:12px;line-height:1.6}
/* One viewport for Oracle. Only the conversation owns a scroll area. */
body[data-view=assistant]{height:100dvh;overflow:hidden}body[data-view=assistant] .dash{height:100dvh;min-height:0;display:flex;flex-direction:column}body[data-view=assistant] .dash .unified-header{flex:none}body[data-view=assistant] .dash .main{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}body[data-view=assistant] .dash .dfoot{display:none}body[data-view=assistant] .dash .stage.view{flex:1;min-height:0;height:100%;max-width:none;padding:0 25px;overflow:hidden}
.dash .oracle-sanctuary{height:100%;min-height:0;width:100%;padding:clamp(14px,3vh,32px) 20px;justify-content:center;overflow:hidden;gap:0}.dash .oracle-welcome{flex-shrink:0}.dash .oracle-portrait{width:clamp(80px,32dvh,294px);height:clamp(80px,32dvh,294px);margin:22px 0 clamp(12px,2.5vh,25px)}.dash .oracle-welcome h1{font-size:clamp(30px,5.4vh,52px)}.dash .oracle-welcome>p{font-size:clamp(17px,2.6vh,25px);margin-top:12px}.dash .oracle-divider{margin:clamp(15px,2.9vh,28px) 0}.dash .oracle-composer{background:radial-gradient(at 4% 0,#e7c68916,transparent 50%),linear-gradient(120deg,#45405270,#101629ae 65%,#3c304e74);backdrop-filter:blur(25px) saturate(1.4);box-shadow:inset 0 1px 0 #ffe9b34a,0 0 22px #dcad3a26}.dash .oracle-input-area{flex-shrink:0}.dash .oracle-architecture{opacity:.4}.dash .oracle-portrait::before{animation:oracle-orbit 28s linear infinite}.dash .oracle-log{max-height:none;flex:1;min-height:0;overscroll-behavior:contain;overflow-y:auto}.dash .oracle-log .msg{background:#25263e70;backdrop-filter:blur(16px);border-color:#c2a46b33}.dash .oracle-sanctuary.has-conversation{padding-top:16px}.dash .has-conversation .oracle-welcome{flex-shrink:0}.dash .has-conversation .oracle-portrait{width:64px;height:64px;margin:13px 0 10px}.dash .has-conversation .oracle-welcome h1{font-size:30px}.dash .has-conversation .oracle-welcome>p{font-size:17px}.dash .has-conversation .oracle-conversation{flex:1;min-height:0;overflow:hidden;margin:16px 0}.dash .oracle-clear{flex:none;align-self:flex-end}.dash .has-conversation .oracle-input-area{margin-top:0}
/* Modal and transient menus belong to the same material world. */
.modal-bg .modal{border:1px solid #e0b86c80;background:radial-gradient(at 0 0,#a6b4ec24,transparent 45%),linear-gradient(135deg,#24273eea,#0c1222ed 65%,#30263ee8);backdrop-filter:blur(32px) saturate(1.4);box-shadow:0 24px 80px #0009,inset 0 1px 0 #fff1ca33;border-radius:23px}.modal-bg .mh{border-color:#c29b5b33}.modal-bg :is(input,textarea,select){background:#060c1780;border-color:#c6a56a66;color:#f9e6c5}.modal-bg .btn,.dash .btn{transition:box-shadow .2s,border-color .2s,background .2s}.modal-bg .btn:hover,.dash .btn:hover{box-shadow:inset 0 1px 0 #ffe7ac33,0 0 15px #e9af4438;border-color:#ffda8d}.dash :is(button,a,input,select,textarea):focus-visible{outline:2px solid #ffe3a1;outline-offset:4px}
@keyframes universe-breathe{to{opacity:.45;transform:translateY(-10px)}}@keyframes oracle-orbit{to{transform:rotate(335deg) scaleY(.93)}}
@media(max-width:1250px){.dash{--header-height:122px}.dash .collection-main .library-jacket{height:175px}.dash .settings-workspace{grid-template-columns:240px minmax(0,1fr)}.dash .settings-content .settings-panel{padding:24px}.dash .settings-sections button{font-size:21px;padding:12px}.dash .home-book-grid .bookc,.dash .home-world-grid .world{height:255px}}
@media(max-width:700px){.dash{--header-height:136px}.dash .compact-hero{height:auto;min-height:0}.dash .compact-hero .hero-inner{padding-top:24px}.dash .compact-hero h1{font-size:39px}.dash .compact-hero .cont{width:100%;bottom:auto;margin-top:21px;border-radius:20px}.dash .compact-hero .cont .cover{width:75px}.dash .compact-hero .cont h3{font-size:27px}.dash .compact-hero .cont .body{padding:11px 13px}.dash .home-book-grid .bookc{height:230px}.dash .home-world-grid .world{height:225px}.dash .home-world-grid .world:last-child{height:190px}.dash .explore-hero{min-height:250px}.dash .explore-heading h2{font-size:27px}.dash .collection-main .library-jacket{height:165px}.dash .collection-main .library-book-grid{gap:14px 12px}.dash .reader-identity{min-height:270px}.dash .reader-panel{padding:21px}.dash .settings-hero{height:190px;min-height:190px}.dash .settings-hero h1{font-size:40px}.dash .settings-hero p{font-size:19px}.dash .settings-workspace{grid-template-columns:1fr;gap:17px}.dash .settings-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:10px;border-radius:19px}.dash .settings-sections button{font-size:18px;min-height:50px;padding:9px;gap:9px;border-radius:13px}.dash .settings-sections button svg{width:20px;height:20px}.dash .settings-sections button:last-child{grid-column:1/-1}.dash .settings-content .settings-panel{padding:21px 18px;min-height:0;border-radius:20px}.dash .settings-panel>header h2{font-size:28px}.dash .settings-option{padding:18px 0;gap:12px;align-items:start}.dash .settings-option .settings-glyph{width:38px;height:42px;border-radius:12px}.dash .settings-copy h3{font-size:21px}.dash .settings-copy p{font-size:12px}.dash .settings-control{align-self:center}.dash .settings-reader{flex-wrap:wrap}.dash .settings-reader .btn{margin-left:auto}
body[data-view=assistant] .dash .stage.view{height:100%;min-height:0;padding:0 14px}.dash .oracle-sanctuary{height:100%;min-height:0;padding:14px 0;justify-content:center}.dash .oracle-portrait{width:clamp(70px,23dvh,230px);height:clamp(70px,23dvh,230px);margin:18px 0 17px}.dash .oracle-welcome h1{font-size:clamp(29px,4.4vh,39px);max-width:20ch}.dash .oracle-welcome>p{font-size:clamp(16px,2.5vh,20px);max-width:27ch;line-height:1.3;margin-top:11px}.dash .oracle-divider{margin:20px 0}.dash .oracle-composer{min-height:58px;gap:11px;padding:8px 9px}.dash .oracle-composer>textarea{font-size:13px;height:32px}.dash .oracle-plus,.dash .oracle-send{width:36px;height:36px}.dash .has-conversation .oracle-portrait{width:48px;height:48px;margin:10px 0}.dash .has-conversation .oracle-welcome h1{font-size:26px}.dash .has-conversation .oracle-welcome>p{font-size:14px}.dash .has-conversation .oracle-conversation{margin:12px 0}.dash .oracle-log{max-height:none;min-height:0}.dash .oracle-log .msg{font-size:13px}.dash .oracle-tools{max-height:calc(100dvh - 220px);overflow:auto}}
@media(max-height:580px){.dash .oracle-portrait{width:90px;height:90px;margin:18px 0 10px}.dash .oracle-welcome h1{font-size:30px}.dash .oracle-welcome>p{font-size:17px;margin-top:8px}.dash .oracle-divider{margin:14px 0}.dash .oracle-sanctuary{padding:10px 0}.dash .has-conversation .oracle-portrait{display:none}.dash .has-conversation .oracle-welcome h1{font-size:25px}.dash .has-conversation .oracle-welcome>p{font-size:13px}.dash .oracle-crown{width:24px;height:24px;top:-16px;left:calc(50% - 12px)}.dash .oracle-crown svg{width:20px;height:20px}.dash .has-conversation .oracle-welcome{padding-top:0}}
@media(prefers-reduced-motion:reduce){.dash .main::after,.dash .oracle-portrait::before{animation:none}.dash :is(.library-book,.bookc,.world,.explore-journey,.explore-interests>button){transition:none}}body.no-motion .dash .main::after,body.no-motion .dash .oracle-portrait::before{animation:none}

.dash .settings-copy h3{font-family:var(--serif);font-weight:500}.dash .settings-hero>.scene .art{object-position:75% 48%}.dash .reader-identity>.scene .art{object-position:70% 42%}.dash .settings-control{flex-shrink:0}.dash .settings-content .settings-option .settings-copy{flex:1;max-width:none}

/* Keep the header at the same width when Oracle removes the document scrollbar. */
html{scrollbar-gutter:stable}
.dash .main::before{position:fixed;inset:76px 0 0;background:radial-gradient(ellipse at 4% 60%,#65659c24,transparent 40%),radial-gradient(ellipse at 85% 100%,#ba7f5029,transparent 37%),url('assets/art/scene-window-cosmos.png') 75% 55%/cover no-repeat;opacity:.18;mask-image:linear-gradient(transparent 10%,#000 65%)}

@media(max-height:440px){.dash .oracle-portrait{width:56px;height:56px;margin:13px 0 8px}.dash .oracle-welcome h1{font-size:27px}.dash .oracle-welcome>p{font-size:15px;margin-top:6px}.dash .oracle-divider{margin:10px 0}.dash .oracle-divider>svg{width:18px;height:18px}.dash .oracle-composer{min-height:56px;padding:6px 10px}.dash .oracle-plus,.dash .oracle-send{width:34px;height:34px}.dash .has-conversation .oracle-welcome h1{font-size:23px}.dash .has-conversation .oracle-welcome>p{font-size:13px}}

.dash .main::before{background:radial-gradient(ellipse at 4% 60%,#65659c2b,transparent 40%),radial-gradient(ellipse at 85% 100%,#ba7f502b,transparent 37%);opacity:.65}
@media(max-width:700px){.dash .settings-hero{height:230px;min-height:230px}.dash .settings-hero p{max-width:27ch}}

body[data-view=assistant] .dash .stage.view{width:100%;margin:0;align-self:stretch}
.dash .compact-hero .cont{isolation:isolate;transform:translateZ(0)}
