:root{
  --aml-lib-dark:var(--dark-color,#2f2118);
  --aml-lib-light:var(--header-text-color,#f7efe5);
  --aml-lib-border:rgba(47,33,24,.16);
  --aml-lib-paper:rgba(255,255,255,.93);
  --aml-lib-muted:#6d625a;
  --aml-lib-radius:18px;
}
#animandaLibrary,*{box-sizing:border-box}
.aml-library-app{width:min(1180px,calc(100% - 28px));margin:28px auto 64px;color:#251b15;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.aml-library-hero,.aml-library-section,.aml-library-card{border:1px solid var(--aml-lib-border);border-radius:var(--aml-lib-radius);background:var(--aml-lib-paper);box-shadow:0 16px 45px rgba(47,33,24,.10)}
.aml-library-hero{padding:28px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:end}
.aml-library-hero h1{margin:6px 0 10px;font-size:clamp(2rem,4vw,3.7rem);line-height:1.02}
.aml-library-hero p{margin:0;max-width:760px;font-size:1.05rem;line-height:1.65}
.aml-library-kicker{font-size:.78rem;letter-spacing:.11em;text-transform:uppercase;font-weight:800;color:var(--aml-lib-muted)}
.aml-library-nav{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.aml-library-nav a,.aml-library-primary,.aml-library-btn{appearance:none;text-decoration:none;border:1px solid var(--aml-lib-dark);border-radius:999px;padding:10px 14px;background:#fff;color:var(--aml-lib-dark);font:inherit;font-weight:800;cursor:pointer}.aml-library-primary,.aml-library-btn.is-primary{background:var(--aml-lib-dark);color:var(--aml-lib-light)}
.aml-library-status{margin:18px 0;padding:14px 18px;border-radius:12px;background:rgba(255,255,255,.72);border:1px solid var(--aml-lib-border)}
.aml-library-card,.aml-library-section{margin-top:20px;padding:24px}.aml-library-card h2,.aml-library-section h2{margin:5px 0 8px}.aml-library-card p{max-width:760px;line-height:1.6}.aml-library-section-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin-bottom:16px}.aml-library-meta{font-size:.9rem;color:var(--aml-lib-muted);text-align:right}
.aml-library-timeline,.aml-library-year-tabs{display:flex;gap:9px;overflow:auto;padding:4px 2px 12px;scrollbar-width:thin;max-width:100%}.aml-library-timeline button,.aml-library-year-tabs button{flex:0 0 auto;border:1px solid var(--aml-lib-border);border-radius:12px;background:#fff;padding:10px 13px;font:inherit;font-weight:750;cursor:pointer;color:#251b15}.aml-library-timeline button.is-active,.aml-library-year-tabs button.is-active{background:var(--aml-lib-dark);color:var(--aml-lib-light);border-color:var(--aml-lib-dark)}.aml-library-timeline button.is-locked{opacity:.43;cursor:not-allowed}.aml-library-timeline button span{display:block;font-size:.72rem;font-weight:600;opacity:.72;margin-top:3px}
.aml-library-month-head{grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:start;margin:10px 0 18px}.aml-library-month-head h3{font-size:1.7rem;margin:0 0 6px}.aml-library-month-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.aml-library-month-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.aml-library-month-controls select{padding:10px;border:1px solid var(--aml-lib-border);border-radius:10px;background:#fff}
.aml-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.aml-library-item{border:1px solid var(--aml-lib-border);border-radius:16px;background:#fff;overflow:hidden;display:flex;flex-direction:column}.aml-library-preview{aspect-ratio:1/1;background:linear-gradient(180deg,#fff,#f6f1eb);display:grid;place-items:center;border-bottom:1px solid var(--aml-lib-border)}.aml-library-preview img{display:block;width:100%;height:100%;object-fit:contain}.aml-library-item-body{padding:16px;display:flex;flex-direction:column;gap:12px;flex:1}.aml-library-item-title{display:flex;justify-content:space-between;gap:10px;align-items:start}.aml-library-item-title h4{margin:0;font-size:1.05rem}.aml-library-id{font-size:.72rem;color:var(--aml-lib-muted);white-space:nowrap}.aml-library-palettes{display:grid;gap:8px;grid-auto-flow:column}.aml-library-palette{display:grid;border:1px solid #ece4da;border-radius:12px;padding:9px;background:#fcfaf7;align-items:end}.aml-library-palette strong{display:block;font-size:.8rem;margin-bottom:7px}.aml-library-swatches{display:grid;grid-template-columns:repeat(1,1fr);gap:5px;grid-auto-flow:row}.aml-library-swatch{height:20px;border-radius:6px;border:1px solid rgba(0,0,0,.08)}.aml-library-downloads{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:auto}.aml-library-download-group{border-top:1px solid #eee5db;padding-top:9px}.aml-library-download-group strong{display:block;font-size:.74rem;margin-bottom:6px}.aml-library-download-row{display:flex;gap:5px}.aml-library-download-row button{flex:1;padding:7px 6px;border:1px solid var(--aml-lib-dark);border-radius:8px;background:#fff;color:var(--aml-lib-dark);font:inherit;font-size:.72rem;font-weight:800;cursor:pointer}.aml-library-all-palettes{margin-top:2px;width:100%}
.aml-library-season{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;align-items:start}.aml-library-season-preview{border:1px solid var(--aml-lib-border);border-radius:16px;background:#fff;padding:10px}.aml-library-season-preview img{width:100%;display:block}.aml-library-season-body h3{margin:0 0 6px;font-size:1.6rem}.aml-library-note{font-size:.88rem;color:var(--aml-lib-muted);line-height:1.5}.aml-library-error{color:#8a1c1c}.aml-library-loading{opacity:.65;pointer-events:none}
@media(max-width:900px){.aml-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.aml-library-hero,.aml-library-month-head,.aml-library-season{grid-template-columns:1fr}.aml-library-nav,.aml-library-month-actions{justify-content:flex-start}.aml-library-meta{text-align:left}}
@media(max-width:620px){.aml-library-app{width:min(100% - 14px,1180px);margin-top:8px}.aml-library-hero,.aml-library-section,.aml-library-card{padding:16px;border-radius:14px}.aml-library-grid{grid-template-columns:1fr}.aml-library-downloads{grid-template-columns:1fr}.aml-library-section-head{align-items:start;flex-direction:column}.aml-library-hero h1{font-size:2rem}}
