.rb-page { max-width: 900px; }
.rb-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; justify-content: space-between; margin-bottom: .6rem; padding: .6rem 1rem; }
.rb-toolbar .btn { width: auto; padding: .3rem 1rem; }
.rb-legend { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .8rem; margin: .3rem 0 .6rem; }
.rb-legend span::before { content: ""; display: inline-block; width: .8rem; height: .8rem; margin-right: .3rem; border: 1px solid #8a8f98; vertical-align: -2px; border-radius: 3px; }
.rb-legend .lg-free::before { background: #fff; }
.rb-legend .lg-mine::before { background: #8fd19e; }
.rb-legend .lg-busy::before { background: #f08a84; }
.rb-legend .lg-block::before { background: #d0d0d0; }
.rb-days { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.rb-days .btn, .rb-room-actions .btn { width: auto; display: inline-block; text-decoration: none; }
.rb-days .btn { padding: .25rem .8rem; font-size: .85rem; }
.rb-day { margin-bottom: .8rem; padding: .6rem .8rem; }
.rb-day h2 { margin: 0 0 .35rem; font-size: 1rem; }
.rb-scroll { overflow-x: auto; }
.rb-table { border-collapse: collapse; width: 100%; min-width: 420px; table-layout: fixed; }
.rb-table th, .rb-table td { border: 1px solid #c9ccd2; padding: 0; text-align: center; font-size: .72rem; line-height: 1.1; }
.rb-table thead th { background: #f1f3f6; padding: .2rem 0; }
.rb-table thead th:first-child, .rb-table .rb-room { width: 3.6rem; }
.rb-table .rb-room { text-align: center; padding: .1rem .25rem; background: #f8f9fb; position: sticky; left: 0; font-weight: 600; }
.rb-table .rb-building th { text-align: left; background: #e4e8ee; padding: .15rem .4rem; font-size: .72rem; }
.rb-cell { display: block; width: 100%; height: 1.5rem; padding: 0; border: 0; background: #fff; font: inherit; font-size: .72rem; cursor: pointer; color: #555; }
.rb-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-cell:hover { outline: 2px solid #3b6fd4; outline-offset: -2px; }
.rb-cell.rb-mine { background: #8fd19e; color: #0d3b1a; font-weight: 600; }
.rb-cell.rb-busy { background: #f08a84; color: #5c1410; }
.rb-cell.rb-block { background: #d0d0d0; color: #333; }
.rb-room-actions { display: flex; gap: .15rem; justify-content: center; margin-top: .1rem; }
.rb-room-actions button { font-size: .6rem; padding: .05rem .25rem; }
#rb-dialog { border: 1px solid #888; border-radius: 8px; padding: 1.25rem; max-width: 26rem; width: 92vw; }
#rb-dialog::backdrop { background: rgba(0, 0, 0, .35); }
#rb-dialog label { display: block; margin: .75rem 0; }
#rb-dialog input { width: 100%; box-sizing: border-box; }
#rb-dialog [hidden] { display: none !important; }
#rb-dialog .btn { width: auto; }
#rb-dialog-detail { white-space: pre-line; }
.rb-dialog-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
.rb-error { color: #b00020; }
