
    body { background:#f8fafc; margin:0; color:#0f172a; }
    .library-wrap { max-width:1280px; margin:0 auto; padding:20px; padding-top:108px; }
    .library-heading { display:flex; justify-content:space-between; gap:18px; align-items:flex-end; margin-bottom:20px; }
    .library-heading h1 { margin:0; color:#0f172a; font-family:Manrope, Inter, sans-serif; font-size:clamp(28px, 4vw, 42px); font-weight:800; line-height:1.1; letter-spacing:-0.02em; }
    .library-heading p { margin:8px 0 0; max-width:720px; color:#64748b; line-height:1.6; font-size:15px; }
    .library-count { color:#64748b; font-size:13px; font-weight:600; white-space:nowrap; background:#fff; padding:6px 14px; border-radius:999px; border:1px solid #e2e8f0; }
    
    .library-tabs { display:flex; gap:8px; flex-wrap:wrap; margin:14px 0 16px; }
    .library-tab { padding:8px 16px; border:1px solid #e2e8f0; border-radius:999px; background:#fff; text-decoration:none; color:#334155; font-weight:700; font-size:13px; transition:all 0.2s ease; }
    .library-tab:hover { background:#f1f5f9; color:#0f172a; border-color:#cbd5e1; }
    .library-tab.active { background:#002f6c; border-color:#002f6c; color:#fff; box-shadow:0 2px 8px rgba(0,47,108,0.25); }
    
    .library-toolbar { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:24px; }
    .library-toolbar input { flex:1; min-width:240px; min-height:46px; padding:10px 16px; border:1px solid #cbd5e1; border-radius:12px; font:inherit; background:#fff; font-size:14px; color:#0f172a; box-shadow:0 1px 2px rgba(0,0,0,0.03); outline:none; transition:all 0.2s ease; }
    .library-toolbar input:focus { border-color:#002f6c; box-shadow:0 0 0 3px rgba(0,47,108,0.15); }
    .library-toolbar button, .library-toolbar a { min-height:46px; display:inline-flex; align-items:center; justify-content:center; padding:10px 20px; border-radius:12px; border:1px solid #cbd5e1; background:#fff; cursor:pointer; text-decoration:none; color:#334155; font-weight:700; font-size:14px; transition:all 0.2s ease; }
    .library-toolbar button { background:#002f6c; border-color:#002f6c; color:#fff; box-shadow:0 2px 6px rgba(0,47,108,0.2); }
    .library-toolbar button:hover { background:#001b44; border-color:#001b44; }
    .library-toolbar a:hover { background:#f1f5f9; }

    /* Modern A4 Document Card Layout */
    .library-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:24px; }
    .library-card { background:#fff; border:1px solid #e2e8f0; border-radius:16px; overflow:hidden; min-width:0; display:flex; flex-direction:column; transition:transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease; box-shadow:0 2px 8px -2px rgba(15, 23, 42, 0.05); }
    .library-card:hover { transform:translateY(-6px); box-shadow:0 20px 32px -8px rgba(0, 27, 68, 0.14); border-color:#cbd5e1; }
    
    /* A4 Aspect Ratio Thumbnail Container: 210mm / 297mm (standard ISO 216 A4 proportion) */
    .library-thumb { position:relative; aspect-ratio:210 / 297; background:linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%); display:block; text-decoration:none; color:#64748b; overflow:hidden; border-bottom:1px solid #e2e8f0; }
    .library-thumb::before { content:''; position:absolute; top:0; left:0; bottom:0; width:6px; background:linear-gradient(to right, rgba(0,0,0,0.14), transparent); z-index:3; pointer-events:none; }
    .library-thumb img { width:100%; height:100%; object-fit:cover; object-position:top center; display:block; transition:transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
    .library-card:hover .library-thumb img { transform:scale(1.03); }
    
    /* Document Format & Page Count Overlay Badges */
    .library-thumb-badge { position:absolute; top:10px; right:10px; z-index:4; background:rgba(0, 26, 51, 0.85); backdrop-filter:blur(6px); color:#fff; font-size:11px; font-weight:800; padding:4px 9px; border-radius:6px; letter-spacing:0.5px; text-transform:uppercase; box-shadow:0 2px 6px rgba(0,0,0,0.15); border:1px solid rgba(255,255,255,0.15); }
    .library-thumb-pages { position:absolute; bottom:10px; right:10px; z-index:4; background:rgba(255, 255, 255, 0.92); backdrop-filter:blur(6px); color:#0f172a; font-size:11px; font-weight:700; padding:3px 8px; border-radius:6px; display:inline-flex; align-items:center; gap:4px; box-shadow:0 2px 6px rgba(0,0,0,0.1); border:1px solid rgba(226,232,240,0.8); }

    /* Paper/No-preview Placeholder */
    .library-no-preview { height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; color:#475569; text-align:center; padding:20px; background:radial-gradient(circle at 50% 35%, #ffffff 0%, #f1f5f9 100%); position:relative; }
    .library-no-preview::after { content:''; position:absolute; inset:16px; border:1px dashed #cbd5e1; border-radius:8px; pointer-events:none; }
    .library-no-preview-icon { width:52px; height:52px; border-radius:12px; background:#e2e8f0; display:flex; align-items:center; justify-content:center; color:#002f6c; }
    .library-no-preview-title { font-size:13px; font-weight:700; color:#334155; line-height:1.3; max-width:140px; }

    /* Card Body */
    .library-body { padding:16px; display:flex; flex-direction:column; justify-content:space-between; flex:1; gap:10px; }
    .library-body-main { display:flex; flex-direction:column; gap:6px; }
    .library-cat-tag { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:0.5px; color:#002f6c; background:#eff6ff; padding:3px 8px; border-radius:4px; align-self:flex-start; }
    .library-title { font-weight:700; margin:0; font-size:14px; line-height:1.38; color:#0f172a; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-family:Inter, sans-serif; transition:color 0.2s ease; }
    .library-card:hover .library-title a { color:#002f6c; }
    .library-title a { text-decoration:none; color:inherit; }
    .library-summary { margin:0; color:#64748b; font-size:12px; line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
    
    /* Card Footer Action Row */
    .library-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-top:10px; border-top:1px solid #f1f5f9; margin-top:auto; font-size:12px; color:#64748b; }
    .library-date { display:inline-flex; align-items:center; gap:4px; font-size:12px; color:#64748b; font-weight:500; }
    .library-btn-link { display:inline-flex; align-items:center; gap:4px; color:#002f6c; font-weight:700; font-size:12px; text-decoration:none; transition:gap 0.2s ease, color 0.2s ease; }
    .library-card:hover .library-btn-link { gap:7px; color:#001b44; }

    .library-empty { grid-column:1/-1; text-align:center; padding:48px 24px; color:#64748b; background:#fff; border:1px dashed #cbd5e1; border-radius:16px; font-size:15px; font-weight:600; }
    .library-pager { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin:28px 0 64px; }
    .library-pager a, .library-pager span { padding:10px 14px; border:1px solid #e2e8f0; border-radius:10px; background:#fff; text-decoration:none; color:#172033; font-weight:700; font-size:14px; transition:all 0.2s ease; }
    .library-pager a:hover { background:#f1f5f9; border-color:#cbd5e1; }
    .library-pager .cur { background:#002f6c; border-color:#002f6c; color:#fff; box-shadow:0 2px 6px rgba(0,47,108,0.25); }
    mark { background:#fef08a; color:#854d0e; padding:0 3px; border-radius:4px; }

    /* Dark Mode Overrides for Library */
    :root:is(.dark, [data-theme="dark"]) body { background:#07111f !important; color:#f1f5f9 !important; }
    :root:is(.dark, [data-theme="dark"]) .library-heading h1 { color:#f1f5f9; }
    :root:is(.dark, [data-theme="dark"]) .library-heading p { color:#94a3b8; }
    :root:is(.dark, [data-theme="dark"]) .library-count { background:#122235; border-color:#2b4155; color:#94a3b8; }
    :root:is(.dark, [data-theme="dark"]) .library-tab { background:#122235; border-color:#2b4155; color:#cbd5e1; }
    :root:is(.dark, [data-theme="dark"]) .library-tab:hover { background:#1e293b; color:#fff; border-color:#475569; }
    :root:is(.dark, [data-theme="dark"]) .library-tab.active { background:#e9c176; border-color:#e9c176; color:#0f172a; box-shadow:0 2px 10px rgba(233, 193, 118, 0.3); }
    :root:is(.dark, [data-theme="dark"]) .library-toolbar input { background:#122235; border-color:#2b4155; color:#f1f5f9; }
    :root:is(.dark, [data-theme="dark"]) .library-toolbar input:focus { border-color:#e9c176; box-shadow:0 0 0 3px rgba(233, 193, 118, 0.2); }
    :root:is(.dark, [data-theme="dark"]) .library-toolbar button { background:#e9c176; border-color:#e9c176; color:#0f172a; box-shadow:0 2px 8px rgba(233, 193, 118, 0.25); }
    :root:is(.dark, [data-theme="dark"]) .library-toolbar button:hover { background:#f2cf8d; border-color:#f2cf8d; }
    :root:is(.dark, [data-theme="dark"]) .library-toolbar a { background:#122235; border-color:#2b4155; color:#cbd5e1; }
    :root:is(.dark, [data-theme="dark"]) .library-toolbar a:hover { background:#1e293b; color:#fff; }
    :root:is(.dark, [data-theme="dark"]) .library-card { background:#122235; border-color:#2b4155; box-shadow:0 4px 16px rgba(0, 0, 0, 0.3); }
    :root:is(.dark, [data-theme="dark"]) .library-card:hover { border-color:#e9c176; box-shadow:0 16px 32px -8px rgba(0, 0, 0, 0.5); }
    :root:is(.dark, [data-theme="dark"]) .library-thumb { background:linear-gradient(135deg, #0e1c2c 0%, #172a3f 100%); border-bottom-color:#2b4155; }
    :root:is(.dark, [data-theme="dark"]) .library-thumb-pages { background:rgba(18, 34, 53, 0.92); color:#f1f5f9; border-color:#2b4155; }
    :root:is(.dark, [data-theme="dark"]) .library-no-preview { background:radial-gradient(circle at 50% 35%, #182c41 0%, #0e1c2c 100%); color:#94a3b8; }
    :root:is(.dark, [data-theme="dark"]) .library-no-preview::after { border-color:#2b4155; }
    :root:is(.dark, [data-theme="dark"]) .library-no-preview-icon { background:#2b4155; color:#e9c176; }
    :root:is(.dark, [data-theme="dark"]) .library-no-preview-title { color:#cbd5e1; }
    :root:is(.dark, [data-theme="dark"]) .library-title { color:#f1f5f9; }
    :root:is(.dark, [data-theme="dark"]) .library-card:hover .library-title a { color:#e9c176; }
    :root:is(.dark, [data-theme="dark"]) .library-summary { color:#94a3b8; }
    :root:is(.dark, [data-theme="dark"]) .library-cat-tag { background:rgba(233, 193, 118, 0.15); color:#e9c176; }
    :root:is(.dark, [data-theme="dark"]) .library-footer { border-top-color:#1e293b; color:#94a3b8; }
    :root:is(.dark, [data-theme="dark"]) .library-date { color:#94a3b8; }
    :root:is(.dark, [data-theme="dark"]) .library-btn-link { color:#e9c176; }
    :root:is(.dark, [data-theme="dark"]) .library-card:hover .library-btn-link { color:#f2cf8d; }
    :root:is(.dark, [data-theme="dark"]) .library-pager a, :root:is(.dark, [data-theme="dark"]) .library-pager span { background:#122235; border-color:#2b4155; color:#cbd5e1; }
    :root:is(.dark, [data-theme="dark"]) .library-pager a:hover { background:#1e293b; color:#fff; border-color:#475569; }
    :root:is(.dark, [data-theme="dark"]) .library-pager .cur { background:#e9c176; border-color:#e9c176; color:#0f172a; box-shadow:0 2px 10px rgba(233, 193, 118, 0.3); }
    :root:is(.dark, [data-theme="dark"]) .library-empty { background:#122235; border-color:#2b4155; color:#94a3b8; }

    /* Library SLA advertisement: standalone CSS because this public page does
       not load Tailwind. The media remains a normal <img>, so animated WebP
       files play natively in every modern browser. */
    body.library-ad-open { overflow:hidden !important; }
    .library-ad-overlay { position:fixed; inset:0; z-index:999999; display:flex; align-items:stretch; justify-content:stretch; background:#050b14; color:#fff; opacity:1; visibility:visible; transition:opacity .22s ease, visibility .22s ease; }
    .library-ad-overlay.is-hidden { opacity:0; visibility:hidden; pointer-events:none; }
    .library-ad-screen { position:relative; width:100%; min-height:100dvh; display:grid; grid-template-rows:auto auto minmax(0,1fr) auto auto; overflow:hidden; background:radial-gradient(circle at 50% 35%, #17263a 0%, #0a1422 48%, #040910 100%); }
    .library-ad-topbar { position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px clamp(18px,4vw,54px); border-bottom:1px solid rgba(233,193,118,.25); background:rgba(4,9,16,.75); backdrop-filter:blur(16px); }
    .library-ad-badge { display:inline-flex; align-items:center; gap:8px; padding:7px 12px; border:1px solid rgba(233,193,118,.38); border-radius:999px; background:rgba(233,193,118,.12); color:#f2cf8d; font-size:11px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
    .library-ad-timer-wrap { display:flex; align-items:center; gap:10px; color:#cbd5e1; font-size:12px; font-weight:700; }
    .library-ad-timer { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background:#e9c176; color:#07111f; font-size:18px; font-weight:950; box-shadow:0 0 28px rgba(233,193,118,.34); }
    .library-ad-body { position:relative; flex:1; min-height:0; display:grid; grid-template-columns:minmax(250px, .72fr) minmax(0, 1.6fr); gap:clamp(18px,3vw,52px); align-items:center; padding:clamp(22px,4vw,58px); }
    .library-ad-copy { z-index:2; max-width:560px; }
    .library-ad-sponsor { display:block; color:#e9c176; font-size:clamp(12px,1vw,15px); font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
    .library-ad-title { margin:12px 0 0; color:#fff; font-size:clamp(25px,3.3vw,56px); line-height:1.08; font-weight:900; }
    .library-ad-khmer { margin:14px 0 0; color:#d6e0eb; font-family:'Noto Sans Khmer',sans-serif; font-size:clamp(15px,1.35vw,22px); line-height:1.65; }
    .library-ad-media { position:relative; min-width:0; height:min(67dvh,720px); display:flex; align-items:center; justify-content:center; overflow:hidden; border:1px solid rgba(233,193,118,.24); border-radius:24px; background:#02050a; box-shadow:0 28px 90px rgba(0,0,0,.52); }
    .library-ad-media::before { content:""; position:absolute; inset:-20%; background:radial-gradient(circle, rgba(233,193,118,.13), transparent 58%); pointer-events:none; }
    .library-ad-media img { position:relative; width:100%; height:100%; object-fit:contain; display:block; }
    .library-ad-footer { position:relative; z-index:2; padding:13px clamp(18px,4vw,54px) 18px; background:rgba(4,9,16,.86); backdrop-filter:blur(16px); }
    .library-ad-progress-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; color:#cbd5e1; font-size:12px; font-weight:700; }
    .library-ad-progress-meta strong, .library-ad-progress-meta span:last-child { color:#e9c176; }
    .library-ad-progress-track { height:7px; overflow:hidden; border-radius:999px; background:#243447; }
    .library-ad-progress-bar { width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#c99940,#f2d79f); transition:width .05s linear; }
    .library-ad-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:13px; }
    .library-ad-link, .library-ad-proceed { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:42px; padding:10px 16px; border-radius:11px; text-decoration:none; font-size:12px; font-weight:900; cursor:pointer; }
    .library-ad-link { border:1px solid rgba(233,193,118,.35); background:#17263a; color:#f2cf8d; }
    .library-ad-link.is-hidden { display:none; }
    .library-ad-proceed { border:0; margin-left:auto; background:#e9c176; color:#07111f; }
    .library-ad-proceed:focus-visible, .library-ad-link:focus-visible { outline:3px solid rgba(242,207,141,.45); outline-offset:3px; }

    /* Map the existing server-rendered ad markup onto the component styles. */
    .library-ad-screen > div:nth-child(1) { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px clamp(18px,4vw,54px); border-bottom:1px solid rgba(233,193,118,.25); background:rgba(4,9,16,.76); }
    .library-ad-screen > div:nth-child(1) > div { display:flex; align-items:center; gap:9px; }
    .library-ad-screen > div:nth-child(1) > div:first-child span { display:inline-flex; padding:7px 12px; border:1px solid rgba(233,193,118,.38); border-radius:999px; background:rgba(233,193,118,.12); color:#f2cf8d; font-size:11px; font-weight:900; letter-spacing:.12em; }
    #ad-timer-countdown { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background:#e9c176; color:#07111f; font-size:18px; font-weight:950; }
    .library-ad-screen > div:nth-child(2) { padding:clamp(18px,2.3vw,34px) clamp(18px,4vw,54px) 8px; text-align:center; }
    #ad-sponsor-name { display:block; color:#e9c176; font-size:clamp(12px,1vw,15px); font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
    #ad-title-en { margin:8px 0 0; color:#fff; font-size:clamp(23px,2.4vw,42px); line-height:1.08; font-weight:900; }
    #ad-title-km { margin:8px 0 0; color:#d6e0eb; font-family:'Noto Sans Khmer',sans-serif; font-size:clamp(14px,1.2vw,20px); line-height:1.6; }
    .library-ad-screen > div:nth-child(3) { min-height:0; margin:12px clamp(18px,4vw,54px); display:flex; align-items:center; justify-content:center; overflow:hidden; border:1px solid rgba(233,193,118,.24); border-radius:22px; background:#02050a; box-shadow:0 24px 70px rgba(0,0,0,.5); }
    #ad-banner-media { width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
    #ad-banner-media > img, #ad-banner-media > video { width:100%; height:100%; object-fit:contain; display:block; }
    .library-ad-screen > div:nth-child(4) { padding:10px clamp(18px,4vw,54px) 0; }
    .library-ad-screen > div:nth-child(4) > div:first-child { display:flex; justify-content:space-between; gap:12px; color:#cbd5e1; font-size:12px; }
    #ad-progress-pct, #ad-sec-left { color:#e9c176; font-weight:900; }
    .library-ad-screen > div:nth-child(5) { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px clamp(18px,4vw,54px) 18px; }
    #ad-sponsor-link, #ad-proceed-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:42px; padding:10px 16px; border-radius:11px; font-size:12px; font-weight:900; }
    #ad-sponsor-link { border:1px solid rgba(233,193,118,.35); background:#17263a; color:#f2cf8d; text-decoration:none; }
    #ad-sponsor-link.is-hidden { display:none; }
    #ad-proceed-btn { border:0; margin-left:auto; background:#e9c176; color:#07111f; cursor:pointer; }

    @media (max-width:760px) {
      .library-ad-screen > div:nth-child(1) { padding:10px 14px; }
      .library-ad-screen > div:nth-child(1) > div:nth-child(2) > span { display:none; }
      .library-ad-screen > div:nth-child(2) { padding:16px 14px 4px; }
      .library-ad-screen > div:nth-child(3) { margin:10px 14px; border-radius:14px; }
      .library-ad-screen > div:nth-child(4), .library-ad-screen > div:nth-child(5) { padding-left:14px; padding-right:14px; }
    }

    @media (max-width:1200px) { .library-grid { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:18px; } }
    @media (max-width:990px) { .library-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; } }
    @media (max-width:680px) { .library-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; } .library-heading { align-items:flex-start; flex-direction:column; } .library-count { white-space:normal; } }
    @media (max-width:440px) { .library-wrap { width:100%; padding:92px 12px 16px; box-sizing:border-box; } .library-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; } .library-body { padding:10px; } .library-title { font-size:13px; } }

/* Sector library discovery */
.library-wrap{padding-top:36px;padding-bottom:100px}.lc-eyebrow{display:block;margin-bottom:10px;color:#96701c;font-size:12px;font-weight:800;letter-spacing:.1em}.lc-search{padding:22px;border:1px solid #dce5ef;border-radius:18px;background:#fff;box-shadow:0 6px 24px #14345806}.lc-search-row{display:flex;gap:12px}.lc-search-input{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:0 16px;border:1px solid #cbd7e5;border-radius:11px;background:#f9fbfd;color:#526b86}.lc-search-input input{box-sizing:border-box;width:100%;min-width:0;min-height:48px;border:0;outline:0;background:none;color:#17304c;font:inherit;font-size:15px}.lc-search-input:focus-within{outline:3px solid #c9defa;border-color:#245eab}.lc-primary,.lc-secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:42px;padding:11px 17px;border:1px solid #cbd7e5;border-radius:9px;background:#fff;color:#163e71;font-size:13px;font-weight:700;font-family:inherit;text-decoration:none;cursor:pointer}.lc-primary{background:#06386e;border-color:#06386e;color:#fff}.lc-primary:hover{background:#052954}.lc-secondary:hover{background:#f2f6fb}.lc-filter-grid{display:grid;grid-template-columns:1.4fr 1.3fr 1fr 1fr .9fr 1.1fr;gap:12px;margin-top:20px}.lc-filter-grid label{min-width:0;font-size:12px;font-weight:700;color:#4e627b}.lc-filter-grid select{display:block;box-sizing:border-box;min-width:0;width:100%;margin-top:7px;padding:11px 27px 11px 10px;border:1px solid #d4dfea;border-radius:8px;background-color:#fff;color:#1b3555;font:inherit;font-size:13px;min-height:42px}.lc-filter-help{font-size:12px;line-height:1.65;color:#6d7e92;margin:15px 0 0}.lc-results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 16px;color:#667a91;font-size:14px}.lc-results-toolbar p{margin:0}.lc-results-toolbar strong{color:#142f50}.lc-reset{color:#184f8f;font-size:13px;font-weight:600}.lc-active-filters{display:flex;gap:8px;flex-wrap:wrap;margin:-3px 0 20px}.lc-active-filters a{display:inline-flex;align-items:center;gap:12px;padding:7px 11px;background:#eaf1f9;color:#224c7e;text-decoration:none;border:1px solid #d4e1f0;border-radius:7px;font-size:12px}.lc-active-filters a:hover{background:#dfeaf7}.library-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.library-thumb{aspect-ratio:4/3;background:#f0f4f8}.library-thumb img{object-fit:contain;padding:10px;box-sizing:border-box}.library-card:hover .library-thumb img{transform:none}.library-body{padding:19px;gap:12px}.library-body-main{gap:9px}.library-title{font-size:16px;line-height:1.55;-webkit-line-clamp:3}.library-title .lang-km{font-size:15px!important;line-height:1.8!important}.library-cat-tag{font-size:11px;letter-spacing:0;text-transform:none;max-width:100%;overflow-wrap:anywhere}.lc-type-label{display:block;color:#687c91;font-size:12px;font-weight:600}.lc-document-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#718399;font-size:12px}.lc-document-meta span:not(:last-child)::after{content:' ·';padding-left:8px}.library-empty strong{display:block;color:#163957;font-size:19px}.library-empty p{font-size:14px;font-weight:400;margin:12px 0 20px}.lc-metadata{min-width:0;padding:18px!important;border:1px solid #d6e2f0!important;border-radius:12px;margin:8px 0;background:#f6f9fe}.lc-metadata legend{font-size:15px;font-weight:800;color:#173e6d;padding:0 6px}.lc-metadata>p{margin:0 0 16px;color:#61758e;font-size:13px}.lc-metadata-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.lc-metadata-grid label{font-size:13px;font-weight:700;min-width:0}.lc-metadata-grid label>span{font-size:11px;font-weight:400;color:#718399}.lc-metadata-grid :is(input,select){display:block;box-sizing:border-box;width:100%;min-height:44px;margin-top:7px;padding:10px 12px;border:1px solid #cbd7e5;border-radius:8px;font:inherit;background:#fff;color:#183957}.lc-search button:focus-visible,.lc-active-filters a:focus-visible{outline:3px solid #6da8ec;outline-offset:3px}
/* Library organization administration */
.lt-layout{min-height:100vh;display:grid;grid-template-columns:280px minmax(0,1fr)}.lt-page{min-width:0;max-width:1450px;width:100%;padding:32px;box-sizing:border-box;color:#19334f;font-family:Inter,Arial,sans-serif}.lt-heading{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:20px;margin-bottom:24px}.lt-heading h1{font-size:30px;line-height:1.25;font-weight:800;margin:0}.lt-heading p{font-size:14px;color:#6b7d91;margin:8px 0 0}.lt-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.lt-explainer{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #dce5ef;border-radius:15px;background:#fff;margin-bottom:26px}.lt-explainer article{padding:20px}.lt-explainer article+article{border-left:1px solid #e4ebf3}.lt-explainer strong{font-size:14px}.lt-explainer p{font-size:13px;line-height:1.6;color:#6b7d91;margin:8px 0 0}.lt-tabs{display:flex;gap:8px;border-bottom:1px solid #d9e3ee;margin-bottom:20px}.lt-tabs a{display:flex;align-items:center;gap:10px;padding:14px 18px;color:#63788e;text-decoration:none;font-size:14px;font-weight:700;border-bottom:3px solid transparent}.lt-tabs a.active{color:#154e8b;border-color:#154e8b}.lt-tabs span{padding:3px 7px;border-radius:6px;background:#e8eef5;font-size:12px}.lt-toolbar{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:20px}.lt-toolbar form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;flex:1}.lt-toolbar label{font-size:12px;font-weight:700;color:#657b91}.lt-toolbar input,.lt-toolbar select{box-sizing:border-box;display:block;min-height:42px;padding:10px 12px;border:1px solid #cbd7e5;border-radius:9px;background:#fff;color:#173957;font:inherit;margin-top:6px}.lt-search-label{flex:1;min-width:210px}.lt-search-label input{width:100%}.lt-review{padding:16px 18px;border:1px solid #efce8d;border-radius:12px;background:#fff8e9;color:#775921;font-size:13px;margin-bottom:20px}.lt-review p{margin:6px 0 0;line-height:1.6}.lt-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.lt-entry{padding:20px;border:1px solid #d9e3ee;border-radius:14px;background:#fff;min-width:0}.lt-entry.lt-legacy{border-color:#efce8d}.lt-entry-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.lt-entry h2{font-size:17px;font-weight:800;margin:0;line-height:1.45}.lt-entry>p{font-size:13px;line-height:1.6;color:#6b7d91;margin:10px 0}.lt-entry .lt-khmer{font-family:'Khmer OS',sans-serif;font-size:14px}.lt-status{white-space:nowrap;padding:4px 8px;border-radius:20px;font-size:10px;font-weight:700;background:#eaf7ee;color:#247448}.lt-status.inactive{background:#edf1f5;color:#65788d}.lt-entry-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;color:#778ba0;margin-top:20px}.lt-entry-footer button{font-size:12px;min-height:36px;padding:7px 12px}.lt-delete{border:1px solid #f0d4d8;border-radius:8px;background:#fff6f6;color:#ae3045;padding:8px 12px;cursor:pointer}.lt-delete:disabled{opacity:.4;cursor:not-allowed}.lt-reorganize{display:block;width:100%;margin-top:16px;padding:10px 12px;border:1px solid #e8cd94;border-radius:8px;background:#fffaf0;color:#8a6326;font:inherit;font-size:12px;font-weight:700;cursor:pointer;text-align:left}.lt-notice{padding:14px 18px;border:1px solid #b9dfcb;background:#edf9f3;color:#206741;border-radius:10px;font-size:13px;margin:16px 0}.lt-error{color:#a52b43;background:#fff1f3;border-color:#e9b9c4}.lt-dialog{box-sizing:border-box;width:min(570px,94vw);max-height:92vh;padding:0;border:0;border-radius:17px;box-shadow:0 24px 80px #001b4438;color:#1c3856;font-family:Inter,Arial,sans-serif}.lt-dialog::backdrop{background:#091f3b99;backdrop-filter:blur(3px)}.lt-dialog header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 24px;background:#09294e;color:#fff}.lt-dialog header h2{margin:0;font-size:20px;font-weight:800}.lt-dialog header button{border:0;background:none;font:inherit;font-size:28px;cursor:pointer;color:inherit}.lt-dialog-body{display:grid;gap:17px;padding:24px}.lt-dialog-body>p{font-size:13px;line-height:1.65;margin:0}.lt-dialog label{display:block;font-size:13px;font-weight:700}.lt-dialog label>span{font-size:11px;font-weight:400;color:#6b7e92}.lt-dialog input:not([type=checkbox]),.lt-dialog select,.lt-dialog textarea{box-sizing:border-box;display:block;width:100%;min-height:42px;margin-top:7px;padding:11px 12px;border:1px solid #cbd7e5;border-radius:8px;font:inherit;background:#fff}.lt-dialog .lt-check{display:flex;align-items:center;gap:9px}.lt-dialog summary{font-size:12px;color:#6d8096;cursor:pointer}.lt-dialog details label{margin-top:12px}.lt-dialog footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e4ebf3;padding:17px 24px}.lt-dialog button:focus-visible,.lt-dialog summary:focus-visible,.lt-tabs a:focus-visible{outline:3px solid #84b8f2;outline-offset:3px}
:root:is(.dark,[data-theme=dark]) :is(.lc-search,.lt-entry,.lt-explainer){background:#102236;border-color:#2d445c;color:#e8eff7}:root:is(.dark,[data-theme=dark]) :is(.lc-search-input,.lc-filter-grid select){background:#142a40;border-color:#354f69;color:#edf5ff}:root:is(.dark,[data-theme=dark]) .lc-search-input input{color:#edf5ff}:root:is(.dark,[data-theme=dark]) :is(.lc-type-label,.lc-document-meta,.lc-filter-help,.lc-filter-grid label,.lc-results-toolbar){color:#a2b5c9}:root:is(.dark,[data-theme=dark]) .lc-results-toolbar strong{color:#fff}:root:is(.dark,[data-theme=dark]) .lc-active-filters a{background:#1d3650;color:#e9c176;border-color:#355471}:root:is(.dark,[data-theme=dark]) .lc-reset{color:#e9c176}
@media(min-width:1024px){body.has-collapsed-sidebar .lt-layout{grid-template-columns:0 minmax(0,1fr)}}@media(max-width:1120px){.lc-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.lt-layout{grid-template-columns:1fr}.lt-page{padding:24px}}@media(max-width:800px){.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lt-explainer{grid-template-columns:1fr}.lt-explainer article+article{border-left:0;border-top:1px solid #e4ebf3}.lt-catalog{grid-template-columns:1fr}}@media(max-width:560px){.library-wrap{padding:24px 14px 110px}.library-heading{align-items:flex-start;flex-direction:column;gap:12px}.library-heading h1{font-size:30px}.library-heading p{font-size:14px}.lc-search{padding:16px}.lc-search-row{flex-direction:column}.lc-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.lc-filter-grid select{font-size:13px}.library-grid{grid-template-columns:1fr}.library-thumb{aspect-ratio:4/3;max-height:260px}.lc-metadata-grid{grid-template-columns:1fr}.lt-page{padding:20px 14px}.lt-heading h1{font-size:26px}.lt-tabs a{padding:12px 8px;font-size:12px}.lt-entry-heading{flex-wrap:wrap}.lt-toolbar form{width:100%}.lt-dialog-body{padding:20px}.lt-dialog header{padding:18px 20px}.lc-filter-help{font-size:12px}}
.lc-admin-filters{margin-top:16px;padding-top:14px;border-top:1px solid #e3eaf2}.lc-admin-filters summary{cursor:pointer;color:#61758d;font-size:12px}.lc-admin-filters .lc-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px}@media(max-width:560px){.lc-search-input input,.lc-filter-grid select{font-size:16px}.lc-admin-filters .lc-filter-grid{grid-template-columns:1fr}}
.lc-eyebrow .lang-km{letter-spacing:0}html[lang=km] .lc-search :is(input,select){font-family:'Kantumruy Pro','Khmer OS',sans-serif!important;font-weight:400}.lc-search select{font-weight:400}
