:root{--bg:#f4f6f7;--paper:#fff;--ink:#243532;--muted:#66736f;--line:#dce2df;--accent:#24685e;--soft:#ecf2ef;--shadow:0 2px 3px #1b34250a;--serif:Georgia,'Times New Roman',serif;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 Arial,Helvetica,sans-serif}body.dark{--bg:#0b0e10;--paper:#151a1d;--ink:#e5e9eb;--muted:#a5afb4;--line:#2b3338;--accent:#8eb7b7;--soft:#1e262b;color-scheme:dark}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7d9e90;outline-offset:4px}svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}h1,h2,p,figure{margin:0}h1,h2{font-weight:500;line-height:1.2}h1{font-size:32px;letter-spacing:-.8px}h2{font-size:24px}button{color:inherit}.shell{max-width:1130px;width:calc(100% - 80px);margin:auto}.masthead{height:132px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:13px;font-size:34px;letter-spacing:-1.2px;line-height:1.1}.brand-light{font-weight:400;margin-left:7px;color:var(--accent)}.brand img{width:43px;height:54px}.header-tools{display:flex;align-items:center;gap:26px;font-size:14px}.header-tools>a{border-bottom:1px solid var(--line);padding-bottom:2px}.icon-button{background:none;border:1px solid var(--line);border-radius:7px;display:inline-grid;place-items:center;width:40px;height:40px}.icon-button svg{width:20px;height:20px}.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:12px}.landscape{position:relative;overflow:hidden;border-radius:8px;background:#354c40;min-height:350px}.landscape>img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center 46%}.landscape:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#102c2b9c,transparent 85%),linear-gradient(0deg,#152c2b88,transparent 70%)}figcaption{position:relative;z-index:1;padding:35px;color:white;display:flex;flex-direction:column;height:100%;min-height:350px;align-items:flex-start}figcaption .eyebrow{font-size:12px;color:#eef4ef;letter-spacing:1.7px}figcaption strong{font-weight:400;font-size:49px;line-height:1.04;letter-spacing:-1.8px;margin-top:auto;padding:42px 0 26px}.location{font-size:12px;letter-spacing:.2px;background:#1526216e;padding:4px 8px;border-radius:3px}.field-index{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--paper);display:flex;flex-direction:column;box-shadow:var(--shadow)}.index-heading{padding:15px 16px;display:flex;align-items:center;justify-content:space-between}.eyebrow{font-size:12px;font-weight:600;letter-spacing:1.3px;color:var(--muted)}.mini-crystal{color:var(--accent);font-size:23px}.layer{padding:12px 17px;display:flex;flex:1;flex-direction:column;border-top:1px solid #ffffff5c;color:#24433b;position:relative}.layer:before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:currentColor;opacity:.25}.layer-code{font-size:10px;letter-spacing:.85px;opacity:.8}.layer strong{font-size:18px;line-height:1.17;font-weight:500;margin:5px 0}.layer small{font-family:var(--serif);font-size:13px;opacity:.9}.exploration{background:#c8dcd0}.tectonic{background:#e4e1cf}.einaudi{background:#cddce0}.index-footer{padding:12px 16px;font:12px var(--serif);color:var(--muted)}.intro{text-align:center;font-size:18px;margin:34px 0 45px;letter-spacing:-.2px}.intro span{font-family:var(--serif);color:var(--accent);font-style:italic}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.section-heading h1{font-size:26px;margin-top:8px}.subtle{font-size:14px;color:var(--muted)}.collection-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.collection{display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:23px 23px 0;box-shadow:var(--shadow)}.card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.folder-icon{width:30px;height:27px;color:var(--accent)}.access{font-size:12px;color:var(--muted);background:var(--soft);padding:3px 9px;border-radius:20px}.collection h2{color:var(--accent);font-size:24px;letter-spacing:-.6px;min-height:58px}.collection h2 span{color:var(--ink)}.collection p{font-family:var(--serif);font-size:16px;color:var(--muted);margin:17px 0 22px;min-height:75px}.tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:auto}.tags span{font-size:12px;padding:3px 8px;background:var(--soft);color:var(--muted);border-radius:3px}.card-bottom{border-top:1px solid var(--line);margin-top:22px;padding:14px 0;display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:12px}.card-bottom>span{color:var(--muted)}.card-bottom strong{display:flex;align-items:center;gap:6px;font-weight:500;font-size:13px;color:var(--accent)}.card-bottom svg{width:17px;height:17px}.learning-note{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:38px 0 40px;margin-top:20px}.learning-note p{font:17px/1.6 var(--serif)}.learning-note p span{color:var(--muted)}.dots{display:flex;gap:6px;align-items:center}.dots i{display:block;width:6px;height:6px;border-radius:50%;background:#dce2df}.dots i:nth-child(2){background:#c2ccc6}.dots i:nth-child(3){background:#a3b1a9}.dots i:nth-child(4){background:#82978b}.dots i:nth-child(5){background:#627b6c}.dots i:nth-child(6){background:#3d5949}.dots i:nth-child(7){background:#1d382b}footer{border-top:1px solid var(--line);padding:26px 0 32px;display:flex;justify-content:space-between;gap:22px;font-size:13px}footer strong{font-weight:500;font-size:15px}footer span{display:block;font-size:12px;color:var(--muted);margin-top:5px}.footer-right{display:flex;align-items:flex-start;gap:24px;font-size:12px;color:var(--muted)}.text-button{padding:0;background:none;border:0;font-size:inherit}.skip{position:absolute;left:20px;top:-100px;background:var(--paper);padding:10px;z-index:5}.skip:focus{top:10px}[hidden]{display:none!important}.back{display:inline-block;color:var(--accent);font-size:14px;border-bottom:1px solid var(--line);margin-bottom:30px}.folder-heading{display:flex;justify-content:space-between;align-items:center;gap:25px;border-bottom:1px solid var(--line);padding-bottom:28px;margin-bottom:30px}.folder-heading h1{margin:10px 0}.button{display:inline-flex;justify-content:center;align-items:center;min-height:43px;padding:10px 19px;background:var(--accent);color:var(--paper);border:1px solid transparent;border-radius:5px;font-size:14px;font-weight:500;white-space:nowrap}.secondary{background:var(--paper);color:var(--ink);border-color:var(--line)}#folder-page{min-height:65vh;padding-bottom:60px}.gate{background:var(--paper);max-width:580px;margin:40px auto;padding:38px;border:1px solid var(--line);border-radius:9px;text-align:center}.gate>img{margin-bottom:18px}.gate>p{color:var(--muted);margin:16px 0 24px}.gate form{text-align:left}.gate>.subtle{font-size:12px;display:block;margin-top:17px}label{display:block;font-size:14px}input,textarea,select{border:1px solid var(--line);border-radius:5px;padding:11px 12px;background:var(--paper);color:var(--ink);width:100%;font-size:16px}textarea{resize:vertical}input[type=file]{font-size:14px}.password-row{display:flex;gap:10px;margin-top:7px}.password-row input{min-width:0;letter-spacing:4px}.error{color:#a63c35;font-size:14px;margin-top:12px;white-space:pre-wrap}.error:empty{display:none}.library-toolbar{display:flex;gap:12px;align-items:center}.search{position:relative;flex:1}.search svg{position:absolute;left:12px;top:13px;width:19px;height:19px;color:var(--muted)}.search input{padding-left:40px}.library-toolbar select{width:180px;appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23748078' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;font-size:14px}.list-caption{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin-top:25px;padding-bottom:12px;border-bottom:1px solid var(--line)}.resource{display:flex;gap:18px;align-items:start;padding:22px 5px;border-bottom:1px solid var(--line)}.file-type{font-size:11px;border:1px solid var(--line);border-radius:4px;padding:8px 6px;color:var(--accent);min-width:43px;text-align:center}.resource-info{flex:1;min-width:0}.resource h2{font-size:20px;overflow-wrap:anywhere}.resource p{font-size:14px;color:var(--muted);margin-top:7px}.resource-actions{display:flex;gap:12px;flex-shrink:0;padding-top:4px}.resource-actions a,.resource-actions button{font-size:13px;background:none;border:0;border-bottom:1px solid var(--line);padding:0;color:var(--accent)}.empty{padding:60px 30px;text-align:center}.empty .folder-icon{width:45px;height:40px;margin-bottom:18px;opacity:.6}.empty h2{font-size:23px}.empty p{color:var(--muted);font-family:var(--serif);margin-top:12px}dialog{border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);padding:30px;max-width:620px;width:calc(100% - 32px);max-height:90dvh;overflow:auto;box-shadow:0 20px 90px #0003}dialog::backdrop{background:#162b2599;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.close{font-size:26px;border:0}.dialog-top+h2{margin-bottom:12px}dialog form{margin-top:24px}dialog label{margin-top:16px}dialog label>input,dialog label>textarea{margin-top:6px}.two-fields{display:grid;grid-template-columns:3fr 1fr;gap:14px}dialog small{display:block;margin-top:6px}dialog form>.subtle{font-size:12px;margin-top:8px}dialog form>.button{margin-top:20px;width:100%}dialog p+p{margin-top:18px}.notice{background:var(--soft);border-left:3px solid var(--accent);padding:16px;font-size:14px;margin-top:20px}#reader-body{white-space:pre-wrap;overflow-wrap:anywhere;font:18px/1.8 var(--serif);margin:28px 0}#reader-meta{margin-top:10px}#about-dialog p{color:var(--muted);font-size:15px}
@media(min-width:1600px){.shell{max-width:1200px}.landscape,figcaption{min-height:390px}}
@media(max-width:1000px){.shell{width:calc(100% - 48px)}.hero-grid{grid-template-columns:minmax(0,1fr) 210px}.brand{font-size:29px}.collection{padding:19px 17px 0}.collection h2{font-size:22px}.card-bottom{flex-wrap:wrap}.learning-note{gap:20px}.learning-note>.eyebrow{max-width:130px}.intro{font-size:17px}}
@media(max-width:720px){.shell{width:calc(100% - 32px)}.masthead{height:94px;gap:12px}.brand{font-size:24px;gap:8px;letter-spacing:-1px}.brand-light{display:block;margin:2px 0 0;font-size:20px}.brand img{width:32px;height:44px}.header-tools{gap:14px;font-size:12px}.icon-button{height:36px;width:36px}.hero-grid{grid-template-columns:1fr}.landscape,figcaption{min-height:300px}figcaption{padding:25px}figcaption strong{font-size:43px}figcaption .eyebrow{font-size:10px}.field-index{display:grid;grid-template-columns:repeat(3,1fr)}.index-heading,.index-footer{display:none}.layer{padding:13px 10px}.layer-code{font-size:8px;letter-spacing:.4px}.layer strong{font-size:15px}.layer strong br{display:none}.layer small{font-size:11px}.intro{margin:25px 12px 34px;font-size:17px;line-height:1.7}.intro span{display:block}.section-heading{display:block}.section-heading>.subtle{display:block;margin-top:12px;font-size:12px}.section-heading h1{font-size:24px}.collection-grid{grid-template-columns:1fr;gap:13px}.collection{padding:20px 22px 0}.card-top{margin-bottom:15px}.collection h2{font-size:25px;min-height:0}.collection h2 span{margin-left:0}.collection p{min-height:0;margin:12px 0 16px}.card-bottom{flex-wrap:nowrap}.learning-note{display:block;padding:30px 4px}.learning-note>.eyebrow{max-width:none}.learning-note p{margin:14px 0 20px}footer{flex-direction:column}.footer-right{gap:20px;flex-wrap:wrap}.folder-heading{align-items:start;flex-direction:column;gap:10px}.folder-heading h1{font-size:30px}.gate{padding:28px 22px}.gate h2{font-size:23px}.gate>p{font-size:15px}.library-toolbar{flex-wrap:wrap}.search{flex-basis:100%}.library-toolbar select{flex:1;min-width:0}.library-toolbar .button{padding:10px 14px}.resource{flex-wrap:wrap;gap:12px}.resource-info{flex-basis:calc(100% - 60px)}.resource-actions{padding-left:55px}.list-caption>span:last-child{display:none}dialog{padding:23px}.two-fields{grid-template-columns:2fr 1fr}}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

/* 1. APPROVED PYROXENE IDENTITY */
.pyroxene-logo,.brand>.pyroxene-logo{display:inline-block;flex-shrink:0;width:60px;height:65px;object-fit:contain;filter:hue-rotate(-8deg) saturate(.65)}
body.dark .pyroxene-logo{filter:hue-rotate(-8deg) saturate(.5) brightness(1.9)}
.gate>.pyroxene-logo{width:53px;height:60px;margin-bottom:18px}
.access{display:inline-grid;place-items:center;width:29px;height:29px;padding:0;border-radius:50%;color:var(--accent)}
.access svg{width:18px;height:18px;stroke-width:1.5}
.intro span{font-style:normal}
figcaption strong{font-size:43px;letter-spacing:-1.3px}
body.dark .exploration{background:#263938;color:#d2e3df}
body.dark .tectonic{background:#34352f;color:#e0e1d7}
body.dark .einaudi{background:#29363f;color:#d7e3eb}
body.dark .layer{border-top-color:#ffffff0c}
body.dark .landscape>img{filter:brightness(.82)}
@media(max-width:1000px){figcaption strong{font-size:37px}}
@media(max-width:720px){.brand>.pyroxene-logo{width:42px;height:51px}figcaption strong{font-size:33px;letter-spacing:-.8px}.header-tools{gap:10px}.header-tools>a{max-width:80px;text-align:center;line-height:1.25}.layer-code{font-size:8px}}

/* 2. COMPACT CONTROLS */
.button{min-height:26px;height:26px;padding:2px 13px;font-size:14px;line-height:20px;border-radius:4px}
input:not([type=checkbox]):not([type=radio]),select{height:26px;min-height:26px;padding:2px 10px;font-size:16px;line-height:20px;border-radius:4px}
input[type=file]{font-size:13px;padding:2px 6px}
input[type=file]::file-selector-button{height:20px;line-height:16px;padding:1px 8px;margin-top:-1px;margin-right:8px;border:0;border-radius:2px;background:var(--soft);color:var(--ink);font:inherit;font-size:12px}
.library-toolbar{gap:10px}
.library-toolbar select{padding:2px 32px 2px 10px;font-size:14px}
.search #search{padding-left:36px}
.search svg{left:10px;top:50%;transform:translateY(-50%);width:16px;height:16px;pointer-events:none}
.icon-button{width:28px;height:28px;border-radius:4px}
.icon-button svg{width:17px;height:17px}
.password-row .button{height:26px}
.dialog-top .close{font-size:23px}
@media(max-width:720px){.library-toolbar .button{padding:2px 10px}.header-tools{gap:8px}.header-tools>a{max-width:70px;font-size:11px}.brand{gap:6px}.brand>.pyroxene-logo{width:36px;height:46px}.brand{font-size:22px}.brand-light{font-size:19px}}

/* 3. MOUNTAIN AND METALLIC LIGHT */
.landscape>img{object-position:50% 46%;transform-origin:50% 45%}
.brand .metallic-brand{display:block}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
 .metallic-title{background:linear-gradient(110deg,#d8e1e2 0%,#f6faf9 30%,#fff 45%,#adbfc3 49%,#fff 53%,#e7f2f1 60%,#fff 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent}
 .metallic-brand{background:linear-gradient(110deg,#1d3e42 0%,#286168 33%,#44848c 43%,#aec8cb 48%,#397781 53%,#153c42 63%,#24685e 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent}
 .metallic-brand .brand-light{color:inherit}
 body.dark .metallic-brand{background-image:linear-gradient(110deg,#bdd3d7 0%,#eff8f7 33%,#9bbbc2 43%,#fff 48%,#bedee2 53%,#93b8bd 63%,#d4e6e8 100%)}
}
.collection{position:relative;overflow:hidden}
.collection:after{content:'';position:absolute;left:0;right:0;top:0;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent 15%,#9fbcbf 42%,#f7ffff 50%,#8eafb2 58%,transparent 85%);background-size:300% 100%;opacity:.65}
@media(prefers-reduced-motion:no-preference){
 .metallic-title,.metallic-brand{animation:metallic-sweep 12s linear infinite}
 .metallic-brand{animation-duration:16s}
 .collection:after{animation:metallic-sweep 18s linear infinite}
 .collection:nth-child(2):after{animation-delay:-6s}
 .collection:nth-child(3):after{animation-delay:-12s}
 .landscape>img{animation:mountain-drift 32s ease-in-out infinite alternate}
 .dots i{animation:mineral-light 8s ease-in-out infinite}
 .dots i:nth-child(2){animation-delay:.4s}.dots i:nth-child(3){animation-delay:.8s}.dots i:nth-child(4){animation-delay:1.2s}.dots i:nth-child(5){animation-delay:1.6s}.dots i:nth-child(6){animation-delay:2s}.dots i:nth-child(7){animation-delay:2.4s}
}
@keyframes metallic-sweep{0%{background-position:150% 50%}100%{background-position:-100% 50%}}
@keyframes mountain-drift{from{transform:scale(1)}to{transform:scale(1.045)}}
@keyframes mineral-light{0%,60%,100%{opacity:.55}30%{opacity:1}}
body.motion-paused .metallic-title,body.motion-paused .metallic-brand,body.motion-paused .collection:after,body.motion-paused .landscape>img,body.motion-paused .dots i{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.metallic-title,.metallic-brand,.collection:after,.landscape>img,.dots i{animation:none!important}}

/* 4. STUDY SUBFOLDERS */
.subfolders{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}
.subfolder{display:inline-flex;align-items:center;gap:8px;height:26px;padding:2px 10px;border:1px solid var(--line);border-radius:4px;background:var(--paper);font-size:14px;line-height:20px}
.subfolder svg{width:19px;height:18px;color:var(--accent)}
.subfolder span{font-size:12px;color:var(--muted);margin-left:8px}
.subfolder[aria-current=page]{border-color:var(--accent);background:var(--soft)}
.section-title{font-size:21px;margin:0 0 18px}
dialog label>select{margin-top:6px}
@media(max-width:420px){.subfolders{gap:8px}.subfolder{font-size:13px;padding:2px 8px;gap:5px}.subfolder span{margin-left:3px}}

/* 5. FINAL PYROXENE PALETTE AND RESPONSIVE WIDTH */
:root{--bg:#f1f6f7;--paper:#fff;--ink:#1d3e42;--muted:#4c6970;--line:#ccdde0;--accent:#286168;--soft:#e3eef0;color-scheme:light}
body.dark{--bg:#173e47;--paper:#204a53;--ink:#edf6f7;--muted:#bbd5da;--line:#497079;--accent:#b8e0e6;--soft:#2b5660;color-scheme:dark}
.shell{max-width:none;width:calc(100% - 48px)}
.masthead{height:110px;gap:20px}.header-tools{gap:18px}
#language{width:96px;font-size:14px;cursor:pointer}
.hero-grid{grid-template-columns:minmax(0,1fr) minmax(225px,22%)}
.landscape,figcaption{min-height:clamp(350px,34vw,520px)}
figcaption strong{font-size:clamp(38px,4vw,62px);max-width:100%}
.index-heading .mini-crystal{display:block;width:25px;height:30px;object-fit:contain}
.exploration{background:#c4dde1;color:#214d56}.tectonic{background:#9fc5cc;color:#183e47}.einaudi{background:#79abb6;color:#123842}
body.dark .exploration{background:#315f69;color:#e4f1f3}body.dark .tectonic{background:#3a6d79;color:#eff7f8}body.dark .einaudi{background:#457e8b;color:#fff}
.layer small{font-family:Arial,Helvetica,sans-serif;font-size:12px}
.collection .eps-title,.collection .eps-title span{color:var(--accent)}
.eps-full{display:block;font-size:13px;letter-spacing:.25px;color:var(--muted);margin-top:8px}
.collection .eps-title{min-height:0}
.collection p{min-height:60px}
.dots i:nth-child(1){background:#e0eef1}.dots i:nth-child(2){background:#bdd9df}.dots i:nth-child(3){background:#98c2cc}.dots i:nth-child(4){background:#70a6b4}.dots i:nth-child(5){background:#4b8798}.dots i:nth-child(6){background:#2d6375}.dots i:nth-child(7){background:#194451}
body.dark .dots{background:#a8cbd333;padding:7px;border-radius:20px}
body.dark .landscape>img{filter:brightness(.93)}
body.dark .pyroxene-logo{filter:hue-rotate(-8deg) saturate(.7) brightness(2.25)}
@media(prefers-reduced-motion:no-preference){.landscape>img{animation:mountain-drift 11s ease-in-out infinite alternate}}
@keyframes mountain-drift{from{transform:scale(1)}to{transform:scale(1.14)}}
@media(min-width:1800px){.shell{width:calc(100% - 64px)}.collection-grid{gap:22px}}
@media(max-width:1000px){.shell{width:calc(100% - 32px)}.header-tools{gap:12px}.brand{font-size:28px}.hero-grid{grid-template-columns:minmax(0,1fr) 210px}.landscape,figcaption{min-height:360px}figcaption strong{font-size:39px}}
@media(max-width:720px){.shell{width:calc(100% - 24px)}.masthead{height:100px;gap:10px}.brand{font-size:24px;gap:6px}.brand-light{font-size:20px}.header-tools{gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:172px}.header-tools>a{display:none}#language{width:90px}.hero-grid{grid-template-columns:1fr;gap:9px}.landscape,figcaption{min-height:350px}figcaption{padding:24px 18px}figcaption strong{font-size:37px}.layer{padding:13px 9px}.layer strong{font-size:16px}.layer-code{font-size:8px}.layer small{font-size:11px}.collection-grid{gap:12px}.collection p{min-height:0}.intro{margin:25px 8px 30px}.learning-note{padding:25px 4px}.folder-heading{margin-bottom:22px}}
@media(max-width:390px){.shell{width:calc(100% - 16px)}.brand{font-size:21px}.brand-light{font-size:18px}.brand>.pyroxene-logo{width:31px;height:42px}.header-tools{max-width:155px;gap:6px}#language{width:83px}.icon-button{width:26px;height:26px}figcaption strong{font-size:33px}.layer strong{font-size:14px}.layer-code{font-size:7px}.layer small{font-size:10px}.landscape,figcaption{min-height:330px}}

body.dark .pyroxene-logo{filter:hue-rotate(-8deg) saturate(.35) brightness(3.2)}
@media(max-width:720px){.field-index .index-heading{display:flex;grid-column:1/-1;padding:9px 12px}.index-heading .eyebrow{font-size:11px}}

.collection{min-width:0}.collection h2{overflow-wrap:break-word}

@media(max-width:720px){#language{width:94px;min-width:94px}.header-tools{max-width:166px}}

/* 6. FULL EPS TITLE AND LOW FOOTER ALIGNMENT */
.collection .eps-title{color:var(--accent)}
.collection .eps-title .eps-exploration{display:block;color:var(--ink);margin:0}
body{min-height:100svh;display:flex;flex-direction:column}
.masthead{flex-shrink:0;margin:0 auto}
main.shell{flex:1;display:flex;flex-direction:column;margin:0 auto}
#home{display:flex;flex-direction:column;flex:1}
.learning-note{display:grid;grid-template-columns:1fr minmax(0,2fr) 1fr;align-items:end;gap:24px;margin-top:auto;padding:42px 0 8px}
.learning-note>.eyebrow{max-width:none;line-height:1.5}
.learning-note p{text-align:center;margin:0}
.learning-note .dots{justify-self:end;margin:0 0 5px}
body.dark .learning-note .dots{margin-bottom:0}
footer.shell{flex-shrink:0;margin:0 auto;min-height:104px;padding:34px 0 10px;align-items:flex-end}
.footer-right{align-items:flex-end}
@media(max-width:720px){.learning-note{grid-template-columns:1fr 1fr;gap:14px;padding:36px 0 8px}.learning-note p{grid-column:1/-1;grid-row:1;font-size:16px}.learning-note>.eyebrow{grid-column:1;grid-row:2;font-size:10px}.learning-note .dots{grid-column:2;grid-row:2}footer.shell{flex-direction:row;align-items:flex-end;gap:12px;min-height:100px;padding:30px 0 10px}.footer-right{font-size:11px;text-align:right}footer strong{font-size:13px}footer span{font-size:11px}}

/* 7. FULL PANORAMA, EIGHT-SECOND HOLD AND SOFT METALLIC LIGHT */
.hero-grid{align-items:stretch}
.landscape{align-self:start;min-height:0;aspect-ratio:8060/4534;background:var(--soft)}
.landscape>img{position:relative;display:block;width:100%;height:auto;object-fit:contain;object-position:center;transform-origin:50% 50%;filter:none}
.landscape figcaption{position:absolute;inset:0;min-height:0;height:100%;padding:clamp(16px,2.5vw,35px);z-index:2}
.landscape figcaption strong{font-size:clamp(27px,3.5vw,52px);padding:18px 0 16px;text-shadow:0 2px 16px #102d3655}
.landscape:after{background:linear-gradient(0deg,#102b3670,transparent 62%),linear-gradient(180deg,#102b3633,transparent 25%)}
.landscape:before{content:'';position:absolute;inset:-30%;z-index:1;pointer-events:none;opacity:.18;background:linear-gradient(110deg,transparent 36%,#c4e5ee22 43%,#fff9 49%,#b8d6e03b 53%,transparent 61%);transform:translateX(-100%)}
body.dark .landscape>img{filter:none}
.landscape:not(.image-ready)>img,.landscape:not(.image-ready):before{animation:none!important}
@media(prefers-reduced-motion:no-preference){.landscape>img{animation:panorama-hold 30s ease-in-out infinite}.landscape:before{animation:panorama-glint 30s ease-in-out infinite}}
@keyframes panorama-hold{0%,26.667%,100%{transform:scale(1)}63.333%,73.333%{transform:scale(1.12)}}
@keyframes panorama-glint{0%,26.667%{transform:translateX(-100%)}63.333%,100%{transform:translateX(100%)}}
body.motion-paused .landscape:before{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.landscape:before{animation:none!important;opacity:0}}
.photo-credit a{text-decoration:underline;text-underline-offset:3px}
@media(min-width:721px) and (max-width:1000px){.hero-grid{grid-template-columns:minmax(0,1fr) 190px}.field-index .layer{padding:8px 12px}.field-index .index-heading{padding:9px 12px}.field-index .index-footer{padding:8px 12px}.field-index .layer strong{font-size:16px}.landscape figcaption strong{font-size:29px;padding:14px 0 12px}.landscape figcaption .eyebrow{font-size:10px}}
@media(max-width:720px){.landscape,.landscape figcaption{min-height:0}.landscape figcaption{padding:13px 15px}.landscape figcaption strong{font-size:clamp(23px,5.6vw,36px);padding:10px 0}.landscape figcaption .eyebrow{font-size:8px;letter-spacing:1px}.location{font-size:9px;padding:2px 5px}}

/* 8. COMPACT PHOTO CREDIT */
.landscape{aspect-ratio:1672/941}
#about-dialog{max-width:360px;padding:16px 18px;border-radius:7px}
#about-dialog .dialog-top{margin-bottom:8px;gap:12px}
#about-dialog #about-title{font-size:14px;line-height:1.3;margin:0}
#about-dialog p{font-size:11px;line-height:1.5;margin:0;color:var(--muted)}
#about-dialog p+p{margin-top:7px}
#about-dialog .close{width:24px;height:24px;font-size:21px;flex-shrink:0}

/* 9. READABLE STUDY PATHWAYS */
.field-index{align-self:start}
.field-index .layer{flex:0 0 auto;justify-content:center;padding:18px 18px;min-height:120px}
.field-index .layer-code{font-size:12px;line-height:1.35;letter-spacing:.35px;overflow-wrap:anywhere}
.field-index .layer strong{font-size:25px;line-height:1.15;margin:7px 0}
.field-index .layer small{font-size:14px;line-height:1.4}
.field-index .index-heading .eyebrow{font-size:13px}
.field-index .index-footer{font-size:13px;padding:12px 18px}
@media(min-width:721px) and (max-width:1000px){.hero-grid{grid-template-columns:minmax(0,1fr) 230px}.field-index .layer{padding:13px 15px;min-height:108px}.field-index .layer strong{font-size:22px}.field-index .layer-code{font-size:11px}.field-index .layer small{font-size:13px}}
@media(max-width:720px){.field-index{display:flex;flex-direction:column}.field-index .layer{padding:12px 16px;min-height:0}.field-index .layer strong{font-size:22px;margin:4px 0}.field-index .layer-code{font-size:12px}.field-index .layer small{font-size:14px}.field-index .index-heading{padding:11px 16px}.field-index .index-heading .eyebrow{font-size:12px}.field-index .index-footer{display:none}}

/* 10. COMPACT DOCUMENT LIST */
#resources{display:block}
.resource{min-height:0;gap:10px;padding:6px 4px;align-items:center}
.resource .file-type{font-size:10px;min-width:32px;padding:3px 4px}
.resource h2{font-size:16px;line-height:1.25}
.resource p{font-size:12px;line-height:1.25;margin-top:2px}
.resource .resource-excerpt{display:none}
.resource-actions{padding:0;gap:12px;align-items:center;flex-wrap:wrap}
.resource-actions a,.resource-actions button{font-size:13px;line-height:1.4;padding:4px 0}
@media(max-width:720px){.resource{display:grid;grid-template-columns:32px minmax(0,1fr);gap:2px 10px;padding:6px 2px}.resource-actions{grid-column:2;padding:0;gap:14px}.resource-info{min-width:0}.resource h2{font-size:16px}}

/* 11. SEARCH SPACING AND DENSE DOCUMENT ROWS */
.library-toolbar .search{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:4px;background:var(--paper);padding:0 10px;min-width:0}
.library-toolbar .search svg{position:static;transform:none;flex:0 0 16px;width:16px;height:16px;pointer-events:none}
.library-toolbar .search #search{border:0;border-radius:0;padding:2px 0;min-width:0;background:transparent;box-shadow:none}
#resources .resource{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;padding:5px 4px;min-height:42px}
#resources .resource-info{display:flex;align-items:baseline;gap:12px;min-width:0;flex-wrap:wrap}
#resources .resource h2{font-size:16px;line-height:1.2;margin:0}
#resources .resource p{font-size:12px;line-height:1.2;margin:0}
#resources .resource .resource-excerpt{display:none}
#resources .resource-actions{grid-column:auto;padding:0;gap:12px}
#pdf-dialog{max-width:1200px;width:calc(100% - 24px);height:92dvh;padding:16px;overflow:hidden}
#pdf-dialog[open]{display:flex;flex-direction:column;gap:10px}
#pdf-dialog .dialog-top{margin:0;gap:12px}
#pdf-title{font-size:18px;overflow-wrap:anywhere}
.pdf-toolbar{display:flex;gap:10px;flex-wrap:wrap}
#pdf-frame{width:100%;flex:1;min-height:0;border:1px solid var(--line);background:var(--soft)}
#pdf-dialog .subtle{font-size:12px}
@media(max-width:720px){#resources .resource{grid-template-columns:32px minmax(0,1fr);gap:2px 8px;padding:5px 2px}#resources .resource-info{display:block}#resources .resource-actions{grid-column:2}#resources .resource p{margin-top:2px}#pdf-dialog{padding:10px}#pdf-title{font-size:16px}}

/* 12. TABLET PDF VIEWER WITH PAGE-FIT CANVAS */
#pdf-dialog{position:fixed;inset:0;margin:auto;width:calc(100vw - 24px);max-width:1440px;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:12px;box-sizing:border-box}
#pdf-dialog[open]{display:flex;flex-direction:column;gap:8px}
#pdf-dialog .dialog-top,#pdf-dialog .pdf-toolbar,#pdf-dialog .pdf-controls,#pdf-dialog>p{flex-shrink:0}
#pdf-dialog .dialog-top{min-height:32px}
#pdf-dialog .close{flex-shrink:0}
#pdf-title{min-width:0;font-size:16px;line-height:1.2;max-height:2.4em;overflow:auto}
.pdf-controls{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.pdf-controls #pdf-fit{width:auto;max-width:150px;font-size:14px}
#pdf-counter{font-size:14px;min-width:55px;text-align:center;font-variant-numeric:tabular-nums}
#pdf-stage{flex:1 1 0;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;background:var(--soft);border:1px solid var(--line);padding:12px;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom}
#pdf-stage canvas{display:block;margin:0 auto;background:white;box-shadow:0 1px 5px #0002;max-width:none}
#pdf-status{font-size:13px;line-height:1.3;margin:0;min-height:17px}
#pdf-status:empty{display:block}
#pdf-dialog>p.subtle{display:none}
@media(max-width:720px){#pdf-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);padding:8px;gap:6px}.pdf-controls{gap:6px}.pdf-controls .button{padding:2px 10px}}

/* 13. RESPONSIVE ANNOTATION TOOLS AND TOUCH NAVIGATION */
#pdf-dialog .pdf-tools,#pdf-dialog .pdf-note{flex-shrink:0}
.pdf-tools{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
.pdf-tools select{width:auto;max-width:155px;font-size:14px}
#pdf-text{flex:1 1 210px;max-width:450px;font-size:16px}
.pdf-note{display:flex;justify-content:space-between;flex-wrap:wrap;gap:2px 12px;font-size:12px;line-height:1.25;color:var(--muted)}
#pdf-zoom-value{font-size:12px;min-width:36px;text-align:center}
#pdf-stage{position:relative;touch-action:none;scrollbar-gutter:stable;user-select:none;-webkit-user-select:none;cursor:grab}
#pdf-stage[data-tool=pen],#pdf-stage[data-tool=highlight],#pdf-stage[data-tool=underline]{cursor:crosshair}
#pdf-stage[data-tool=text]{cursor:text}
#pdf-stage .pdf-sheet{position:relative;margin:0 auto;flex-shrink:0;background:#fff;box-shadow:0 1px 5px #0002}
#pdf-stage .pdf-sheet>canvas{width:100%;height:100%;margin:0;box-shadow:none}
.pdf-annotations{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;fill:initial;stroke:none;pointer-events:none}
#pdf-dialog .pdf-toolbar{justify-content:flex-end}
@media(pointer:coarse){#pdf-dialog button,#pdf-dialog .button,#pdf-dialog select{height:34px;min-height:34px}#pdf-dialog .close{width:36px}}
@media(max-width:600px){#pdf-dialog .pdf-toolbar{justify-content:flex-start;gap:6px}#pdf-dialog .pdf-toolbar .button{font-size:12px;padding:2px 8px}.pdf-controls{gap:5px}.pdf-tools{gap:5px;justify-content:flex-start}.pdf-tools select{max-width:120px;font-size:13px}.pdf-note{font-size:11px}#pdf-dialog .dialog-top{min-height:28px}#pdf-title{font-size:15px}#pdf-text{max-width:none;flex-basis:100%;height:34px}#pdf-dialog[open]{gap:5px}}
@media(max-height:600px) and (orientation:landscape){#pdf-dialog .pdf-note{display:none}#pdf-dialog .pdf-toolbar{position:absolute;top:10px;right:48px}#pdf-title{max-width:40%;font-size:14px}#pdf-dialog .pdf-toolbar .button{font-size:11px;padding:2px 5px}#pdf-dialog[open]{gap:4px}#pdf-dialog .pdf-controls,#pdf-dialog .pdf-tools{gap:4px}}

/* 14. PASSWORD-PROTECTED MATERIAL MANAGEMENT */
#manage-dialog{max-width:440px}
#manage-item{overflow-wrap:anywhere}
.confirm-delete{display:flex;align-items:flex-start;gap:9px;line-height:1.4}
.confirm-delete input[type=checkbox]{width:18px;min-width:18px;height:18px;margin:1px 0 0}
@media(max-width:720px){#resources .resource-actions{flex-wrap:wrap;gap:4px 14px}}

/* 15. SINGLE-LINE MOBILE WORDMARK */
@media(max-width:720px){
 .masthead{height:auto;min-height:104px;padding:14px 0 12px;display:flex;flex-wrap:wrap;gap:9px}
 .masthead .brand{flex:0 0 100%;min-width:0;font-size:clamp(23px,6.2vw,30px);line-height:1;letter-spacing:-.8px;gap:9px;white-space:nowrap}
 .masthead .brand .metallic-brand{white-space:nowrap}
 .masthead .brand .brand-light{display:inline;font-size:inherit;line-height:inherit;margin:0 0 0 .2em}
 .masthead .brand>.pyroxene-logo{width:32px;height:38px;flex-shrink:0}
 .masthead .header-tools{max-width:none;width:100%;justify-content:flex-end;gap:10px;flex-wrap:nowrap}
}

/* 16. SINGLE-LINE LEARNING MOTTO */
.learning-note{grid-template-columns:max-content minmax(0,1fr) auto}
.learning-note>.eyebrow{white-space:nowrap}
@media(max-width:720px){
 .learning-note{grid-template-columns:max-content minmax(0,1fr);column-gap:8px}
 .learning-note>.eyebrow{font-size:10px;letter-spacing:.06em}
}

/* 17. HOME PHOTO GALLERY */
.landscape>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.photo-switcher{position:absolute;right:12px;bottom:12px;display:flex;gap:5px;z-index:3}
.photo-switcher button{width:32px;height:32px;border:1px solid #ffffff99;border-radius:50%;background:#143b49b3;color:white;font-size:12px;line-height:1;padding:0}
.photo-switcher button[aria-pressed=true]{background:#eef6f8;color:#194451}
.landscape .location{max-width:calc(100% - 118px);font-size:11px}
@media(max-width:720px){.photo-switcher{right:8px;bottom:8px;gap:4px}.photo-switcher button{width:28px;height:28px}.landscape .location{max-width:calc(100% - 96px);font-size:9px}}

/* 18. COMPACT PHOTO SELECTORS AND MOBILE MATERIAL TITLES */
.photo-switcher{gap:8px}
.photo-switcher button{width:18px;height:18px;font-size:9px;position:relative}
.photo-switcher button::after{content:"";position:absolute;inset:-5px}
@media(max-width:720px){
 .photo-switcher{gap:10px}
 .photo-switcher button{width:16px;height:16px;font-size:8px}
 .landscape .location{max-width:calc(100% - 88px)}
 #resources .resource h2{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;max-width:100%;line-height:1.3}
 #resources .resource p{font-size:11px}
 #resources .resource-actions{gap:4px 12px;flex-wrap:nowrap}
 #resources .resource-actions a,#resources .resource-actions button{font-size:11px;white-space:nowrap}
}

/* 19. TOUCH PHOTO VIEWER */
.landscape{cursor:zoom-in}
#photo-expand{position:absolute;right:12px;top:12px;z-index:4;width:32px;height:32px;border:1px solid #ffffff88;border-radius:50%;background:#143b49b3;color:white;font-size:22px;padding:0}
#photo-viewer{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom));border:0;border-radius:0;background:#102c34;color:#eef6f8;overflow:hidden}
#photo-viewer[open]{display:flex;flex-direction:column;gap:8px}
.photo-viewer-bar{display:flex;align-items:center;gap:8px;flex:none}
#photo-viewer-label{flex:1;min-width:0;font-size:12px;overflow-wrap:anywhere}
.photo-viewer-bar button{width:40px;height:40px;flex:none;border:1px solid #759da7;border-radius:5px;background:#244a54;color:white;padding:0;font-size:19px}
#photo-stage{flex:1;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none;user-select:none;-webkit-user-select:none;overscroll-behavior:contain;cursor:grab}
#photo-full{width:100%;height:100%;object-fit:contain;transform-origin:center;will-change:transform;pointer-events:none}
#photo-viewer>small{margin:0;text-align:center;font-size:10px;flex:none}
@media(max-width:720px){.photo-viewer-bar{gap:4px}.photo-viewer-bar button{width:36px;height:36px}#photo-viewer-label{font-size:10px}.landscape .location{max-width:calc(100% - 116px)}}

/* 20. SEVEN PHOTOS AND ORIGINAL SOURCE ACCESS */
#photo-original{color:#c6e7ee;font-size:11px;align-self:center}
#photo-original[hidden]{display:none}
@media(max-width:720px){.landscape .location{max-width:100%;margin-bottom:27px}.photo-switcher{gap:10px}}

/* Gallery gestures preserve vertical page scrolling. */
.landscape{touch-action:pan-y;cursor:pointer}
.landscape>img{user-select:none;-webkit-user-drag:none}
.landscape:after,.landscape:before{pointer-events:none}
.photo-switcher,#photo-expand{touch-action:manipulation}

/* 21. CAPTION AND PHOTO NUMBERS SHARE THE BOTTOM EDGE */
.landscape .photo-footer{position:absolute;z-index:3;left:8px;right:8px;bottom:8px;display:flex;align-items:flex-end;justify-content:space-between;gap:10px;color:white}
.landscape .photo-footer .location{position:static;min-width:0;max-width:none;margin:0;padding:3px 5px;font-size:11px;line-height:1.25;overflow-wrap:anywhere}
.landscape .photo-footer .photo-switcher{position:static;flex:none;align-self:flex-end}
.landscape figcaption{padding-bottom:65px}
@media(max-width:720px){
 .landscape .photo-footer{left:6px;right:6px;bottom:7px;gap:6px}
 .landscape .photo-footer .location{font-size:9px;padding:2px 3px;line-height:1.2}
 .landscape .photo-footer .photo-switcher{gap:4px}
 .landscape .photo-footer .photo-switcher button{width:14px;height:14px;font-size:7px}
 .landscape .photo-footer .photo-switcher button::after{inset:-2px}
 .landscape figcaption{padding-bottom:65px}
}

/* 22. Compact mobile photograph numbers. */
@media(max-width:720px){
 .landscape .photo-footer .photo-switcher{gap:1px}
 .landscape .photo-footer .photo-switcher button{width:13px;height:14px;font-size:7px}
 .landscape .photo-footer .photo-switcher button::after{inset:0}
}

/* 23. Hero title directly above the bottom photo caption. */
.landscape .photo-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;column-gap:10px;row-gap:5px}
.landscape .photo-footer .metallic-title{grid-column:1 / -1;display:block;margin:0;padding:0 0 0 5px;font-weight:400;font-size:clamp(27px,3.5vw,52px);line-height:1.04;letter-spacing:-1px;text-shadow:0 2px 16px #102d3655}
.landscape .photo-footer .location{grid-column:1}
.landscape .photo-footer .photo-switcher{grid-column:2}
@media(max-width:720px){
 .landscape .photo-footer{column-gap:6px;row-gap:5px}
 .landscape .photo-footer .metallic-title{padding-left:3px;font-size:clamp(23px,5.6vw,36px);letter-spacing:-.8px}
}

/* 24. Leave room for descenders inside gradient text bounds. */
.masthead .brand{line-height:1.25;overflow:visible}
.masthead .brand .metallic-brand{line-height:1.25;padding-top:.04em;padding-bottom:.16em;overflow:visible}
.masthead .brand .brand-light{line-height:inherit}
.landscape .photo-footer .metallic-title{line-height:1.16;padding-bottom:.12em}
.folder-heading>div{min-width:0;max-width:100%}
#folder-title{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.25;padding-bottom:.08em}
@media(max-width:720px){#folder-title{font-size:clamp(23px,6vw,30px)}}

/* 25. Compact laptop PDF toolbar and maximum reading area. */
@media(min-width:900px) and (pointer:fine){
 #pdf-dialog{width:calc(100vw - 12px);max-width:none;height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);padding:6px}
 #pdf-dialog[open]{display:grid;grid-template-columns:minmax(160px,1fr) auto auto;grid-template-rows:auto minmax(0,1fr);gap:6px;align-items:center}
 #pdf-dialog .dialog-top{grid-column:1;grid-row:1;min-width:0;gap:6px}
 #pdf-title{font-size:14px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
 #pdf-dialog .pdf-controls{grid-column:2;grid-row:1;margin:0;gap:5px}
 #pdf-dialog .pdf-toolbar{grid-column:3;grid-row:1;margin:0;gap:5px;position:static}
 #pdf-dialog .pdf-note{display:none}
 #pdf-stage{grid-column:1 / -1;grid-row:2;width:100%;height:100%;padding:6px}
 #pdf-status:empty{display:none}
 #pdf-status:not(:empty){position:absolute;bottom:12px;left:16px;background:var(--paper);padding:3px 8px;z-index:2;font-size:12px}
 #pdf-dialog .button,#pdf-dialog select{font-size:12px;min-height:28px;height:28px;padding:2px 8px}
}

/* 26. Single toolbar, edge-to-edge laptop reading and optional spread. */
#pdf-spread{display:none}
#pdf-stage .pdf-spread{display:flex;align-items:flex-start;justify-content:space-between;background:transparent;box-shadow:none}
#pdf-stage .pdf-spread>canvas{background:white;box-shadow:0 1px 5px #0002}
@media(min-width:900px) and (pointer:fine){
 #pdf-spread{display:inline-flex}
 #pdf-dialog{width:calc(100vw - 8px);height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);padding:4px;border-radius:7px}
 #pdf-dialog[open]{gap:4px;grid-template-columns:minmax(80px,1fr) auto auto;padding-right:38px}
 #pdf-dialog .close{position:absolute;right:4px;top:4px;width:28px;height:28px}
 #pdf-stage{width:calc(100% + 34px);padding:6px}
 #pdf-dialog .pdf-controls{gap:3px;flex-wrap:nowrap}
 #pdf-dialog .pdf-toolbar{flex-wrap:nowrap}
 #pdf-dialog .button,#pdf-dialog select{padding:1px 6px;font-size:11px}
}

#resources .resource-actions{flex-wrap:wrap}

/* 27. Small photo zoom button with geometrically centered plus. */
#photo-expand{top:5px;right:5px;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;display:grid;place-items:center;font-size:0;line-height:1}
#photo-expand::before,#photo-expand::after{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:currentColor;border-radius:1px;pointer-events:none}
#photo-expand::before{width:10px;height:1.5px}
#photo-expand::after{width:1.5px;height:10px}
@media(max-width:720px){#photo-expand{top:4px;right:4px;width:22px;height:22px;min-width:22px;min-height:22px}}

/* 49. Center gallery numbers consistently, including Safari buttons. */
.landscape .photo-footer .photo-switcher button{display:grid;place-items:center;flex-shrink:0;padding:0;margin:0;line-height:1;text-align:center;text-indent:0;letter-spacing:0;font-family:Arial,Helvetica,sans-serif;font-variant-numeric:tabular-nums;appearance:none;-webkit-appearance:none}
@media(max-width:720px){.landscape .photo-footer .photo-switcher button{width:14px;height:14px;min-width:14px}}
.field-index .layer-code{text-transform:none}
/* 50. Compact document actions and local-download state. */
.offline-entry{margin:0 0 18px}.offline-badge{display:block;color:var(--accent);font-size:11px;margin-top:3px}
.resource .file-type[data-download]{padding:5px;background:transparent;display:flex;align-items:center;justify-content:center;gap:3px;flex-shrink:0;cursor:pointer}
.file-type[data-download] span{font-size:11px}.resource .resource-actions{display:flex;align-items:center;gap:16px;flex-wrap:nowrap}
.resource-options{position:relative}.resource-options summary{cursor:pointer;list-style:none;white-space:nowrap;border-bottom:1px solid var(--line);padding:5px 0;color:var(--accent)}
.resource-options summary::-webkit-details-marker{display:none}
.resource-options[open]{z-index:10}.resource-menu{position:absolute;right:0;top:100%;width:205px;padding:6px;background:var(--paper);border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 22px #102c2b24;display:flex;flex-direction:column}
.resource .resource-menu button{width:100%;padding:10px;text-align:left;border:0;border-radius:4px;white-space:normal;font-size:13px}.resource-menu button:hover,.resource-menu button:focus-visible{background:var(--soft)}
.resource .resource-info{min-width:0}.resource:has(.resource-options[open]){position:relative;z-index:10}
@media(max-width:720px){.resource .resource-actions{gap:20px;width:100%;padding-left:55px;justify-content:flex-start}.resource-options .resource-menu{left:0;right:auto;max-width:calc(100vw - 110px);width:195px}}

/* 51. Match action text and fit the download badge to its contents. */
#resources .resource-actions > button,#resources .resource-options > summary{font-size:13px;font-weight:400;font-family:Arial,Helvetica,sans-serif;line-height:1.4;padding:4px 0;letter-spacing:normal}
#resources .resource .file-type[data-download]{align-self:start;justify-self:start;flex:0 0 auto;width:max-content;min-width:0;height:auto;min-height:0;padding:2px 4px;line-height:1.2;gap:3px}
#resources .resource .file-type[data-download] span{font-size:inherit;line-height:inherit}
@media(max-width:720px){#resources .resource-actions > button,#resources .resource-options > summary{font-size:11px}}
