/* Section 03: real Office previews, searchable metadata, no source downloads. */
.library-section { padding: 38px 0 44px; position: relative; background: radial-gradient(ellipse at 50% 20%, #12623b35, transparent 60%), var(--bg); border-top: 1px solid #7da36c2b; }
.library-heading { text-align: center; margin: 0 auto 22px; }
.library-heading h2 { font-size: clamp(26px, 2.7vw, 38px); font-weight: 750; line-height: 1.6; margin-top: 13px; letter-spacing: -.8px; }
.library-heading h2 span { color: var(--gold); }
.library-heading > p:last-child { max-width: 740px; margin: 8px auto 0; font-size: 16px; line-height: 1.8; color: var(--text-secondary); text-wrap: pretty; }
.library-tabs { display: flex; justify-content: center; gap: 10px; margin: 0 auto 14px; }
.library-tab { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; min-width: 295px; padding: 8px 20px; border: 1px solid #479774; border-radius: 36px; color: var(--text); background: linear-gradient(120deg,#07503980,#01261e); cursor: pointer; font-family: var(--font-en); font-size: 18px; font-weight: 650; transition: border-color .2s, box-shadow .2s; }
.library-tab.is-active { border-color: var(--gold-light); box-shadow: inset 0 0 0 1px #ffe49a80,0 0 18px #e2be3d20; background: linear-gradient(120deg,#14603a,#052c22); }
.library-tab[data-type="powerpoint"].is-active { background: linear-gradient(120deg,#713b2470,#052c22); }
.office-mark { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 36px; border: 1px solid #b0eac578; border-radius: 7px; background: linear-gradient(135deg,#36cb79,#0a6739); box-shadow: 3px 3px 0 #003f2f,0 4px 7px #0004; color: #fff; font: 750 25px/1 var(--font-en); }
.office-powerpoint { background: linear-gradient(135deg,#f78653,#bd3c1f); border-color: #f9c1a4; box-shadow: 3px 3px 0 #692518,0 4px 7px #0004; }
.library-count { border-radius: 18px; padding: 3px 10px; background: linear-gradient(#ffedaa,var(--gold)); color: #14251a; font: 700 14px/1.4 var(--font-en); }
.library-shell { padding: 17px; border: 1px solid #f4ce76; border-radius: 25px; background: linear-gradient(135deg,#06433250,#011f19dc); box-shadow: 0 14px 36px #00130e40,inset 0 1px 0 #fff5; }
.library-layout { display: grid; grid-template-columns: 230px minmax(0,1fr) 228px; gap: 14px; align-items: start; }
.library-surface { min-width: 0; border: 1px solid #2e9e72; border-radius: 17px; background: linear-gradient(135deg,#063b2e,#012b23); }
.library-categories { padding: 13px; }
.library-search { display: flex; align-items: center; gap: 8px; padding: 10px 11px; border: 1px solid #38a77b; border-radius: 14px; background: #011e19; }
.library-search svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--text-secondary); }
.library-search input { min-width: 0; width: 100%; background: transparent; color: var(--text); border: 0; outline: 0; font: 14px/1.5 var(--font); }
.library-search:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.library-search input::placeholder { color: #b1c8bd; }
.library-categories h3 { font-size: 16px; margin: 17px 4px 10px; }
.library-category-list { display: grid; gap: 7px; }
.library-category { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; min-height: 43px; padding: 8px 10px; border: 1px solid #20734f; border-radius: 12px; background: #00291f; color: var(--text); cursor: pointer; font-size: 14px; line-height: 1.35; }
.library-category > span:first-child { color: #bcebd3; font-size: 19px; }
.library-category > span:nth-child(2) { flex: 1; }
.library-category small { font: 13px/1.3 var(--font-en); }
.library-category.is-active { border-color: var(--gold); background: linear-gradient(120deg,#6d682f77,#183f22); color: var(--gold-light); box-shadow: inset 0 0 10px #ebc43b18; }
.library-reader { padding: 14px; }
.library-reader-heading { display: flex; align-items: center; gap: 11px; min-height: 54px; margin-bottom: 12px; }
.library-reader-heading > div { min-width: 0; flex: 1; }
.library-reader-heading h3 { font: 650 18px/1.4 var(--font-en); color: #fff9ee; margin: 0; overflow-wrap: anywhere; }
.library-reader-heading p { font-size: 13px; color: #b6d9ca; margin: 3px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.library-format { background: #087c45; border: 1px solid #31b576; padding: 3px 7px; border-radius: 9px; font: 600 12px/1.4 var(--font-en); }
.library-featured { color: var(--gold-light); font-size: 23px; }
.library-stage { position: relative; display: grid; place-items: center; width: 100%; min-height: 280px; aspect-ratio: 1.2; overflow: hidden; border: 1px solid #65c792; border-radius: 11px; background: radial-gradient(ellipse,#07513755,#001e18 75%); }
.library-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; background: #e8eee9; }
.library-stage > img[hidden] { display: none; }
.library-stage-message { max-width: 80%; text-align: center; font-size: 16px; line-height: 1.9; padding: 25px 10px; color: #c3d8cd; }
.library-nav { position: absolute; z-index: 1; top: calc(50% - 19px); width: 38px; height: 38px; border: 1px solid #d3edc5; border-radius: 50%; background: #012b23db; color: #fff; cursor: pointer; font: 32px/1 var(--font-en); box-shadow: 0 3px 10px #0003; }
.library-nav-prev { left: 7px; }
.library-nav-next { right: 7px; }
.library-section button:disabled { cursor: default; opacity: .38; }
.library-reader-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.library-thumbnails { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
.library-thumbnail { width: 74px; height: 50px; flex: 0 0 auto; border: 1px solid #2ca47d; border-radius: 6px; padding: 3px; background: #00281f; cursor: pointer; }
.library-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.library-thumbnail.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.library-tools { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.library-tools button,.library-dialog button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #379b77; color: var(--text); background: #012c22; font-size: 24px; cursor: pointer; }
.library-tools > span { font: 13px var(--font-en); white-space: nowrap; min-width: 30px; text-align: center; }
.library-info { display: grid; gap: 12px; min-width: 0; }
.library-details,.library-related { padding: 15px; }
.library-info h3 { margin: 0 0 13px; font-size: 17px; line-height: 1.5; }
.library-details ul { display: grid; gap: 9px; font-size: 14px; line-height: 1.65; }
.library-details li { display: flex; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
.library-details li::before { content: '✓'; display: grid; place-items: center; flex: 0 0 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: #16834a; font: 700 13px var(--font-en); }
.library-related [data-related] { display: grid; gap: 9px; }
.library-related-item { display: flex; gap: 9px; align-items: center; text-align: left; min-width: 0; width: 100%; padding: 7px; color: var(--text); background: #002c22; border: 1px solid #1f7956; border-radius: 12px; cursor: pointer; }
.library-related-image { display: grid; place-items: center; flex: 0 0 65px; width: 65px; height: 51px; border-radius: 5px; background: #0b4939; overflow: hidden; }
.library-related-image img { width: 100%; height: 100%; object-fit: contain; }
.library-related-item > span:last-child { min-width: 0; }
.library-related-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 500 13px/1.4 var(--font-en); }
.library-related-item small { display: inline-block; margin-top: 5px; font: 12px/1.3 var(--font-en); color: #a7e8c3; }
.library-status { margin-top: 10px; color: var(--text-secondary); font-size: 13px; min-height: 0; }
.library-status:empty { display: none; }
.library-tip { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 15px 18px; border: 1px solid #eac36c; border-radius: 18px; background: linear-gradient(120deg,#10412e,#00291f); }
.library-tip p { font-size: 14px; line-height: 1.8; max-width: 590px; }
.library-more { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px 8px; min-height: 47px; color: #182518; background: linear-gradient(#ffecab,#ffc966); border: 1px solid #ffedbb; border-radius: 30px; font-size: 18px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.library-more .icon { width: 20px; height: 20px; }
.library-results { margin-top: 24px; }
.library-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.library-results-heading h3 { font-size: 20px; margin: 0; }
.library-results-heading p { font-size: 14px; color: var(--text-secondary); }
.library-result-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.library-result-card { text-align: left; width: 100%; min-width: 0; padding: 10px; background: #04362a; border: 1px solid #287d59; color: var(--text); border-radius: 13px; cursor: pointer; }
.library-result-card:hover,.library-result-card.is-active { border-color: var(--gold); }
.library-result-image { display: grid; place-items: center; height: 125px; margin-bottom: 10px; border-radius: 7px; overflow: hidden; background: #08291f; color: #a8c8b7; font-size: 14px; }
.library-result-image img { width: 100%; height: 100%; object-fit: contain; }
.library-result-card strong { display: block; font: 600 14px/1.5 var(--font-en); overflow-wrap: anywhere; }
.library-result-card small { display: block; font-size: 12px; color: #a8c8b7; margin-top: 5px; }
.library-pagination { display: flex; justify-content: center; gap: 18px; align-items: center; margin: 20px 0 4px; font-size: 14px; }
.library-pagination button { border: 1px solid #559c6d; background: #063c2d; color: var(--text); border-radius: 8px; padding: 9px 14px; cursor: pointer; }
.library-dialog { width: min(1200px,96vw); max-width: 96vw; max-height: 96dvh; padding: 14px; border: 1px solid var(--gold); border-radius: 17px; background: #01271e; color: var(--text); }
.library-dialog::backdrop { background: #001b15ed; backdrop-filter: blur(6px); }
.library-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.library-dialog h3 { margin: 0; font: 600 17px/1.5 var(--font-en); overflow-wrap: anywhere; }
.library-dialog header > div { display: flex; gap: 6px; flex-shrink: 0; }
.library-dialog-canvas { height: min(72dvh,800px); overflow: auto; display: grid; place-items: center; background: #e8eee9; border-radius: 8px; }
.library-dialog-canvas img { width: 100%; height: 100%; object-fit: contain; }
.library-dialog-canvas.is-zoomed { display: block; }
.library-dialog-canvas.is-zoomed img { width: 180%; height: auto; max-width: none; }
.library-dialog footer { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 12px; font: 14px var(--font-en); }
.library-dialog-content:fullscreen { width: 100vw; height: 100dvh; padding: 16px; background: #01271e; color: var(--text); }
.library-dialog-content:fullscreen .library-dialog-canvas { height: calc(100dvh - 130px); }
.library-dialog.is-fullscreen { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; margin: 0; padding: 16px; }
.library-dialog.is-fullscreen .library-dialog-canvas { height: calc(100dvh - 140px); }
.library-sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.library-noscript { padding: 16px; text-align: center; }
.library-section [hidden] { display: none !important; }
@media(max-width:1200px) {
 .library-layout { grid-template-columns: 215px minmax(0,1fr); }
 .library-info { grid-column: 1/-1; grid-template-columns: 1fr 1.5fr; }
 .library-related [data-related] { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .library-related-item { flex-direction: column; align-items: stretch; }
 .library-related-image { width: 100%; height: 72px; flex-basis: auto; }
 .library-stage { aspect-ratio: 1.5; }
}
@media(max-width:768px) {
 .library-section { padding-block: 28px; }
 .library-heading h2 { font-size: 29px; }
 .library-heading > p:last-child { font-size: 15px; }
 .library-tabs { gap: 8px; }
 .library-tab { min-width: 0; flex: 1; padding: 8px 12px; font-size: 16px; gap: 9px; }
 .library-shell { padding: 12px; border-radius: 20px; }
 .library-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
 .library-categories { padding: 10px; }
 .library-categories h3 { display: none; }
 .library-category-list { display: flex; overflow-x: auto; gap: 7px; margin-top: 10px; padding: 2px; scrollbar-width: thin; }
 .library-category { flex: 0 0 auto; width: auto; min-height: 40px; gap: 8px; }
 .library-category > span:first-child { display: none; }
 .library-category > span:nth-child(2) { white-space: nowrap; }
 .library-reader { padding: 12px; }
 .library-stage { aspect-ratio: 1.4; min-height: 230px; }
 .library-info { grid-template-columns: 1fr; }
 .library-details ul { grid-template-columns: 1fr 1fr; }
 .library-related-item { flex-direction: row; align-items: center; }
 .library-related-image { width: 65px; height: 55px; flex: 0 0 65px; }
 .library-related [data-related] { grid-template-columns: 1fr; }
 .library-tip { flex-wrap: wrap; gap: 10px; padding: 14px; }
 .library-more { margin-left: auto; font-size: 17px; }
 .library-result-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:480px) {
 .library-heading { margin-bottom: 18px; }
 .library-heading h2 { font-size: 27px; line-height: 1.55; margin-top: 14px; }
 .library-heading > p:last-child { font-size: 14px; line-height: 1.85; }
 .library-tab { display: grid; grid-template-columns: 28px minmax(0,1fr); align-content: center; gap: 7px; padding: 9px 8px; border-radius: 15px; font-size: 14px; min-height: 86px; }
 .library-tab .office-mark { width: 26px; height: 28px; font-size: 20px; }
 .library-count { grid-column: 1/-1; justify-self: center; font-size: 12px; padding: 2px 9px; }
 .library-tab > span[lang] { font-size: 13px; text-align: left; }
 .library-shell { padding: 9px; border-radius: 17px; }
 .library-reader { padding: 10px; }
 .library-reader-heading { gap: 8px; flex-wrap: wrap; }
 .library-reader-heading > .office-mark { width: 28px; height: 31px; font-size: 21px; }
 .library-reader-heading h3 { font-size: 16px; }
 .library-reader-heading p { font-size: 12px; }
 .library-reader-heading > div { flex-basis: calc(100% - 40px); }
 .library-reader-heading .library-format { margin-left: 36px; }
 .library-stage { min-height: 225px; aspect-ratio: 1.2; }
 .library-reader-footer { flex-wrap: wrap; gap: 9px; }
 .library-thumbnails { width: 100%; }
 .library-tools { margin-left: auto; }
 .library-details ul { grid-template-columns: 1fr; }
 .library-info h3 { font-size: 17px; }
 .library-more { width: 100%; margin-top: 5px; }
 .library-results-heading { display: block; }
 .library-result-grid { gap: 8px; }
 .library-result-card { padding: 8px; }
 .library-result-image { height: 85px; }
 .library-result-card strong { font-size: 12px; }
 .library-pagination { gap: 8px; font-size: 12px; }
 .library-pagination button { padding: 9px; }
 .library-dialog { padding: 10px; }
 .library-dialog h3 { font-size: 14px; }
 .library-dialog button { width: 32px; height: 34px; font-size: 20px; }
}
@media(prefers-reduced-motion:reduce) { .library-section * { transition: none; scroll-behavior: auto; } }


/* Reference layout and lighting */
.library-section {
    --library-gold: #ffe17b;
    position: relative;
    isolation: isolate;
    padding: 24px 0 29px;
    background: radial-gradient(ellipse at 50% 25%, #064936 0, transparent 55%), #001e16;
}
.library-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 100% 6%, #e0ba493d, transparent 10%),
        linear-gradient(140deg, transparent 68%, #2784513b 77%, #54bf8d25 78%, transparent 79%),
        linear-gradient(147deg, #08774a80 1%, #11a16264 7%, #05291d 7.2%, transparent 19%),
        url('../images/bundle/frame.svg') center / 100% 100% no-repeat;
}
.library-section > .container { width: min(calc(100% - 48px), 1460px); max-width: none; }
.library-heading { margin: 0 auto 13px; }
.library-heading-label { display: flex; align-items: center; justify-content: center; gap: 24px; }
.library-heading-label::before,.library-heading-label::after {
    content: '';
    width: clamp(16px,5vw,80px);
    height: 3px;
    background: linear-gradient(90deg, transparent, #fff38e);
    border-radius: 50%;
}
.library-heading-label::after { transform: scaleX(-1); }
.library-heading-label span {
    padding: 7px clamp(15px,4vw,60px) 4px;
    border-radius: 40px;
    background: linear-gradient(#ffefa9, #f9c545);
    border: 1px solid #fff0a6;
    box-shadow: 0 4px 8px #001009af, inset 0 1px 0 #fffbc4;
    color: #161c0c;
    font-size: clamp(15px,1.6vw,23px);
    line-height: 1.4;
    font-weight: 750;
}
.library-heading h2 {
    margin: 10px 0 0;
    color: #fffdf4;
    font-size: clamp(28px,3.35vw,52px);
    line-height: 1.35;
    font-weight: 800;
    text-wrap: balance;
    text-shadow: 0 3px 6px #00150c;
}
.library-heading h2 span { color: #ffc953; }
.library-heading > p:last-child {
    max-width: 720px;
    margin: 5px auto 0;
    color: #f4f5e8;
    font-size: clamp(15px,1.4vw,21px);
    line-height: 1.42;
}
.library-tabs {
    position: relative;
    z-index: 1;
    width: min(100%,825px);
    gap: 16px;
    margin: 0 auto -1px;
    border-radius: 42px;
    background: transparent;
}
.library-tab {
    flex: 1;
    min-width: 0;
    min-height: clamp(53px,4.5vw,69px);
    gap: 15px;
    padding: 8px 16px;
    border-radius: 38px;
    border: 2px solid #438d73;
    background: linear-gradient(#084132, #011e17 67%, #073026);
    font-size: clamp(15px,1.35vw,21px);
    white-space: nowrap;
}
.library-tab + .library-tab { margin-left: 0; }
.library-tab.is-active,.library-tab[data-type="powerpoint"].is-active {
    position: relative;
    border-color: var(--library-gold);
    background: radial-gradient(ellipse at 50% -15%, #1a8254, transparent 60%), linear-gradient(#064736, #01241c);
    box-shadow: inset 0 0 12px #000a, 0 4px 14px #edc34a44;
}
.library-tab.is-active::after {
    content: '';
    position: absolute;
    inset: auto 5% -2px;
    height: 4px;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent, #fff6a4, transparent);
    box-shadow: 0 0 12px #ffd453;
}
.office-mark {
    position: relative;
    isolation: isolate;
    width: 41px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #84d8aa;
    color: #fff;
    text-shadow: 0 2px 2px #001c13;
    background: repeating-linear-gradient(#ffffff1f 0 10px, transparent 10px 20px), linear-gradient(145deg,#3fd27a,#03543b);
    box-shadow: 0 3px 6px #001e13;
}
.office-mark::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 23% 35% 13% -9%;
    border-radius: 4px;
    background: linear-gradient(#1c9f55,#075732);
    box-shadow: 1px 2px 2px #00261890;
}
.office-powerpoint { border-radius: 50%; border-color: #faa47a; background: conic-gradient(#ed7340 0 25%, #c84622 25% 75%, #fe9a66 75%); }
.office-powerpoint::before { background: linear-gradient(#f47944,#aa2b15); }
.library-count {
    padding: 3px 9px;
    background: linear-gradient(#fff4ad,#f6bf38);
    box-shadow: inset 0 1px #fff8c8;
    color: #171e10;
    font: 750 clamp(12px,1vw,15px)/1.3 var(--font-en);
}
.library-tab:not(.is-active) .library-count { opacity: .78; }
.library-shell {
    position: relative;
    width: 100%;
    min-width: 0;
    padding: clamp(12px,1.4vw,23px);
    border: 2px solid #f5d770;
    border-radius: 30px;
    background: linear-gradient(125deg,#053529f5,#001d17 58%,#062c21);
    box-shadow: inset 0 1px 1px #fff1a644, 0 15px 32px #00140e80;
}
.library-layout {
    grid-template-columns: minmax(210px,.405fr) minmax(0,1fr) minmax(205px,.375fr);
    align-items: stretch;
    gap: clamp(10px,1vw,16px);
}
.library-surface {
    border-color: #31b889;
    border-radius: 17px;
    background: radial-gradient(ellipse at 40% 0,#07513f65, transparent 78%), #01271e;
}
.library-categories { padding: clamp(10px,1vw,16px); }
.library-search { border-color: #4fc79f; background: #011f19; padding: 10px 15px; border-radius: 17px; }
.library-search input { font-size: 15px; }
.library-categories h3 { margin: 17px 4px 10px; }
.library-category-list { --category-gap: 6px; gap: var(--category-gap); }
.library-category {
    min-height: clamp(37px,3vw,46px);
    padding: 5px 8px;
    gap: 8px;
    border-color: #168064;
    background: linear-gradient(100deg,#083729,#01271e);
    font-size: clamp(13px,1.05vw,16px);
}
.library-category:hover,.library-related-item:hover { background: #0d4d39; }
.library-category.is-active {
    border-color: #ffdf70;
    color: #fff2b5;
    background: linear-gradient(100deg,#4e5524,#183d24);
    box-shadow: inset 0 -5px 12px #eac65625;
}
.library-category-icon { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border: 1px solid #45b98b44; border-radius: 50%; }
.library-category-icon .icon { width: 20px; height: 20px; color: #ddffef; }
.library-category.is-active .library-category-icon .icon { color: #ffe286; }
.library-category > .category-arrow { width: 13px; height: 13px; color: #92c5ad; }
.library-reader { padding: clamp(10px,1.15vw,18px); }
.library-reader-heading { min-height: 48px; margin-bottom: 12px; }
.library-reader-heading h3 { font-size: clamp(16px,1.42vw,22px); }
.library-reader-heading p { color: #b9ecde; }
.library-format { padding: 4px 8px; line-height: 1.15; background: linear-gradient(#009363,#00533b); }
.library-featured { width: 30px; text-align: center; line-height: 29px; border-radius: 50%; border: 1px solid #1a563e; background: #011e17; }
.library-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 7px 10px 5px;
    border-radius: 9px;
    border: 1px solid #ffec9c;
    background: linear-gradient(#ffeaa4,#f5be37);
    color: #141909;
    font-size: clamp(12px,1vw,15px);
    font-weight: 750;
    cursor: pointer;
}
.library-open .icon { width: 17px; height: 17px; }
.library-viewer {
    overflow: hidden;
    border: 1px solid #68deb1;
    border-radius: 10px;
    background: #011a14;
    box-shadow: inset 0 0 0 1px #50e0aa22;
}
.library-stage {
    aspect-ratio: 1.94;
    min-height: 270px;
    border: 0;
    border-radius: 0;
    background: radial-gradient(ellipse at center,#0b342a, #001610 78%);
}
.library-stage > img {
    width: calc(100% - 126px);
    height: calc(100% - 18px);
    inset: 15px 63px 3px;
    background: transparent;
    filter: drop-shadow(0 5px 10px #000a);
}
.library-stage > .library-showcase-image {
    inset: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
}
.library-shell[aria-labelledby="library-tab-powerpoint"] .library-stage > [data-preview] {
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--slide-edge, #fff);
    filter: none;
}
.library-nav { display: grid; place-items: center; width: 42px; height: 42px; top: calc(50% - 21px); background: #05271fe8; border-color: #a2c9b8; }
.library-nav .icon { width: 20px; height: 20px; }
.library-reader-footer { margin: 0; padding: 7px 13px 10px; background: linear-gradient(#04251d,#012a20); }
.library-thumbnail { width: clamp(62px,7.5vw,114px); height: clamp(42px,4.4vw,67px); }
.library-thumbnail.is-active { border-width: 2px; box-shadow: 0 0 9px #f0c75d4d; }
.library-thumbnail-image { display: block; width: 100%; height: 100%; overflow: hidden; }
.library-thumbnail-related:hover { border-color: var(--library-gold); }
.library-tools { padding: 6px; border: 1px solid #1a8c70; border-radius: 13px; }
.library-tools button { display: grid; place-items: center; }
.library-tools .icon { width: 21px; height: 21px; }
.library-info { gap: 12px; grid-template-rows: auto 1fr; }
.library-details,.library-related { padding: clamp(10px,.95vw,16px); }
.library-info h3 { font-size: clamp(15px,1.3vw,20px); margin-bottom: 9px; }
.library-details ul { gap: 8px; font-size: clamp(13px,1vw,16px); }
.library-details li::before { background: linear-gradient(#10bb72,#037849); color: #fff; }
.library-related-item {
    gap: 9px;
    padding: 5px;
    border-color: #168064;
    background: #03291f;
}
.library-related-item > span:last-child { flex: 1; }
.library-related-item::after { content: '\203a'; padding-right: 4px; color: #fff6dc; font-size: 21px; }
.library-related-image { flex-basis: clamp(56px,7vw,106px); width: clamp(56px,7vw,106px); height: clamp(45px,4.5vw,69px); }
.library-related-item small { padding: 2px 6px; border: 1px solid #25a678; border-radius: 7px; background: #04583e; color: #edfff3; }
.library-tip {
    min-height: 84px;
    padding: 11px clamp(10px,1.55vw,24px);
    border: 1px solid #ffdb70;
    background: radial-gradient(ellipse at 0 0,#11774f88, transparent 63%), #00261c;
    box-shadow: inset 0 1px 3px #ffe47c55;
}
.library-tip > .library-tip-icon { width: 44px; height: 44px; color: #ffda65; filter: drop-shadow(0 0 8px #ffd54d70); }
.library-tip > strong { font-size: clamp(18px,1.8vw,27px); color: #ffd05b; white-space: nowrap; }
.library-tip > div { flex: 1; }
.library-tip p { max-width: none; font-size: clamp(13px,1.05vw,16px); }
.library-tip [data-collection] { color: #acdac5; font-size: 13px; }
.library-more { min-height: 49px; padding-inline: clamp(14px,2.5vw,38px); background: linear-gradient(#ffeda1,#ffc64b 70%,#ffdc76); color: #161a0c; }
.library-more .icon { width: 23px; height: 23px; }

@media (min-width: 769px) {
    .library-reader,
    .library-viewer {
        display: flex;
        flex-direction: column;
    }
    .library-viewer,
    .library-stage {
        flex: 1 0 auto;
    }
    .library-reader-heading,
    .library-reader-footer {
        flex-shrink: 0;
    }
}

@media (min-width: 1201px) {
    .library-category-list {
        --category-row-height: clamp(43px,3vw,46px);
        --excel-category-rows: 13;
        /* Reserve space for the longer Excel category list in both tabs. */
        min-height: calc(var(--excel-category-rows) * var(--category-row-height) + (var(--excel-category-rows) - 1) * var(--category-gap));
        align-content: start;
    }
    .library-category { min-height: var(--category-row-height); }
}

@media (max-width: 1200px) {
    .library-layout { grid-template-columns: minmax(155px,.42fr) minmax(0,1fr); }
    .library-info { grid-template-columns: 1fr 2fr; grid-template-rows: auto; }
    .library-related-item { flex-direction: column; }
    .library-related-item::after { display: none; }
    .library-related-image { width: 100%; height: 55px; flex-basis: auto; }
}
@media (max-width: 768px) {
    .library-section > .container { width: calc(100% - 26px); }
    .library-layout,.library-info { grid-template-columns: minmax(0,1fr); }
    .library-related-item { flex-direction: row; }
    .library-related-image { width: 70px; flex-basis: 70px; }
    .library-stage { min-height: 214px; }
    .library-shell[aria-labelledby="library-tab-powerpoint"] .library-stage { aspect-ratio: var(--slide-aspect, 16/9); }
    .library-tip { gap: 8px; }
    .library-tip > div { flex-basis: 100%; }
}
@media (max-width: 480px) {
    .library-heading-label { gap: 6px; }
    .library-heading-label::before,.library-heading-label::after { flex-shrink: 0; }
    .library-tabs { margin-bottom: 7px; gap: 5px; background: transparent; }
    .library-tab { min-height: 68px; gap: 4px; grid-template-columns: 24px minmax(0,1fr); padding: 5px 8px; white-space: normal; }
    .library-tab .office-mark { width: 23px; height: 24px; font-size: 17px; }
    .library-tab > span[lang] { font-size: 12px; }
    .library-shell { padding: 8px; border-radius: 19px; }
    .library-reader-heading { flex-wrap: nowrap; gap: 6px; }
    .library-reader-heading > div { flex: 1; }
    .library-reader-heading .library-format { margin-left: 0; }
    .library-featured { display: none; }
    .library-open { width: 32px; height: 33px; padding: 0; }
    .library-open > span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
    .library-stage { min-height: 161px; }
    .library-stage > img { width: calc(100% - 38px); inset-inline: 19px; }
    .library-stage > .library-showcase-image { width: calc(100% - 6px); inset-inline: 3px; }
    .library-nav { width: 29px; height: 29px; top: calc(50% - 14px); }
    .library-nav-prev { left: 3px; }
    .library-nav-next { right: 3px; }
    .library-nav .icon { width: 15px; height: 15px; }
    .library-reader-footer { flex-wrap: nowrap; padding: 5px; gap: 4px; }
    .library-thumbnails { width: auto; }
    .library-tools { padding: 3px; }
    .library-tools button { width: 28px; height: 32px; }
    .library-tools .icon { width: 17px; height: 17px; }
}
