*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;background:#fafafa;color:#111;font-size:14px}
a{color:inherit;text-decoration:none}

.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#fff}
.login-box{width:320px;padding:36px;border:1px solid #e5e7eb;border-radius:14px}
.login-box h1{font-size:18px;font-weight:700;margin-bottom:4px;letter-spacing:-.02em}
.login-box .sub{font-size:12px;color:#888;margin-bottom:24px}
.login-box input{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:8px;font-size:14px;margin-bottom:10px}
.login-box button{width:100%;padding:11px;background:#111;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer}
.login-box button:hover{background:#333}
.login-err{background:#fef2f2;color:#b91c1c;font-size:12px;padding:8px 12px;border-radius:8px;margin-bottom:14px}

.topbar{background:#fff;border-bottom:1px solid #eee;padding:0 24px;display:flex;align-items:center;height:56px;position:sticky;top:0;z-index:10}
.topbar .brand{display:flex;align-items:center;margin-right:36px}
.topbar .brand img{display:block}
.topbar nav{display:flex;gap:4px;flex:1}
.topbar nav a{padding:8px 14px;border-radius:0;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#666}
.topbar nav a.active{background:#111;color:#fff}
.topbar nav a:hover:not(.active){background:#f3f4f6}
.topbar .logout{font-size:12px;color:#999}
.topbar .logout:hover{color:#111}

.topbar-icons{display:flex;align-items:center;gap:6px}
.icon-btn{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px;color:#666;background:none;border:none;cursor:pointer}
.burger-btn{display:none}
.icon-btn:hover,.icon-btn.active{background:#f3f4f6;color:#111}
.account-menu{position:relative}
.account-dropdown{position:absolute;top:100%;right:0;padding-top:8px;min-width:160px;display:none}
.account-dropdown::before{content:"";position:absolute;top:0;left:0;right:0;height:8px}
.account-menu:hover .account-dropdown,.account-menu:focus-within .account-dropdown{display:block}
.account-dropdown>*{display:block;background:#fff;border:1px solid #eee;border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.1)}
.account-dropdown .account-user{padding:10px 14px;font-size:12px;font-weight:600;color:#111;border-radius:10px 10px 0 0;border-bottom:1px solid #f3f4f6;word-break:break-all}
.account-dropdown a{padding:10px 14px;font-size:13px;color:#666;border-radius:0 0 10px 10px;margin-top:-1px}
.account-dropdown a:hover{background:#f9fafb;color:#111}

.wrap{max-width:1000px;margin:0 auto;padding:32px 24px}
h1.page-title{font-family:Georgia,serif;font-size:26px;font-weight:400;margin-bottom:20px;letter-spacing:-.01em}

.card{background:#fff;border:1px solid #eee;border-radius:12px;padding:20px;margin-bottom:16px}
.card h3{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#888;margin-bottom:14px}

.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.stat{background:#f8f9fa;border-radius:10px;padding:16px;text-align:center}
.stat .n{font-size:24px;font-weight:700}
.stat .l{font-size:11px;color:#999;margin-top:4px}

.form-row{margin-bottom:12px}
.form-row label{display:block;font-size:12px;font-weight:600;color:#555;margin-bottom:5px}
.form-row input,.form-row textarea,.form-row select{width:100%;padding:8px 10px;border:1px solid #ddd;border-radius:8px;font-size:13px;font-family:inherit}
.form-row textarea{resize:vertical}
.inline{display:flex;gap:10px;align-items:center}
.inline label{white-space:nowrap;margin:0}
.inline input{width:auto}

.btn{display:inline-block;padding:8px 16px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;border:1px solid #ddd;background:#fff}
.btn:hover{background:#f5f5f5}
.btn-primary{background:#111;color:#fff;border-color:#111}
.btn-primary:hover{background:#333}
.btn-danger{background:#fff;color:#dc2626;border-color:#fecaca}
.btn-danger:hover{background:#fef2f2}
.btn-sm{padding:5px 11px;font-size:12px}

.tabs{display:flex;gap:6px;margin-bottom:20px}
.tabs a{padding:8px 16px;border-radius:8px;font-size:13px;font-weight:600;color:#666}
.tabs a.active{background:#111;color:#fff}

.trigger-opts{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.trigger-opts label{display:flex;align-items:center;gap:6px;padding:8px 14px;border:2px solid #e5e7eb;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer}
.trigger-opts label.active{border-color:#111;background:#f5f5f5}

.site-list{list-style:none;display:flex;flex-direction:column;gap:8px;max-height:340px;overflow-y:auto}
.site-list li{display:flex;align-items:center;gap:10px;padding:8px 4px;border-bottom:1px solid #f3f4f6}
.site-checks{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;padding:10px 0}
.site-checks label{font-size:12px;display:flex;gap:6px;align-items:center}

.msg-ok{background:#f3f4f6;color:#111;font-weight:600;padding:10px 14px;border-radius:8px;font-size:13px;margin-bottom:16px}

.list-actions{margin-bottom:16px}
.admin-table{width:100%;border-collapse:collapse}
.admin-table tr{border-bottom:1px solid #f3f4f6}
.admin-table td{padding:8px 4px}
.admin-table td.meta{font-size:12px;color:#888}
.admin-table .row-title{font-weight:600;font-size:12px}
.list-footnote{font-size:11px;color:#999;margin-top:12px}
.field-hint{font-size:11px;color:#999;margin-top:4px}
.field-preview-img{max-width:220px;border-radius:8px;margin-bottom:8px;display:block}
.form-row-narrow{max-width:200px}
.inline-form{display:inline}
.status-live{color:#111;font-weight:700}
.status-draft{color:#999}
.checkbox-inline{margin-top:22px;display:flex;align-items:center;gap:6px}
.checkbox-inline input{width:auto}
.field-mt{margin-top:6px}

.asset-form{margin-bottom:14px}
.asset-search{margin-bottom:16px}
.asset-search-input{max-width:280px}
.asset-count{font-size:12px;color:#999;margin-bottom:12px}
.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.asset-item{text-decoration:none;display:block}
.asset-thumb{background:#f8f9fa;border-radius:8px;overflow:hidden;aspect-ratio:1;display:flex;align-items:center;justify-content:center}
.asset-thumb img{width:100%;height:100%;object-fit:cover}
.asset-thumb-video{font-size:24px}
.asset-name{font-size:10px;color:#888;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.asset-size{font-size:9px;color:#bbb}

.search-input-admin{max-width:340px}
.result-row{padding:8px 0;border-bottom:1px solid #f3f4f6}
.result-meta{font-size:12px;color:#999;margin-left:8px}
.result-empty{color:#999;font-size:13px}

.is-hidden{display:none}

.popups-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}

.analytics-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.days-switch{display:flex;gap:4px}
.unique-visitors{text-align:center;font-size:12px;color:#bbb;margin-bottom:16px}

.chart-wrap{padding:0 4px;margin-bottom:8px;position:relative}
.chart-svg{width:100%;height:140px;display:block;overflow:visible;cursor:crosshair}
.chart-grid{stroke:#f0f0f0;stroke-width:1}
.chart-area{fill:rgba(150,150,150,0.25)}
.chart-line-views{fill:none;stroke:#999;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.chart-line-clicks{fill:none;stroke:#444;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.chart-dot-views{fill:#999;stroke:#fff;stroke-width:2}
.chart-dot-clicks{fill:#444;stroke:#fff;stroke-width:1.5}
.chart-hover-line{stroke:#ccc;stroke-width:1.5;stroke-dasharray:5 3;opacity:0;pointer-events:none;transition:opacity .12s}
.chart-hover-dot-views{fill:#999;stroke:#fff;stroke-width:2.5;opacity:0;pointer-events:none;transition:opacity .12s}
.chart-hover-dot-clicks{fill:#444;stroke:#fff;stroke-width:2;opacity:0;pointer-events:none;transition:opacity .12s}
.chart-tooltip{position:absolute;background:#1a1a1a;color:#fff;border-radius:10px;padding:10px 14px;font-size:12px;pointer-events:none;z-index:99;display:none;min-width:140px;box-shadow:0 8px 30px rgba(0,0,0,.3);border:1px solid rgba(255,255,255,.08);white-space:nowrap}
.chart-tooltip .tip-date{font-weight:700;color:#999;font-size:11px;margin-bottom:6px}
.chart-tooltip .tip-row{display:flex;align-items:center;gap:6px;margin-bottom:4px}
.chart-tooltip .tip-row b{margin-left:auto;padding-left:16px}
.chart-tooltip .tip-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.chart-tooltip .tip-dot-views{background:#999}
.chart-tooltip .tip-dot-clicks{background:#444}
.chart-tooltip .tip-ctr{border-top:1px solid rgba(255,255,255,.12);margin-top:5px;padding-top:5px;display:flex;justify-content:space-between;font-size:11px;color:#888}
.chart-tooltip .tip-ctr-pos{color:#eee}
.chart-tooltip .tip-ctr-zero{color:#666}
.chart-labels{display:flex;justify-content:space-between;font-size:10px;color:#ccc;margin-bottom:12px}
.chart-legend{display:flex;gap:16px;font-size:12px;color:#666;margin-bottom:4px}
.legend-item{display:flex;align-items:center;gap:5px}
.legend-swatch{width:12px;height:3px;display:inline-block;border-radius:2px}
.legend-swatch-views{background:#999}
.legend-swatch-clicks{background:#444}

.mode-switch{display:inline-flex;gap:0;margin-bottom:16px;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}
.mode-switch-opt{display:flex;align-items:center;padding:8px 20px;cursor:pointer;font-size:13px;font-weight:600;border-right:1px solid #e5e7eb;color:#555}
.mode-switch-opt:last-child{border-right:none}
.mode-switch-opt.active{background:#111;color:#fff}
.mode-switch-opt input{display:none}

.ab-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}
.ab-table-head th{font-size:11px;font-weight:700;color:#9ca3af;letter-spacing:.04em;text-transform:uppercase;padding:8px 14px;border-bottom:1px solid #f3f4f6;text-align:left}
.ab-table-row td{padding:7px 14px;border-bottom:1px solid #f9fafb;vertical-align:middle}
.ab-letter{width:20px;height:20px;border-radius:50%;background:#f3f4f6;color:#6b7280;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.ab-trigger{font-size:12px;font-weight:600;color:#111}
.ab-details{font-size:12px;color:#6b7280}
.ab-best-badge{background:#f3f4f6;color:#374151;font-size:10px;padding:1px 5px;border-radius:4px;font-weight:700;margin-left:4px}
.ab-num{font-size:12px;color:#555}
.ab-empty{color:#ddd}
.ab-ctr-pos{font-weight:700;color:#111}

.media-row{display:flex;gap:20px;flex-wrap:wrap}
.media-preview{max-width:100%;height:auto;border-radius:8px}
.media-fields{flex:1;min-width:200px}

.site-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.site-name{min-width:180px}
.site-ga-form{margin-left:auto}
.site-ga-input{width:160px}

.preview-overlay{display:flex;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.65);z-index:999999;align-items:center;justify-content:center;padding:20px}
.preview-box{position:relative;max-width:480px;width:100%;border-radius:16px;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.5);background:#000}
.preview-close{position:absolute;top:12px;right:12px;background:rgba(0,0,0,.6);border:none;color:#fff;width:32px;height:32px;border-radius:50%;font-size:18px;cursor:pointer;z-index:10;display:flex;align-items:center;justify-content:center}
.preview-link{display:block;text-decoration:none}
.preview-media{width:100%;display:block;border-radius:16px 16px 0 0;max-height:55vh;object-fit:cover}
.preview-caption{padding:14px 18px;background:#111;color:#fff;font-size:15px;font-weight:700;text-align:center;letter-spacing:-.2px;border-radius:0 0 16px 16px;white-space:pre-line}
.preview-badge{position:absolute;top:12px;left:12px;background:rgba(0,0,0,.85);color:#fff;font-size:10px;font-weight:700;padding:3px 7px;border-radius:4px;letter-spacing:.5px;z-index:10}
.key-code{font-family:ui-monospace,monospace;font-size:11px;color:#888;background:#f3f4f6;padding:2px 6px;border-radius:5px}
.popup-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}

/* Brands: sortable table headers */
.admin-table thead th{font-size:11px;font-weight:700;color:#9ca3af;letter-spacing:.04em;text-transform:uppercase;text-align:left;padding:8px 4px;border-bottom:1px solid #eee}
.admin-table thead th.sortable{cursor:pointer;user-select:none;position:relative}
.admin-table thead th.sortable:hover{color:#111}
.admin-table thead th.sortable::after{content:"\2195";margin-left:5px;opacity:.35;font-size:10px}
.admin-table thead th.sortable.sort-asc::after{content:"\2191";opacity:1}
.admin-table thead th.sortable.sort-desc::after{content:"\2193";opacity:1}

/* Brands: status on/off pill toggle */
.status-toggle{width:38px;height:20px;border-radius:999px;border:none;background:#e5e7eb;position:relative;cursor:pointer;padding:0;transition:background .15s}
.status-toggle:hover{opacity:.9}
.status-toggle .status-toggle-knob{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:left .15s}
.status-toggle.is-on{background:#111}
.status-toggle.is-on .status-toggle-knob{left:20px}
.status-toggle.is-off{background:#e5e7eb;border:1px solid #ccc}
.status-toggle:disabled{opacity:.6;cursor:wait}

.site-checks input[type="checkbox"]{accent-color:#111}
.form-check input[type="checkbox"]{accent-color:#111}

input[type="file"]{font-size:12px;color:#666}
input[type="file"]::file-selector-button{background:#111;color:#fff;border:none;border-radius:6px;padding:8px 14px;font-size:12px;cursor:pointer;margin-right:10px;transition:opacity .15s}
input[type="file"]::file-selector-button:hover{opacity:.85}

.cx-media-modal{position:fixed;inset:0;z-index:400;display:none;align-items:center;justify-content:center;padding:20px}
.cx-media-modal.open{display:flex}
.cx-media-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.6)}
.cx-media-modal-box{position:relative;z-index:1;background:#fff;border-radius:10px;width:100%;max-width:820px;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.cx-media-modal-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #eee;font-weight:600}
.cx-media-modal-grid{overflow-y:auto;padding:14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.cx-media-item{background:none;border:1px solid #eee;border-radius:8px;padding:6px;cursor:pointer;display:flex;flex-direction:column;gap:4px;text-align:left}
.cx-media-item:hover{border-color:#111}
.cx-media-item img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:4px}
.cx-media-item-video{width:100%;aspect-ratio:1;background:#f3f4f6;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:11px;color:#888}
.cx-media-item span{font-size:10px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.table-scroll{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.table-scroll .admin-table{min-width:960px}
.table-scroll .ab-table{min-width:480px}

.chart-dot-clicks-stem{stroke:#444;stroke-width:1;stroke-dasharray:2 2;opacity:.5}

.dashboard-trends-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px;flex-wrap:wrap;gap:6px}
.section-label{font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#888}
.section-sub{font-size:12px;color:#999}
.trend-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:2px;flex-wrap:wrap;gap:8px}
.trend-card-head h3{margin-bottom:0;text-transform:none;letter-spacing:0;font-size:14px;color:#111}
.trend-legend-dates{display:flex;gap:14px;font-size:11px;color:#999}
.trend-compare{font-size:13px;color:#888;margin-bottom:14px}
.chart-line-prev{fill:none;stroke:#ccc;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.chart-area-prev{fill:rgba(0,0,0,.04)}
.chart-line-cur{fill:none;stroke:#111;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.chart-dot-cur{fill:#111;stroke:#fff;stroke-width:2}

.post-list{list-style:none;display:flex;flex-direction:column}
.post-row{display:flex;align-items:center;gap:12px;padding:7px 2px;border-bottom:1px solid #f3f4f6}
.post-thumb{flex-shrink:0;width:44px;height:44px;border-radius:8px;overflow:hidden;background:#f8f9fa;display:flex;align-items:center;justify-content:center}
.post-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.post-thumb-empty{color:#ccc;font-size:11px}
.post-row-main{flex:1;min-width:0;display:block}
.post-row-title{font-size:13px;font-weight:600;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.post-row-meta{font-size:11px;color:#999;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.prio-input{width:52px;padding:6px 8px;border:1px solid #ddd;border-radius:6px;font-size:13px;font-family:inherit;text-align:center}
.prio-input:focus{outline:none;border-color:#111}

/* Mobile */
@media (max-width:768px){
  .topbar{padding:0 14px}
  .topbar .brand{margin-right:auto}
  .topbar-icons{margin-left:auto}
  .burger-btn{display:flex}
  .topbar nav{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:2px;background:#fff;border-bottom:1px solid #eee;padding:8px;box-shadow:0 16px 30px rgba(0,0,0,.08)}
  .topbar nav.nav-open{display:flex}
  .topbar nav a{padding:12px 14px;border-radius:8px}

  .wrap{padding:20px 14px}
  h1.page-title{font-size:22px;margin-bottom:14px}

  .grid4{grid-template-columns:repeat(2,1fr)}
  .analytics-head{flex-wrap:wrap;gap:10px}
  .popups-header{flex-wrap:wrap;gap:10px}
  .site-row{gap:8px}
  .site-ga-form{margin-left:0}
  .trigger-opts label{padding:8px 10px;font-size:12px}
  .mode-switch-opt{padding:8px 12px;font-size:12px}
  .inline{flex-wrap:wrap}
}

@media (max-width:420px){
  .grid4{grid-template-columns:repeat(2,1fr);gap:8px}
  .stat .n{font-size:20px}
}

/* Dark Mode (shared across all admin pages, toggle in topbar, localStorage 'bz-dark-mode') */
html.dark::-webkit-scrollbar{width:10px;height:10px}
html.dark::-webkit-scrollbar-track{background:#1a1a1a}
html.dark::-webkit-scrollbar-thumb{background:#000;border-radius:5px}
html.dark::-webkit-scrollbar-thumb:hover{background:#000}
html.dark{scrollbar-color:#000 #1a1a1a}
body.dark{background:#111;color:#eee}
body.dark .topbar{background:#1a1a1a;border-bottom-color:#2a2a2a}
body.dark .topbar .brand img{filter:invert(1)}
body.dark .topbar nav a{color:#999}
body.dark .topbar nav a.active{background:#eee;color:#111}
body.dark .topbar nav a:hover:not(.active){background:#262626}
body.dark .icon-btn{color:#ccc}
body.dark .icon-btn:hover,body.dark .icon-btn.active{background:#262626;color:#fff}
body.dark .account-dropdown>*{background:#1f1f1f;border-color:#333;box-shadow:0 12px 30px rgba(0,0,0,.4)}
body.dark .account-dropdown .account-user{color:#eee;border-bottom-color:#2a2a2a}
body.dark .account-dropdown a{color:#aaa}
body.dark .account-dropdown a:hover{background:#262626;color:#fff}

body.dark .login-wrap{background:#111}
body.dark .login-box{background:#1a1a1a;border-color:#2a2a2a}
body.dark .login-box .sub{color:#888}
body.dark .login-box input{background:#111;border-color:#333;color:#eee}
body.dark .login-box button{background:#eee;color:#111}
body.dark .login-box button:hover{background:#ccc}
body.dark .login-err{background:#2a1414;color:#f87171}

body.dark .card{background:#1a1a1a;border-color:#2a2a2a}
body.dark .card h3{color:#888}
body.dark h1.page-title{color:#f0f0f0}

body.dark .stat{background:#222}
body.dark .stat .l{color:#888}

body.dark .form-row label{color:#aaa}
body.dark .form-row input,body.dark .form-row textarea,body.dark .form-row select{background:#1a1a1a;border-color:#333;color:#eee}
body.dark .field-hint,body.dark .list-footnote{color:#888}
body.dark input[type="file"]{color:#aaa}
body.dark input[type="file"]::file-selector-button{background:#eee;color:#111}

body.dark .btn{background:#1a1a1a;border-color:#333;color:#eee}
body.dark .btn:hover{background:#262626}
body.dark .btn-primary{background:#eee;color:#111;border-color:#eee}
body.dark .btn-primary:hover{background:#ccc}
body.dark .btn-danger{background:#1a1a1a;color:#f87171;border-color:#4a1f1f}
body.dark .btn-danger:hover{background:#2a1414}
body.dark .btn.solid{background:#eee;color:#111;border-color:#eee}
body.dark .btn.solid:hover{background:transparent;color:#eee}

body.dark .tabs a{color:#999}
body.dark .tabs a.active{background:#eee;color:#111}

body.dark .trigger-opts label{border-color:#333}
body.dark .trigger-opts label.active{border-color:#eee;background:#262626}

body.dark .site-list li{border-bottom-color:#2a2a2a}

body.dark .msg-ok{background:#1f2a1f;color:#c8f0c8}

body.dark .admin-table tr{border-bottom-color:#2a2a2a}
body.dark .admin-table td.meta{color:#888}
body.dark .admin-table thead th{color:#888;border-bottom-color:#2a2a2a}
body.dark .admin-table thead th.sortable:hover{color:#eee}
body.dark .status-draft{color:#888}
body.dark .status-live{color:#eee}

body.dark .asset-thumb{background:#222}
body.dark .asset-name{color:#999}
body.dark .asset-size{color:#666}
body.dark .asset-count{color:#888}

body.dark .result-row{border-bottom-color:#2a2a2a}
body.dark .result-meta,body.dark .result-empty{color:#888}

body.dark .chart-grid{stroke:#2a2a2a}
body.dark .chart-area{fill:rgba(200,200,200,.12)}
body.dark .chart-line-views{stroke:#888}
body.dark .chart-line-clicks{stroke:#ccc}
body.dark .chart-dot-views{fill:#888;stroke:#1a1a1a}
body.dark .chart-dot-clicks{fill:#ccc;stroke:#1a1a1a}
body.dark .chart-hover-line{stroke:#555}
body.dark .chart-labels{color:#666}
body.dark .chart-legend{color:#999}
body.dark .legend-swatch-views{background:#888}
body.dark .legend-swatch-clicks{background:#ccc}
body.dark .unique-visitors{color:#666}
body.dark .chart-dot-clicks-stem{stroke:#ccc}

body.dark .mode-switch{border-color:#333}
body.dark .mode-switch-opt{color:#aaa;border-right-color:#333}
body.dark .mode-switch-opt.active{background:#eee;color:#111}

body.dark .ab-table{background:#1a1a1a;border-color:#2a2a2a}
body.dark .ab-table-head th{color:#888;border-bottom-color:#2a2a2a}
body.dark .ab-table-row td{border-bottom-color:#242424}
body.dark .ab-letter{background:#262626;color:#999}
body.dark .ab-trigger{color:#eee}
body.dark .ab-details{color:#999}
body.dark .ab-best-badge{background:#262626;color:#ccc}
body.dark .ab-num{color:#aaa}
body.dark .ab-empty{color:#444}
body.dark .ab-ctr-pos{color:#eee}

body.dark .media-fields label,body.dark .site-name{color:#eee}
body.dark .key-code{background:#262626;color:#aaa}

body.dark .status-toggle{background:#333}
body.dark .status-toggle.is-on{background:#eee}
body.dark .status-toggle.is-on .status-toggle-knob{background:#111}
body.dark .status-toggle .status-toggle-knob{background:#ccc}
body.dark .status-toggle.is-off{border-color:#333}

body.dark .cx-media-modal-box{background:#1a1a1a}
body.dark .cx-media-modal-head{border-bottom-color:#2a2a2a}
body.dark .cx-media-item{border-color:#2a2a2a}
body.dark .cx-media-item:hover{border-color:#eee}
body.dark .cx-media-item-video{background:#262626;color:#999}
body.dark .cx-media-item span{color:#999}

body.dark .section-label,body.dark .section-sub{color:#888}
body.dark .trend-card-head h3{color:#eee}
body.dark .trend-legend-dates,body.dark .trend-compare{color:#999}
body.dark .chart-line-prev{stroke:#333}
body.dark .chart-area-prev{fill:rgba(255,255,255,.04)}
body.dark .chart-line-cur{stroke:#eee}
body.dark .chart-dot-cur{fill:#eee;stroke:#1a1a1a}

body.dark .post-row{border-bottom-color:#2a2a2a}
body.dark .post-thumb{background:#222}
body.dark .post-row-title{color:#eee}
body.dark .post-row-meta{color:#888}

body.dark .prio-input{background:#1a1a1a;border-color:#333;color:#eee}
body.dark .prio-input:focus{border-color:#eee}

body.dark ::-webkit-scrollbar{width:8px;height:8px}
body.dark ::-webkit-scrollbar-track{background:#1a1a1a}
body.dark ::-webkit-scrollbar-thumb{background:#000;border-radius:4px}
body.dark,body.dark *{scrollbar-color:#000 #1a1a1a;scrollbar-width:thin}

@media (max-width:768px){
  body.dark .topbar nav{background:#1a1a1a;border-bottom-color:#2a2a2a}
}
