/* Modelo 4 aprovado: superfície bege, letras verdes e relevo dourado. */
.library{isolation:isolate;background:radial-gradient(ellipse at 5% 0,#275e45 0,transparent 38%),linear-gradient(135deg,#143d2e,#082c21 68%,#143e2e);border-color:#aa873e;border-radius:24px;box-shadow:inset 0 1px 0 #c7ad6855,0 20px 42px #092b221f}
.library::before{content:"";position:absolute;z-index:-1;pointer-events:none;right:0;top:0;width:63%;height:205px;border-radius:0 24px 0 100%;background:linear-gradient(157deg,transparent 48%,#d5bc6624 48.5%,#276c4655 49%,transparent 80%);opacity:.65}
.library>.section-heading h2{color:#fff2ce;font-size:34px;letter-spacing:-.8px;text-shadow:0 2px 2px #05291a}
.material-grid,.material-grid--apoio,.material-grid--bonus{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
.material-group-heading h3{color:#efdaa6}
.material-group-count{background:#183e2c;border-color:#bb974e;color:#f1d9a1;box-shadow:inset 0 1px 0 #e9d19d26}
.material-card.sculpted-card{display:flex;flex-direction:column;position:relative;isolation:isolate;min-width:0;min-height:354px;padding:24px 24px 26px;border:1px solid #bb943f;border-radius:24px;color:#123e2b;background:linear-gradient(142deg,#ffffff80 0,transparent 36%,#bd914721 68%,#fff6dd55 100%),radial-gradient(ellipse at 32% 8%,#fff5df,#efdfbd 80%);box-shadow:inset 0 0 0 3px #fff0c4,inset 1px 3px 4px 5px #ffffffb3,inset -2px -3px 4px 4px #ad7b3045,0 4px 0 #9d762b99,0 14px 23px #001a1480;overflow:hidden}
.sculpted-card::before{content:"";position:absolute;inset:5px;border:1px solid #c3a05d;border-radius:19px;box-shadow:inset 0 1px 2px #fffdf4,0 1px 1px #fff6d5;pointer-events:none;z-index:0}
.sculpted-card::after{content:"";position:absolute;inset:7px;border-radius:18px;background:linear-gradient(155deg,transparent 0 51%,#fff9e347 51.4%,transparent 75%);pointer-events:none;z-index:0}
.sculpted-card>div,.sculpted-card>.card-remove{position:relative;z-index:1}
.tile-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.tile-label{font-family:var(--sans);font-size:11px;font-weight:600;color:#163e2d;padding:6px 10px;border:1px solid #b18a37;border-radius:7px;background:linear-gradient(145deg,#fff6df,#ecdbb3);box-shadow:inset 0 1px 1px #fffdf7,inset 0 0 0 2px #f1d898,0 2px 3px #805a2026;line-height:1.5;max-width:calc(100% - 58px)}
.sculpted-card .favorite-button{position:static;width:42px;height:42px;min-width:42px;padding:0;display:grid;place-items:center;z-index:2;flex-shrink:0;color:#19442f;border:1px solid #b38731;border-radius:50%;background:linear-gradient(145deg,#fff9e8,#f0ddb2);box-shadow:inset 0 1px 1px #fffdf7,inset 0 0 0 2px #ffedbf,0 3px 2px #916b2a70}
.sculpted-card .favorite-button svg{width:20px;height:20px;stroke-width:1.6}
.sculpted-card .favorite-button:hover{background:linear-gradient(145deg,#fffdf5,#f6e6c3);border-color:#a97c24}
.sculpted-card .favorite-button[aria-pressed=true]{background:linear-gradient(145deg,#f3dd9f,#e6c67e);color:#143e2a}
.tile-content{position:relative;flex:1;min-width:0;margin-bottom:23px}
.tile-title{font-family:var(--serif);font-size:29px;font-weight:500;line-height:1.2;letter-spacing:-.6px;margin:0 0 19px;color:#123e2b}
.tile-title-button{display:block;text-align:left;padding:0;margin:0;background:none;border:0;font:inherit;letter-spacing:inherit;line-height:inherit;color:inherit;width:100%;cursor:pointer;text-shadow:0 1px 0 #fff9e9}
.tile-title-button:hover{color:#28583c}
.tile-summary{font-family:var(--sans);font-size:13px;line-height:1.85;margin:0;color:#28543b;max-width:calc(100% - 77px);min-height:54px}
.tile-emblem{position:absolute;right:0;bottom:2px;width:69px;height:82px;stroke:url(#raised-gold);stroke-width:1.25;fill:none;filter:drop-shadow(0 -1px 0 #fff9d4) drop-shadow(1px 2px 1px #94652255);pointer-events:none;opacity:1}
.tile-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto}
.tile-format{font-size:10px;line-height:1.5;color:#244d34;white-space:nowrap;font-weight:500}
.sculpted-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}
.sculpted-card .open-resource{display:flex;align-items:center;justify-content:center;min-height:43px;min-width:116px;padding:11px 15px;font-family:var(--sans);font-size:12px;font-weight:600;line-height:1.4;color:#173c29;border:1px solid #ac7e27;border-radius:12px;background:linear-gradient(165deg,#ffe7a4,#e6be64 42%,#c39232);box-shadow:inset 0 1px 1px #fff9d9,inset 0 0 0 2px #f7d98d,0 3px 3px #96642166;text-shadow:0 1px 0 #fff2bf66}
.sculpted-card .open-resource:hover{background:linear-gradient(165deg,#fff0bc,#edcc82 42%,#d4a548);box-shadow:inset 0 1px 1px #fffdf1,inset 0 0 0 2px #ffe8af,0 4px 5px #72501a5c}
.sculpted-card .material-download{display:grid;place-items:center;width:42px;min-width:42px;min-height:42px;height:42px;padding:0;border:1px solid #b38731;border-radius:50%;color:#19442f;background:linear-gradient(145deg,#fff9e8,#f0ddb2);box-shadow:inset 0 1px 1px #fffdf7,inset 0 0 0 2px #ffedbf,0 3px 2px #916b2a70}
.sculpted-card .material-download:hover{background:linear-gradient(145deg,#fffdf5,#f6e6c3);border-color:#a97c24}
.sculpted-card .material-download svg{width:20px;height:20px;stroke-width:1.6}
.sculpted-card button:focus-visible,.sculpted-card a:focus-visible{outline:3px solid #2f6a43;outline-offset:3px}
.sculpted-card .card-remove{margin-top:14px;color:#765421}
.library .empty .button,.material-overview>.button{color:#193c2b;border:1px solid #ae7d24;border-radius:12px;background:linear-gradient(165deg,#ffe7a4,#e6be64 42%,#c39232);box-shadow:inset 0 1px 1px #fff9d9,inset 0 0 0 2px #f7d98d,0 3px 3px #96642140}
@media(min-width:1500px){.tile-title{font-size:34px}.tile-summary{font-size:14px;max-width:calc(100% - 108px)}.tile-emblem{width:93px;height:111px;right:3px}.material-card.sculpted-card{padding:29px 30px 30px;min-height:368px}.tile-label{font-size:12px}.tile-format{font-size:11px}.sculpted-card .open-resource{font-size:13px;min-width:135px;min-height:47px}.sculpted-card .material-download,.sculpted-card .favorite-button{width:46px;height:46px;min-width:46px;min-height:46px}}
@media(max-width:1000px){.material-grid,.material-grid--apoio,.material-grid--bonus{gap:21px}.material-card.sculpted-card{padding:22px 20px 24px;min-height:356px}.tile-title{font-size:26px}.tile-label{font-size:10px;padding:5px 8px}.tile-summary{font-size:12px;max-width:calc(100% - 62px)}.tile-emblem{width:57px;height:69px}.tile-footer{flex-wrap:wrap;gap:14px}.sculpted-actions{width:100%}.sculpted-card .open-resource{flex:1}.tile-format{font-size:10px}}
@media(max-width:650px){.material-grid,.material-grid--apoio,.material-grid--bonus{grid-template-columns:1fr;gap:24px}.library{padding:25px 13px 28px;border-radius:23px}.library>.section-heading h2{font-size:30px}.material-card.sculpted-card{padding:23px 23px 25px;min-height:351px;border-radius:24px}.tile-head{margin-bottom:26px}.tile-label{font-size:11px;padding:6px 9px}.tile-title{font-size:29px;line-height:1.2;margin-bottom:19px}.tile-summary{font-size:13px;line-height:1.85;max-width:calc(100% - 66px);min-height:56px}.tile-emblem{width:59px;height:75px;bottom:3px;right:0}.tile-content{margin-bottom:23px}.tile-footer{gap:16px}.tile-format{font-size:11px}.sculpted-actions{gap:12px}.sculpted-card .open-resource{min-height:45px;font-size:13px}.sculpted-card .material-download,.sculpted-card .favorite-button{width:44px;min-width:44px;height:44px;min-height:44px}.material-group-heading h3{font-size:24px}}
@media(prefers-reduced-motion:reduce){.sculpted-card *{transition:none!important}}
@media print{.library{background:white;box-shadow:none}.sculpted-card{background:#f5ead2!important;box-shadow:none!important;color:#153e2b;break-inside:avoid}.sculpted-card::after{display:none}.tile-title-button{text-shadow:none}}

.library{scroll-margin-top:12px}@media(max-width:650px){.library{scroll-margin-top:116px}}
