/* KDN TV Software Library: standalone plum/teal service-library theme. */
:root{--tv-ink:#232443;--tv-deep:#22254c;--tv-mid:#313a69;--tv-teal:#009f95;--tv-ice:#e8f7f6;--tv-light:#f6f9fc;--tv-line:#cbdee7}
html{background:var(--tv-light)}body{background:linear-gradient(180deg,#eef6f8 0,#f7fafc 290px,#f2f7f9 100%);color:var(--tv-ink)}
.site-header{background:linear-gradient(120deg,#1c2247 0%,#313663 62%,#075f68 100%)!important}
.head-inner .brand-mark{background:#00bfb2!important;color:white!important;border-color:#56ddd4!important}
.brand-copy small{color:#9af2e4!important}.retro-nav,.admin-menu{background:linear-gradient(180deg,#e9f7f6,#cfece9)!important;border-bottom-color:#8bcfc9!important}
.top-nav a:hover,.top-nav a.active,.admin-menu a:hover{background:#d1efed!important;color:#175c60!important}
.window-title,.panel-title,.migration-head,.tg-panel-head,.provider-browser-head{background:linear-gradient(180deg,#f6fafa,#d8eeee)!important;color:#214d58!important;border-bottom:1px solid var(--tv-line)!important}
.admin-header-tag{color:#bdf3f2!important}
.classic-button.blue,.btn.primary,.nav-search button,.filter-apply,.download-action,.row-download,.tg-upload-btn,.migration-buttons .primary{background:linear-gradient(180deg,#00b5aa,#007e7d)!important;color:#fff!important;border-color:#007e7d!important;box-shadow:0 1px 2px #124c4b36!important}
.classic-button.blue:hover,.btn.primary:hover,.row-download:hover,.download-action:hover{filter:brightness(.95)}
.filter-panel,.sidebar-window,.library-window,.detail-window,.detail-board,.panel,.migration-panel,.tg-panel{border-color:#bfdde0!important}
.detail-heading-bar{background:linear-gradient(120deg,#30365e,#216d7b)!important}
.detail-heading-bar .lime-corner{background:#40d9c6!important}
.file-summary-card,.category-list,.sidebar{--accent:#00a399}
.category-item.selected,.category-item:hover{background:#e6f7f5!important;border-color:#90d6cf!important}
.category-count,.size-tag{background:#e4f6f3!important;color:#086f69!important;border-color:#b4e6dd!important}
.mirror-download{background:linear-gradient(180deg,#7465a4,#49367e)!important;border-color:#473474!important}
.tv-category-editor{display:grid;grid-template-columns:minmax(150px,1fr) minmax(200px,2fr) 100px auto;gap:10px;align-items:end}
.tv-category-editor label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:#344b60}
.tv-category-editor input,.tv-category-editor select{width:100%;min-height:38px;padding:8px;border:1px solid #bdd9e2;border-radius:6px;background:#fff;color:#183a45}
.tv-cat-admin-list{display:grid;gap:10px}.tv-category-row{border-top:1px solid #d4e8e8;padding:10px 0;grid-template-columns:minmax(135px,1fr) minmax(140px,2fr) 80px 100px auto}
@media(max-width:840px){.tv-category-editor,.tv-category-row{grid-template-columns:1fr 1fr}.tv-category-editor label:nth-child(2){grid-column:1/-1}.tv-category-editor .btn{width:100%}}
@media(max-width:460px){.tv-category-editor,.tv-category-row{grid-template-columns:1fr}.tv-category-editor label:nth-child(2){grid-column:auto}}
