@import url("assets/system/color-tokens.css");
@import url("assets/system/typography-tokens.css");
*{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--brand-white);color:var(--color-text-primary);font-family:"Roboto","Noto Sans Thai",Arial,sans-serif}button,input{font:inherit}button{color:inherit}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.library-canvas{background:var(--brand-white)}.library-header{background:var(--brand-white);border-bottom:1px solid var(--color-border)}.header-icon-button{border:0;background:transparent;padding:0;display:grid;place-items:center;cursor:pointer}.header-icon-button img{display:block;width:24px;height:24px}.library-brand{display:flex;align-items:center;overflow:hidden}.library-brand img{object-fit:contain;object-position:left center}.library-search{border:1px solid var(--color-border-strong);border-radius:10px;background:var(--brand-white);display:flex;align-items:center;overflow:hidden}.library-search input{border:0;outline:0;background:transparent;padding:0 18px;font-size:16px;color:var(--color-text-primary)}.library-search input::placeholder{color:var(--color-text-placeholder)}.library-search button{border:0;background:transparent;display:grid;place-items:center;cursor:pointer}.library-search button img{width:24px;height:24px}.notification-dot{position:absolute;right:8px;top:6px;width:8px;height:8px;border-radius:50%;background:var(--brand-yellow);border:2px solid var(--brand-white)}.library-account{border:0;background:transparent;display:flex;align-items:center;gap:var(--space-2);padding:0;cursor:pointer;font-size:15px;font-weight:500;white-space:nowrap}.account-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;background:var(--gray-100)}.account-chevron{width:20px;height:20px;margin-left:0}.library-sidebar{background:var(--brand-white);border-right:1px solid var(--color-border)}.sidebar-item{color:var(--color-text-primary);text-decoration:none;font-weight:500}.sidebar-item img{width:24px;height:24px;object-fit:contain}.sidebar-item:hover{background:var(--highlight-neutral-hover);color:var(--highlight-selected-bg)}.sidebar-item.is-active{color:var(--highlight-selected-bg)}
.library-content.app-main>.page-shell--library{padding:24px}.library-page .library-filter-strip{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:center;column-gap:12px;width:100%;min-width:0;height:32px}.library-page .library-filter-track{display:flex;align-items:center;gap:12px;min-width:0;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none}.library-page .library-filter-track::-webkit-scrollbar{display:none}.library-page .filter-chip{flex:0 0 auto;height:32px;padding:0 12px;border:1px solid var(--color-border-strong);border-radius:9999px;background:var(--color-surface);color:var(--color-text-primary);font-size:14px;line-height:20px;font-weight:500;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;gap:8px}.library-page .filter-chip img{width:20px;height:20px}.library-page .filter-chip:hover{background:var(--highlight-neutral-hover);color:var(--highlight-selected-bg)}.library-page .filter-chip.is-active{background:var(--highlight-selected-bg);border-color:var(--highlight-selected-bg);color:var(--highlight-selected-fg);font-weight:500}.library-page .filter-chip.is-active img{filter:brightness(0) invert(1)}.library-page .library-filter-next{width:32px;height:32px;min-width:32px;padding:0;border:0;border-radius:16px;background:var(--color-surface);display:grid;place-items:center;cursor:pointer}.library-page .library-filter-next:hover{background:var(--color-surface-hover)}.library-page .library-filter-next img{width:20px;height:20px;display:block}
.library-page .library-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px;row-gap:32px;width:100%;max-width:none;margin:24px 0 0;padding:0;align-items:start}.library-page .library-card{min-width:0;border:0;background:transparent}.library-page .library-media{position:relative;width:100%;aspect-ratio:16/9;padding:0;border:0;border-radius:12px;overflow:hidden;background:var(--brand-black);display:block;cursor:pointer}.library-page .library-media>img{display:block;width:100%;height:100%;object-fit:cover}.library-page .library-meta{padding-top:12px;min-width:0}.library-page .library-title-row{display:flex;min-width:0}.library-page .library-title{width:100%;min-width:0;border:0;background:transparent;padding:0;text-align:left;color:var(--color-text-primary);font-size:16px;line-height:20px;font-weight:500;cursor:pointer;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.library-page .library-description{margin:4px 0 0;color:var(--color-text-secondary);font-size:14px;line-height:20px;font-weight:400;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px}.library-page .library-facts-row{margin-top:4px;min-height:20px;display:flex;align-items:center;gap:8px;min-width:0;color:var(--color-text-secondary);font-size:14px;line-height:20px;font-weight:400;white-space:nowrap;overflow:hidden}.library-page .library-facts-row i{font-style:normal;color:var(--gray-500)}.library-page .library-status-action-row{margin-top:4px;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.library-page .free-status{display:inline-flex;align-items:center;min-height:24px;padding:2px 8px;border-radius:4px;background:var(--brand-yellow);color:var(--brand-black);font-size:14px;line-height:20px;font-weight:500;white-space:nowrap}.library-page .approved-status{display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:2px 8px;border-radius:4px;background:var(--gray-100);color:var(--color-text-primary);font-size:14px;line-height:20px;font-weight:500;white-space:nowrap}.library-page .approved-status img{width:20px;height:20px}.library-page .more-button{width:40px;height:40px;padding:0;border:0;border-radius:20px;background:transparent;display:grid;place-items:center;cursor:pointer;margin-left:auto}.library-page .more-button:hover{background:var(--color-surface-hover)}.library-page .more-button img{width:24px;height:24px}.library-page .library-title:focus-visible,.library-page .library-media:focus-visible,.library-page .more-button:focus-visible,.library-page .filter-chip:focus-visible,.library-page .library-filter-next:focus-visible{outline:2px solid var(--brand-black);outline-offset:3px}.library-page .library-empty{margin-top:24px;height:200px;border:1px dashed var(--color-border-strong);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:var(--color-surface)}.library-page .library-empty strong{font-size:20px;line-height:28px;font-weight:600}.library-page .library-empty span{font-size:14px;line-height:20px;font-weight:400;color:var(--color-text-secondary)}.library-page .library-empty button{height:32px;padding:0 12px;border:1px solid var(--brand-black);border-radius:16px;background:var(--color-surface);font-size:14px;line-height:20px;font-weight:500;cursor:pointer}
.library-overlay,.library-dialog-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.34);z-index:100}.library-drawer{position:fixed;left:-340px;top:0;width:330px;height:100vh;background:var(--brand-white);z-index:110;box-shadow:10px 0 30px rgba(0,0,0,.14);transition:left .16s ease;padding:16px 12px}.library-drawer.is-open{left:0}.drawer-head{height:62px;display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--color-border);margin-bottom:16px}.drawer-close{width:40px;height:40px;border:0;background:transparent;display:grid;place-items:center;cursor:pointer}.drawer-close img{width:24px;height:24px}.drawer-logo{display:block;width:120px;height:auto;max-width:none;max-height:40px;object-fit:contain}.library-drawer nav{display:flex;flex-direction:column;gap:4px}.library-drawer nav a{height:47px;border-radius:8px;padding:0 12px;display:flex;align-items:center;text-decoration:none;color:var(--color-text-primary);font-size:15px}.library-drawer nav a:hover{background:var(--highlight-neutral-hover);color:var(--highlight-selected-bg)}.library-drawer nav a.is-active{background:var(--highlight-selected-bg);color:var(--highlight-selected-fg)}.library-drawer nav a.is-active:hover{background:var(--highlight-selected-hover);color:var(--highlight-selected-fg)}.library-popover{position:fixed;z-index:95;width:245px;border:1px solid var(--color-border);background:var(--brand-white);border-radius:10px;padding:8px;box-shadow:0 10px 24px rgba(0,0,0,.12);display:flex;flex-direction:column;gap:8px}.library-popover span{color:var(--color-text-secondary);font-size:14px}.library-more-menu{position:fixed;z-index:96;width:180px;border:1px solid var(--color-border);background:var(--brand-white);border-radius:9px;padding:8px;box-shadow:0 10px 24px rgba(0,0,0,.12)}.library-more-menu button{width:100%;height:38px;text-align:left;border:0;background:transparent;border-radius:6px;padding:0 12px;cursor:pointer}.library-more-menu button:hover{background:var(--gray-050)}.library-toast{position:fixed;left:50%;bottom:28px;z-index:130;transform:translateX(-50%);background:var(--brand-black);color:var(--brand-white);border-radius:8px;padding:8px 16px;font-size:14px}.library-dialog-backdrop{z-index:120}.library-dialog{position:fixed;z-index:125;left:50%;top:50%;transform:translate(-50%,-50%);width:430px;background:var(--brand-white);border-radius:12px;padding:24px;box-shadow:0 18px 50px rgba(0,0,0,.24)}.library-dialog h2{margin:0 0 16px}.library-dialog p{margin:0 0 24px;color:var(--gray-700)}.library-dialog>div{display:flex;justify-content:flex-end;gap:8px}.dialog-secondary,.dialog-primary{height:var(--button-m-h,36px);border-radius:var(--button-m-radius,18px);padding:0 var(--button-m-pad-x,16px);cursor:pointer}.dialog-secondary{background:var(--brand-white);border:1px solid var(--color-border-strong)}.dialog-primary{background:var(--brand-yellow);border:1px solid var(--brand-yellow);color:var(--brand-black)}[hidden]{display:none!important}
@media (max-width:1279px){html,body,.app-page{min-width:var(--desktop-min)}}