:root{--bnh-bg:#f4f5f7;--bnh-panel:#fff;--bnh-line:#e4e7ec;--bnh-muted:#667085;--bnh-ink:#19212b;--bnh-accent:#f5d453;--bnh-soft:#eef0f3;--tblr-primary:#776012;--tblr-primary-rgb:119,96,18}
[data-bs-theme=dark]{--bnh-bg:#101318;--bnh-panel:#191e25;--bnh-line:#2a313b;--bnh-muted:#939daa;--bnh-ink:#eef1f5;--bnh-soft:#222932;--tblr-body-bg:#101318;--tblr-body-color:#eef1f5;--tblr-bg-surface:#191e25;--tblr-border-color:#2a313b}
*{box-sizing:border-box}body{margin:0;background:var(--bnh-bg);color:var(--bnh-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;font-size:14px}a{color:inherit;text-decoration:none}button,input{font:inherit}button{min-height:38px}.btn-primary{background:var(--bnh-accent);color:#24240d;border:1px solid var(--bnh-accent);font-weight:650}.btn-primary:hover,.btn-primary:focus{background:#ffe37c;color:#24240d;border-color:#ffe37c}.btn:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #d6b336;outline-offset:3px}.btn-icon{width:38px;background:var(--bnh-soft);border:0;border-radius:10px;font-size:22px}.brand{display:flex;align-items:center;gap:12px;letter-spacing:1.4px;font-size:20px;font-weight:750}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--bnh-accent);color:#24240d;font-size:18px;letter-spacing:-1px;box-shadow:inset 0 0 0 1px #fff4}.brand-sub{display:block;margin-top:4px;color:var(--bnh-muted);font-size:8px;letter-spacing:2.2px;font-weight:600}.section-kicker,.eyebrow{font-size:11px;color:var(--bnh-muted);font-weight:650;letter-spacing:2px}.login-shell{display:grid;grid-template-columns:1.05fr 1fr;min-height:100dvh}.login-intro{position:relative;padding:48px 60px;display:flex;flex-direction:column;background:linear-gradient(150deg,#1d2329,#11171c);color:#fff;overflow:hidden}.login-intro:after{content:"";position:absolute;width:480px;height:480px;border:1px solid #f5d45317;border-radius:50%;right:-260px;bottom:-180px;box-shadow:0 0 0 60px #f5d45306,0 0 0 120px #f5d45304;pointer-events:none}.intro-copy{margin:auto 0}.intro-copy .eyebrow{color:#d4bd61}.intro-copy h1{margin:24px 0;font-size:clamp(34px,3.5vw,56px);line-height:1.45;font-weight:600;letter-spacing:-1px}.intro-copy p{color:#9ea8b4;line-height:1.9;font-size:15px}.intro-line{height:3px;width:48px;background:var(--bnh-accent);margin-top:40px}.intro-footer{color:#717d8a;font-size:12px;padding-top:24px}.login-main{display:grid;place-items:center;padding:48px}.login-card{width:100%;max-width:370px}.login-card h2{font-size:30px;margin-top:14px;margin-bottom:10px}.login-card>p{margin-bottom:34px}.form-control{min-height:46px;border-radius:10px;background:var(--bnh-panel);border-color:var(--bnh-line);color:var(--bnh-ink)}.form-label{font-size:13px;font-weight:550;margin-bottom:8px}.form-error{color:#e66d7b;min-height:22px;margin:16px 0 10px;font-size:13px}.login-card .btn-primary{height:46px;border-radius:10px;display:flex;justify-content:space-between;padding:0 16px}.login-note{text-align:center;font-size:12px;color:var(--bnh-muted);margin-top:22px}.dashboard{display:flex;min-height:100dvh}.sidebar{width:238px;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--bnh-line);background:var(--bnh-panel);padding:30px 22px;display:flex;flex-direction:column;z-index:2}.sidebar .brand{font-size:18px}.nav-label{color:var(--bnh-muted);font-size:11px;margin:48px 12px 14px;letter-spacing:1px}.nav-item{padding:12px 14px;border-radius:10px;display:flex;gap:12px;color:var(--bnh-muted);margin-bottom:8px}.nav-item span{font-size:18px}.nav-item:hover{color:var(--bnh-ink);background:var(--bnh-soft)}.nav-item.active{color:var(--bnh-ink);background:var(--bnh-soft);font-weight:600}.nav-item.active:before{content:"";height:16px;width:3px;background:var(--bnh-accent);border-radius:3px;margin-left:-14px}.sidebar-bottom{margin-top:auto;padding:20px 10px 0;border-top:1px solid var(--bnh-line);color:var(--bnh-muted);font-size:11px}.sidebar-bottom>div{margin-top:10px;font-size:10px}.live-dot{display:inline-block;height:6px;width:6px;border-radius:50%;background:#7ecba8;margin-right:7px;vertical-align:middle;box-shadow:0 0 0 3px #7ecba80d}.workspace{min-width:0;margin-left:238px;width:calc(100% - 238px)}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--bnh-line);padding:0 36px;background:var(--bnh-panel)}.breadcrumb-label{font-size:12px;color:var(--bnh-muted)}.breadcrumb-label span{margin:0 12px;color:var(--bnh-line)}.breadcrumb-label strong{color:var(--bnh-ink);font-weight:500}.topbar-actions{display:flex;align-items:center;gap:16px}.admin-name{font-size:12px}.main-content{max-width:1680px;margin:auto;padding:38px 36px 20px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-heading h1{font-size:28px;font-weight:650;margin:8px 0 10px;letter-spacing:-.5px}.page-heading p{color:var(--bnh-muted);margin:0;font-size:13px}.update-block{display:flex;align-items:center;gap:6px;color:var(--bnh-muted);font-size:11px;white-space:nowrap}.update-block .btn{margin-left:12px;border-color:var(--bnh-line);font-size:12px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.metric-card{background:var(--bnh-panel);border:1px solid var(--bnh-line);border-radius:14px;padding:22px 24px}.metric-card.featured{border-color:#e6cb6044;background:linear-gradient(120deg,var(--bnh-panel),#e9c44a0a)}.metric-title{display:flex;align-items:center;justify-content:space-between;color:var(--bnh-muted);font-size:12px}.metric-icon{height:30px;width:30px;display:grid;place-items:center;border-radius:9px;background:var(--bnh-soft);font-size:19px;color:var(--bnh-muted)}.featured .metric-icon{color:#ceb954;background:#e9c44a11}.metric-number{font-size:36px;font-weight:600;line-height:1.3;margin-top:12px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.featured .metric-number{color:#d7ba53}[data-bs-theme=light] .featured .metric-number{color:#8a6d0e}.metric-note{font-size:10px;color:var(--bnh-muted);margin-top:12px;white-space:nowrap}.charts{display:grid;grid-template-columns:1.85fr 1fr;gap:24px;margin-bottom:24px}.panel{background:var(--bnh-panel);border:1px solid var(--bnh-line);border-radius:14px;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:23px 24px 12px}.panel-heading h2{font-size:15px;margin:0;font-weight:600}.panel-heading p{color:var(--bnh-muted);font-size:11px;margin:7px 0 0}.tag{font-size:10px;color:var(--bnh-muted);border:1px solid var(--bnh-line);border-radius:6px;padding:4px 7px}.chart{height:290px;width:100%}.chart-footnote{padding:0 24px 18px;font-size:10px;color:var(--bnh-muted)}.version-panel{position:relative}.version-empty{position:absolute;inset:55% 0 auto;text-align:center;color:var(--bnh-muted);font-size:12px}.table{margin-bottom:0;color:var(--bnh-ink)}.table thead th{background:var(--bnh-soft);color:var(--bnh-muted);font-size:10px;font-weight:550;border-bottom:1px solid var(--bnh-line);padding:13px 24px;white-space:nowrap}.table td{border-bottom:1px solid var(--bnh-line);padding:15px 24px;font-size:12px;white-space:nowrap}.table tbody tr:last-child td{border-bottom:0}.device-sub{color:var(--bnh-muted);font-size:10px;margin-top:3px}.device-id{font-variant-numeric:tabular-nums;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.status-badge{font-size:10px;color:var(--bnh-muted);background:var(--bnh-soft);border-radius:6px;padding:4px 7px}.status-badge.granted{color:#7ecba8;background:#7ecba811}.empty-row{text-align:center;color:var(--bnh-muted);height:100px}.detail-button{background:transparent;border:0;color:var(--bnh-ink);font-size:11px;text-decoration:underline;text-underline-offset:3px}.table-footer{border-top:1px solid var(--bnh-line);padding:15px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--bnh-muted);font-size:10px}.table-footer>div{display:flex;align-items:center;gap:12px}.table-footer .btn{font-size:10px;min-height:30px;border:1px solid var(--bnh-line)}.page-footer{display:flex;justify-content:space-between;margin-top:28px;color:var(--bnh-muted);font-size:10px}dialog{background:var(--bnh-panel);color:var(--bnh-ink);border:1px solid var(--bnh-line);border-radius:16px;width:560px;max-width:calc(100% - 32px);padding:24px}dialog::backdrop{background:#0008;backdrop-filter:blur(3px)}.detail-header{display:flex;justify-content:space-between;align-items:center}.detail-header h2{font-size:20px;margin:0}dialog dl{margin:24px 0 0}dialog dt{color:var(--bnh-muted);font-size:11px;margin-top:16px}dialog dd{margin:6px 0;font-size:13px;overflow-wrap:anywhere;white-space:pre-wrap}[hidden]{display:none!important}
@media(min-width:1600px){.main-content{padding:44px 48px 24px}.chart{height:320px}.metric-number{font-size:40px}}
@media(max-width:1199px){.sidebar{width:200px;padding:28px 16px}.workspace{margin-left:200px;width:calc(100% - 200px)}.metrics{gap:12px}.metric-card{padding:18px 16px}.metric-note{white-space:normal;line-height:1.7}.main-content{padding:30px 24px}.topbar{padding:0 24px}.charts{gap:18px;grid-template-columns:1.5fr 1fr}.page-heading{align-items:flex-start}.update-block{flex-wrap:wrap;justify-content:flex-end;max-width:170px}.update-block .btn{margin-top:8px}.table th,.table td{padding-left:18px;padding-right:18px}}
@media(max-width:900px){.sidebar{width:80px;padding:24px 14px}.sidebar .brand>span:last-child,.nav-label,.nav-item:not(.active),.sidebar-bottom{display:none}.sidebar .brand{justify-content:center}.nav-item.active{font-size:0;margin-top:40px;justify-content:center;padding:14px 8px}.nav-item.active span{font-size:22px}.nav-item.active:before{display:none}.workspace{margin-left:80px;width:calc(100% - 80px)}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.charts{grid-template-columns:1fr}.version-panel .chart{height:250px}.login-intro{padding:36px}.login-main{padding:36px}.intro-copy h1{font-size:36px}}
@media(max-width:600px){.sidebar{display:none}.workspace{margin-left:0;width:100%}.topbar{height:66px;padding:0 18px}.topbar-actions{gap:10px}.admin-name{display:none}.breadcrumb-label{font-size:11px}.main-content{padding:25px 16px 18px}.page-heading{display:block;margin-bottom:22px}.page-heading h1{font-size:25px}.page-heading p{font-size:12px}.update-block{max-width:none;justify-content:flex-start;margin-top:18px}.update-block .btn{margin-top:0;margin-left:auto}.metric-card{padding:16px}.metric-number{font-size:32px}.metric-note{font-size:9px}.metric-title{font-size:11px}.metrics{gap:12px;margin-bottom:18px}.metric-icon{width:26px;height:26px}.panel-heading{padding:20px 18px 8px}.charts{gap:18px;margin-bottom:18px}.chart-footnote{padding-left:18px;padding-right:18px;line-height:1.7}.chart{height:260px}.table-footer{align-items:flex-start;flex-direction:column;padding:14px 18px;line-height:1.6}.table-footer>div{align-self:flex-end}.page-footer{font-size:9px;gap:12px;line-height:1.7}.login-shell{grid-template-columns:1fr}.login-intro{padding:28px;min-height:250px}.intro-copy{margin:24px 0 0}.intro-copy h1{font-size:30px;line-height:1.3;margin:12px 0}.intro-copy h1 br{display:none}.intro-copy p,.intro-footer,.intro-line{display:none}.login-main{padding:36px 28px;place-items:start center}.login-card h2{font-size:25px}.login-card>p{margin-bottom:24px}.login-note{margin-bottom:0}}

.config-panel{margin-bottom:24px}.config-form{padding:10px 24px 24px}.config-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.config-subheading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:26px 0 14px}.config-subheading h3{font-size:13px;margin:0 0 4px;font-weight:600}.config-subheading span,.config-hint{font-size:11px;color:var(--bnh-muted)}.config-subheading .btn{font-size:11px;border-color:var(--bnh-line)}.blocked-row{display:grid;grid-template-columns:140px 1fr 60px;gap:12px;margin-top:12px;align-items:center}.blocked-row .form-control{font-size:12px;min-height:40px}.blocked-row .btn{font-size:11px;min-height:40px;border-color:var(--bnh-line)}.config-submit-row{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--bnh-line);margin-top:24px;padding-top:20px}.config-submit-row>span{font-size:12px;color:var(--bnh-muted)}.config-submit-row .btn{min-width:110px}.config-form textarea{resize:vertical;font-size:13px;line-height:1.7}.config-form input{font-size:13px}.config-form .form-label{font-size:12px}@media(max-width:600px){.config-form{padding:10px 18px 20px}.config-grid{gap:12px}.blocked-row{grid-template-columns:90px 1fr 48px;gap:8px}.config-subheading{align-items:flex-start}.config-subheading>span{max-width:135px;text-align:right;line-height:1.6}.config-submit-row{align-items:flex-start}.config-submit-row>span{line-height:1.6}}
