/* XYNOXIA WELLNESS — unified platform polish, November 2026
   A calm, blue-and-white design system shared by every member tab. */
:root{
 --xw-blue:#087fba;--xw-blue-deep:#075f8d;--xw-blue-soft:#eaf5fb;
 --xw-ink:#20313d;--xw-muted:#687b88;--xw-line:#dce8ee;
 --xw-paper:#f5f9fb;--xw-white:#fff;--xw-shadow:0 12px 34px rgba(28,75,101,.07);
}
html,body{background:var(--xw-paper);color:var(--xw-ink)}
.top{background:rgba(255,255,255,.96);border-bottom-color:var(--xw-line)}
.brand-logo{filter:none;opacity:1}
.top-caption{color:var(--xw-blue-deep)}
.layout{background:var(--xw-paper)}
.side{background:#f0f6f9;border-right-color:var(--xw-line)}
.label{color:#7b94a2}
.nav button{color:#526b79;border-radius:11px;transition:background .18s,border-color .18s,transform .18s}
.nav button:hover{background:#fff;border-color:#dce9ef;transform:translateX(2px)}
.nav button.active{background:#fff;border-color:#d8e8f0;color:var(--xw-blue-deep);box-shadow:inset 3px 0 var(--xw-blue),0 3px 12px rgba(30,90,120,.045)}
.nav button.active span,.nav button:hover span{color:var(--xw-blue)}
.sidefoot{color:#78909d}
.main{background:linear-gradient(180deg,#fbfdfe 0%,#f5f9fb 100%)}
.heading h1,.screen-title{color:var(--xw-ink)}
.eyebrow,.screen-kicker{color:var(--xw-blue);letter-spacing:.18em}
.heading p,.screen-sub{color:var(--xw-muted)}
.screen{gap:clamp(9px,1.25vh,14px)}
.screen-head{border-bottom-color:#e7eff3;padding-bottom:8px}
.soft-btn{border-color:var(--xw-line);color:#35576a;background:#fff;border-radius:9px}
.soft-btn:hover{background:var(--xw-blue-soft);border-color:#b9d9e9;transform:translateY(-1px)}
.feature-art,.tile .art,.music-art,.thumb,.resource i,.resource-detail-icon,.activity-icon{background:var(--xw-blue-soft);color:var(--xw-blue)}
.tile:hover,.resource:hover{background:#f3f9fc;border-color:#b9d9e9}
.journey-focus h2,.journey-focus h3{color:var(--xw-ink)}
.stat b{color:var(--xw-blue-deep)}
.screen a:focus-visible,.screen button:focus-visible,.nav button:focus-visible,.screen input:focus-visible,.screen select:focus-visible,.screen textarea:focus-visible{outline:2px solid #48a9d5;outline-offset:2px}
.screen button:disabled{opacity:.55;cursor:not-allowed}
.screen :where(input,select,textarea){accent-color:var(--xw-blue)}
/* My Journey */
.journey-local-badge{background:var(--xw-blue-soft);color:var(--xw-blue-deep);border:1px solid #d6eaf4;border-radius:20px;padding:6px 9px;font-size:8px}
.journey-progress-track{background:#e4eef3}
.journey-privacy{color:#7c909b}
.journey-editor{background:#fff;border:1px solid var(--xw-line);border-radius:12px;padding:12px}
.journey-editor input{border:1px solid var(--xw-line);border-radius:8px;padding:9px}
/* Activities */
.activity-studio{color:var(--xw-ink)}
.activity-appbar,.activity-toolbar,.activity-library-head{border-color:var(--xw-line)}
.activity-appbrand span,.activity-card-copy em{color:var(--xw-blue)}
.activity-search,.activity-search input{border-color:var(--xw-line);background:#fff}
.activity-filter{border-color:var(--xw-line);background:#fff;color:#557080}
.activity-filter.active,.activity-filter:hover{background:var(--xw-blue-soft);border-color:#b8dbea;color:var(--xw-blue-deep)}
.activity-feature{background:linear-gradient(115deg,#eaf5fb,#fff);border-color:#d8eaf3;border-radius:12px}
.activity-card{background:#fff;border-color:var(--xw-line);border-radius:11px}
.activity-card:hover{background:#f3f9fc;border-color:#b7d9e9;transform:translateY(-1px)}
.activity-card-copy b{color:var(--xw-ink)}
.activity-action.primary{background:var(--xw-blue);border-color:var(--xw-blue)}
.activity-action.primary:hover{background:var(--xw-blue-deep)}
.activity-workspace,.journal-editor,.journal-sidebar,.drawing-studio{border-color:var(--xw-line)}
.activity-field input,.activity-field textarea,.activity-field select,.journal-editor input,.journal-editor textarea{border:1px solid var(--xw-line);border-radius:8px;background:#fff;color:var(--xw-ink)}
.activity-feedback,.activity-privacy,.journal-safety{background:#f0f7fa;border-color:#d8eaf3;color:#526d7c}
.activity-breath-orb{background:#e8f5fb;border-color:#b9dceb;color:var(--xw-blue-deep)}
/* Music studio */
.music-copy{border-radius:14px}
.music-art{border-radius:14px}
.mood{border-radius:10px}
.mood:hover{background:var(--xw-blue-soft);border-color:#c2e0ed}
.player{border-radius:11px}
.player-icon{background:var(--xw-blue-soft);color:var(--xw-blue)}
/* Read / Kindle-inspired bookstore */
.books-screen{color:var(--xw-ink)}
.books-screen .screen-title{font-family:Georgia,serif;letter-spacing:-.035em}
.book-search,.book-search input{border-color:var(--xw-line)}
.book-filter,.book-category{border-color:var(--xw-line)}
.book-filter.active,.book-category.active{background:var(--xw-blue-soft);color:var(--xw-blue-deep);border-color:#b9dbea}
.book-cover{box-shadow:0 9px 18px rgba(24,56,73,.16)}
.book-reader{background:#fff;border-radius:15px}
.reader-page,.reader-content{background:#fffdf7;color:#343b40}
.reader-toolbar button{border-color:var(--xw-line);border-radius:8px}
.reader-toolbar button:hover{background:var(--xw-blue-soft)}
/* Watch keeps the streaming component but shares the platform frame */
.watch-screen{background:transparent}
.stream-toolbar{border-color:var(--xw-line)}
.stream-tab{color:#557080}
.stream-tab.active{color:var(--xw-blue-deep);border-color:#b9dbea;background:var(--xw-blue-soft)}
.stream-search-wrap{border-color:var(--xw-line);background:#fff}
.stream-channel{border-color:var(--xw-line);border-radius:10px}
.stream-channel:hover{background:var(--xw-blue-soft)}
.stream-card{border-color:var(--xw-line);border-radius:10px;overflow:hidden}
.stream-card:hover{border-color:#b9dbea;transform:translateY(-2px)}
.stream-card-copy b{color:var(--xw-ink)}
/* Resource Center */
.resource-center-screen{color:var(--xw-ink)}
.resource-title{color:var(--xw-ink)}
.resource-searchbox,.resource-state select,.resource-search{border-color:var(--xw-line);background:#fff}
.resource-categories,.resource-detail{background:#fff;border-radius:13px;box-shadow:0 5px 18px rgba(28,75,101,.035)}
.resource.is-selected,.resource.is-selected:hover{background:var(--xw-blue-soft);border-color:#b8dbea}
.resource.is-selected i{background:#d8edf7;color:var(--xw-blue-deep)}
.resource-data-strip{background:#f1f7fa;border-color:#dceaf1;border-radius:10px}
.resource-data-strip strong{color:var(--xw-blue-deep)}
.resource-links a{border-color:var(--xw-line);border-radius:9px}
.resource-links a:hover{background:var(--xw-blue-soft);border-color:#b9dbea}
.resource-links a>span{color:var(--xw-blue)}
.resource-links a>b{color:#35576a}
.resource-footnote{color:#748b98}
/* Responsive layouts: keep the app frame stable; allow dense content to breathe. */
@media(max-width:850px){
 .main{padding:15px}
 .screen{gap:8px}
 .program-module-grid{gap:7px}
 .program-module{padding:10px}
}
@media(max-width:620px){
 .side{background:#eff6f9}
 .nav button.active{box-shadow:inset 2px 0 var(--xw-blue)}
 .main{background:#f7fafc}
 .screen:not(.activity-screen):not(.watch-screen){overflow-y:auto;overscroll-behavior:contain;padding-right:2px}
 .screen-head{align-items:flex-start}
 .screen-actions{flex-wrap:wrap}
 .journey-grid{grid-template-columns:1fr!important;grid-template-rows:auto auto}
 .journey-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .journey-focus{min-height:250px}
 .music-mid{grid-template-columns:1fr!important}
 .music-art{min-height:110px}
 .moods{grid-template-columns:repeat(2,1fr)}
 .resource-layout{grid-template-columns:1fr!important;overflow:visible}
 .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .resource-links{grid-template-columns:1fr!important}
 .resource-detail{overflow:visible}
 .resource-center-screen{overflow-y:auto!important}
 .book-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .book-shelves{overflow:visible}
 .screen-title{font-size:19px}
}
@media(prefers-reduced-motion:reduce){
 .screen,.tile,.resource,.activity-card,.stream-card,.nav button{animation:none!important;transition:none!important}
}

/* Final component-level alignment with the existing tab markup */
.book-action.active,.book-filter.active{background:var(--xw-blue);border-color:var(--xw-blue);color:#fff}
.book-feature{background:linear-gradient(110deg,#eaf5fb,#fff 72%,#f0f7fa);border-color:var(--xw-line);border-radius:14px}
.book-feature h2{color:var(--xw-ink);font-family:Georgia,serif}
.book-feature p{color:var(--xw-muted)}
.book-feature-button{background:var(--xw-blue);border-radius:8px}
.book-feature-button:hover{background:var(--xw-blue-deep)}
.book-searchbox{border-color:var(--xw-line);border-radius:9px;background:#fff}
.book-searchbox:focus-within{border-color:#9bcfe5;box-shadow:0 0 0 3px rgba(8,127,186,.08)}
.book-shelf-head small{color:var(--xw-blue)}
.book-cover{box-shadow:3px 8px 18px rgba(24,56,73,.16);transition:transform .18s,box-shadow .18s}
.book-cover-button:hover .book-cover{transform:translateY(-3px);box-shadow:4px 12px 22px rgba(24,56,73,.2)}
.reader-frame-wrap{background:#f5f4ee;border-color:#e4e7e2;border-radius:12px}
.reader-toolbar{background:#fff;border:1px solid var(--xw-line);border-radius:10px;padding:7px 9px}
.reader-toolbar button{background:#fff;color:#426275;border:1px solid var(--xw-line);padding:7px 10px}
.reader-toolbar button:hover{background:var(--xw-blue-soft)}
.reader-note{color:#728894}
.music-bottom .mood.active{background:var(--xw-blue-soft);border-color:#9ccfe4;box-shadow:inset 0 0 0 1px rgba(8,127,186,.08)}
.music-player-controls button{background:#fff;border:1px solid var(--xw-line);border-radius:9px;color:#35576a;padding:8px 11px}
.music-player-controls button:hover{background:var(--xw-blue-soft)}
.resource.is-selected{box-shadow:inset 2px 0 var(--xw-blue)}

/* READ 2.0 — visible bookstore, clear category navigation, and resilient reader */
.books-screen{display:flex!important;flex-direction:column!important;gap:clamp(10px,1.35vh,16px)!important;height:100%;min-height:0;overflow-y:auto!important;padding:2px 8px 12px 2px}
.content:has(.books-screen){display:block!important;min-width:0;min-height:0;height:100%;overflow:hidden}
.book-top{flex-shrink:0;align-items:center!important;gap:14px}
.book-top .screen-title{font-size:clamp(25px,2.8vw,38px)!important;line-height:1.08;color:var(--xw-ink)!important}
.book-top .screen-sub{font-size:11px!important;line-height:1.5}
.book-actions{flex-shrink:0}
.book-action,.book-filter{min-height:34px;font-size:10px!important;padding:8px 12px!important;border-radius:999px!important}
.book-searchline{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;flex-shrink:0}
.book-searchbox{height:42px!important;min-width:min(100%,260px);max-width:430px!important;border-radius:12px!important}
.book-searchbox input{font-size:12px!important}
.book-filters{display:flex;flex-wrap:wrap;gap:6px;max-width:100%}
.book-filter{white-space:nowrap}
.book-feature{min-height:135px!important;max-height:175px!important;flex-shrink:0;border-radius:16px!important}
.book-feature h2{font-size:clamp(22px,2.5vw,34px)!important}
.book-shelf-head{flex-shrink:0;padding-top:3px}
.book-shelf-head h3{font-size:18px!important}
.book-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(145px,1fr))!important;gap:16px!important;min-height:0!important;overflow:visible!important;flex:0 0 auto!important;padding:4px 3px 16px!important;align-content:start}
.book-card{gap:8px!important;min-width:0}
.book-cover{height:clamp(150px,22vh,220px)!important;border-radius:5px 10px 10px 5px!important}
.book-cover-fallback{padding:14px 9px!important}
.book-cover-fallback small{font-size:8px!important}
.book-cover-fallback b{font-size:clamp(12px,1.15vw,17px)!important;line-height:1.15}
.book-cover-fallback i{font-size:7px!important}
.book-card-meta>b{font-size:11px!important;line-height:1.35!important;-webkit-line-clamp:3!important}
.book-card-meta>small{font-size:9px!important}
.book-card-meta>span{font-size:8px!important;color:#557587!important}
.book-card-actions button{font-size:9px!important;padding:7px 9px!important;border-radius:8px!important}
.book-footer{flex-shrink:0;font-size:8px!important;padding:5px 0 10px}
.read-reader[hidden]{display:none!important}
.read-reader:not([hidden]){display:grid;grid-template-rows:auto 4px minmax(250px,1fr) auto;gap:10px;min-height:520px;flex:1 0 520px}
.reader-toolbar{flex-wrap:wrap;align-items:center;padding:8px 0!important}
.reader-toolbar>div{flex:1;min-width:150px}
.reader-controls{display:flex;justify-content:flex-end;gap:5px;flex-wrap:wrap}
.reader-progress{height:4px;background:#e6eef2;border-radius:99px;overflow:hidden}
.reader-progress span{display:block;height:100%;width:0;background:var(--xw-blue);transition:width .2s}
.reader-frame-wrap{min-height:0!important;position:relative;background:#fffdf7!important;border:1px solid var(--xw-line)!important;border-radius:14px!important;overflow:auto!important}
.reader-frame-wrap:has(.reader-external-notice:not([hidden])){display:grid;place-items:center;padding:20px}
.reader-external-card{max-width:560px;margin:auto;padding:clamp(20px,4vw,42px);text-align:center;background:linear-gradient(145deg,#f0f8fc,#fff);border:1px solid var(--xw-line);border-radius:18px;box-shadow:var(--xw-shadow)}
.reader-external-card h2{font:clamp(22px,3vw,32px)/1.15 Georgia,serif;color:var(--xw-ink);margin:10px 0}
.reader-external-card p{font-size:12px;line-height:1.6;color:var(--xw-muted)}
.reader-external-card a{display:inline-flex;margin:10px 0;padding:12px 18px;border-radius:10px;background:var(--xw-blue);color:#fff;font-size:12px;font-weight:700}
.reader-external-card small{display:block;color:var(--xw-muted);font-size:10px;line-height:1.5}
.reader-source-label{font-size:10px!important;letter-spacing:.08em;text-transform:uppercase}
.nav button[data-tab="books"]{font-weight:750;color:#315e75}
.nav button[data-tab="books"] span{color:var(--xw-blue);font-size:17px}
@media(max-width:850px){.book-grid{grid-template-columns:repeat(auto-fill,minmax(125px,1fr))!important;gap:12px!important}.book-cover{height:clamp(140px,20vh,190px)!important}.book-filters{width:100%}}
@media(max-width:620px){.books-screen{padding-right:3px!important;gap:9px!important}.book-top{align-items:flex-start!important;flex-direction:column!important}.book-top .screen-title{font-size:25px!important}.book-actions{align-self:flex-end}.book-feature{min-height:112px!important;max-height:145px!important}.book-feature h2{font-size:19px!important}.book-feature p{font-size:9px!important}.book-searchline{align-items:stretch;flex-direction:column}.book-searchbox{max-width:none!important;width:100%;height:40px!important}.book-filters{flex-wrap:nowrap;overflow-x:auto;padding:2px 0 6px}.book-filter{flex:0 0 auto}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.book-cover{height:clamp(145px,25vh,205px)!important}.book-card-meta>b{font-size:10px!important}.book-card-actions button{font-size:8px!important}.reader-toolbar{gap:6px}.reader-toolbar>div{order:0;min-width:110px}.reader-controls{justify-content:center}.read-reader:not([hidden]){min-height:460px;flex-basis:460px}}
@media(prefers-reduced-motion:reduce){.reader-progress span{transition:none}}


/* XYNOXIA READ — fixed-screen bookstore with always-visible actions */
.books-screen{
 display:grid!important;
 grid-template-rows:auto auto auto minmax(0,1fr) auto auto!important;
 gap:clamp(6px,1vh,10px)!important;
 height:100%!important;min-height:0!important;max-height:100%!important;
 overflow:hidden!important;padding:4px 8px 4px 2px!important;
}
.content.workspace-active:has(.books-screen){height:100%!important;min-height:0!important;overflow:hidden!important;display:block!important}
.books-screen>.book-top{min-height:44px!important;max-height:58px!important;overflow:hidden!important}
.books-screen .book-top .screen-title{font-size:clamp(20px,2vw,29px)!important;line-height:1.05!important}
.books-screen .book-top .screen-sub{font-size:9px!important;margin:3px 0 0!important;line-height:1.3!important}
.books-screen .book-actions{gap:6px!important;align-self:center!important}
.books-screen .book-action{min-height:30px!important;padding:6px 10px!important;font-size:9px!important}
.book-library-intro{display:flex;align-items:center;gap:12px;min-height:38px;padding:6px 12px;border:1px solid #dceaf1;border-radius:10px;background:linear-gradient(100deg,#f0f8fc,#fff)}
.book-library-intro>span{font-size:8px;font-weight:800;letter-spacing:.14em;color:#31718f;white-space:nowrap}
.book-library-intro>b{font:600 15px Georgia,serif;color:#193d55}
.book-library-intro>small{margin-left:auto;font-size:8px;color:#728796;text-align:right}
.books-screen .book-searchline{display:grid!important;grid-template-columns:minmax(170px,.7fr) minmax(0,2fr)!important;gap:8px!important;min-height:36px!important;align-items:center!important;overflow:hidden!important}
.books-screen .book-searchbox{height:34px!important;min-width:0!important;max-width:none!important;width:100%!important}
.books-screen .book-filters{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;overflow:hidden!important;min-width:0}
.books-screen .book-filter{min-height:28px!important;padding:5px 8px!important;font-size:8px!important;white-space:nowrap!important;flex:0 1 auto!important}
.books-screen .book-shelf-head{min-height:28px!important;align-items:center!important}
.books-screen .book-shelf-head h3{font-size:15px!important;margin:2px 0 0!important}
.books-screen .book-shelf-head small{font-size:7px!important}
.books-screen .book-shelf-head>span{font-size:8px!important}
.books-screen .book-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;gap:clamp(8px,1vw,14px)!important;align-items:stretch!important;align-content:stretch!important;min-height:0!important;height:100%!important;overflow:hidden!important;padding:2px 2px 4px!important}
.books-screen .book-card{display:grid!important;grid-template-rows:minmax(90px,1fr) auto auto!important;gap:5px!important;min-width:0!important;min-height:0!important;overflow:hidden!important;padding:7px!important;border:1px solid #e1ebf0!important;border-radius:11px!important;background:#fff!important;box-shadow:0 3px 12px rgba(24,68,91,.05)!important}
.books-screen .book-cover-button{display:block!important;width:100%!important;min-height:0!important;height:100%!important;overflow:hidden!important;border-radius:7px!important}
.books-screen .book-cover{height:100%!important;min-height:95px!important;max-height:190px!important;width:100%!important;border-radius:6px!important;box-shadow:none!important}
.books-screen .book-cover-fallback{padding:12px 8px!important}
.books-screen .book-cover-fallback small{font-size:7px!important}
.books-screen .book-cover-fallback b{font-size:clamp(11px,1.15vw,16px)!important;line-height:1.15!important}
.books-screen .book-cover-fallback i{font-size:7px!important}
.books-screen .book-card-meta{gap:3px!important;min-height:0!important;overflow:hidden!important}
.books-screen .book-card-meta>b{font-size:10px!important;line-height:1.25!important;-webkit-line-clamp:2!important;min-height:25px}
.books-screen .book-card-meta>small{font-size:8px!important}
.books-screen .book-card-meta>span{font-size:7px!important}
.books-screen .book-card-actions{display:grid!important;grid-template-columns:minmax(0,1fr) 30px!important;gap:5px!important;align-items:center!important;margin:0!important}
.books-screen .book-card-actions button{min-height:32px!important;padding:7px 5px!important;border-radius:7px!important;font-size:9px!important;font-weight:700!important;white-space:nowrap!important;color:#fff!important;background:#176b91!important;border:1px solid #176b91!important}
.books-screen .book-card-actions button:last-child{color:#27556c!important;background:#f2f8fb!important;border-color:#dceaf1!important;font-size:15px!important}
.books-screen .book-card-actions button:focus-visible,.books-screen button:focus-visible{outline:3px solid #8cc8e4!important;outline-offset:2px!important}
.books-screen .book-pagination{display:flex;align-items:center;justify-content:center;gap:14px;min-height:32px}
.books-screen .book-page-btn{min-height:28px;padding:5px 12px;border:1px solid #d6e6ef;border-radius:8px;background:#fff;color:#24536e;font-size:9px;font-weight:700;cursor:pointer}
.books-screen .book-page-btn:disabled{opacity:.35;cursor:not-allowed}
.books-screen #read-page-label{font-size:9px;color:#617b8b;font-variant-numeric:tabular-nums}
.books-screen .book-footer{font-size:7px!important;line-height:1!important;text-align:center!important;white-space:nowrap!important}
.books-screen .read-reader[hidden]{display:none!important}
.books-screen .read-reader:not([hidden]){display:grid!important;grid-row:1/-1!important;grid-template-rows:auto 4px minmax(0,1fr) auto!important;gap:8px!important;min-height:0!important;height:100%!important;overflow:hidden!important}
.books-screen .reader-frame-wrap{min-height:0!important;height:100%!important;overflow:hidden!important}
.books-screen .reader-frame-wrap iframe{height:100%!important;overflow:auto!important}
@media(max-width:900px){
 .books-screen .book-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .books-screen .book-card:nth-child(n+5){display:none!important}
 .books-screen .book-filters{justify-content:flex-start!important}
 .book-library-intro>small{display:none}
}
@media(max-width:650px){
 .books-screen{grid-template-rows:auto auto auto auto minmax(0,1fr) auto!important}
 .books-screen>.book-top{max-height:none!important;flex-wrap:wrap!important}
 .books-screen .book-searchline{grid-template-columns:1fr!important}
 .books-screen .book-filters{overflow:hidden!important;flex-wrap:wrap!important;max-height:56px!important}
 .books-screen .book-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
 .books-screen .book-card:nth-child(n+5){display:none!important}
 .books-screen .book-cover{min-height:65px!important}
 .book-library-intro>b{font-size:12px}
}
@media(max-height:650px) and (min-width:651px){
 .books-screen{gap:4px!important}
 .books-screen .book-grid{gap:7px!important}
 .books-screen .book-card{padding:5px!important;gap:3px!important}
 .books-screen .book-cover-fallback{padding:7px 5px!important}
 .books-screen .book-card-actions button{min-height:28px!important}
 .book-library-intro{min-height:30px!important}
}


/* 2026-11-09 SIDEBAR TYPOGRAPHY + ALIGNMENT POLISH
   Preserve the existing navigation labels, symbols, destinations and active state. */
.side{
  padding:26px 14px 24px;
}
.side>.label{
  margin:0 0 16px 11px;
  font-size:10px;
  line-height:1.45;
  letter-spacing:.15em;
  font-weight:800;
  color:#68869a;
}
.nav{
  display:flex;
  flex-direction:column;
  gap:7px;
  width:100%;
}
.nav button[data-tab]{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  width:100%;
  min-width:0;
  min-height:46px;
  height:46px;
  padding:0 13px;
  border:1px solid transparent;
  border-radius:11px;
  text-align:left;
  font-family:inherit;
  font-size:13px;
  line-height:1.25;
  font-weight:600;
  letter-spacing:-.01em;
  color:#496579;
}
.nav button[data-tab] span{
  display:inline-flex;
  flex:0 0 22px;
  width:22px;
  height:22px;
  align-items:center;
  justify-content:center;
  margin:0;
  font-family:inherit;
  font-size:17px;
  line-height:1;
  font-weight:600;
  color:#1682b5;
  text-align:center;
}
.nav button[data-tab] .navtxt{
  display:block;
  flex:1 1 auto;
  min-width:0;
  margin:0;
  font-size:12.5px;
  line-height:1.3;
  font-weight:650;
  letter-spacing:-.01em;
  text-align:left;
}
.nav button[data-tab]:hover{
  transform:translateX(1px);
}
.nav button[data-tab].active .navtxt{
  font-weight:750;
}
.sidefoot{
  left:14px;
  right:14px;
  max-width:none;
  font-size:10px;
  line-height:1.65;
}
.sidefoot b{
  font-size:9px;
  line-height:1.4;
  letter-spacing:.13em;
}
@media(max-width:700px){
  .side{
    padding:13px 6px 18px;
  }
  .side>.label,.sidefoot{
    display:none;
  }
  .nav{
    align-items:stretch;
    gap:6px;
  }
  .nav button[data-tab]{
    justify-content:center;
    gap:0;
    min-height:44px;
    height:44px;
    padding:0;
    border-radius:10px;
  }
  .nav button[data-tab] span{
    flex:0 0 22px;
    width:22px;
    height:22px;
    font-size:18px;
  }
  .nav button[data-tab] .navtxt{
    display:none;
  }
}


/* XYNOXIA READ — editorial cover finish and quiet Kindle-inspired reading room */
.books-screen .book-cover{
 isolation:isolate;
 box-shadow:3px 8px 18px rgba(24,58,78,.14)!important;
 transition:transform .2s ease,box-shadow .2s ease;
}
.books-screen .book-cover-button:hover .book-cover{
 transform:translateY(-3px) rotate(-.4deg);
 box-shadow:5px 12px 22px rgba(24,58,78,.19)!important;
}
.books-screen .book-cover:before{
 content:"";
 position:absolute;z-index:0;inset:10% 12% 18%;
 border:1px solid rgba(255,255,255,.42);
 border-radius:48% 48% 8px 8px;
 background:radial-gradient(ellipse at 50% 40%,rgba(255,255,255,.32),transparent 66%);
 pointer-events:none;
}
.books-screen .book-cover:after{
 content:"";
 position:absolute;z-index:0;left:14%;right:14%;bottom:12%;height:1px;
 background:linear-gradient(90deg,transparent,rgba(31,76,99,.34),transparent);
 pointer-events:none;
}
.books-screen .book-cover-fallback{z-index:1!important}
.books-screen .book-cover-fallback small{font-size:7px!important;letter-spacing:.2em!important;color:#315c72!important}
.books-screen .book-cover-fallback b{
 max-width:100%;text-wrap:balance;
 text-shadow:0 1px 0 rgba(255,255,255,.42);
 letter-spacing:.025em;
}
.books-screen .book-cover-fallback i{font-size:6px!important;letter-spacing:.16em!important;color:#42677a!important}
.books-screen .book-card{transition:transform .18s ease,box-shadow .18s ease}
.books-screen .book-card:hover{transform:translateY(-2px)}
.books-screen .book-card-meta>span{letter-spacing:.015em}
.books-screen .book-card-actions button:first-child{background:linear-gradient(100deg,#176b91,#0c5278)!important}
.books-screen .book-card-actions button:first-child:hover{filter:brightness(1.08)}
.books-screen .reader-frame-wrap{background:#fbfaf6!important}
.books-screen .reader-toolbar{background:linear-gradient(90deg,#f6fbfd,#fff);border-radius:10px;padding:9px 10px;border:1px solid #e4edf1}
.books-screen .reader-toolbar>div:nth-child(2){text-align:left!important;flex:1}
.books-screen .reader-toolbar b{font:600 14px Georgia,serif!important;letter-spacing:-.01em}
.books-screen .reader-toolbar small{font-size:9px!important}
.books-screen .reader-progress{height:4px!important;background:#e8edf0!important}
.books-screen .reader-progress span{background:linear-gradient(90deg,#55a9c8,#176b91)!important}
@media(prefers-reduced-motion:reduce){
 .books-screen .book-cover,.books-screen .book-card{transition:none!important}
 .books-screen .book-cover-button:hover .book-cover,.books-screen .book-card:hover{transform:none!important}
}
