/* The library is a native OS window: silver controls, phosphor paper, real art. */
.library-window { min-width: 520px; min-height: 420px; }
.library-body { display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; }
.library-address { display: flex; gap: 9px; align-items: center; padding: 6px 8px; border-bottom: 1px solid #808080; font: 11px Tahoma, sans-serif; }
.library-address code { flex: 1; padding: 4px 8px; color: #15211d; background: #e7e7d9; box-shadow: inset 1px 1px #808080, inset -1px -1px white; }
.library-address a { color: #000080; }
.library-banner { flex: none; position: relative; min-height: 128px; padding: 21px 24px; background: #060c13 url('/assets/studio/library-observatory.webp') right 43% / auto 320px no-repeat; color: #f1f2d9; overflow: hidden; }
.library-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #06111cf2, #06111c55 65%, transparent); }
.library-banner > * { position: relative; }
.library-eyebrow, .studio-eyebrow { margin: 0 0 8px; font: 10px/1.5 'Courier New', monospace; text-transform: uppercase; letter-spacing: 2px; color: #bce888; }
.library-banner h1 { margin: 0; font: 34px/1.1 Georgia, serif; letter-spacing: -1px; }
.library-banner p:last-child { margin: 9px 0 0; font: 12px/1.5 Tahoma, sans-serif; max-width: 345px; color: #d3dfd8; }
.library-tools { flex: none; display: flex; align-items: center; gap: 7px; padding: 8px; border-bottom: 1px solid #808080; }
.library-tools label { font: 11px Tahoma, sans-serif; }
.library-tools label:first-child { display: flex; align-items: center; gap: 8px; flex: 1; }
.library-tools label:nth-child(2) { display: flex; align-items: center; gap: 6px; }
.library-tools input { flex: 1; min-width: 70px; height: 28px; }
.library-tools select { max-width: 148px; height: 28px; }
.library-tools button { min-width: 54px; }
.library-content { min-height: 0; flex: 1; display: grid; grid-template-columns: 142px minmax(0, 1fr); overflow: hidden; }
.library-nav { padding: 13px 8px; background: #17252a; border-right: 1px solid #43504d; display: flex; flex-direction: column; gap: 6px; overflow: auto; min-height: 0; }
.library-nav button { width: 100%; min-width: 0; min-height: 32px; flex: none; border: 1px solid transparent; box-shadow: none; background: transparent; color: #c9d4cd; text-align: left; font: 12px/1.4 Tahoma, sans-serif; padding: 7px 9px; }
.library-nav button:hover { background: #283d40; }
.library-nav button[aria-pressed=true] { border-color: #9ead71; background: #c9e28d; color: #172318; }
.library-nav small { color: #8fa89e; font: 10px/1.6 'Courier New', monospace; margin: auto 7px 0; padding-top: 22px; }
.library-scroll { overflow: auto; min-height: 0; background: #0b151b; padding: 13px; scrollbar-color: #748581 #132029; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; align-content: start; }
.library-card { text-align: left; background: #18262d; color: #e5eadb; border: 1px solid #3a4b4b; padding: 0; box-shadow: none; min-width: 0; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; }
.library-card:hover { border-color: #c2e78c; background: #21333a; }
.library-card:active { box-shadow: none; }
.library-card:focus-visible, .library-nav button:focus-visible, .studio-tabs button:focus-visible { outline: 2px solid #dbf7ad; outline-offset: -3px; }
.library-card-art { width: 100%; height: 104px; display: grid; place-items: center; background: radial-gradient(ellipse at 70% 15%, #425c52, #182529 65%); border-bottom: 1px solid #425450; position: relative; overflow: hidden; }
.library-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 180ms ease; }
.library-card:hover .library-card-art img { transform: scale(1.035); }
.library-card[data-project=angelx] .library-card-art img { object-position: center 30%; }
.library-card-art .shell-icon-img { display: block; width: 46px; height: 46px; background-size: contain; background-position: center; background-repeat: no-repeat; image-rendering: pixelated; filter: drop-shadow(3px 4px 0 #0005); }
.library-card-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, #00000012 0 1px, transparent 1px 3px); }
.library-card-type { font: 9px/1.3 'Courier New', monospace; text-transform: uppercase; letter-spacing: .7px; color: #c2df99; margin: 10px 11px 5px; }
.library-card strong { color: #f1f0dc; font: bold 14px/1.25 Tahoma, sans-serif; padding: 0 11px; }
.library-card-description { color: #b9c9c8; font: 11px/1.5 Tahoma, sans-serif; padding: 6px 11px 12px; min-height: 45px; }
.library-empty { color: #ccd7cb; font: 13px/1.6 Tahoma, sans-serif; padding: 25px 12px; }
.library-empty[hidden] { display: none; }
.library-body .status-bar { flex: none; margin: 3px; }
.library-body .status-bar-field { font-size: 10px; }
.studio-window { min-width: 490px; min-height: 380px; }
.studio-body { background: #101b22; color: #dce4db; padding: 0 !important; overflow: auto; scrollbar-color: #849581 #17252a; }
.studio-heading { padding: 24px 26px 18px; border-bottom: 1px solid #425047; background: linear-gradient(125deg, #1c3233, #102029); }
.studio-heading h1 { font: 34px/1.08 Georgia, serif; letter-spacing: -.8px; color: #f0edce; margin: 5px 0 13px; max-width: 560px; }
.studio-heading .studio-description { font: 13px/1.7 Tahoma, sans-serif; color: #c5d6d1; max-width: 650px; margin: 0; }
.studio-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 9px; background: #0b151d; }
.studio-tabs button { min-width: 0; padding: 5px 10px; font: 11px Tahoma, sans-serif; }
.studio-tabs button[aria-pressed=true] { background: #c4d89a; }
.studio-media { margin: 0; background: #070d13; }
.studio-media-stage { height: 310px; display: grid; place-items: center; }
.studio-media img, .studio-media video { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.studio-media figcaption { font: 11px/1.5 Tahoma, sans-serif; color: #b7c5c2; padding: 9px 20px 13px; border-bottom: 1px solid #3e4c49; }
.studio-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 23px 26px; }
.studio-points h2 { font: bold 12px/1.4 Tahoma, sans-serif; color: #d5e7b6; margin: 0 0 7px; }
.studio-points p { font: 12px/1.65 Tahoma, sans-serif; color: #b7c9c7; margin: 0; }
.studio-actions { border-top: 1px solid #40504c; padding: 18px 26px 24px; background: #16272b; }
.studio-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-actions a { display: inline-block; color: #e5efcf; border: 1px solid #849b79; padding: 9px 13px; font: bold 11px Tahoma, sans-serif; text-decoration: none; }
.studio-actions a:hover { background: #30473c; }
.studio-actions a.studio-cta { background: #c7df9b; color: #14261a; }
.studio-actions small { display: block; margin-top: 13px; font: 10px/1.6 Tahoma, sans-serif; color: #a9bcb4; }
.icon-voyage { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M3 23h26l-5 5H8z' fill='%23aa6236' stroke='%23142223'/%3E%3Cpath d='M16 2v22' stroke='%23efcd85' stroke-width='2'/%3E%3Cpath d='M13 4L3 20h10zM19 6v14h11z' fill='%23f0edcc' stroke='%234b6575'/%3E%3Cpath d='M1 30h30' stroke='%234bc4c7' stroke-width='2'/%3E%3C/svg%3E"); }
.icon-angelx { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Cpath d='M16 2L29 9v14l-13 7L3 23V9z' fill='%2318294b' stroke='%23a5dce8'/%3E%3Cpath d='M7 9l18 14M25 9L7 23' stroke='%23b9f379' stroke-width='3'/%3E%3Crect x='13' y='13' width='6' height='6' fill='%23fff2c3'/%3E%3C/svg%3E"); }
.icon-treebeard { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect x='13' y='19' width='6' height='11' fill='%23bd9561' stroke='%23112f25'/%3E%3Cpath d='M16 1L5 13h6L2 23h28L21 13h6z' fill='%238bd685' stroke='%2315362c'/%3E%3Cpath d='M16 7v13' stroke='%23e1f4b8'/%3E%3C/svg%3E"); }
.icon-soulbinder { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cellipse cx='16' cy='29' rx='12' ry='2' fill='none' stroke='%2398c582'/%3E%3Cpath d='M7 10C7-1 25-1 25 10v8l-5 6h-8l-5-6z' fill='%23323e4b' stroke='%23cfe999'/%3E%3Cpath d='M10 11h3m6 0h3M13 19h6' stroke='%23d3f494' stroke-width='2'/%3E%3C/svg%3E"); }
.icon-h3spark { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect x='2' y='4' width='28' height='24' fill='%23283738' stroke='%23d6dab5'/%3E%3Cpath d='M12 10l11 6-11 6z' fill='%23c3ed88'/%3E%3Cpath d='M4 7h3m-3 6h3m-3 6h3m-3 6h3m18-18h3m-3 6h3m-3 6h3m-3 6h3' stroke='%23cecaaf' stroke-width='2'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { .library-card-art img { transition: none; } }
