body.dom-read { color: #f5f1f6; background: #15131a; }
body.dom-read::before, body.dom-read .dom-header, body.dom-read .dom-footer { display: none; }
.dom-read-head {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid #302c36;
  background: rgba(21, 19, 26, .97);
  box-shadow: 0 3px 16px rgba(0,0,0,.3);
}
.dom-read-title-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  max-width: var(--dom-page);
  min-height: 45px;
  margin: 0 auto;
  padding: 0 6px;
}
.dom-read-back, .dom-read-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--dom-tap);
  color: #f8cbd4;
  font-size: 12px;
  font-weight: 750;
}
.dom-read-titles { min-width: 0; text-align: center; }
.dom-read-comic { overflow: hidden; color: #aaa3b1; font-size: 11px; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.dom-read-chapter { overflow: hidden; font-size: 14px; line-height: 1.35; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.dom-read-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--dom-page);
  margin: 0 auto;
  border-top: 1px solid #2b2730;
}
.dom-read-toolbar a, .dom-read-toolbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: var(--dom-tap);
  padding: 0 3px;
  border: 0;
  border-right: 1px solid #2b2730;
  color: #d8d1de;
  background: transparent;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}
.dom-read-toolbar > :last-child { border-right: 0; }
.dom-read-toolbar .is-primary { color: #fff; background: var(--dom-primary); }
.dom-read-main { width: 100%; max-width: var(--dom-page); margin: 0 auto; }
.dom-read-main .dom-bc { margin: 0; padding: 6px 10px; border-bottom: 1px solid #2b2730; color: #9e97a4; background: #1c1921; }
.dom-read-main .dom-bc__link { color: #80d8bd; }
.dom-read-main .dom-bc__current { color: #bbb4c1; }
.dom-read-pics { display: flex; flex-direction: column; width: 100%; }
.dom-read-img {
  width: 100%;
  height: auto;
  min-height: 1px;
  color: transparent;
  background: #1d1a22;
}
.dom-read-switch { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 7px; padding: 13px 10px; }
.dom-read-switch .dom-btn { border-color: #393440; color: #eee8f1; background: #211e26; }
.dom-read-switch .dom-btn--primary { border-color: var(--dom-primary); color: #fff; background: var(--dom-primary); }
.dom-read-switch .dom-muted { color: #a9a1af; font-variant-numeric: tabular-nums; }
.dom-read-catalog { margin: 0 10px 14px; padding: 11px; border: 1px solid #35303b; border-radius: var(--dom-radius); background: #1d1a22; scroll-margin-top: calc(96px + env(safe-area-inset-top)); }
.dom-read-catalog h2 { margin-bottom: 7px; font-size: 15px; }
.dom-read-summary { margin: 0 10px 10px; padding: 10px 11px; border-left: 3px solid var(--dom-primary-bright); border-radius: 0 var(--dom-radius-sm) var(--dom-radius-sm) 0; color: #d8d1de; background: #1d1a22; }
.dom-read-summary h2 { margin-bottom: 3px; font-size: 14px; }
.dom-read-summary p { color: #aaa3b1; font-size: 12px; line-height: 1.65; }
.dom-chapter-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dom-chapter-list a { display: flex; align-items: center; min-height: var(--dom-tap); overflow: hidden; padding: 0 8px; border: 1px solid #38333f; border-radius: 7px; color: #d8d1de; background: #242029; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.dom-chapter-list li.is-current a { border-color: var(--dom-primary-bright); color: #fff; background: #006f52; }
.dom-read .dom-ad { margin-inline: 10px; }
.dom-read-bar { display: none !important; }
@media (max-width: 339px) {
  .dom-chapter-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (orientation: landscape) and (max-height: 500px) {
  .dom-read-head { position: relative; }
}
