﻿/* Compact theme library, matching the warm furniture reference. */
body:has(.pf-library-page:not([hidden])){background:radial-gradient(ellipse at 85% 0,#f8dcc1,transparent 45%),linear-gradient(120deg,#fff4e8,#fcf8f5 55%,#f9eee6);color:#482411}
body:has(.pf-library-page:not([hidden])) .pf-main{max-width:1400px;width:96%;padding:0 0 32px}
.pf-library-page{position:relative}
.pf-library-page>.pf-head:first-child{position:relative;min-height:82px;margin:0;padding:12px 0;overflow:hidden}
.pf-library-title{display:flex;align-items:center;gap:12px;z-index:1}
.pf-library-symbol{width:42px;height:42px;border-radius:50%;background:linear-gradient(#fffaf2,#ffe6c7);box-shadow:0 2px 4px #7c3a1412;display:grid;place-items:center;color:#ea650a;font-size:27px}
.pf-library-symbol svg{width:27px;height:27px}
.pf-library-page .pf-head h2{font-size:25px;font-weight:800;color:#49230e}
.pf-library-page .pf-sub{font-size:12px;line-height:1.45;color:#393740}
.pf-library-art{position:absolute;right:150px;bottom:-22px;width:280px;height:125px;object-fit:contain;pointer-events:none}
#pf-themes-refresh{position:relative;z-index:1;background:#fffaf7;border-color:#f5ded0;box-shadow:0 3px 5px #7c3a1412;font-size:12px;padding:7px 12px;border-radius:11px}
#pf-themes-refresh:before{content:'⟳';font-size:17px}
.pf-library-page .pf-theme-import{display:grid;grid-template-columns:170px minmax(0,1fr) 190px;gap:6px 20px;padding:15px 22px;margin-bottom:14px;border:1px solid #f3dfd3;border-radius:18px;background:linear-gradient(110deg,#fffaf5,#fffdfbca);box-shadow:0 3px 5px #713b1710;align-items:center}
.pf-import-art{width:170px;height:115px;grid-column:1;grid-row:1/4;filter:drop-shadow(0 6px 9px #eaba8533)}
.pf-theme-import>div:not(.pf-actions):not(#pf-theme-result){grid-column:2;grid-row:1}
.pf-library-page .pf-eyebrow{display:table;font-size:10px;letter-spacing:.06em;background:#ffe6cc;color:#a7430c;border-radius:8px;padding:1px 9px;margin-bottom:3px}
.pf-theme-import h3{font-size:20px;line-height:1.2;margin:0!important;font-weight:800}
.pf-theme-import>.pf-actions{grid-column:2;grid-row:2;gap:10px}
.pf-library-page .pf-btn{min-height:30px;padding:4px 14px;font-size:12px;border-radius:7px}
.pf-library-page .pf-btn-primary{background:linear-gradient(#67370f,#492606);border:1px solid #825327;box-shadow:0 2px 4px #4b291219}
.pf-library-page .pf-btn-primary:disabled{opacity:1;background:linear-gradient(#75502b,#533211);color:#eee1d3;cursor:not-allowed}
#pf-theme-choose:before{content:'▱';font-size:17px}#pf-theme-import:before{content:'↥';font-size:17px}
#pf-theme-import{border-color:#efd9ca;background:#fffcf9;box-shadow:0 2px 4px #4b291210}
#pf-theme-selection{grid-column:2;grid-row:3;font-size:10.5px;line-height:1.4;color:#514a50}
.pf-theme-import>details{grid-column:3;grid-row:1/4;padding-left:22px;border-left:1px solid #f3d1b1;font-size:12px;line-height:1.45;text-align:center}
.pf-theme-import>details>summary{list-style:none;position:relative;padding-right:12px}
.pf-theme-import>details>summary:before{content:'‹/›';display:block;color:#ed7816;font-size:26px;font-weight:800;margin-bottom:4px}
.pf-theme-import>details>summary:after{content:'›';position:absolute;right:0;bottom:0;font-size:22px}
.pf-theme-import>details[open]{grid-column:2/4;grid-row:4;text-align:left}
#pf-theme-result{grid-column:2/4;font-size:12px}
.pf-library-page .pf-installed-head{margin:0;padding:0 0 0 42px;min-height:40px;position:relative}
.pf-installed-head:before{content:'◇';position:absolute;left:0;top:4px;background:#ffe5cb;color:#ad470f;border-radius:50%;width:32px;height:32px;text-align:center;line-height:30px;font-size:28px}
.pf-installed-head h3{font-size:17px;font-weight:800}
.pf-library-page .pf-theme-badge{font-size:10px;padding:2px 8px;background:#d9f1d0;color:#245d23}
.pf-library-views{display:flex;justify-content:flex-end;margin-top:-32px;margin-bottom:16px;height:28px}
.pf-library-views button{width:35px;border:1px solid #eedbcf;background:#fffaf7;color:#603d27;font-size:20px;cursor:pointer}
.pf-library-views button:first-child{border-radius:8px 0 0 8px}.pf-library-views button:last-child{border-radius:0 8px 8px 0}
.pf-library-views button[aria-pressed="true"]{color:white;background:linear-gradient(#875527,#513012)}
.pf-library-page .pf-theme-grid{gap:12px;margin-top:8px;align-items:start}
.pf-library-page .pf-theme-card{padding:7px;border:1px solid #f1dfd4;border-radius:17px;background:#fffdfc;box-shadow:0 2px 4px #824a2012}
.pf-library-page .pf-theme-preview{height:155px;border-radius:11px;object-fit:cover;object-position:top}
.pf-library-page .pf-theme-body{padding:7px 8px 3px;gap:5px}
.pf-library-page .pf-theme-heading h3{font-size:16px;font-weight:800;line-height:1.2}
.pf-theme-heading .pf-theme-badge:not(.is-invalid):before{content:'✓ ';font-weight:700}
.pf-library-page .pf-hint{font-size:10.5px;line-height:1.4;color:#514a50}
.pf-library-page .pf-theme-body>.pf-sub{font-size:11.5px;line-height:1.45;min-height:33px}
.pf-library-page .pf-theme-card details{font-size:11px;background:#fbefe3;border-radius:9px;padding:2px 9px}
.pf-library-page .pf-theme-card details[open]{padding-bottom:8px}
.pf-library-page .pf-theme-card .pf-field{font-size:12px;gap:3px;margin-top:3px}
.pf-library-page .pf-theme-card select{height:30px;padding:3px 10px;font-size:11px;border-color:#ebdcd2;border-radius:8px;box-shadow:0 2px 3px #724b1910}
.pf-theme-actions{display:flex;gap:12px;margin-top:4px}.pf-theme-actions>.pf-btn{flex:1;min-width:0}
.pf-library-page .pf-theme-delete{margin:0;width:auto;color:#ec2525;border-color:#ff5757}
.pf-library-page .pf-theme-delete.is-confirm{color:#fff}
.pf-theme-actions [data-theme-apply]:before{content:'✓';font-size:14px}
.pf-theme-actions [data-theme-delete]:before{content:'♜';font-size:14px}
.pf-theme-grid.is-list{grid-template-columns:1fr}.pf-theme-grid.is-list .pf-theme-card{display:grid;grid-template-columns:35% 1fr;gap:12px}.pf-theme-grid.is-list .pf-theme-preview{height:100%;min-height:180px}
@media(min-width:1500px){.pf-library-page .pf-theme-preview{height:180px}}
@media(max-width:1050px){.pf-library-page .pf-theme-import{grid-template-columns:150px minmax(0,1fr) 170px;padding:12px 16px;gap:5px 16px}.pf-import-art{width:150px}.pf-library-page .pf-theme-preview{height:128px}.pf-library-page .pf-head h2{font-size:23px}.pf-theme-import h3{font-size:18px}}
@media(max-width:700px){.pf-library-art{display:none}.pf-library-page .pf-theme-import{grid-template-columns:90px minmax(0,1fr);padding:12px;gap:8px}.pf-import-art{width:90px;height:90px;grid-row:1/3}.pf-theme-import>details{grid-column:1/3;grid-row:4;border-left:0;border-top:1px solid #efdccc;padding:8px 0 0;text-align:left}.pf-theme-import>details>summary:before{display:inline;font-size:18px;margin-right:8px}.pf-theme-import>details[open]{grid-column:1/3}#pf-theme-selection{grid-column:1/3}#pf-theme-result{grid-column:1/3}.pf-library-page .pf-theme-grid{grid-template-columns:1fr}.pf-library-page .pf-theme-preview{height:160px}.pf-library-page .pf-theme-import .pf-sub{font-size:11px}.pf-theme-import h3{font-size:16px}.pf-theme-import>.pf-actions{flex-wrap:wrap}.pf-library-page .pf-head h2{font-size:21px}.pf-library-symbol{width:34px;height:34px}.pf-library-page .pf-head .pf-sub{max-width:220px;font-size:11px}.pf-library-views{margin-top:8px;margin-bottom:0}.pf-theme-grid.is-list .pf-theme-card{display:block}.pf-theme-grid.is-list .pf-theme-preview{height:160px;min-height:0}}
/* Consistent line icons instead of platform-dependent symbol glyphs. */
.pf-theme-actions [data-theme-delete]:before{content:'';width:14px;height:14px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 6h18M9 6V3h6v3M5 6l1 15h12l1-15M10 10v7M14 10v7'/%3E%3C/svg%3E") center/contain no-repeat}
.pf-installed-head:before{content:'';background:#ffe5cb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ad470f' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M2 7l10-5 10 5-10 5zM2 12l10 5 10-5M2 17l10 5 10-5'/%3E%3C/svg%3E") center/23px no-repeat}
