body.bz { min-height: 100vh; margin: 0; background: #1e2225; color: #1f2d2a; }
.bz-doors > h1, .bz-admin > h1 { color: #f2f4f5; }
.bz-admin > p > a { color: #cfe6e3; }
.bz-doors .bz-note { color: #c9d0d5; }
.bz .i { width: 22px; height: 22px; }
.bz .i.sm { width: 16px; height: 16px; }
.bz .i.xs { width: 12px; height: 12px; }
.bz h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; line-height: 1.1; }
.bz h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 28px; }
.bz-sub { margin: 4px 0 16px; color: #5c6670; font-size: 16px; }
.bz-note { color: #5c6670; }

.bz-main { box-sizing: border-box; width: 100%; padding: 12px; }

.bz-acct { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; margin-bottom: 10px; color: #5c6670; font-size: 14px; }
.bz-acct > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-acct b { color: #1f2d2a; }
.bz-signout { flex: none; padding: 5px 12px; border-radius: 999px; background: #eef1f0; color: #1f2d2a; font-weight: 600; text-decoration: none; }
.bz-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding-top: 10px; color: #a9b1b7; font-size: 12px; }
.bz-foot a { color: #a9b1b7; }
.bz-alone .bz-foot, .bz-alone .bz-foot a { color: #8a939a; }
.bz-feedcol { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.bz-feedcol > .bz-feed { flex: 1; }
.bz-feedcol > .bz-foot { flex: none; padding: 8px 0 0; }
.bz-who { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }

.bz-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 32%); gap: 12px; align-items: start; }

.bz-doors { display: flex; flex-direction: column; padding: 4px 2px 0; }
.bz-doors h1 { margin-bottom: 12px; }
.bz-cards { display: flex; flex-direction: column; gap: 24px; }
.bz-singles, .bz-ggrid { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); grid-auto-rows: var(--row, 120px); gap: 12px; }
.bz-singles { grid-auto-rows: var(--srow, 72px); gap: 10px; }
.bz-groupbox { --t: #11756f; --tb: #e6f4f3; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 24px; background: color-mix(in srgb, var(--t) 8%, #fff); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--t) 40%, transparent); }
.bz-hit { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bz-hit:disabled { cursor: wait; opacity: 0.7; }
.bz-ghead { display: flex; align-items: center; gap: 10px; padding: 2px 2px 0 4px; }
.bz-ghead .bz-name { flex: 1; }
.bz-ghead .bz-name b { font-size: 20px; -webkit-line-clamp: 1; }
.bz-ghead .bz-said { font-size: 14px; }
.bz-ghead .bz-icon.xs { width: 34px; height: 34px; border-radius: 10px; }
.bz-split { display: inline-flex; flex: none; align-items: stretch; }
.bz-go { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border: 0; border-radius: 999px; background: var(--t); color: #fff; font: inherit; font-size: 17px; font-weight: 600; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 0 color-mix(in srgb, var(--t) 60%, #000); }
.bz-go:active { transform: translateY(1px); }
.bz-go:disabled, .bz-more:disabled { opacity: 0.6; cursor: wait; }
.bz-split .bz-go:not(:last-child) { border-radius: 999px 0 0 999px; }
.bz-more { display: inline-flex; align-items: center; padding: 0 12px 0 10px; border: 0; border-left: 1px solid rgba(255, 255, 255, 0.4); border-radius: 0 999px 999px 0; background: var(--t); color: #fff; cursor: pointer; box-shadow: 0 2px 0 color-mix(in srgb, var(--t) 60%, #000); }
.bz-corner { position: absolute; top: 6px; right: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 1px; padding: 6px 7px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--t) 16%, #fff); color: var(--t); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 35%, transparent); cursor: pointer; }
.bz-corner .i.xs { width: 12px; height: 12px; }
.bz-corner:disabled { opacity: 0.6; }
.bz-door.unlocked::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: rgba(118, 126, 132, 0.22); pointer-events: none; }
.bz-lockover { position: absolute; top: 6px; left: 6px; z-index: 2; display: none; align-items: center; justify-content: center; gap: 4px; min-width: 30px; height: 30px; box-sizing: border-box; padding: 0 6px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; background: rgba(255, 255, 255, 0.75); color: rgba(70, 76, 82, 0.7); box-shadow: inset 0 0 0 1px rgba(70, 76, 82, 0.2); pointer-events: none; }
.bz-door.lockable .bz-lockover { pointer-events: auto; cursor: pointer; }
.bz-door.lockable .bz-lockover:hover { background: #fff; color: rgba(40, 46, 52, 0.9); }
.bz-lockover .i { flex: none; width: 18px; height: 18px; }
.bz-lockset:empty { display: none; }
.bz-lockset { padding-right: 2px; }
.bz-mi .i, .bz-mhead .i { width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px; color: #11756f; }
.bz-mi.on { background: #e6f4f3; }
.bz-door.unlocked .bz-lockover, .bz-door.buzzing .bz-lockover { display: flex; }
.bz-menu { position: fixed; z-index: 1000; display: flex; flex-direction: column; min-width: 230px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 0 0 1px #e2e6e4; }
.bz-mi { padding: 12px 14px; border: 0; border-radius: 10px; background: none; color: #1f2d2a; font: inherit; font-size: 17px; font-weight: 600; text-align: left; cursor: pointer; }
.bz-mi:hover, .bz-mi:focus-visible { background: #eef1f0; }
.bz-mhead { padding: 8px 14px 2px; color: #5c6670; font-size: 13px; }
.bz-mhead.ruled { border-top: 1px solid #eceeed; }
.bz-lengths { max-width: 520px; margin-bottom: 12px; }
.bz-lengths small { color: #6b747c; font-weight: 400; }
.bz-custom { display: flex; gap: 6px; padding: 4px 8px 6px; }
.bz-custom input { width: 110px; padding: 10px 12px; border: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px #d5dbd8; font: inherit; font-size: 16px; }

.bz-door { --t: #6b747c; --tb: #f2f4f6; position: relative; container-type: size; min-width: 0; min-height: 0; overflow: hidden; border-radius: 18px; background: var(--tb); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--t) 35%, transparent), 0 3px 0 color-mix(in srgb, var(--t) 30%, transparent); transition: transform 0.06s, box-shadow 0.06s; }
.bz-door:has(.bz-hit:active) { transform: translateY(2px); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--t) 35%, transparent), 0 1px 0 color-mix(in srgb, var(--t) 30%, transparent); }
.bz-card-in { display: flex; align-items: center; gap: min(14px, 5cqw); box-sizing: border-box; height: 100cqh; padding: 0 min(16px, 6cqw); }
.bz-door.timed .bz-card-in { padding-right: 42px; }
.bz-door .bz-corner { top: 50%; right: 8px; padding: 6px; transform: translateY(-50%); }
.bz-door .bz-corner .i.xs { display: none; }
.bz-card-in .bz-icon { width: min(64px, 58cqh, 24cqw); height: min(64px, 58cqh, 24cqw); }
.bz-card-in .bz-name b { font-size: clamp(13px, min(18cqh, 8cqw), 22px); }
@container (min-height: 90px) {
  .bz-card-in .bz-name b { -webkit-line-clamp: 3; }
}
@container (min-height: 130px) {
  .bz-card-in { flex-direction: column; justify-content: center; gap: min(6cqh, 14px); padding: 14px 10px; text-align: center; }
  .bz-door.timed .bz-card-in { padding: 34px 10px 14px; }
  .bz-door .bz-corner { top: 6px; right: 6px; padding: 6px 7px; transform: none; }
  .bz-door .bz-corner .i.xs { display: inline; }
  .bz-card-in .bz-icon { width: min(120px, 42cqh, 46cqw); height: min(120px, 42cqh, 46cqw); }
  .bz-card-in .bz-name { align-items: center; max-width: 100%; }
  .bz-card-in .bz-name b { font-size: clamp(14px, min(11cqh, 10cqw), 36px); }
  .bz-card-in .bz-name small { font-size: clamp(11px, min(5cqh, 6cqw), 17px); }
}
@container (min-height: 130px) and (max-width: 199px) {
  .bz-card-in .bz-name small { display: none; }
}
@container (max-height: 70px) {
  .bz-card-in { gap: 8px; padding: 0 10px; }
  .bz-card-in .bz-name b { font-size: clamp(12px, min(25cqh, 9cqw), 16px); line-height: 1.1; }
  .bz-card-in .bz-name small { display: none; }
}
@container (max-height: 40px) {
  .bz-card-in .bz-name b { -webkit-line-clamp: 1; }
}
@container (max-width: 160px) and (max-height: 129px) {
  .bz-card-in .bz-icon { display: none; }
}
.bz-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; overflow: hidden; border-radius: 26%; background: var(--t); color: #fff; }
.bz-icon .i { width: 55%; height: 55%; }
.bz-icon img { width: 72%; height: 72%; object-fit: contain; }
.bz-icon.sm { width: 34px; height: 34px; border-radius: 9px; }
.bz-icon.xs { width: 24px; height: 24px; border-radius: 7px; }
.bz-name { display: flex; flex-direction: column; min-width: 0; }
.bz-name b { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: clamp(13px, min(20cqh, 10.5cqw), 22px); line-height: 1.15; overflow-wrap: break-word; }
.bz-name small { overflow: hidden; color: #5c6670; font-size: clamp(11px, 11cqh, 14px); text-overflow: ellipsis; white-space: nowrap; }
.bz-said { overflow: hidden; max-width: 100%; font-size: clamp(11px, 11cqh, 15px); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.bz-said:empty { display: none; }
.bz-said.ok { color: #1f7a3a; }
.bz-said.bad { color: #b42318; }
.bz-name:has(.bz-said:not(:empty)) small { display: none; }

.bz-feed { min-width: 0; padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px #e2e6e4; }
.bz-feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bz-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #e3f5e8; color: #1f7a3a; font-weight: 600; white-space: nowrap; }
.bz-pill i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.bz-pill.down { background: #fdecea; color: #b42318; }
.bz-empty { padding: 24px 16px; color: #6b747c; }
.bz-list { margin: 0; padding: 0; list-style: none; }
.bz-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 11px 16px 11px 8px; border-bottom: 1px solid #eceeed; }
.bz-sym { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; }
.bz-sym.granted { background: #e3f5e8; color: #1f7a3a; }
.bz-sym.denied { background: #fdecea; color: #c62828; }
.bz-person { display: flex; flex-direction: column; min-width: 0; }
.bz-person b { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 19px; }
.bz-person small { color: #5c6670; font-size: 15px; }
.bz-bday { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: #eeeafb; color: #5a3fb0; font-size: 14px; font-weight: 600; }
.bz-bday.near { background: #fdf0de; color: #a35a00; }
.bz-where { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.bz-where b { font-size: 18px; }
.bz-where time { color: #5c6670; font-size: 15px; cursor: pointer; }

body.bz-locked { height: 100vh; height: 100dvh; overflow: hidden; }
.bz-locked .bz-main { display: flex; flex-direction: column; height: 100%; }
.bz-locked .bz-grid { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
.bz-locked .bz-doors, .bz-locked .bz-feed { display: flex; flex-direction: column; min-height: 0; box-sizing: border-box; }
.bz-locked .bz-doors h1 { font-size: clamp(24px, 4dvh, 36px); }
.bz-locked .bz-cards { flex: 1; min-height: 0; overflow: hidden; }
.bz-locked .bz-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

.bz-alone { box-sizing: border-box; max-width: 560px; margin: 60px auto; padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px #e2e6e4; text-align: center; }
.bz-alone h1 { margin-top: 12px; }
.bz-alone p { color: #5c6670; font-size: 17px; }

.bz-admin { max-width: 1140px; margin: 0 auto; padding: 8px; }
.bz-admin > h1 { margin-bottom: 4px; }
.bz-tabs { margin: 0 0 18px; border-bottom: 1px solid #3a4146; }
.bz-tabs a { color: #aab3b9; text-decoration: none; }
.bz-tabs a:hover, .bz-tabs a.on { color: #f2f4f5; }
.bz-tabs a.on { border-color: #4fb8ae; }
.bz-gname select { padding: 10px 12px; border: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px #d5dbd8; background: #fff; font: inherit; }
.bz-gname small { color: #6b747c; font-weight: 400; }
.bz-gname > span .bz-bday, .bz-events .bz-bday { margin-right: 4px; }
.bz-card { margin-bottom: 20px; padding: 22px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px #e2e6e4; }
.bz-msg { padding: 10px 14px; border-radius: 10px; background: #e6f4f3; color: #11564f; }
.bz-warn { padding: 10px 14px; border-radius: 10px; background: #fdf3e1; color: #8a5a00; }
.bz-scroll { overflow-x: auto; }
.bz-table { width: 100%; border-collapse: collapse; }
.bz-table th { padding: 8px; color: #5c6670; font-size: 14px; text-align: left; white-space: nowrap; }
.bz-table td { padding: 8px; border-top: 1px solid #eceeed; }
.bz-table .bz-tick { width: 80px; text-align: center; }
.bz-adoor { display: flex; align-items: center; gap: 10px; }
.bz-adoor > span:last-child { display: flex; flex-direction: column; }
.bz-adoor small { color: #6b747c; }
.bz-rename { width: 220px; max-width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px #d5dbd8; font: inherit; font-weight: 600; }

.bz-chip { --t: #6b747c; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--t) 45%, transparent); font-weight: 600; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.bz-chip.dragging { opacity: 0.4; }
.bz-chip-x { display: inline-flex; padding: 2px; border: 0; border-radius: 50%; background: none; color: #6b747c; cursor: pointer; }
.bz-chip-x:hover { background: #eef1f0; }
.bz-groups-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bz-saved { display: inline-flex; align-items: center; gap: 6px; color: #11756f; font-size: 14px; }
.bz-saved[data-state="saving"] { color: #6b747c; }
.bz-saved[data-state="saving"] .i { visibility: hidden; }
.bz-saved[data-state="error"] { color: #c62828; }
.bz-gcols { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 0 28px; margin-top: 8px; padding-top: 18px; border-top: 1px solid #eceeed; }
.bz-gtop { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.bz-num { color: #6b747c; font-size: 14px; }
.bz-newgroup { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.bz-hint { margin: 4px 0 14px; color: #6b747c; font-size: 14px; }
.bz-glist { display: flex; flex-direction: column; gap: 12px; }
.bz-glist:has(.bz-gcard) + .bz-noneyet { display: none; }
.bz-gcard { padding: 14px 14px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #dfe4e2; }
.bz-gcard.dragging { opacity: 0.6; }
.bz-gcard-head { display: flex; align-items: center; gap: 4px; }
.bz-gcard-name { flex: 1; min-width: 0; padding: 4px 6px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 17px; font-weight: 700; }
.bz-gcard-name:hover { box-shadow: inset 0 0 0 1px #d5dbd8; }
.bz-gcard-name:focus { outline: none; box-shadow: inset 0 0 0 2px #11756f; }
.bz-gcard-count { margin-right: 4px; color: #6b747c; font-size: 14px; white-space: nowrap; }
.bz-iconbtn { display: inline-flex; padding: 6px; border: 0; border-radius: 8px; background: none; color: #5c6670; cursor: pointer; }
.bz-iconbtn:hover { background: #eef1f0; color: #1f2d2a; }
.bz-iconbtn.accent { color: #11756f; }
.bz-gcard:first-child [data-buzz-move="up"], .bz-gcard:last-child [data-buzz-move="down"] { visibility: hidden; }
.bz-gcard .bz-drop { margin: 10px 0 0; border-radius: 10px; }
.bz-gcard .bz-drop.over { outline: 2px dashed #11756f; outline-offset: 4px; background: #e6f4f3; }
.bz-gcard .bz-chip { border-radius: 8px; background: #f4f6f5; box-shadow: inset 0 0 0 1px #dfe4e2; padding: 4px 6px 4px 4px; font-size: 14px; }
.bz-together { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #eceeed; font-size: 15px; font-weight: 600; cursor: pointer; }
.bz-together input { width: 18px; height: 18px; }
.bz-together small { grid-column: 2; color: #6b747c; font-size: 13px; font-weight: 400; }
.bz-adddoor { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1.5px dashed #cfd6d3; border-radius: 8px; background: none; color: #5c6670; font: inherit; font-size: 14px; cursor: pointer; }
.bz-adddoor:hover { border-color: #11756f; color: #11756f; }
.bz-avail { padding-left: 24px; border-left: 1px solid #eceeed; }
.bz-avail.over { background: #f4f6f5; }
.bz-avail-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bz-avail-list:has(li) ~ .bz-allin { display: none; }
.bz-avail-door { --t: #6b747c; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #dfe4e2; font-weight: 600; font-size: 15px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.bz-avail-door .bz-chip-name { flex: 1; min-width: 0; }
.bz-cant { padding: 1px 6px; border-radius: 6px; background: #eef1f0; color: #6b747c; font-size: 11px; font-weight: 600; white-space: nowrap; }
.bz-chip.off .bz-icon, .bz-avail-door.off .bz-icon { opacity: 0.5; }
.bz-avail-door.dragging { opacity: 0.4; }
.bz-avail-note { display: flex; gap: 6px; margin-top: 16px; }
.bz-avail-note .i { flex: none; margin-top: 2px; }
.bz-menu { position: fixed; z-index: 1000; display: flex; flex-direction: column; min-width: 200px; max-height: 60vh; overflow: auto; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 0 0 1px #dfe4e2; }
.bz-menu[hidden] { display: none; }
.bz-menu p { margin: 4px 8px 6px; color: #6b747c; font-size: 13px; }
.bz-menu button { padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: inherit; text-align: left; cursor: pointer; }
.bz-menu button:hover:not(:disabled) { background: #eef1f0; }
.bz-menu button:disabled { color: #8a939a; cursor: default; }
@media (max-width: 760px) {
  .bz-gcols { grid-template-columns: 1fr; gap: 24px; }
  .bz-avail { padding: 18px 0 0; border-left: 0; border-top: 1px solid #eceeed; }
}
.bz-grip { display: inline-flex; padding: 8px 4px; border-radius: 8px; color: #8a939a; cursor: grab; touch-action: none; }
.bz-grip:hover { background: #eef1f0; }
.bz-gname { display: flex; flex-direction: column; gap: 4px; max-width: 360px; font-weight: 600; }
.bz-gname input { padding: 10px 12px; border: 0; border-radius: 10px; box-shadow: inset 0 0 0 1px #d5dbd8; font: inherit; }
.bz-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bz-gbtns { display: flex; gap: 10px; margin-top: 12px; }
.bz-events { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; padding: 0; border: 0; }
.bz-events legend { margin-bottom: 8px; padding: 0; font-weight: 600; }
.bz-events label { display: inline-flex; align-items: center; gap: 8px; }
.bz-events input[type="checkbox"], .bz-events input[type="radio"] { width: 18px; height: 18px; }
.bz-small { color: #6b747c; font-size: 14px; font-weight: 400; }
.bz-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 8px 0 12px; padding: 16px 18px; border-radius: 14px; background: #f2f5f3; }
.bz-shortcuts .bz-setlabel { padding-right: 20px; border-right: 1px solid #dfe4e2; }
.bz-shortcuts select { margin-left: auto; padding: 8px 10px; border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px #d5dbd8; background: #fff; font: inherit; }
.bz-lenchips { display: flex; flex-wrap: wrap; gap: 8px; }
.bz-lenchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #d5dbd8; font-weight: 600; }
.bz-lenadd { display: inline-flex; gap: 6px; margin-left: auto; }
.bz-deflock { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; }
.bz-deflock input[type="time"] { padding: 7px 10px; border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px #d5dbd8; background: #fff; font: inherit; }
.bz-deflock input[type="time"]:disabled { opacity: 0.45; }
.bz-deflock label { display: inline-flex; align-items: center; gap: 6px; }
.bz-deflock input[type="checkbox"] { width: 18px; height: 18px; accent-color: #11756f; }
.bz-lenadd input { width: 90px; padding: 7px 10px; border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px #d5dbd8; font: inherit; }
.bz-lenadd .btn { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; }
.bz-rules { margin: 0 0 8px; }
.bz-rules summary { display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px; color: #3c4a47; font-weight: 600; cursor: pointer; }
.bz-rules ul { margin: 4px 0 8px; padding-left: 22px; color: #5c6670; font-size: 15px; }
.bz-rules li { margin: 4px 0; }
.bz-switch { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
.bz-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bz-switch span { position: absolute; inset: 0; border-radius: 999px; background: #d5dbd8; transition: background 0.15s; pointer-events: none; }
.bz-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.bz-switch input:checked + span { background: #11756f; }
.bz-switch input:checked + span::after { transform: translateX(20px); }
.bz-switch input:focus-visible + span { outline: 2px solid #11756f; outline-offset: 2px; }
.bz-adoor-name { display: flex; flex-direction: column; }
.bz-rename-row { display: inline-flex; align-items: center; gap: 2px; }
.bz-rename-row .bz-rename { width: auto; field-sizing: content; min-width: 6ch; max-width: 240px; box-shadow: none; }
.bz-rename-row .bz-rename:hover, .bz-rename-row .bz-rename:focus { box-shadow: inset 0 0 0 1px #d5dbd8; outline: none; }
.bz-table select { padding: 7px 8px; border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px #d5dbd8; background: #fff; font: inherit; }
.bz-na { display: none; padding: 7px 10px; border-radius: 8px; background: #f2f5f3; color: #8a939a; white-space: nowrap; }
tr:has(.bz-limit option[value="0"]:checked) .bz-lockby select { display: none; }
tr:has(.bz-limit option[value="0"]:checked) .bz-na { display: inline-block; }
.bz-look { display: flex; align-items: center; gap: 10px; }
.bz-swatch { width: 36px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.bz-swatch::-webkit-color-swatch-wrapper { padding: 0; }
.bz-swatch::-webkit-color-swatch { border: 0; border-radius: 8px; }
.bz-lookmenu { position: relative; }
.bz-lookmenu summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; list-style: none; cursor: pointer; }
.bz-lookmenu summary::-webkit-details-marker { display: none; }
.bz-lookpop { position: absolute; right: 0; z-index: 20; display: flex; flex-direction: column; min-width: 220px; margin-top: 6px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 0 0 1px #dfe4e2; }
.bz-lookitem { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: inherit; text-align: left; white-space: nowrap; cursor: pointer; }
.bz-lookitem:hover { background: #eef1f0; }
.bz-savebar:has(.bz-cancel) { justify-content: flex-end; }
.bz-savebar:has(.bz-cancel) [data-buzz-status] { margin-right: auto; }
form:has([data-buzz-save]:disabled) .bz-cancel { display: none; }
.bz-setrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px 32px; padding: 20px 0; border-top: 1px solid #eceeed; }
.bz-setlabel { display: flex; flex-direction: column; gap: 4px; }
.bz-setlabel small { color: #6b747c; font-size: 14px; }
.bz-setctl .bz-gname { max-width: none; }
.bz-opts { display: flex; flex-direction: column; }
.bz-opt { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #eceeed; cursor: pointer; }
.bz-opt:first-child { padding-top: 0; border-top: 0; }
.bz-opt input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin-left: auto; accent-color: #11756f; }
.bz-opt .bz-sym { flex: none; display: inline-flex; padding: 7px; border-radius: 8px; }
.bz-opt .bz-sym.granted { background: #e6f4f3; color: #11756f; }
.bz-opt .bz-sym.denied { background: #fbe9e9; color: #c62828; }
.bz-opt-text { display: flex; flex-direction: column; gap: 2px; }
.bz-opt-text small { color: #6b747c; font-size: 14px; }
.bz-reasons { display: flex; flex-direction: column; gap: 8px; margin: 0 0 6px 46px; }
.bz-reasons label { display: inline-flex; align-items: center; gap: 8px; }
.bz-reasons input { width: 18px; height: 18px; accent-color: #11756f; }
.bz-opts:has(input[value="Access denied"][name="show"]:not(:checked)) .bz-reasons { display: none; }
.bz-reasonlist { display: flex; flex-direction: column; gap: 8px; margin-left: 26px; }
.bz-reasons:has(input[value="all"]:checked) .bz-reasonlist { display: none; }
.bz-info { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; background: #f2f5f3; color: #5c6670; font-size: 14px; }
.bz-savebar { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.bz-savebar .btn:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 760px) {
  .bz-setrow { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .bz-grid { grid-template-columns: minmax(0, 1fr); }
  .bz-row { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 10px; }
  .bz-where { grid-column: 2; flex-direction: row; align-items: baseline; gap: 8px; text-align: left; }
  .bz-where b { font-size: 15px; }
  .bz-person b { font-size: 17px; }
  .bz-locked .bz-main { padding: 8px; }
  .bz-locked .bz-grid { grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
  .bz-locked .bz-doors { max-height: 60dvh; padding: 4px 2px; overflow-y: auto; overscroll-behavior: contain; }
  .bz-locked .bz-doors h1 { display: none; }
  .bz-locked .bz-cards { flex: none; overflow: visible; gap: 12px; }
  .bz-locked .bz-foot { padding-top: 6px; }
  .bz-locked .bz-groupbox { padding: 8px; gap: 8px; border-radius: 18px; }
  .bz-locked .bz-ghead .bz-name b { font-size: 17px; }
  .bz-locked .bz-ghead .bz-go { padding: 7px 14px; font-size: 15px; }
  .bz-locked .bz-singles, .bz-locked .bz-ggrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); grid-auto-rows: auto; gap: 8px; }
  .bz-locked .bz-door { container-type: normal; display: flex; align-items: stretch; min-height: 44px; border-radius: 999px; background: var(--t); color: #fff; box-shadow: 0 2px 0 color-mix(in srgb, var(--t) 60%, #000); }
  .bz-locked .bz-door .bz-hit { flex: 1; min-width: 0; }
  .bz-locked .bz-door .bz-card-in { height: auto; min-height: 44px; padding: 6px 12px 6px 16px; }
  .bz-locked .bz-door.timed .bz-card-in { padding-right: 8px; }
  .bz-locked .bz-door .bz-icon { display: none; }
  .bz-locked .bz-door .bz-name b { font-size: 15px; -webkit-line-clamp: 2; color: #fff; }
  .bz-locked .bz-door .bz-name small { display: none; }
  .bz-locked .bz-door .bz-said { color: #fff; }
  .bz-locked .bz-door .bz-corner { position: static; flex: none; padding: 0 12px 0 10px; border-left: 1px solid rgba(255, 255, 255, 0.4); border-radius: 0 999px 999px 0; background: none; color: #fff; box-shadow: none; transform: none; }
  .bz-locked .bz-door .bz-corner .i.sm { display: none; }
  .bz-locked .bz-door .bz-corner .i.xs { display: inline; width: 16px; height: 16px; }
  .bz-locked .bz-door .bz-lockover { top: 50%; left: auto; right: 44px; transform: translateY(-50%); height: 26px; min-width: 26px; }
  .bz-locked .bz-door:not(.timed) .bz-lockover { right: 8px; }
  .bz-locked .bz-door .bz-lockover .i { width: 15px; height: 15px; }
  .bz-locked .bz-feed { padding: 12px; }
  .bz-locked .bz-feed-head { margin-bottom: 8px; }
  .bz-locked .bz-feed h2 { font-size: 22px; }
}
