.digitable-novel-action {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font: inherit;
}

.digitable-novel-action:hover,
.digitable-novel-action:focus-visible {
  text-decoration: none;
}

.digitable-novel-action .octicon {
  fill: currentColor;
}

.article-mode-button.digitable-novel-action {
  border: 1px solid color-mix(in srgb, var(--course-cyan, #00e5e5) 36%, var(--course-line));
  background:
    linear-gradient(180deg, rgba(0, 229, 229, 0.08), rgba(0, 229, 229, 0.02)),
    var(--course-control);
  color: var(--course-text, #f5f7fa);
  min-height: 42px;
  padding: 0 14px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.article-mode-button.digitable-novel-action:hover,
.article-mode-button.digitable-novel-action:focus-visible,
.article-mode-button.digitable-novel-action[aria-expanded="true"] {
  border-color: var(--digitable-cyan, #00e5e5);
  background: rgba(0, 229, 229, 0.1);
  box-shadow: 0 0 0 3px rgba(0, 229, 229, 0.1);
  color: var(--digitable-cyan, #00e5e5);
}

.reader-layout.is-novel-mode {
  grid-template-columns: minmax(0, 1200px);
  max-width: 1200px;
}

.reader-layout.is-novel-mode > .reader-sidebar,
.reader-layout.is-novel-mode > .reader-panel-backdrop {
  display: none;
}

.reader-layout.is-novel-mode .reader-article {
  width: 100%;
}

.reader-layout.is-novel-mode .reader-content,
.reader-layout.is-novel-mode .post-nav {
  display: none;
}

.digitable-novel-mode-shell {
  margin: 0;
  border-bottom: 1px solid var(--course-line);
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 229, 229, 0.09), transparent 30%),
    #071018;
  overflow: hidden;
}

.digitable-novel-mode-shell[hidden] {
  display: none;
}

.digitable-novel-mode-shell__header {
  align-items: center;
  background: rgba(5, 8, 13, 0.7);
  border-bottom: 1px solid rgba(0, 229, 229, 0.18);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  min-height: 88px;
  padding: 16px 18px;
}

.digitable-novel-mode-shell__identity {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.digitable-novel-mode-shell__mark {
  align-items: center;
  background: rgba(0, 229, 229, 0.11);
  border: 1px solid rgba(0, 229, 229, 0.26);
  border-radius: 10px;
  color: var(--course-cyan, #00e5e5);
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.digitable-novel-mode-shell__identity p,
.digitable-novel-mode-shell__identity h2,
.digitable-novel-mode-shell__identity span {
  margin: 0;
}

.digitable-novel-mode-shell__identity p {
  color: var(--course-cyan, #00e5e5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.digitable-novel-mode-shell__identity h2 {
  color: #edf9ff;
  font-size: 16px;
  font-weight: 720;
  line-height: 1.35;
}

.digitable-novel-mode-shell__identity span {
  color: #9fb2c1;
  display: block;
  font-size: 11px;
  line-height: 1.4;
  margin-top: 2px;
}

.digitable-novel-mode-shell__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.digitable-novel-mode-shell__status {
  align-items: center;
  color: #9fb2c1;
  display: inline-flex;
  font-size: 11px;
  font-weight: 650;
  gap: 7px;
  margin-right: 4px;
  white-space: nowrap;
}

.digitable-novel-mode-shell__status i {
  background: var(--course-yellow, #ffd166);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.09);
  height: 7px;
  width: 7px;
}

.digitable-novel-mode-shell.is-ready .digitable-novel-mode-shell__status i {
  background: var(--course-cyan, #00e5e5);
  box-shadow: 0 0 0 4px rgba(0, 229, 229, 0.09);
}

.digitable-novel-mode-shell__button {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #edf9ff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  gap: 7px;
  min-height: 40px;
  padding: 0 11px;
  text-decoration: none;
}

.digitable-novel-mode-shell__button:hover,
.digitable-novel-mode-shell__button:focus-visible {
  background: rgba(0, 229, 229, 0.08);
  border-color: rgba(0, 229, 229, 0.42);
  color: var(--course-cyan, #00e5e5);
  text-decoration: none;
}

.digitable-novel-course-embed {
  background: #071018;
  width: 100%;
}

.digitable-novel-course-embed[hidden] {
  display: none;
}

.digitable-novel-mode-shell .digitable-novel-course-embed.dvn-embed-host--mounted {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 !important;
  max-height: none;
  min-height: 540px;
  overflow: hidden;
  width: 100%;
}

.digitable-novel-course-embed .dvn-embed-frame,
.dvn-embed-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #08131b;
}

@media (max-width: 1199px) {
  .reader-layout.is-novel-mode {
    max-width: 100%;
  }
}

@media (max-width: 899px) {
  .digitable-novel-mode-shell__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .digitable-novel-mode-shell__actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .digitable-novel-mode-shell__status {
    flex: 1 0 100%;
  }

  .digitable-novel-mode-shell__button {
    justify-content: center;
  }

  .digitable-novel-mode-shell .digitable-novel-course-embed.dvn-embed-host--mounted {
    min-height: 480px;
  }
}

@media (max-width: 767px) {
  .digitable-novel-action {
    margin-top: 0.45rem;
  }

  .article-mode-button.digitable-novel-action {
    min-height: 44px;
  }

  .digitable-novel-mode-shell__header {
    padding: 14px;
  }

  .digitable-novel-mode-shell__identity {
    align-items: flex-start;
  }

  .digitable-novel-mode-shell__identity h2 {
    font-size: 14px;
  }

  .digitable-novel-mode-shell__identity span {
    max-width: 32ch;
  }

  .digitable-novel-mode-shell__button {
    flex: 1 1 140px;
  }

  .digitable-novel-mode-shell .digitable-novel-course-embed.dvn-embed-host--mounted {
    aspect-ratio: auto;
    border-radius: 0;
    height: min(720px, 78svh);
    margin: 0 !important;
    max-height: none;
    min-height: min(540px, 78svh);
    width: 100%;
  }

  .digitable-novel-course-embed .dvn-embed-frame,
  .dvn-embed-frame {
    height: 100%;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-mode-button.digitable-novel-action {
    transition: none;
  }
}
