.beta-active .workspace { grid-template-columns: 190px minmax(0, 1fr); }
.beta-active .preview,.beta-active .actionbar,.beta-active #saveState,.beta-active #historyButton { display: none; }
.beta-active .editor-main { max-width: none; min-width: 0; }
@media(min-width:861px) and (max-width:1120px) { .beta-active .workspace { grid-template-columns:76px minmax(0,1fr); } }
.bs-page { max-width: 1160px; margin: 0 auto; padding: 12px 8px 32px; }
.bs-page h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.04em; margin: 8px 0 10px; }
.bs-page h2 { font-size: 20px; letter-spacing: -.02em; margin: 0 0 8px; }
.bs-page h3 { margin: 0 0 12px; font-size: 17px; }
.bs-page p { color: var(--muted); line-height: 1.6; margin: 0; max-width: 70ch; }
.bs-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.bs-heading .button { flex-shrink: 0; }
.bs-note { padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--soft); font-size: 13px; line-height: 1.5; margin: 12px 0; }
.bs-note--demo { border-color: #b39f7133; color: #d7c7a1; background: #b39f710b; }
.bs-error { color: var(--danger); }
.bs-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 22px 0; }
.bs-stat { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: linear-gradient(145deg,#ffffff04,transparent); }
.bs-stat span { color: var(--muted); font-size: 12px; }
.bs-stat strong { display: block; font-size: 30px; font-weight: 550; letter-spacing: -.03em; margin: 10px 0 5px; }
.bs-stat small { color: var(--muted); font-size: 11px; }
.bs-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.bs-tabs button { border: 0; padding: 10px 15px; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; }
.bs-tabs button[aria-selected=true] { color: var(--text); background: var(--surface-3); }
.bs-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; padding-bottom: 18px; }
.bs-toolbar label { display: grid; gap: 7px; font-size: 11px; color: var(--muted); flex: 1; min-width: 120px; }
.bs-page input,.bs-page select,.bs-page textarea { width: 100%; min-height: 40px; padding: 10px 12px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.bs-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); margin: 14px 0; }
.bs-card-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.bs-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 16px; }
.bs-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 13px; }
.bs-table th { text-align: left; color: var(--muted); font-size: 11px; font-weight: 500; padding: 14px 16px; background: #ffffff02; }
.bs-table td { border-top: 1px solid var(--line); padding: 16px; vertical-align: middle; }
.bs-table td small { display: block; color: var(--muted); margin-top: 5px; }
.bs-pill { display: inline-block; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; color: var(--soft); white-space: nowrap; }
.bs-pill--good { color: var(--success); border-color: #8eb6a133; background: #8eb6a109; }
.bs-pill--bad { color: #d2ac9c; border-color: #d2ac9c33; background: #d2ac9c09; }
.bs-link { border: 0; background: none; color: var(--text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 5px 0; font: inherit; }
.bs-empty { text-align: center; padding: 50px 24px; border: 1px dashed var(--line-strong); border-radius: 16px; }
.bs-empty p { margin: 8px auto; }
.bs-bottom { display: flex; align-items: center; gap: 16px; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 20px; }
.bs-page details summary { cursor: pointer; font-size: 14px; padding: 4px 0; color: var(--soft); }
.bs-page details[open] summary { margin-bottom: 18px; }
.bs-page dialog { width: min(570px,calc(100vw - 28px)); max-height: 85vh; overflow: auto; padding: 26px; border: 1px solid var(--line-strong); border-radius: 22px; background: #121416; color: var(--text); box-shadow: var(--shadow); }
.bs-page dialog::backdrop { background: #000a; backdrop-filter: blur(5px); }
.bs-page dialog label { display: block; font-size: 12px; color: var(--muted); margin: 16px 0; }
.bs-page dialog label input,.bs-page dialog label textarea { margin-top: 8px; }
.bs-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.bs-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.bs-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.bs-detail div { padding: 14px; border-radius: 12px; background: var(--surface-2); }
.bs-detail dt { color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.bs-detail dd { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.bs-comment { padding: 16px; border-left: 2px solid var(--line-strong); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; font-size: 13px; }
.bs-meter { display: block; width: 100%; height: 4px; border-radius: 5px; border: 0; margin-top: 9px; accent-color: var(--success); }
.bs-two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.bs-two ol { color: var(--soft); font-size: 13px; line-height: 1.7; padding-left: 18px; }
.bs-two li { margin: 10px 0; }
@media(max-width:800px) { .bs-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.bs-two{grid-template-columns:1fr}.bs-heading{align-items:flex-start}.bs-card{padding:18px}.bs-page{padding:0 0 24px} }
@media(max-width:480px) { .bs-stat{padding:16px}.bs-stat strong{font-size:26px}.bs-heading{gap:12px}.bs-heading .button{padding:10px;font-size:12px}.bs-detail{grid-template-columns:1fr}.bs-toolbar label{min-width:calc(50% - 12px)}.bs-card-top{align-items:flex-start;flex-direction:column} }
