.cabinet-body { background: #f5f6f8; min-height: 100vh; }
.cabinet-container { max-width: 800px; margin: 0 auto; }
.cabinet-narrow { max-width: 420px; }
.cabinet-guide li { margin-bottom: .5rem; }
.cabinet-guide code { word-break: break-all; }
.cabinet-field input[type=text], .cabinet-field input[type=number], .cabinet-field input[type=time],
.cabinet-field select, .cabinet-field textarea {
  display: block; width: 100%; padding: .5rem .75rem; font-size: 1rem;
  border: 1px solid #ced4da; border-radius: .375rem; background: #fff;
}
.cabinet-field textarea { min-height: 7rem; resize: vertical; }
.cabinet-field.has-error input, .cabinet-field.has-error select, .cabinet-field.has-error textarea { border-color: #dc3545; }
.cabinet-check-row { display: flex; gap: .5rem; align-items: stretch; }
.cabinet-check-row input { flex: 1 1 auto; min-width: 0; }
.cabinet-check-row .btn { flex: 0 0 auto; }
.cabinet-field input[type=checkbox] { margin-right: .5rem; }
.cabinet-field textarea[hidden] { display: none; }
.cabinet-editor-toolbar { margin-bottom: .25rem; }
.cabinet-editor-area { min-height: 7rem; padding: .5rem .75rem; font-size: 1rem; background: #fff; border: 1px solid #ced4da; border-radius: .375rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.cabinet-editor-area:focus { outline: 2px solid #86b7fe; }
.cabinet-editor-area .tg-spoiler { background: #e9ecef; border-radius: .2rem; padding: 0 .15rem; }
.cabinet-venue-menu { min-width: 14rem; max-width: 90vw; }
.cabinet-qr-preview { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; border: 1px solid #dee2e6; border-radius: .375rem; background: #fff; }
.cabinet-qr-hidden { position: absolute; left: -9999px; top: 0; width: 640px; height: 640px; overflow: hidden; }
.cabinet-bot-card { border-width: 2px; border-style: solid; border-radius: .5rem; }
.cabinet-bot-card-staff { border-color: #0d6efd; background: #eef4ff; }
.cabinet-bot-card-guest { border-color: #198754; background: #eefaf3; }
.cabinet-bot-badge { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; color: #fff; font-weight: 700; flex: 0 0 auto; }
.cabinet-bot-card-staff .cabinet-bot-badge { background: #0d6efd; }
.cabinet-bot-card-guest .cabinet-bot-badge { background: #198754; }
.cabinet-bot-username { font-size: 1.15rem; font-weight: 600; word-break: break-all; }

/* Layout: header + sidebar (saas-cabinet-17) */
.cabinet-header { position: sticky; top: 0; z-index: 1020; }
.cabinet-header-in { max-width: 1280px; margin: 0 auto; }
.cabinet-logo { color: #c8340f; font-size: 1.1rem; }
.cabinet-logo:hover { color: #a82a0b; }
.cabinet-venue-btn { max-width: 40vw; }
.min-w-0 { min-width: 0; }
.cabinet-shell { max-width: 1280px; margin: 0 auto; }
.cabinet-main { min-width: 0; }
.cabinet-content { max-width: 960px; }
.cabinet-offcanvas { max-width: 85vw; }
.cabinet-nav-group { margin-bottom: 1rem; }
.cabinet-nav-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #6c757d; font-weight: 700; padding: 0 .75rem; margin-bottom: .25rem; }
.cabinet-nav-item { display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; border-radius: .5rem; color: #212529; text-decoration: none; min-height: 2.5rem; }
.cabinet-nav-item .bi { flex: 0 0 auto; font-size: 1.05rem; }
.cabinet-nav-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
a.cabinet-nav-item:hover { background: #e9ecef; color: #212529; }
a.cabinet-nav-item.is-active { background: #c8340f; color: #fff; font-weight: 600; }
.cabinet-nav-item:focus-visible, .cabinet-logo:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; }
.cabinet-nav-item.is-disabled { color: #8a9099; cursor: not-allowed; }
.cabinet-dot { flex: 0 0 auto; width: .55rem; height: .55rem; border-radius: 50%; }
.cabinet-dot-on { background: #198754; }
.cabinet-dot-off { background: #adb5bd; }
a.cabinet-nav-item.is-active .cabinet-dot-off { background: #fff; opacity: .6; }
a.cabinet-nav-item.is-active .cabinet-dot-on { box-shadow: 0 0 0 2px #fff; }
@media (min-width: 992px) {
  .cabinet-shell.has-sidebar { display: flex; align-items: flex-start; }
  .cabinet-sidebar { flex: 0 0 250px; width: 250px; position: sticky; top: 3.4rem; max-height: calc(100vh - 3.4rem); overflow-y: auto; padding: 1rem .5rem; }
  .cabinet-content { flex: 1 1 auto; }
}
.cabinet-faq details { border-bottom: 1px solid #dee2e6; padding: .6rem 0; }
.cabinet-faq summary { cursor: pointer; font-weight: 600; }
.cabinet-faq summary:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; }
