/* EnterpriseCMS unified admin content design system. Loaded after legacy inline themes. */
:root{--ui-bg:#f5f7fa;--ui-surface:#fff;--ui-soft:#f8fafc;--ui-line:#e2e8f0;--ui-line-strong:#cbd5e1;--ui-text:#172033;--ui-text-2:#475569;--ui-muted:#64748b;--ui-faint:#94a3b8;--ui-blue:#2563eb;--ui-blue-dark:#1d4ed8;--ui-blue-soft:#eff6ff;--ui-green:#059669;--ui-amber:#d97706;--ui-red:#dc2626;--ui-radius:8px;--ui-radius-sm:6px;--ui-shadow:0 1px 2px rgba(15,23,42,.035)}
*{box-sizing:border-box}html,body{background:var(--ui-bg)!important;color:var(--ui-text)!important}body{font-size:14px!important;line-height:1.6!important;-webkit-font-smoothing:antialiased}a{transition:color .14s ease,background-color .14s ease,border-color .14s ease}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(37,99,235,.18)!important;outline-offset:2px!important}
.page-container{width:100%!important;max-width:1680px!important;margin:0 auto!important;padding:18px!important}.page-container.fade-in{animation:uiFade .18s ease both}@keyframes uiFade{from{opacity:0}to{opacity:1}}
.page-header{display:flex!important;min-height:68px!important;margin:0 0 12px!important;padding:14px 16px!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;overflow:visible!important;border:1px solid var(--ui-line)!important;border-radius:var(--ui-radius)!important;background:var(--ui-surface)!important;box-shadow:var(--ui-shadow)!important}.page-header::before,.page-header::after{display:none!important}.page-title{display:flex!important;align-items:center!important;gap:11px!important;min-width:0!important}.page-title h1{margin:0!important;color:var(--ui-text)!important;font-size:22px!important;font-weight:800!important;line-height:1.35!important;letter-spacing:-.02em!important;text-shadow:none!important}.page-title p,.page-header p{margin:3px 0 0!important;color:var(--ui-muted)!important;font-size:13px!important;line-height:1.5!important;opacity:1!important}.page-icon{display:inline-flex!important;width:36px!important;height:36px!important;flex:0 0 36px!important;align-items:center!important;justify-content:center!important;border:1px solid #dbeafe!important;border-radius:7px!important;background:var(--ui-blue-soft)!important;color:var(--ui-blue)!important;box-shadow:none!important}.page-actions,.header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:wrap!important}
.content-card,.form-section,.filter-bar,.card,.panel,.template-card,.template-local-card,.template-summary-card,.health-card,.notification-list,.task-card,.audit-card,.import-card,.channel-sidebar,.content-overview-head,.content-topbar,.content-list-wrapper{border:1px solid var(--ui-line)!important;border-radius:var(--ui-radius)!important;background:var(--ui-surface)!important;box-shadow:var(--ui-shadow)!important}.content-card{overflow:hidden!important}.content-card+.content-card,.form-section+.form-section{margin-top:12px!important}
.card-header,.content-card-header,.form-section-header,[class$="-panel-head"]{display:flex!important;min-height:46px!important;padding:11px 14px!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;border-bottom:1px solid var(--ui-line)!important;background:var(--ui-soft)!important;color:#334155!important;font-size:15px!important;font-weight:800!important}.card-body,.form-section-body{padding:16px!important}.form-section-header svg,.card-header svg{color:var(--ui-blue)!important}
.filter-bar{margin:0 0 10px!important;padding:10px 12px!important}.filter-bar form,.article-filter-form,.product-filter-form{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}.filter-bar::before,.article-filter-form::before,.product-filter-form::before{display:none!important}
.btn,button.btn,a.btn{display:inline-flex!important;min-height:36px!important;padding:7px 13px!important;align-items:center!important;justify-content:center!important;gap:6px!important;border:1px solid transparent!important;border-radius:var(--ui-radius-sm)!important;font-size:13px!important;font-weight:700!important;line-height:20px!important;text-decoration:none!important;box-shadow:none!important;transform:none!important;transition:transform .14s ease,box-shadow .14s ease,background-color .14s ease,border-color .14s ease,color .14s ease!important;cursor:pointer}.btn svg{width:15px!important;height:15px!important}.btn-primary,.btn-success,button.btn-primary,a.btn-primary{border-color:var(--ui-blue)!important;background:var(--ui-blue)!important;color:#fff!important;box-shadow:0 2px 6px rgba(37,99,235,.16)!important}.btn-primary:hover,.btn-success:hover{border-color:var(--ui-blue-dark)!important;background:var(--ui-blue-dark)!important;color:#fff!important;box-shadow:0 4px 10px rgba(37,99,235,.20)!important;transform:translateY(-1px)!important}.btn-secondary,.btn-ghost{border-color:var(--ui-line-strong)!important;background:var(--ui-soft)!important;color:var(--ui-text-2)!important}.btn-secondary:hover,.btn-ghost:hover{border-color:#93c5fd!important;background:#f4f8ff!important;color:var(--ui-blue-dark)!important}.btn-danger{border-color:#fecaca!important;background:#fff7f7!important;color:var(--ui-red)!important}.btn-danger:hover{border-color:#fca5a5!important;background:#fef2f2!important;color:#b91c1c!important}.btn-warning{border-color:#fed7aa!important;background:#fff7ed!important;color:#c2410c!important}.btn-lg{min-height:40px!important;padding:9px 16px!important;font-size:14px!important}.btn-sm,.data-table .btn,.btn-group .btn{min-height:31px!important;padding:5px 9px!important;font-size:12px!important;line-height:19px!important}.btn:disabled,.btn.disabled{opacity:.5!important;cursor:not-allowed!important;transform:none!important}.btn-group{display:flex!important;align-items:center!important;gap:5px!important;flex-wrap:wrap!important}
.form-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}.form-group{min-width:0!important;margin-bottom:14px!important}.form-group label,.form-label,label.form-label{display:block!important;margin:0 0 6px!important;color:var(--ui-text-2)!important;font-size:13px!important;font-weight:700!important;line-height:1.45!important}.required{color:var(--ui-red)!important}.form-control,input[type=text],input[type=search],input[type=number],input[type=password],input[type=url],input[type=email],input[type=date],input[type=datetime-local],select,textarea{width:100%;min-height:38px!important;padding:8px 10px!important;border:1px solid var(--ui-line-strong)!important;border-radius:var(--ui-radius-sm)!important;background:#fff!important;color:var(--ui-text)!important;font-size:14px!important;line-height:1.5!important;box-shadow:none!important;transition:border-color .14s ease,box-shadow .14s ease!important}.form-control:hover,input:hover,select:hover,textarea:hover{border-color:#94a3b8!important}.form-control:focus,input:focus,select:focus,textarea:focus{border-color:#60a5fa!important;box-shadow:0 0 0 3px rgba(37,99,235,.10)!important;outline:0!important}textarea{min-height:110px!important;line-height:1.7!important;resize:vertical}.form-help,small.form-help,.help-text{display:block!important;margin-top:5px!important;color:var(--ui-faint)!important;font-size:12px!important;line-height:1.55!important}input[type=checkbox],input[type=radio]{accent-color:var(--ui-blue)}
.form-actions{display:flex!important;margin-top:14px!important;padding:12px 0 0!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;flex-wrap:wrap!important;border-top:1px solid var(--ui-line)!important;background:transparent!important;box-shadow:none!important}.form-actions[style*="position:sticky"]{bottom:0!important;margin:16px -18px -18px!important;padding:12px 18px!important;border:1px solid var(--ui-line)!important;border-width:1px 0 0!important;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(8px)!important}
.data-table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;background:#fff!important}.data-table thead th{height:42px!important;padding:9px 12px!important;border-bottom:1px solid var(--ui-line)!important;background:var(--ui-soft)!important;color:var(--ui-muted)!important;font-size:12px!important;font-weight:800!important;line-height:1.45!important;letter-spacing:.02em!important;text-align:left!important;white-space:nowrap!important}.data-table tbody td{padding:10px 12px!important;border-bottom:1px solid #edf2f7!important;background:transparent!important;color:#334155!important;font-size:13px!important;line-height:1.55!important;vertical-align:middle!important}.data-table tbody tr:last-child td{border-bottom:0!important}.data-table tbody tr:hover{background:#f8fbff!important}.data-table a:not(.btn){color:#1d4ed8!important;font-weight:650!important}.data-table img{border:1px solid var(--ui-line)!important;border-radius:5px!important;box-shadow:none!important}.data-table th:first-child,.data-table td:first-child{padding-left:14px!important}.data-table th:last-child,.data-table td:last-child{padding-right:14px!important}.id-cell{color:var(--ui-faint)!important;font:600 12px/1.4 Consolas,monospace!important}
.article-subnav,.cms-workflow-nav,.template-tabs,.site-tabs{display:flex!important;align-items:center!important;gap:6px!important;margin:0 0 10px!important;flex-wrap:wrap!important}.article-subnav-link,.cms-workflow-link,.template-tab-btn,.site-tab{display:inline-flex!important;min-height:36px!important;padding:8px 12px!important;align-items:center!important;border:1px solid var(--ui-line)!important;border-radius:var(--ui-radius-sm)!important;background:#fff!important;color:var(--ui-muted)!important;font-size:13px!important;font-weight:700!important;text-decoration:none!important;box-shadow:none!important}.article-subnav-link:hover,.cms-workflow-link:hover,.template-tab-btn:hover,.site-tab:hover{border-color:#bfdbfe!important;color:var(--ui-blue-dark)!important}.article-subnav-link.is-active,.cms-workflow-link.is-active,.template-tab-btn.active,.site-tab.active,.site-tab.is-active{border-color:#bfdbfe!important;background:var(--ui-blue-soft)!important;color:var(--ui-blue-dark)!important}
.badge,[class*="badge-"]{display:inline-flex!important;padding:4px 7px!important;align-items:center!important;border:0!important;border-radius:4px!important;font-size:11px!important;font-weight:750!important;line-height:1.35!important;box-shadow:none!important}.badge-success{background:#ecfdf5!important;color:#047857!important}.badge-warning{background:#fffbeb!important;color:#b45309!important}.badge-danger{background:#fef2f2!important;color:#b91c1c!important}.badge-secondary,.badge-gray{background:#f1f5f9!important;color:#64748b!important}
.pagination{display:flex!important;margin:10px 0 0!important;align-items:center!important;justify-content:center!important;gap:4px!important;flex-wrap:wrap!important}.pagination a,.pagination span{display:inline-flex!important;min-width:34px!important;height:34px!important;padding:0 10px!important;align-items:center!important;justify-content:center!important;border:1px solid var(--ui-line)!important;border-radius:5px!important;background:#fff!important;color:var(--ui-muted)!important;font-size:12px!important;font-weight:700!important;box-shadow:none!important}.pagination a:hover,.pagination a.active,.pagination [aria-current=page]{border-color:var(--ui-blue)!important;background:var(--ui-blue)!important;color:#fff!important}
.alert,.shell-alert,.cms-readonly-notice{display:flex!important;padding:11px 13px!important;align-items:flex-start!important;gap:9px!important;border-radius:var(--ui-radius-sm)!important;font-size:13px!important;line-height:1.6!important;box-shadow:none!important}.alert-success{border-color:#a7f3d0!important;background:#ecfdf5!important;color:#047857!important}.alert-warning{border-color:#fde68a!important;background:#fffbeb!important;color:#92400e!important}.alert-danger{border-color:#fecaca!important;background:#fef2f2!important;color:#b91c1c!important}.alert-info,.cms-readonly-notice{border-color:#bfdbfe!important;background:#eff6ff!important;color:#1e40af!important}
.empty-state{padding:52px 20px!important;text-align:center!important}.empty-icon{display:inline-flex!important;width:56px!important;height:56px!important;margin:0 auto 12px!important;align-items:center!important;justify-content:center!important;border-radius:10px!important;background:#f1f5f9!important;color:#94a3b8!important;box-shadow:none!important}.empty-state h3{margin:0!important;color:#334155!important;font-size:16px!important}.empty-state p{margin:5px 0 14px!important;color:var(--ui-faint)!important;font-size:13px!important}.table-loading,.loading-state{padding:48px 20px!important;color:var(--ui-muted)!important;font-size:13px!important;text-align:center!important}
[class$="-context-bar"],.stats-grid,.overview-grid,.site-page-overview{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;gap:8px!important;margin:0 0 10px!important}[class$="-context-item"],.stat-card,.overview-item,.site-overview-item{min-height:72px!important;padding:12px 14px!important;overflow:hidden!important;border:1px solid var(--ui-line)!important;border-radius:var(--ui-radius)!important;background:#fff!important;box-shadow:none!important}[class$="-context-item"]::after,.stat-card::after{display:none!important}[class$="-context-label"],.stat-card-label,.overview-label{display:block!important;margin:0 0 4px!important;color:var(--ui-faint)!important;font-size:11px!important;font-weight:700!important}[class$="-context-value"],.stat-card-value,.overview-value{display:block!important;color:var(--ui-text)!important;font-size:18px!important;font-weight:800!important;line-height:1.35!important}
.upload-preview,.upload-placeholder,#litpicPreview,.cms-upload-zone{border:1px dashed #bfdbfe!important;border-radius:var(--ui-radius)!important;background:#f8fbff!important;box-shadow:none!important}.cms-ueditor-wrap,.product-ueditor-wrap{border-radius:var(--ui-radius)!important}.cms-ueditor-wrap::before,.product-ueditor-wrap::before{margin-bottom:8px!important;padding:4px 8px!important;border-radius:4px!important;background:var(--ui-blue-soft)!important;color:var(--ui-blue-dark)!important;font-size:11px!important}.cms-ueditor-wrap .edui-editor,.product-ueditor-wrap .edui-editor{border:1px solid var(--ui-line-strong)!important;border-radius:var(--ui-radius-sm)!important;box-shadow:none!important}.cms-ueditor-wrap .edui-editor-toolbarboxouter,.product-ueditor-wrap .edui-editor-toolbarboxouter{background:var(--ui-soft)!important}
.modal-overlay,.profile-overlay{background:rgba(15,23,42,.42)!important;backdrop-filter:blur(3px)!important}.modal-content,.dialog-card,.yt-ship-modal-card{overflow:hidden!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;background:#fff!important;box-shadow:0 22px 60px rgba(15,23,42,.18)!important}.modal-header,.modal-footer{padding:13px 16px!important;border-color:var(--ui-line)!important;background:var(--ui-soft)!important}.modal-body{padding:16px!important;background:#fff!important}
.template-local-grid,.template-remote-grid{gap:12px!important}.template-card,.template-local-card{overflow:hidden!important}.template-card:hover,.template-local-card:hover{border-color:#bfdbfe!important;box-shadow:0 8px 24px rgba(15,23,42,.06)!important;transform:translateY(-1px)!important}.template-summary-card{min-height:76px!important;padding:13px 15px!important}.template-filter-chip{border-radius:5px!important}.auth-hero-card,.auth-compare-card,.auth-activate-card,.auth-plan-card{border:1px solid var(--ui-line)!important;border-radius:10px!important;box-shadow:none!important}.yt-shop-card,.yt-shop-panel,[class^=yt-shop-]{border-radius:var(--ui-radius)!important;box-shadow:none!important}.help-nav,.help-panel,.help-step,.tag-section,.health-overview{border-color:var(--ui-line)!important;border-radius:var(--ui-radius)!important;background:#fff!important;box-shadow:none!important}.tag-section-title{background:var(--ui-soft)!important}.tag-table th{background:var(--ui-soft)!important}.tag-example,code{border-radius:4px!important;background:#f1f5f9!important;color:#334155!important}
.content-manage-layout{gap:12px!important}.channel-sidebar{width:188px!important}.channel-sidebar-header{padding:12px!important;border-bottom:1px solid var(--ui-line)!important;background:var(--ui-soft)!important}.channel-tree-item,.channel-item{border-radius:5px!important}.channel-tree-item:hover,.channel-item:hover{background:#f1f5f9!important}.channel-tree-item.active,.channel-item.active{background:var(--ui-blue-soft)!important;color:var(--ui-blue-dark)!important}.list-meta-bar{min-height:38px!important;padding:8px 12px!important;border:1px solid var(--ui-line)!important;border-radius:6px!important;background:var(--ui-soft)!important;color:var(--ui-muted)!important;font-size:12px!important}
@media(max-width:1100px){.page-container{padding:14px!important}.page-header{align-items:flex-start!important}.page-actions,.header-actions{max-width:60%!important}.form-row{grid-template-columns:1fr!important}.content-manage-layout{flex-direction:column!important}.channel-sidebar{width:100%!important;max-height:320px!important}}
@media(max-width:768px){.page-container{padding:10px!important}.page-header{min-height:0!important;padding:13px!important;flex-direction:column!important}.page-title h1{font-size:20px!important}.page-actions,.header-actions{width:100%!important;max-width:none!important;justify-content:flex-start!important}.page-actions .btn,.header-actions .btn{flex:1 1 auto!important}.filter-bar form,.article-filter-form,.product-filter-form{align-items:stretch!important}.filter-bar .form-control,.filter-bar input,.filter-bar select,.filter-bar .btn{width:100%!important}.content-card{overflow-x:auto!important}.data-table{min-width:760px!important}.form-section-body,.card-body{padding:13px!important}.form-actions{align-items:stretch!important}.form-actions .btn{flex:1 1 auto!important}[class$="-context-bar"],.stats-grid,.overview-grid,.site-page-overview{grid-template-columns:1fr!important}.pagination{justify-content:flex-start!important;overflow-x:auto!important;flex-wrap:nowrap!important}.modal-content,.dialog-card,.yt-ship-modal-card{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* High-visibility action hierarchy */
.btn,button.btn,a.btn{font-weight:750!important;box-shadow:0 1px 2px rgba(15,23,42,.08)!important}
.btn-primary,button.btn-primary,a.btn-primary{border-color:#1d4ed8!important;background:#2563eb!important;color:#fff!important;box-shadow:0 3px 8px rgba(37,99,235,.24)!important}
.btn-primary:hover,button.btn-primary:hover,a.btn-primary:hover{border-color:#1e40af!important;background:#1d4ed8!important;box-shadow:0 5px 12px rgba(37,99,235,.28)!important}
.btn-success,button.btn-success,a.btn-success{border-color:#047857!important;background:#059669!important;color:#fff!important;box-shadow:0 3px 8px rgba(5,150,105,.22)!important}
.btn-success:hover,button.btn-success:hover,a.btn-success:hover{border-color:#065f46!important;background:#047857!important;box-shadow:0 5px 12px rgba(5,150,105,.26)!important}
.btn-secondary,button.btn-secondary,a.btn-secondary{border-color:#94a3b8!important;background:#f1f5f9!important;color:#334155!important}
.btn-secondary:hover,button.btn-secondary:hover,a.btn-secondary:hover{border-color:#64748b!important;background:#e2e8f0!important;color:#172033!important}
.btn-ghost,button.btn-ghost,a.btn-ghost{border-color:#cbd5e1!important;background:#fff!important;color:#475569!important}
.btn-ghost:hover,button.btn-ghost:hover,a.btn-ghost:hover{border-color:#60a5fa!important;background:#eff6ff!important;color:#1d4ed8!important}
.btn-danger,button.btn-danger,a.btn-danger{border-color:#fca5a5!important;background:#fef2f2!important;color:#b91c1c!important}
.btn-danger:hover,button.btn-danger:hover,a.btn-danger:hover{border-color:#ef4444!important;background:#fee2e2!important;color:#991b1b!important}
.btn-warning,button.btn-warning,a.btn-warning{border-color:#fdba74!important;background:#fff7ed!important;color:#c2410c!important}
.btn:focus-visible{outline:0!important;box-shadow:0 0 0 3px rgba(37,99,235,.20)!important}
.data-table .btn,.btn-group .btn{border-width:1px!important;font-weight:750!important}.data-table .btn-primary{box-shadow:0 2px 5px rgba(37,99,235,.20)!important}.data-table .btn-danger{box-shadow:0 1px 2px rgba(185,28,28,.08)!important}
.page-actions .btn-primary,.header-actions .btn-primary,.form-actions .btn-primary,.form-actions .btn-success{min-width:86px!important}
.dashboard-fk-page .fk-flat-btn{border-color:#94a3b8!important;background:#f8fafc!important;color:#334155!important;box-shadow:0 1px 2px rgba(15,23,42,.06)!important}.dashboard-fk-page .fk-flat-btn:hover{border-color:#64748b!important;background:#f1f5f9!important;color:#172033!important}.dashboard-fk-page .fk-flat-btn-primary,.dashboard-fk-page .fk-flat-btn-primary:hover{border-color:#1d4ed8!important;background:#2563eb!important;color:#fff!important;box-shadow:0 3px 8px rgba(37,99,235,.24)!important}

/* Unified SVG icon sizing */
.page-icon .cms-page-svg{width:19px!important;height:19px!important;display:block!important}.cms-auto-page-icon{display:inline-flex!important}.btn .cms-button-svg{width:14px!important;height:14px!important;flex:0 0 14px!important;display:block!important}.btn-lg .cms-button-svg{width:16px!important;height:16px!important;flex-basis:16px!important}.data-table .btn .cms-button-svg,.btn-sm .cms-button-svg{width:13px!important;height:13px!important;flex-basis:13px!important}
