*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{height:100dvh;display:flex;flex-direction:column;background:radial-gradient(ellipse at top,#253642,#0c1520 75%);color:#f4eddf;font:14px Arial;padding:0 4%}a{color:#eacb8c;text-decoration:none}button,select{font:13px Arial;color:#eee7d8;background:#152637;border:1px solid #ffffff35;border-radius:7px;padding:9px 12px;cursor:pointer}button:hover,a:hover{color:#ffe6b3}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid #eacb8c;outline-offset:3px}header{height:65px;flex:none;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff16}.brand{font-size:12px;letter-spacing:2px}.back{font-size:12px}main{flex:1;min-height:0;display:flex;flex-direction:column}.intro{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:20px 0 8px}.intro span{font-size:10px;letter-spacing:2px;color:#eacb8c}h1{font:32px Georgia;margin:9px 0}.intro p{margin:0;color:#b6c2ce;font-size:12px}.filters{display:flex;align-items:center;gap:10px}.notice{font-size:12px;line-height:1.5;color:#b6c2ce;margin:8px 0}#library-status{min-height:18px;font-size:12px;margin:4px 0 10px;color:#ecd4a2}.works{flex:1;min-height:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr));gap:15px;align-content:start}.work-card{height:100%;min-height:0;display:flex;flex-direction:column;border:1px solid #ffffff20;background:#132231;border-radius:9px;overflow:hidden}.preview{flex:1;min-height:70px;background:#081522;display:grid;place-items:center;container-type:size;overflow:hidden}.preview-art{position:relative;width:min(100cqw,177.777cqh);height:min(100cqh,56.25cqw);overflow:hidden;container-type:inline-size}.preview-art.portrait{width:min(100cqw,66.667cqh);height:min(100cqh,150cqw)}.preview-art img{width:100%;height:100%;object-fit:contain;display:block}.preview-shade{position:absolute;inset:0;background:linear-gradient(90deg,#061322e6,transparent 90%)}.portrait .preview-shade{background:linear-gradient(0deg,#061322f5,transparent 75%)}.preview-quote{position:absolute;left:7%;top:18%;width:49%;font:7cqw/1.15 Georgia;white-space:pre-line;color:#fff1d3;overflow-wrap:anywhere}.portrait .preview-quote{top:57%;width:85%;font-size:8cqw}.preview-quote small{display:block;font:3cqw/1.2 Arial;margin-top:8%;color:#eacb8c}.card-details{flex:none;padding:12px}h2{font:20px Georgia;margin:0 0 7px}.card-details h2{font-size:17px}.meta{font-size:12px;color:#bac7d1;line-height:1.5;margin:0 0 10px}.card-actions{display:flex;flex-wrap:wrap;gap:6px}.card-actions a,.card-actions button{font-size:11px;padding:7px 9px;border:1px solid #ffffff2c;border-radius:5px}.card-actions .delete{color:#f1b5ac;background:transparent}footer{min-height:50px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;color:#aab7c3}#library-pages{display:flex;align-items:center;gap:12px}#empty{padding:30px 0;color:#bac7d1}#empty[hidden]{display:none}dialog{max-width:min(460px,92vw);border:1px solid #eacb8c55;border-radius:12px;background:#142435;color:#f4eddf;padding:25px}dialog::backdrop{background:#020811bb;backdrop-filter:blur(6px)}dialog p{font-size:14px;line-height:1.6}.dialog-actions{display:flex;gap:12px;margin-top:20px}.danger{background:#77392f}#delete-error{color:#ffc4ba}@media(max-width:650px){header{height:50px}.intro{padding-top:12px}.intro h1{font-size:25px}.intro span{font-size:8px}.filters label{display:none}.filters select{max-width:135px;font-size:11px;padding:8px}.notice{font-size:11px}footer>span{display:none}footer{justify-content:center}.works{gap:10px}.card-details{padding:10px}}@media(max-height:650px){.intro{padding:8px 0}.intro h1{font-size:24px}.notice{margin:4px 0}.intro p{display:none}header{height:45px}}

.preview-heading{display:block;font:3cqw/1.4 Arial;margin-bottom:6%;white-space:normal}.preview-footer{position:absolute;bottom:3%;left:7%;max-width:85%;font:2.7cqw/1.3 Arial;color:#fff0d4;overflow-wrap:anywhere;text-shadow:0 0 5px #000}.preview-quote{text-shadow:0 0 5px #000,0 0 10px #000}
