.bk-shell {
  --bk-text:#222e42; --bk-muted:#6e7d91; --bk-line:#e4e9f1; --bk-purple:#6556d8; --bk-green:#278776;
  color:var(--bk-text); width:100%; min-width:0; font-family:inherit;
}
.bk-shell *, .bk-shell *::before,.bk-shell *::after {box-sizing:border-box}
.bk-shell button,.bk-shell select {font:inherit}
.bk-shell button {cursor:pointer}
.bk-shell button:focus-visible,.bk-shell select:focus-visible,.bk-stage:focus-visible {outline:3px solid #978bee;outline-offset:3px}
.bk-shell button {text-transform:none;letter-spacing:normal}
.bk-shell h1,.bk-shell h2,.bk-shell h3,.bk-shell p {margin:0}
.bk-page-head {display:flex;align-items:flex-end;justify-content:space-between;margin:0 0 24px}
.bk-page-head h1 {font-size:clamp(25px,2.3vw,33px);font-weight:680;line-height:1.25;letter-spacing:-.04em}
.bk-page-head p {margin-top:8px;color:var(--bk-muted);font-size:14px;line-height:1.65}
.bk-layout {display:grid;grid-template-columns:minmax(0,2.3fr) minmax(238px,1fr);gap:18px;align-items:start}
.bk-card {min-width:0;background:#fff;border:1px solid var(--bk-line);border-radius:16px;box-shadow:0 3px 12px #33475e05;overflow:hidden}
.bk-card-head {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:21px 22px}
.bk-inline {display:flex;align-items:center;gap:12px;min-width:0}
.bk-heading-icon {display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:12px;background:#eeebfc;color:var(--bk-purple)}
.bk-card-head h2 {font-size:17px;color:var(--bk-text);font-weight:670;line-height:1.5}
.bk-card-head p {font-size:12px;color:var(--bk-muted);margin-top:2px}
.bk-floor,.bk-floor-static {display:inline-flex;align-items:center;gap:5px;color:#64758b;font-size:12px;flex:none}
.bk-floor {background:#fff;border:1px solid var(--bk-line);border-radius:7px;position:relative;padding:0 8px;height:32px}
.bk-floor select {cursor:pointer;appearance:none;border:0;background:transparent;outline:none;padding:4px 20px 4px 26px;color:#465571;font-size:12px;margin:0 -8px;position:relative;z-index:1}
.bk-floor>span,.bk-floor>svg {position:absolute;pointer-events:none;display:flex}
.bk-floor>span {left:6px}.bk-floor>svg {right:5px}
.bk-stage {height:clamp(360px,39vw,540px);position:relative;isolation:isolate;overflow:hidden;touch-action:none;cursor:grab;
  background-color:#f1f5f8;background-image:radial-gradient(ellipse at 50% 52%,#f6f8f8 6%,#f1f5f8cc 44%,transparent 78%),radial-gradient(#b6c5d461 .75px,transparent .9px);
  background-size:auto,14px 14px;border-block:1px solid #e8edf2}
.bk-stage.bk-dragging {cursor:grabbing}
.bk-surface,.bk-markers,.bk-surface canvas {position:absolute;inset:0;width:100%;height:100%;display:block}
.bk-shell [hidden] {display:none!important}
.bk-markers {pointer-events:none}
.bk-stage-top,.bk-stage-bottom {position:absolute;left:15px;right:15px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none;z-index:2}
.bk-stage-top {top:14px}.bk-stage-bottom {bottom:13px}
.bk-view-name,.bk-hint {display:flex;align-items:center;gap:6px;color:#616e83;font-size:11px;font-weight:550;line-height:1.5}
.bk-view-name {border:1px solid #dce4eb;background:#ffffffd6;padding:5px 8px;border-radius:6px}
.bk-hint {color:#76869a;font-weight:450}
.bk-tools {display:inline-flex;align-items:center;background:#fffffff0;border:1px solid #dce3eb;border-radius:8px;box-shadow:0 2px 6px #3c52620a;overflow:hidden}
.bk-shell .bk-tool {display:grid;place-items:center;width:31px;height:30px;background:transparent;border:0;color:#596a80;border-radius:0;pointer-events:auto;padding:0}
.bk-shell .bk-tool:hover {color:var(--bk-purple);background:#f1effd}
.bk-shell .bk-tool+.bk-tool {border-left:1px solid #e6eaf0}
.bk-shell .bk-toggle {background:#fff;border:1px solid #dce3eb;border-radius:7px}
.bk-shell .bk-toggle[aria-pressed=true] {color:var(--bk-purple)}
.bk-shell .bk-pin {position:absolute;pointer-events:auto;display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;transform:translate(-50%,-100%);
  background:#fffffff2;color:#455b58;font-size:10px;line-height:1;font-weight:610;padding:6px 8px;border:1px solid #fff;border-radius:14px;box-shadow:0 2px 7px #32444927}
.bk-pin::after {content:"";display:block;position:absolute;top:100%;left:50%;height:9px;width:1px;background:#668780bb}
.bk-pin-dot,.bk-online i,.bk-device-status i,.bk-room-chip i {display:inline-block;height:6px;width:6px;flex:none;border-radius:100%;background:#45aa92}
.bk-shell .bk-pin[aria-pressed=true] {background:#6558c9;border-color:#776ad9;color:white;z-index:1}
.bk-pin[aria-pressed=true] .bk-pin-dot {background:#d5ccff}
.bk-pin[aria-pressed=true]::after {background:var(--bk-purple)}
.bk-room-bar {padding:17px 21px 20px}
.bk-room-bar-title {font-size:12px;color:#69788c;font-weight:580;margin-bottom:10px}
.bk-room-list {display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.bk-shell .bk-room-chip {display:inline-flex;align-items:center;gap:7px;line-height:1.4;padding:6px 10px;border:1px solid #e1e7ef;border-radius:7px;background:#fff;font-size:12px;color:#546174}
.bk-shell .bk-room-chip:hover,.bk-shell .bk-room-chip[aria-pressed=true] {border-color:#d8d1fa;color:#6452bd;background:#f2efff}
.bk-room-chip[aria-pressed=true] i {background:#8470da}
.bk-detail {padding:19px 19px 18px}
.bk-detail-head,.bk-detail-head>span,.bk-online,.bk-location,.bk-readings span,.bk-device-status,.bk-person,.bk-empty,.bk-focus {display:flex;align-items:center}
.bk-detail-head {justify-content:space-between;gap:6px;margin-bottom:21px}
.bk-detail-head>span:first-child {gap:6px;font-size:13px;color:#667489;font-weight:560}
.bk-online {gap:5px;padding:4px 7px;color:var(--bk-green);background:#ecf7f2;border-radius:20px;font-size:10px;font-weight:570;line-height:1.5}
.bk-detail h2 {font-size:25px;font-weight:670;line-height:1.25;letter-spacing:-.035em}
.bk-location {gap:7px;margin-top:7px!important;font-size:12px;color:var(--bk-muted)}
.bk-location b {color:#bdc7d2;font-weight:400}
.bk-readings {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:19px 0 0}
.bk-readings>div {padding:10px 11px 9px;background:#f4f7fa;border-radius:9px}
.bk-readings span {gap:4px;color:#697b90;font-size:11px;white-space:nowrap}
.bk-readings strong {display:block;font-size:22px;color:#26364a;line-height:1.35;font-weight:600;margin-top:5px;font-variant-numeric:tabular-nums}
.bk-readings small {font-weight:500;font-size:12px;color:#718195;margin-left:3px}
.bk-detail-section {margin-top:20px;padding-top:16px;border-top:1px solid var(--bk-line)}
.bk-detail-section h3 {display:flex;align-items:center;gap:7px;font-size:13px;font-weight:640;margin-bottom:9px}
.bk-detail-section h3 span {font-size:10px;line-height:16px;min-width:16px;text-align:center;font-weight:580;color:#657389;background:#eef2f7;border-radius:5px}
.bk-item,.bk-shell .bk-person {display:flex;align-items:center;gap:8px;min-height:37px;font-size:12px;color:#45536a}
.bk-item-icon,.bk-avatar {display:grid;place-items:center;width:26px;height:26px;border-radius:7px;color:#687b91;background:#f0f3f7;flex:none}
.bk-device-status {gap:4px;font-size:10px;margin-left:auto;color:var(--bk-green);white-space:nowrap}
.bk-device-status i {width:5px;height:5px}
.bk-shell .bk-person {appearance:none;border:0;background:transparent;text-align:left;width:100%;padding:3px 0}
.bk-person>svg {margin-left:auto;color:#8d98a9}
.bk-shell .bk-person:hover {color:var(--bk-purple)}
.bk-resident-actions {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
.bk-shell .bk-register {padding:6px 9px;border:1px solid #cde4dc;border-radius:7px;background:#f1f8f5;color:#256757;font-size:12px;font-weight:600;line-height:1.35}
.bk-shell .bk-register:hover {background:#e3f2eb}
.bk-avatar {background:#eeeafa;color:#7563bb;border-radius:50%;font-size:11px;object-fit:cover}
.bk-empty {gap:7px;color:#8391a4;font-size:12px;min-height:32px}
.bk-shell .bk-focus {width:100%;justify-content:center;gap:7px;padding:9px 5px;margin-top:17px;font-weight:570;color:#6755c7;background:#f1eefe;border:1px solid #e7e1fb;border-radius:8px;font-size:12px;line-height:1.4}
.bk-shell .bk-focus:hover {background:#e8e3fc}
@container (max-width:720px) {
  .bk-layout {grid-template-columns:1fr}
}
.bk-shell {container-type:inline-size}
@media(max-width:1000px) {
  .bk-layout {grid-template-columns:minmax(0,1.7fr) minmax(220px,1fr);gap:12px}
  .bk-detail {padding:16px}
}
@container (max-width:720px) {
  .bk-layout {grid-template-columns:1fr}
  .bk-stage {height:clamp(310px,66cqw,430px)}
  .bk-detail {display:grid;grid-template-columns:1fr 1fr;column-gap:20px}
  .bk-detail-head,.bk-detail h2,.bk-location,.bk-readings,.bk-focus {grid-column:1/-1}
  .bk-detail-head {margin-bottom:12px}
}
@container (max-width:420px) {
  .bk-stage {height:301px}
  .bk-card-head {padding:15px}
  .bk-room-bar {padding:13px 15px 15px}
  .bk-room-list {gap:5px}
  .bk-shell .bk-room-chip {font-size:11px}
  .bk-shell .bk-pin {font-size:9px;padding:4px 6px}
  .bk-detail {display:block}
  .bk-page-head {margin-bottom:16px}
  .bk-page-head p {font-size:12px}
}

.bk-view-bar {display:flex;gap:3px;width:fit-content;margin:0 22px 13px;padding:3px;background:#eff3f7;border:1px solid #e1e7ef;border-radius:9px}
.bk-view-bar button {display:inline-flex;align-items:center;gap:6px;border:1px solid transparent;border-radius:6px;background:transparent;padding:6px 9px;color:#64748b;font-size:12px;line-height:1.25}
.bk-view-bar button[aria-pressed=true] {color:#145c89;border-color:#d2dfea;background:#fff;box-shadow:0 1px 3px #192e4114}
.bk-view-bar button:hover {color:#173d64}
.bk-stage[data-view=blueprint] {
  background-color:#09192a;
  background-image:radial-gradient(ellipse at 50% 51%,#163b59 0%,#102a43 40%,#0c2135 67%,#09192a 100%);
  border-color:#162f48;
}
.bk-stage[data-view=blueprint] canvas {filter:drop-shadow(0 0 2px #4abfff45)}
.bk-stage[data-view=blueprint] .bk-view-name,.bk-stage[data-view=blueprint] .bk-toggle,.bk-stage[data-view=blueprint] .bk-tools {
  color:#b4d6eb;background:#102c42ec;border-color:#355870;box-shadow:none;
}
.bk-stage[data-view=blueprint] .bk-hint {color:#9ab9cc}
.bk-stage[data-view=blueprint] .bk-tool {color:#b4d6eb}
.bk-stage[data-view=blueprint] .bk-tool+.bk-tool {border-left-color:#355870}
.bk-stage[data-view=blueprint] .bk-tool:hover {background:#214863;color:white}
.bk-stage[data-view=blueprint] .bk-pin {color:#d8f3ff;background:#102c42ed;border-color:#5083a4;box-shadow:0 2px 5px #04121f55}
.bk-stage[data-view=blueprint] .bk-pin-dot {background:#74e3fb;box-shadow:0 0 5px 1px #4fcbf29c}
.bk-stage[data-view=blueprint] .bk-pin::after {background:#7bd8ff;height:11px}
.bk-stage[data-view=blueprint] .bk-pin::before {content:"";position:absolute;left:50%;top:calc(100% + 9px);width:5px;height:5px;border-radius:50%;background:#b5f3ff;transform:translateX(-40%);box-shadow:0 0 6px 2px #55d4ff9c}
.bk-stage[data-view=blueprint] .bk-pin[aria-pressed=true] {background:#c3f3ff;border-color:#c3f3ff;color:#103855}
.bk-stage[data-view=blueprint] .bk-pin[aria-pressed=true] .bk-pin-dot {background:#1584ac;box-shadow:none}
@container (max-width:420px) {
  .bk-view-bar {margin:0 15px 12px}
}
.bk-shell .bk-attention{color:#9a6a2b;background:#fff4e4}.bk-shell .bk-attention i{background:#d7994c}.bk-room-alert{padding:8px 10px;border-radius:7px;background:#fff7e9}.bk-room-alert strong,.bk-room-alert small{display:block}.bk-room-alert strong{font-size:13px;color:#8b692e;font-weight:550}.bk-room-alert small{font-size:12px;color:#887958;margin-top:3px}
