/* Veloria Midnight Archive v13 — approved dark manuscript panel and gilded controls.
   Reuses existing art, navigation, and lore renderer; no image baked into the UI. */
html[data-theme="stone"]{--ink:#f0e6d6;--muted:#d1bfa5;--accent:#dfbd78;--line:#c7a16d80}
html[data-theme="stone"] .topbar{background:rgba(19,22,21,.87);border-bottom:1px solid #c9a36b9c;box-shadow:0 8px 26px #1318165c}
html[data-theme="stone"] .topbar nav a{font-family:Georgia,"Times New Roman",serif;font-size:16px;color:#e8daca}
html[data-theme="stone"] .topbar nav a[aria-current="page"]:before{background:linear-gradient(0deg,#bc976558,transparent);border-bottom:2px solid #d5b476}
html[data-theme="stone"] .codex{grid-template-columns:minmax(220px,.75fr) minmax(390px,1.37fr) minmax(325px,1.13fr);gap:clamp(15px,1.6vw,28px);padding-top:clamp(28px,4vh,48px)}
html[data-theme="stone"] .catalog{background:linear-gradient(155deg,rgba(20,23,22,.94),rgba(29,31,28,.90));border:1px solid #cca7749e;box-shadow:0 0 0 5px #1b1c1bb5,0 24px 46px #161c186a}
html[data-theme="stone"] .catalog:before{border-color:#cba66b61}
html[data-theme="stone"] .catalog h2{color:#f8eddd}
html[data-theme="stone"] .group-heading{font-family:Georgia,serif;font-size:16px;color:#efdfc6;border-bottom-color:#c3a27259}
html[data-theme="stone"] .entry-button{font-family:Georgia,serif;font-size:15px;color:#e8dbca}
html[data-theme="stone"] .entry-button[aria-current="true"]{background:linear-gradient(90deg,#ab87594d,#8e734127);box-shadow:inset 3px 0 #e1c080;border-color:#c4a4729c}
html[data-theme="stone"] .search{background:#0c100e85;border-color:#b79b717a}
html[data-theme="stone"] .reader{color:#eee1cb;border:1px solid #c49e65;outline:1px solid #c39e688c;outline-offset:-11px;background-color:#191b1b;background-image:radial-gradient(ellipse at 58% 35%,rgba(100,88,68,.16),transparent 76%),repeating-linear-gradient(130deg,rgba(208,183,126,.028) 0,rgba(208,183,126,.028) 1px,transparent 1px,transparent 28px),linear-gradient(135deg,rgba(30,32,30,.98),rgba(20,23,23,.98));box-shadow:0 0 0 5px #131917ac,0 25px 65px #101a1399,inset 0 0 55px #0007}
html[data-theme="stone"] .reader:before,html[data-theme="stone"] .reader:after{color:#caa66c}
html[data-theme="stone"] .reader-frame{opacity:.42}
html[data-theme="stone"] #entry-category{color:#f1d6a3;background:linear-gradient(90deg,#6c4b28,#846438 65%,#4f422e);border-bottom:1px solid #d0ad74;font:600 13px/1.5 Georgia,serif;letter-spacing:.14em}
html[data-theme="stone"] .reader h2{color:#f8edd9;text-shadow:0 2px 12px #0005;font-family:Georgia,serif;font-weight:400}
html[data-theme="stone"] .subtitle{color:#d9bc83}
html[data-theme="stone"] .title-rule{height:9px;background:linear-gradient(90deg,transparent,#d7ae66b8,transparent) center/100% 1px no-repeat}
html[data-theme="stone"] .prose{color:#e6dfd3;font-size:clamp(17px,1.16vw,20px);line-height:1.77}
html[data-theme="stone"] .reader blockquote{color:#d7bf99;border-top:1px solid #c19b635f;font-style:italic}
html[data-theme="stone"] .related-button{background:#9a784525;border-color:#c19b697c;color:#f6ddb7}
html[data-theme="stone"] .catalog-controls button{background:#231e1a;border-color:#b99762;color:#efd6ac}
html[data-theme="stone"] .book-button{width:111%;margin-left:-5%;filter:drop-shadow(8px 26px 16px #11180c9e)}
html[data-theme="stone"] #book{filter:brightness(1.08) saturate(.91) drop-shadow(0 19px 20px #0a160c98)}
html[data-theme="stone"] .book-stage:before{background:radial-gradient(ellipse,#1d291d3c,transparent 73%)}
html[data-theme="stone"] footer{background:rgba(22,23,21,.9);border-top-color:#b999677a}
html[data-theme="stone"] .appearance-comparison a[aria-current="true"]{background:#a7895733;border-color:#c4a16b;color:#f6dbad}
html[data-theme="stone"] .reader-scroll{scrollbar-color:#92764d #1e2220}
html[data-theme="stone"] .search:focus-within{border-color:#e1bf84;box-shadow:0 0 0 2px #bba06b33}
@media(max-width:1150px){html[data-theme="stone"] .codex{grid-template-columns:220px minmax(0,1fr)}html[data-theme="stone"] .book-button{width:100%;margin-left:0}}
@media(max-width:680px){html[data-theme="stone"] .codex{display:flex;flex-direction:column}html[data-theme="stone"] .catalog,html[data-theme="stone"] .reader{width:100%}html[data-theme="stone"] .book-button{width:100%;margin-left:0}html[data-theme="stone"] .topbar nav{background:#1f2421f5}}
