.reading-panel-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  background: rgba(42, 39, 48, .18);
}
.reading-panel {
  box-sizing: border-box;
  width: 66.667vw;
  height: 100vh;
  height: 100dvh;
  min-width: min(22rem, 100vw);
  display: flex;
  flex-direction: column;
  background: #fbfafc;
  border-left: 1px solid #ddd8e3;
  box-shadow: -12px 0 30px rgba(42, 39, 48, .18);
}
.reading-panel.is-maximized { width: 100vw; max-width: none; }
.reading-panel-toolbar {
  flex: 0 0 auto;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  padding: .45rem .65rem;
  border-bottom: 1px solid #ddd8e3;
  background: #f3f1f5;
}
.reading-panel-toolbar button {
  min-width: 2.2rem;
  min-height: 2.1rem;
  padding: .25rem .5rem;
  border: 1px solid #bdb5c8;
  border-radius: 6px;
  background: #fbfafc;
  color: #2a2730;
  font: inherit;
  cursor: pointer;
}
.reading-panel-toolbar button:hover { background: #e8e2ef; }
.reading-panel-toolbar button:focus-visible {
  outline: 2px solid #5c4e70;
  outline-offset: 2px;
}
.reading-panel-frame {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  border: 0;
  background: #f3f1f5;
}
@media (max-width: 860px) {
  .reading-panel { width: 100vw; min-width: 0; }
  .reading-panel-toolbar { padding-right: max(.65rem, env(safe-area-inset-right)); }
}
