:root {
  --publicant-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --publicant-font-weight: 400;
  --publicant-font-weight-muted: 500;
  --publicant-font-weight-heading: 600;
  --publicant-brand: #003366;
  --publicant-brand-dark: #002244;
  --publicant-bg: #f4f5f6;
  --publicant-surface: #ffffff;
  --landing-paper: #faf8f3;
  --publicant-border: #d1d1d1;
  --publicant-text: #222222;
  --publicant-muted: #606c76;
  --publicant-header-height: 96px;
  --publicant-wrap-padding: 1.6rem;
  --publicant-bottom-nav-height: 5.6rem;
  --publicant-sidebar-width: 24rem;
  --publicant-desktop-nav-min: 960px;
  --publicant-touch-min: 4.4rem;
  --publicant-button-height: 3.2rem;
  --publicant-button-padding-x: 1.2rem;
  --publicant-button-font-size: 1.3rem;
  --publicant-icon-button-size: 3.2rem;
  --publicant-safe-bottom: env(safe-area-inset-bottom, 0px);
  --publicant-safe-top: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.publicant-app {
  margin: 0;
  min-height: 100dvh;
  background: var(--publicant-bg);
  color: var(--publicant-text);
  color-scheme: light;
  font-family: var(--publicant-font-family);
  font-weight: var(--publicant-font-weight);
  letter-spacing: -0.01em;
}

.publicant-app input,
.publicant-app select,
.publicant-app textarea {
  color: #333;
}

.publicant-app button,
.publicant-app input,
.publicant-app select,
.publicant-app textarea,
.publicant-app label,
.publicant-app table,
.publicant-app p,
.publicant-app a {
  font-family: inherit;
  font-weight: inherit;
}

.publicant-app h1,
.publicant-app h2,
.publicant-app h3,
.publicant-app h4,
.publicant-app h5,
.publicant-app h6 {
  font-family: inherit;
  font-weight: var(--publicant-font-weight-heading);
}

/* Milligram defaults to purple (#9b4dca) for buttons and links */
.publicant-app .button,
.publicant-app button.button,
.publicant-app a.button,
.publicant-app input[type="submit"],
.publicant-app input[type="reset"],
.publicant-app input[type="button"] {
  margin: 0;
  height: auto;
  min-height: var(--publicant-button-height);
  padding: 0.45rem var(--publicant-button-padding-x);
  font-size: var(--publicant-button-font-size);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
  background-color: var(--publicant-brand);
  border-color: var(--publicant-brand);
  color: #fff;
}

.publicant-app .button:hover,
.publicant-app .button:focus,
.publicant-app button.button:hover,
.publicant-app button.button:focus,
.publicant-app a.button:hover,
.publicant-app a.button:focus,
.publicant-app input[type="submit"]:hover,
.publicant-app input[type="submit"]:focus,
.publicant-app input[type="reset"]:hover,
.publicant-app input[type="reset"]:focus,
.publicant-app input[type="button"]:hover,
.publicant-app input[type="button"]:focus {
  background-color: var(--publicant-brand-dark);
  border-color: var(--publicant-brand-dark);
  color: #fff;
}

.publicant-app .button-outline,
.publicant-app button.button-outline,
.publicant-app a.button-outline {
  background-color: transparent;
  border-color: var(--publicant-brand);
  color: var(--publicant-brand);
}

.publicant-app .button-outline:hover,
.publicant-app .button-outline:focus,
.publicant-app button.button-outline:hover,
.publicant-app button.button-outline:focus,
.publicant-app a.button-outline:hover,
.publicant-app a.button-outline:focus {
  background-color: var(--publicant-brand);
  border-color: var(--publicant-brand);
  color: #fff;
}

.publicant-app .button-primary,
.publicant-app button.button-primary,
.publicant-app a.button-primary {
  background-color: var(--publicant-brand);
  border-color: var(--publicant-brand);
  color: #fff;
}

.publicant-app .button-primary:hover,
.publicant-app .button-primary:focus,
.publicant-app button.button-primary:hover,
.publicant-app button.button-primary:focus,
.publicant-app a.button-primary:hover,
.publicant-app a.button-primary:focus {
  background-color: var(--publicant-brand-dark);
  border-color: var(--publicant-brand-dark);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.8rem 1.2rem;
  background: var(--publicant-brand);
  color: #fff;
  z-index: 1000;
  border-radius: 0.4rem;
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: var(--publicant-safe-top);
  background: var(--landing-paper);
  border-bottom: 0.1rem solid var(--publicant-border);
}

.app-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--publicant-header-height);
  min-height: var(--publicant-header-height);
  padding-top: 0;
  padding-bottom: 0;
}

.app-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--publicant-icon-button-size);
  min-height: var(--publicant-icon-button-size);
  margin: 0;
  padding: 0 0.8rem;
}

.app-brand {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.app-brand__avatar {
  width: 5.76rem;
  height: 5.76rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.app-brand__text {
  min-width: 0;
  flex: 1;
}

.app-brand__eyebrow {
  display: block;
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: var(--publicant-font-weight-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--publicant-muted);
}

.app-brand__title {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.app-user {
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: var(--publicant-font-weight-muted);
  color: var(--publicant-muted);
  white-space: nowrap;
}

.app-layout {
  position: relative;
  flex: 1;
  display: flex;
  min-height: 0;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(var(--publicant-sidebar-width), 88vw);
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  z-index: 40;
  background: var(--landing-paper);
  border-right: 0.1rem solid var(--publicant-border);
  overflow-y: auto;
  padding-top: calc(var(--publicant-header-height) + var(--publicant-safe-top));
}

.app-sidebar.is-open {
  transform: translateX(0);
}

.app-sidebar__inner {
  padding: 1.6rem;
}

.app-nav:empty {
  display: none;
}

.app-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-nav-item+.app-nav-item {
  margin-top: 0.4rem;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 0.4rem;
  color: var(--publicant-text);
  font-weight: var(--publicant-font-weight-muted);
  text-decoration: none;
}

.app-nav-link__icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
}

.app-nav-link__icon .tilda-icon {
  width: 100%;
  height: 100%;
}

.app-nav-link__label {
  min-width: 0;
}

.app-nav-link:hover,
.app-nav-link:focus {
  background: var(--publicant-bg);
  color: var(--publicant-brand);
}

.app-nav-link.is-active {
  background: rgba(0, 51, 102, 0.12);
  color: var(--publicant-brand);
  font-weight: 600;
}

.app-nav-item--has-sub.is-expanded>.app-nav-link {
  margin-bottom: 0.2rem;
}

.app-nav-sublist {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0 0 0 1.2rem;
  border-left: 0.2rem solid rgba(0, 51, 102, 0.12);
}

.app-nav-subitem+.app-nav-subitem {
  margin-top: 0.2rem;
}

.app-nav-sublink {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--publicant-text);
  font: inherit;
  font-weight: var(--publicant-font-weight-muted);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.app-nav-sublink:hover,
.app-nav-sublink:focus {
  background: var(--publicant-bg);
  color: var(--publicant-brand);
}

.app-nav-sublink.is-active {
  background: rgba(0, 51, 102, 0.08);
  color: var(--publicant-brand);
  font-weight: 600;
}

.app-nav-sublink--button {
  appearance: none;
  text-transform: none;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.app-nav-sublink--primary {
  color: var(--publicant-brand);
  font-weight: 600;
}

.app-nav-sublink--danger {
  color: #b42318;
}

.app-nav-sublink[hidden] {
  display: none;
}

.app-nav-subitem--action {
  margin-left: 1rem;
}

.app-nav-subitem--action > .app-nav-sublink {
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.app-nav-subitem--action > .app-nav-sublink:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (min-width: 960px) {
  .app-nav-sublist {
    display: none;
  }
}

.app-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 35;
}

.app-overlay:not([hidden]) {
  display: block;
}

.publicant-app .container {
  padding-left: var(--publicant-wrap-padding);
  padding-right: var(--publicant-wrap-padding);
}

.app-main {
  flex: 1;
  width: 100%;
  padding-top: 0;
  padding-bottom: calc(var(--publicant-bottom-nav-height) + var(--publicant-safe-bottom) + var(--publicant-wrap-padding));
}

.app-flash {
  margin-bottom: 1.6rem;
  padding: 1.2rem 1.6rem;
  border-radius: 0.4rem;
  background: #e8f4fd;
  border: 0.1rem solid #b8daf0;
}

.app-content {
  background: var(--publicant-surface);
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.6rem;
  padding: var(--publicant-wrap-padding);
  min-height: 12rem;
}

.app-main:has(.book-content-editor) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.app-main:has(.book-audio-editor__workspace) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.app-content:has(.book-content-editor) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.app-main:has(.book-content-editor).container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.app-shell:has(.book-content-editor) .app-attribution,
.app-shell:has([data-page-help-dialog]:not([hidden])) .app-attribution {
  display: none;
}

.app-shell:has(.book-content-editor) {
  height: 100dvh;
  overflow: hidden;
}

.app-layout:has(.book-content-editor) {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.app-content:has(.book-audio-editor__workspace) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.app-shell:has(.book-audio-editor__workspace) {
  height: 100dvh;
  overflow: hidden;
}

.app-layout:has(.book-audio-editor__workspace) {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.app-placeholder {
  margin: 0;
  color: var(--publicant-muted);
}

.app-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: stretch;
  min-height: var(--publicant-bottom-nav-height);
  padding-bottom: var(--publicant-safe-bottom);
  background: var(--publicant-surface);
  border-top: 0.1rem solid var(--publicant-border);
}

.app-bottom-nav:empty {
  display: none;
}

.app-bottom-nav__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 0.4rem;
  color: var(--publicant-muted);
  font-size: 1.1rem;
  font-weight: var(--publicant-font-weight-muted);
  text-decoration: none;
  text-align: center;
}

.app-bottom-nav__icon {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
}

.app-bottom-nav__icon .tilda-icon {
  width: 100%;
  height: 100%;
}

.app-bottom-nav__label {
  line-height: 1.2;
}

.app-bottom-nav__link.is-active {
  color: var(--publicant-brand);
  font-weight: 600;
}

.app-toast-region {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(var(--publicant-bottom-nav-height) + var(--publicant-safe-bottom) + 1rem);
  z-index: 50;
  pointer-events: none;
}

.app-toast-region:empty {
  display: none;
}

@media (min-width: 960px) {
  .app-nav-toggle {
    display: none;
  }

  .app-layout {
    display: grid;
    grid-template-columns: var(--publicant-sidebar-width) minmax(0, 1fr);
  }

  .app-sidebar {
    position: sticky;
    top: calc(var(--publicant-header-height) + var(--publicant-safe-top));
    height: calc(100dvh - var(--publicant-header-height) - var(--publicant-safe-top));
    transform: none;
    padding-top: 0;
  }

  .app-overlay {
    display: none !important;
  }

  .app-layout:has(.book-audio-editor__workspace) {
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
  }

  .app-layout:has(.book-audio-editor__workspace)>.app-main {
    min-height: 0;
    overflow: hidden;
  }

  .app-layout:has(.book-content-editor) {
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
  }

  .app-layout:has(.book-content-editor)>.app-main {
    min-height: 0;
    overflow: hidden;
  }

  .app-main {
    padding-bottom: var(--publicant-wrap-padding);
  }

  .app-bottom-nav {
    display: none;
  }

  .app-toast-region {
    left: auto;
    right: 2rem;
    width: min(36rem, calc(100vw - 4rem));
    bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-sidebar {
    transition: none;
  }
}

.login-page,
.page-stub {
  max-width: 100%;
}

.dashboard-page {
  width: 100%;
  max-width: none;
}

.book-editor-stub {
  width: 100%;
  max-width: none;
}

.login-page__header,
.dashboard-page__header,
.page-stub__header {
  margin-bottom: 2rem;
}

.login-page__title,
.dashboard-page__title,
.page-stub__title {
  margin: 0 0 0.8rem;
  font-size: 2.4rem;
  font-weight: var(--publicant-font-weight-heading);
}

.login-page__subtitle,
.dashboard-page__subtitle,
.page-stub__subtitle {
  margin: 0;
  color: var(--publicant-muted);
}

.page-stub__book-title {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.8rem;
  font-weight: var(--publicant-font-weight-heading);
  line-height: 1.35;
  color: var(--publicant-text);
}

.page-stub__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
}

.page-stub__title-row .page-stub__title {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.page-stub__header-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex: 0 0 auto;
  flex-shrink: 0;
  gap: 1.2rem;
}

.page-stub__header-actions .button {
  margin: 0;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.page-stub__help {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-top: 0;
}

.page-stub__help-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--publicant-icon-button-size);
  min-width: var(--publicant-icon-button-size);
  height: var(--publicant-icon-button-size);
  min-height: var(--publicant-icon-button-size);
  max-width: var(--publicant-icon-button-size);
  max-height: var(--publicant-icon-button-size);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 50%;
  aspect-ratio: 1;
  background: var(--publicant-surface);
  color: var(--publicant-muted);
  cursor: pointer;
  font: inherit;
}

.page-stub__help-toggle:hover {
  color: var(--publicant-brand);
  border-color: var(--publicant-brand);
}

.page-stub__help-toggle:focus-visible {
  color: var(--publicant-brand);
  border-color: var(--publicant-brand);
  outline: 0.2rem solid rgba(0, 51, 102, 0.35);
  outline-offset: 0.2rem;
}

.page-stub__help-icon {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.page-stub__help-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  background: rgba(0, 0, 0, 0.45);
}

.page-stub__help-dialog[hidden] {
  display: none !important;
}

.page-stub__help-dialog-panel {
  width: min(64rem, 100%);
  max-height: min(72rem, calc(100vh - 3.2rem));
  overflow: auto;
  padding: 1.6rem 1.8rem;
  border-radius: 0.6rem;
  border: 0.1rem solid var(--publicant-border);
  background: var(--publicant-surface);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.18);
}

.page-stub__help-dialog-title {
  margin: 0 0 1.2rem;
  font-size: 1.8rem;
  font-weight: var(--publicant-font-weight-heading);
  color: var(--publicant-text);
}

.page-stub__help-dialog-content {
  margin: 0 0 1.6rem;
  font-size: 1.4rem;
  line-height: 1.55;
  color: var(--publicant-text);
}

.page-stub__help-dialog-content p {
  margin: 0 0 1rem;
}

.page-stub__help-dialog-content p:last-child {
  margin-bottom: 0;
}

.page-stub__help-dialog-panel .app-attribution {
  display: none;
}

.page-stub__help-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.login-page__error {
  margin-bottom: 1.6rem;
  padding: 1.2rem 1.6rem;
  border-radius: 0.4rem;
  border: 0.1rem solid #f5c2c7;
  background: #f8d7da;
  color: #842029;
}

.login-form fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.login-form label {
  font-weight: 600;
}

.login-form input[type="text"] {
  width: 100%;
  min-height: var(--publicant-touch-min);
  border-color: var(--publicant-border);
  background-color: var(--publicant-surface);
  color: var(--publicant-text);
  box-shadow: none;
  outline: none;
}

.login-form input[type="text"]:hover,
.login-form input[type="text"]:focus,
.login-form input[type="text"]:focus-visible,
.login-form input[type="text"]:valid,
.login-form input[type="text"]:invalid {
  border-color: var(--publicant-border);
  background-color: var(--publicant-surface);
  color: var(--publicant-text);
  box-shadow: none;
  outline: none;
}

.login-form input[type="text"]:-webkit-autofill,
.login-form input[type="text"]:-webkit-autofill:hover,
.login-form input[type="text"]:-webkit-autofill:focus,
.login-form input[type="text"]:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 100rem var(--publicant-surface) inset;
  box-shadow: 0 0 0 100rem var(--publicant-surface) inset;
  -webkit-text-fill-color: var(--publicant-text);
  border-color: var(--publicant-border);
  caret-color: var(--publicant-text);
  transition: background-color 99999s ease-out 0s;
}

.login-form--error input[type="text"],
.login-form input[type="text"].is-invalid {
  border-color: #842029;
  background-color: #fff5f5;
  color: var(--publicant-text);
}

.login-form--error input[type="text"]:hover,
.login-form--error input[type="text"]:focus,
.login-form--error input[type="text"]:focus-visible,
.login-form input[type="text"].is-invalid:hover,
.login-form input[type="text"].is-invalid:focus,
.login-form input[type="text"].is-invalid:focus-visible {
  border-color: #842029;
  background-color: #fff5f5;
  color: var(--publicant-text);
  box-shadow: none;
  outline: none;
}

.login-form--error input[type="text"]:-webkit-autofill,
.login-form--error input[type="text"]:-webkit-autofill:hover,
.login-form--error input[type="text"]:-webkit-autofill:focus,
.login-form--error input[type="text"]:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 100rem #fff5f5 inset;
  box-shadow: 0 0 0 100rem #fff5f5 inset;
  -webkit-text-fill-color: var(--publicant-text);
  border-color: #842029;
}

.login-form__password-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: var(--publicant-touch-min);
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background-color: var(--publicant-surface);
  overflow: hidden;
}

.login-form__password-field:focus-within {
  border-color: var(--publicant-border);
  background-color: var(--publicant-surface);
}

.login-form__password-field input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: calc(var(--publicant-touch-min) - 0.2rem);
  margin: 0;
  padding-right: 0.8rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--publicant-text);
  box-shadow: none;
  outline: none;
}

.login-form__password-field input:hover,
.login-form__password-field input:focus,
.login-form__password-field input:focus-visible,
.login-form__password-field input:valid,
.login-form__password-field input:invalid {
  border: 0;
  background: transparent;
  color: var(--publicant-text);
  box-shadow: none;
  outline: none;
}

.login-form__password-field input:-webkit-autofill,
.login-form__password-field input:-webkit-autofill:hover,
.login-form__password-field input:-webkit-autofill:focus,
.login-form__password-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 100rem var(--publicant-surface) inset;
  box-shadow: 0 0 0 100rem var(--publicant-surface) inset;
  -webkit-text-fill-color: var(--publicant-text);
  caret-color: var(--publicant-text);
  transition: background-color 99999s ease-out 0s;
}

.login-form--error .login-form__password-field,
.login-form__password-field:has(input.is-invalid) {
  border-color: #842029;
  background-color: #fff5f5;
}

.login-form--error .login-form__password-field:focus-within,
.login-form__password-field:has(input.is-invalid):focus-within {
  border-color: #842029;
  background-color: #fff5f5;
}

.login-form--error .login-form__password-field input:-webkit-autofill,
.login-form--error .login-form__password-field input:-webkit-autofill:hover,
.login-form--error .login-form__password-field input:-webkit-autofill:focus,
.login-form--error .login-form__password-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 100rem #fff5f5 inset;
  box-shadow: 0 0 0 100rem #fff5f5 inset;
  -webkit-text-fill-color: var(--publicant-text);
}

.publicant-app .login-form .login-form__password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--publicant-touch-min);
  width: var(--publicant-touch-min);
  min-width: var(--publicant-touch-min);
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 0.1rem solid var(--publicant-border);
  border-radius: 0;
  background: transparent;
  color: var(--publicant-muted);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.publicant-app .login-form .login-form__password-toggle:hover,
.publicant-app .login-form .login-form__password-toggle:focus,
.publicant-app .login-form .login-form__password-toggle:focus-visible {
  background: transparent;
  border-color: var(--publicant-border);
  border-left-color: var(--publicant-border);
  color: var(--publicant-brand);
  outline: none;
  box-shadow: none;
}

.login-form--error .login-form__password-toggle {
  border-left-color: #842029;
}

.login-form__password-toggle .tilda-icon {
  display: block;
  width: 1.8rem;
  height: 1.8rem;
}

.login-form__password-toggle .tilda-icon[hidden] {
  display: none;
}

.login-form__submit {
  width: 100%;
  margin-top: 1.25rem !important;
}

.dashboard-page__placeholder {
  margin-bottom: 2rem;
  padding: 1.6rem;
  border-radius: 0.4rem;
  background: var(--publicant-bg);
  color: var(--publicant-muted);
}

.dashboard-page__error {
  margin-bottom: 1.6rem;
  padding: 1.2rem 1.6rem;
  border-radius: 0.4rem;
  border: 0.1rem solid #f5c2c7;
  background: #f8d7da;
  color: #842029;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem;
}

@media (min-width: 768px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dashboard-stat-card {
  margin: 0;
  padding: 1.6rem;
  border: 0.2rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-surface);
  box-shadow: none;
}

.dashboard-stat-card h5 {
  margin: 0 0 1.2rem;
}

.dashboard-stat-card__value-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem 1.2rem;
  min-height: 3.6rem;
}

.dashboard-stat-card__value {
  margin: 0;
  font-size: 3.6rem;
  font-weight: var(--publicant-font-weight-heading);
  line-height: 1;
}

.dashboard-stat-card__trend-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: var(--publicant-font-weight-muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
  border: 0.1rem solid var(--publicant-border);
  background: var(--publicant-bg);
  color: var(--publicant-muted);
}

.dashboard-stat-card__trend-chip--up {
  color: #1f6b3f;
  background: rgba(31, 107, 63, 0.08);
  border-color: rgba(31, 107, 63, 0.22);
}

.dashboard-stat-card__trend-chip--down {
  color: #9b2c2c;
  background: rgba(155, 44, 44, 0.08);
  border-color: rgba(155, 44, 44, 0.22);
}

.dashboard-stat-card__trend-chip--flat {
  color: var(--publicant-muted);
  background: var(--publicant-bg);
  border-color: var(--publicant-border);
}

.dashboard-stat-card__hint {
  margin: 1rem 0 0;
  color: var(--publicant-muted);
  font-size: 1.3rem;
  line-height: 1.4;
}

.profile-page {
  width: 100%;
  max-width: none;
}

.profile-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
}

.profile-page__heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

.profile-page__stats-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  min-width: 2.4rem;
  height: 2.4rem;
  min-height: 2.4rem;
  padding: 0;
  margin: 0;
}

.profile-page__stats-toggle .tilda-icon {
  display: block;
  width: 1.8rem;
  height: 1.8rem;
}

.profile-page__stats-toggle.is-active {
  background: var(--publicant-brand);
  border-color: var(--publicant-brand);
  color: #fff;
}

.book-dashboard-widgets[hidden] {
  display: none !important;
}

@media (min-width: 960px) {
  .profile-page__stats-toggle {
    display: none;
  }

  .book-dashboard-widgets,
  .book-dashboard-widgets[hidden] {
    display: block !important;
  }
}

.profile-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.profile-page__actions .button,
.profile-page__logout .button {
  margin: 0;
}

[data-book-editor-save-all] {
  display: none;
}

[data-book-editor-save-all].is-visible {
  display: inline-block;
}

[data-book-editor-save-all][hidden] {
  display: none !important;
}

[data-book-content-save][hidden] {
  display: none !important;
}

.profile-page__logout {
  margin: 0;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
}

.profile-modal[hidden] {
  display: none !important;
}

.profile-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.profile-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  padding: 2rem;
  border-radius: 0.6rem;
  background: var(--publicant-surface);
  border: 0.1rem solid var(--publicant-border);
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.18);
}

.profile-modal__title {
  margin: 0 0 1.6rem;
  font-size: 2rem;
}

.profile-modal__form {
  display: grid;
  gap: 1.2rem;
}

.profile-modal__label {
  display: block;
  margin-bottom: -0.4rem;
  font-weight: var(--publicant-font-weight-muted);
}

.profile-modal__input {
  width: 100%;
  min-height: var(--publicant-touch-min);
}

.profile-modal__message {
  padding: 1rem 1.2rem;
  border-radius: 0.4rem;
  border: 0.1rem solid #f5c2c7;
  background: #f8d7da;
  color: #842029;
}

.profile-modal__message[hidden] {
  display: none !important;
}

.profile-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.app-alert-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
}

.app-alert-modal[hidden] {
  display: none !important;
}

.password-setup-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
}

.password-setup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.password-setup-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  margin: 0;
  padding: 2rem;
  border-radius: 0.6rem;
  background: var(--publicant-surface);
  border: 0.1rem solid var(--publicant-border);
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.18);
}

.password-setup-modal__title,
.password-setup-modal__text {
  margin: 0 0 1.2rem;
}

.password-setup-modal__label {
  display: block;
  margin: 0 0 1.2rem;
}

.password-setup-modal__error {
  margin: 0 0 1.2rem;
  color: #8a1f1f;
}

.app-alert-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.app-alert-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 36rem);
  max-height: min(80vh, 32rem);
  padding: 2rem;
  border-radius: 0.6rem;
  background: var(--publicant-surface);
  border: 0.1rem solid var(--publicant-border);
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.app-alert-modal__title {
  margin: 0;
  font-size: 1.8rem;
}

.app-alert-modal__message {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
  max-height: 50vh;
  overflow-y: auto;
}

.app-alert-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.profile-page__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 2.4rem;
  font-weight: var(--publicant-font-weight-heading);
}

.profile-page__intro,
.profile-page__error {
  margin: 0 0 2.4rem;
  color: var(--publicant-muted);
}

.book-editor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.book-dashboard-stats {
  margin-bottom: 2.4rem;
}

.book-copies-chart-card {
  margin: 0 0 2.4rem;
  padding: 1.6rem 1.6rem 2.4rem;
  border: 0.2rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-surface);
}

.book-copies-chart-card__title {
  margin: 0 0 1.2rem;
  font-size: 1.6rem;
  font-weight: var(--publicant-font-weight-heading);
}

.book-copies-chart__plot {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 150px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.book-copies-chart__plot::-webkit-scrollbar {
  display: none;
}

.book-copies-chart__column {
  position: relative;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.book-copies-chart__bar-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-height: 0;
}

.book-copies-chart__callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.4rem;
  padding: 0.4rem 0.6rem;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: #fff;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  z-index: 1;
}

.book-copies-chart__column:hover .book-copies-chart__callout,
.book-copies-chart__column:focus-within .book-copies-chart__callout {
  opacity: 1;
}

.book-copies-chart__value {
  color: var(--publicant-brand);
  font-size: 1.1rem;
  font-weight: var(--publicant-font-weight-heading);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.book-copies-chart__date {
  color: var(--publicant-muted);
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
}

.book-copies-chart__bar {
  width: 100%;
  min-height: 0;
  border-radius: 0.2rem 0.2rem 0 0;
  background: var(--publicant-brand);
}

.book-copies-chart__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin: 0;
  color: var(--publicant-muted);
  font-size: 1.4rem;
  line-height: 1.4;
  text-align: center;
}

.book-editor-nav__link {
  text-decoration: none;
}

.book-editor-nav__link.is-disabled,
.book-editor-nav__link[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
  cursor: wait;
}

.book-analytic-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(2px);
}

.book-analytic-overlay[hidden] {
  display: none !important;
}

.book-analytic-overlay__panel {
  text-align: center;
  padding: 2.4rem 3.2rem;
  max-width: 32rem;
}

.book-analytic-overlay__spinner {
  width: 3.6rem;
  height: 3.6rem;
  margin: 0 auto 1.6rem;
  border: 0.35rem solid rgba(0, 51, 102, 0.15);
  border-top-color: var(--publicant-brand, #003366);
  border-radius: 50%;
  animation: book-analytic-spin 0.85s linear infinite;
}

.book-analytic-overlay__text {
  margin: 0;
  color: var(--publicant-brand, #003366);
  font-size: 1.5rem;
  line-height: 1.4;
}

@keyframes book-analytic-spin {
  to {
    transform: rotate(360deg);
  }
}

.catalog-search-page {
  width: 100%;
  max-width: none;
}

.catalog-search-model {
  position: relative;
  flex: 0 0 auto;
}

.publicant-app button.catalog-search-model__toggle,
.publicant-app button.catalog-search-model__toggle:hover,
.publicant-app button.catalog-search-model__toggle:focus {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: auto;
  height: var(--publicant-icon-button-size);
  min-height: var(--publicant-icon-button-size);
  margin: 0;
  padding: 0 1rem;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 999px;
  background: var(--publicant-surface);
  box-shadow: none;
  color: var(--publicant-text);
  font-size: 1.3rem;
  font-weight: var(--publicant-font-weight-muted);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}

.catalog-search-model__toggle:focus-visible {
  outline: 0.2rem solid rgba(0, 51, 102, 0.35);
  outline-offset: 0.2rem;
}

.catalog-search-model__label {
  color: var(--publicant-muted);
}

.catalog-search-model__value {
  font-weight: var(--publicant-font-weight-heading);
}

.catalog-search-model__popdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 100%;
  padding: 0.4rem;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.6rem;
  background: var(--publicant-surface);
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.12);
}

.catalog-search-model__popdown[hidden] {
  display: none !important;
}

.publicant-app button.catalog-search-model__option,
.publicant-app button.catalog-search-model__option:hover,
.publicant-app button.catalog-search-model__option:focus {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  box-shadow: none;
  color: var(--publicant-text);
  font-size: 1.3rem;
  font-weight: inherit;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}

.catalog-search-model__option:hover,
.catalog-search-model__option:focus-visible {
  background: rgba(0, 51, 102, 0.06);
}

.catalog-search-model__option.is-selected {
  color: var(--publicant-brand);
  font-weight: var(--publicant-font-weight-heading);
}

.catalog-search-page__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin: 0 0 2.4rem;
}

.catalog-search-page__toolbar .button {
  text-decoration: none;
}

.cover-generation-page {
  width: 100%;
  max-width: none;
}

.cover-generation-page__assets-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin: 0 0 1.6rem;
  padding: 1.2rem 1.6rem;
  border-radius: 0.4rem;
  border: 0.1rem solid rgba(52, 73, 94, 0.2);
  background: rgba(52, 73, 94, 0.04);
  color: #2c3e50;
  line-height: 1.5;
}

.cover-generation-page__assets-card--error {
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.06);
  color: #962d22;
}

.cover-generation-page__assets-card-text {
  margin: 0;
  flex: 1 1 auto;
}

.cover-generation-page__assets-card-actions {
  margin-top: 0;
  flex-shrink: 0;
}

.cover-generation-page__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin: 0 0 2.4rem;
}

.cover-generation-page__toolbar .button {
  text-decoration: none;
}

.cover-generation-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.cover-generation-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.cover-generation-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cover-generation-form__field--full {
  grid-column: 1 / -1;
}

.cover-generation-form__label {
  font-size: 1.3rem;
  font-weight: var(--publicant-font-weight-heading);
  color: var(--publicant-text);
}

.cover-generation-form__input,
.cover-generation-form__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.2rem;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-surface);
  color: var(--publicant-text);
  font: inherit;
}

.cover-generation-form__textarea {
  min-height: 10rem;
  resize: vertical;
}

.cover-generation-form__optional {
  color: var(--publicant-muted);
  font-weight: var(--publicant-font-weight-muted);
}

.cover-generation-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.2rem;
  overflow-x: auto;
  padding: 0.4rem 0 1.2rem;
}

.cover-generation-gallery[hidden] {
  display: none !important;
}

.cover-generation-gallery__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  margin: 0;
  padding: 0;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-bg);
  cursor: pointer;
  overflow: visible;
}

.cover-generation-gallery__item:hover,
.cover-generation-gallery__item:focus-visible {
  border-color: var(--publicant-brand);
}

.cover-generation-gallery__image {
  display: block;
  height: 300px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.cover-generation-form__feedback {
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.cover-generation-form__feedback[hidden] {
  display: none !important;
}

.cover-generation-form__feedback--error {
  color: #b42318;
  font-size: 1.3rem;
  text-align: center;
}

.cover-generation-form__feedback--success {
  color: var(--publicant-text);
  font-size: 1.3rem;
  text-align: center;
}

.cover-generation-form__spinner {
  width: 3.2rem;
  height: 3.2rem;
  border: 0.3rem solid rgba(0, 51, 102, 0.15);
  border-top-color: var(--publicant-brand);
  border-radius: 50%;
  animation: book-analytic-spin 0.85s linear infinite;
}

.cover-generation-form__attempts {
  margin: 0.8rem 0 0;
  color: var(--publicant-muted);
  font-size: 1.3rem;
  text-align: center;
}

.cover-generation-form__attempts[hidden] {
  display: none !important;
}

.cover-generation-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.5);
}

.cover-generation-modal[hidden] {
  display: none !important;
}

.cover-generation-modal__close {
  position: fixed;
  top: 1.6rem;
  right: 1.6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--publicant-icon-button-size);
  height: var(--publicant-icon-button-size);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.cover-generation-modal__close:hover,
.cover-generation-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.cover-generation-modal__viewport {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem 2.4rem 2.4rem;
  box-sizing: border-box;
}

.cover-generation-modal__image {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}

.cover-generation-modal__actions {
  position: fixed;
  left: 50%;
  bottom: 2.4rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  transform: translateX(-50%);
}

.cover-generation-modal__message {
  margin-top: 1rem;
  color: #b42318;
  font-size: 1.3rem;
  text-align: center;
}

.cover-generation-modal__message[hidden] {
  display: none !important;
}

.cover-generation-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.cover-generation-form__status--error {
  color: #b42318;
}

.cover-generation-upload__hint {
  margin: 0.8rem 0 0;
  color: var(--publicant-muted);
  font-size: 1.2rem;
}

.cover-generation-upload__list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cover-generation-upload__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-bg);
}

.cover-generation-upload__preview {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  border-radius: 0.4rem;
  background: var(--publicant-surface);
}

.cover-generation-upload__info {
  flex: 1;
  min-width: 0;
}

.cover-generation-upload__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-generation-upload__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  padding: 0;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-surface);
  color: var(--publicant-muted);
  cursor: pointer;
}

@media (max-width: 767px) {
  .cover-generation-page__assets-card,
  .book-audio-editor__assets-card {
    display: block;
  }

  .cover-generation-page__assets-card-actions,
  .book-audio-editor__assets-card-actions {
    margin-top: 1.2rem;
  }

  .cover-generation-form__grid {
    grid-template-columns: 1fr;
  }
}

.catalog-search-section {
  margin-bottom: 2.8rem;
}

.catalog-search-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.catalog-search-section__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: var(--publicant-font-weight-heading);
}

.catalog-search-section__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--publicant-icon-button-size);
  min-width: var(--publicant-icon-button-size);
  height: var(--publicant-icon-button-size);
  min-height: var(--publicant-icon-button-size);
  padding: 0;
  border-radius: 50%;
  border: 0.1rem solid var(--publicant-border);
  background: var(--publicant-surface);
  color: var(--publicant-text);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.catalog-search-section__add:hover,
.catalog-search-section__add:focus-visible {
  color: var(--publicant-brand);
  border-color: var(--publicant-brand);
}

.catalog-search-section__add:focus-visible {
  outline: 0.2rem solid rgba(0, 51, 102, 0.35);
  outline-offset: 0.2rem;
}

.catalog-search-section__list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.catalog-item-card {
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.6rem;
  background: var(--publicant-surface);
  padding: 1.4rem 1.6rem;
}

.catalog-item-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
}

.catalog-item-card--keyword .catalog-item-card__header {
  margin-bottom: 0;
}

.catalog-item-card--keyword.is-editing .catalog-item-card__header {
  margin-bottom: 0.8rem;
}

.catalog-item-card__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1.6rem;
  font-weight: var(--publicant-font-weight-heading);
  line-height: 1.35;
}

.catalog-item-card__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.catalog-item-card__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--publicant-icon-button-size);
  min-width: var(--publicant-icon-button-size);
  height: var(--publicant-icon-button-size);
  min-height: var(--publicant-icon-button-size);
  padding: 0;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: transparent;
  color: var(--publicant-text);
  cursor: pointer;
}

.catalog-item-card__icon-btn:hover,
.catalog-item-card__icon-btn:focus-visible {
  color: var(--publicant-brand);
  border-color: var(--publicant-brand);
  background: rgba(0, 51, 102, 0.06);
}

.catalog-item-card__icon-btn[hidden] {
  display: none !important;
}

.catalog-item-card__cancel {
  font-size: 1.6rem;
  font-weight: 600;
}

.catalog-item-card__content {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.catalog-item-card__editor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.catalog-item-card__editor[hidden] {
  display: none !important;
}

.catalog-item-card__label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 1.3rem;
  color: var(--publicant-text);
}

.catalog-item-card__input {
  width: 100%;
  min-height: var(--publicant-touch-min);
  padding: 0.8rem 1rem;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-surface);
  color: var(--publicant-text);
  font: inherit;
  resize: vertical;
}

.catalog-item-card__editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.catalog-synopsis-card {
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.6rem;
  background: var(--publicant-surface);
  padding: 1.2rem 1.4rem;
}

.catalog-synopsis-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.catalog-synopsis-card__hint {
  margin: 0;
  color: var(--publicant-muted);
  font-size: 1.3rem;
  line-height: 1.45;
}

.catalog-synopsis-card__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.catalog-synopsis-card__content {
  margin: 0;
  color: var(--publicant-text);
  font-size: 1.4rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.catalog-synopsis-card__content.is-empty {
  color: var(--publicant-muted);
  font-style: italic;
}

.catalog-synopsis-card__content--preview {
  max-height: calc(1.6em * 10);
  overflow-y: auto;
  padding-right: 0.4rem;
}

.catalog-synopsis-card__editor {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.catalog-synopsis-card__editor[hidden] {
  display: none;
}

.catalog-synopsis-card__textarea {
  width: 100%;
  min-height: 18rem;
  padding: 1rem 1.2rem;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-bg);
  color: var(--publicant-text);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.catalog-synopsis-card__counter {
  margin: 0;
  color: var(--publicant-muted);
  font-size: 1.2rem;
}

.catalog-synopsis-card.is-editing .catalog-synopsis-card__view {
  display: none;
}

.book-editor-stub .profile-page__error {
  margin-bottom: 1.6rem;
}

.book-content-editor .page-stub__back {
  margin-bottom: 1.2rem;
  flex-shrink: 0;
  padding-left: var(--publicant-wrap-padding);
  padding-right: var(--publicant-wrap-padding);
}

.book-content-editor {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.book-content-editor .page-stub__header {
  margin-bottom: 1.2rem;
  flex-shrink: 0;
  padding-left: var(--publicant-wrap-padding);
  padding-right: var(--publicant-wrap-padding);
}

.book-content-editor__panel {
  border: 0;
  border-top: 0.1rem solid var(--publicant-border);
  border-radius: 0;
  background: var(--publicant-surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
  position: relative;
}

.book-content-editor__panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 1.2rem;
  border-bottom: 0.1rem solid var(--publicant-border);
  background: var(--publicant-bg);
  flex-shrink: 0;
}

.book-content-editor__panel-nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 0 0 auto;
}

.book-content-editor__toc {
  position: relative;
  flex: 0 0 auto;
}

.book-content-editor__toc-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--publicant-icon-button-size);
  min-width: var(--publicant-icon-button-size);
  height: var(--publicant-icon-button-size);
  min-height: var(--publicant-icon-button-size);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-surface);
  color: var(--publicant-muted);
  cursor: pointer;
}

.book-content-editor__toc-toggle:hover {
  color: var(--publicant-brand);
  border-color: var(--publicant-brand);
}

.book-content-editor__toc-toggle:focus-visible {
  color: var(--publicant-brand);
  border-color: var(--publicant-brand);
  outline: 0.2rem solid rgba(0, 51, 102, 0.35);
  outline-offset: 0.2rem;
}

.book-content-editor__toc-toggle[aria-expanded="true"] {
  color: var(--publicant-brand);
  border-color: var(--publicant-brand);
}

.book-content-editor__toc-toggle .tilda-icon,
.book-content-editor__footnotes-toggle .tilda-icon,
.book-content-editor__search-submit .tilda-icon,
.book-content-editor__search-nav .tilda-icon {
  display: block;
  width: 1.8rem;
  height: 1.8rem;
}

.book-content-editor__toc-popdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 30;
  min-width: 28rem;
  max-width: min(42rem, calc(100vw - 3rem));
  max-height: min(40rem, 60vh);
  overflow: auto;
  padding: 0.8rem 0;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-surface);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.12);
}

.book-content-editor__toc-popdown[hidden] {
  display: none !important;
}

.book-content-editor__toc-tree {
  margin: 0;
}

.book-content-editor__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.book-content-editor__toc-list .book-content-editor__toc-list {
  padding-left: 1.2rem;
  border-left: 0.1rem solid var(--publicant-border);
  margin-left: 1rem;
}

.book-content-editor__toc-item {
  margin: 0;
}

.book-content-editor__toc-link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.6rem 1.2rem;
  border: 0;
  background: transparent;
  color: var(--publicant-text);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.book-content-editor__toc-link:hover,
.book-content-editor__toc-link:focus {
  background: var(--publicant-bg);
  color: var(--publicant-brand);
}

.book-content-editor__toc-item--level-1>.book-content-editor__toc-link {
  font-weight: var(--publicant-font-weight-heading);
}

.book-content-editor__toc-item--level-2>.book-content-editor__toc-link {
  font-weight: var(--publicant-font-weight-heading);
}

.book-content-editor__toc-item--level-3>.book-content-editor__toc-link {
  font-size: 1.3rem;
}

.book-content-editor__toc-empty {
  margin: 0;
  padding: 0.8rem 1.2rem;
  color: var(--publicant-muted);
  font-size: 1.4rem;
}

.book-content-editor__footnotes {
  position: relative;
  flex: 0 0 auto;
}

.book-content-editor__footnotes[hidden] {
  display: none !important;
}

.book-content-editor__footnotes-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--publicant-icon-button-size);
  min-width: var(--publicant-icon-button-size);
  height: var(--publicant-icon-button-size);
  min-height: var(--publicant-icon-button-size);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-surface);
  color: var(--publicant-muted);
  cursor: pointer;
}

.book-content-editor__footnotes-toggle:hover {
  color: var(--publicant-brand);
  border-color: var(--publicant-brand);
}

.book-content-editor__footnotes-toggle:focus-visible {
  color: var(--publicant-brand);
  border-color: var(--publicant-brand);
  outline: 0.2rem solid rgba(0, 51, 102, 0.35);
  outline-offset: 0.2rem;
}

.book-content-editor__footnotes-toggle[aria-expanded="true"] {
  color: var(--publicant-brand);
  border-color: var(--publicant-brand);
}

.book-content-editor__footnotes-popdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 30;
  min-width: 28rem;
  max-width: min(42rem, calc(100vw - 3rem));
  max-height: min(40rem, 60vh);
  overflow: auto;
  padding: 0.8rem 0;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-surface);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.12);
}

.book-content-editor__footnotes-popdown[hidden] {
  display: none !important;
}

.book-content-editor__footnotes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.book-content-editor__footnotes-item {
  margin: 0;
}

.book-content-editor__footnotes-link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.6rem 1.2rem;
  border: 0;
  background: transparent;
  color: var(--publicant-text);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  word-break: break-word;
}

.book-content-editor__footnotes-link:hover,
.book-content-editor__footnotes-link:focus {
  background: var(--publicant-bg);
  color: var(--publicant-brand);
}

.book-content-editor__footnotes-link--empty {
  color: var(--publicant-muted);
}

.book-content-editor__search {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
}

.book-content-editor__search-field {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: none;
}

.book-content-editor__search-input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  height: var(--publicant-icon-button-size);
  min-height: var(--publicant-icon-button-size);
  box-sizing: border-box;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.book-content-editor__search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--publicant-icon-button-size);
  min-width: var(--publicant-icon-button-size);
  height: var(--publicant-icon-button-size);
  min-height: var(--publicant-icon-button-size);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0.1rem solid var(--publicant-border);
  border-left: 0;
  border-radius: 0 0.4rem 0.4rem 0;
  background: var(--publicant-surface);
  color: var(--publicant-muted);
  cursor: pointer;
}

.book-content-editor__search-submit:hover,
.book-content-editor__search-submit:focus {
  color: var(--publicant-brand);
  border-color: var(--publicant-brand);
}

.book-content-editor__search-submit svg {
  display: block;
  width: 1.8rem;
  height: 1.8rem;
}

.book-content-editor__search-results {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.book-content-editor__search-results[hidden] {
  display: none !important;
}

.book-content-editor__search-count {
  min-width: 4.8rem;
  color: var(--publicant-muted);
  font-size: 1.4rem;
  white-space: nowrap;
}

.book-content-editor__search-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--publicant-icon-button-size);
  height: var(--publicant-icon-button-size);
  margin: 0;
  padding: 0;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-surface);
  color: var(--publicant-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.book-content-editor__search-nav:hover:not(:disabled) {
  border-color: var(--publicant-brand);
  color: var(--publicant-brand);
}

.book-content-editor__search-nav:focus-visible:not(:disabled) {
  border-color: var(--publicant-brand);
  color: var(--publicant-brand);
  outline: 0.2rem solid rgba(0, 51, 102, 0.35);
  outline-offset: 0.2rem;
}

.book-content-editor__search-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.editor-how-to__lead {
  margin: 0 0 1.6rem;
  color: var(--publicant-muted);
}

.editor-how-to__section {
  margin: 0 0 1.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 0.1rem solid var(--publicant-border);
}

.editor-how-to__section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.editor-how-to__section--highlight {
  padding: 1.2rem 1.4rem;
  border: 0.1rem solid rgba(0, 51, 102, 0.18);
  border-radius: 0.5rem;
  background: rgba(0, 51, 102, 0.04);
}

.editor-how-to__heading {
  margin: 0 0 0.8rem;
  font-size: 1.6rem;
  font-weight: var(--publicant-font-weight-heading);
  color: var(--publicant-text);
}

.editor-how-to__subheading {
  margin: 1.2rem 0 0.6rem;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--publicant-text);
}

.editor-how-to__subheading:first-of-type {
  margin-top: 0;
}

.editor-how-to__list {
  margin: 0 0 0.8rem;
  padding-left: 1.6rem;
}

.editor-how-to__list li {
  margin: 0 0 0.5rem;
}

.editor-how-to__list ul {
  margin: 0.4rem 0 0.2rem;
  padding-left: 1.4rem;
}

.editor-how-to__list--ordered {
  padding-left: 1.8rem;
}

.editor-how-to__table {
  width: 100%;
  margin: 0 0 1rem;
  border-collapse: collapse;
  font-size: 1.35rem;
}

.editor-how-to__table th,
.editor-how-to__table td {
  padding: 0.7rem 0.8rem;
  border: 0.1rem solid var(--publicant-border);
  text-align: left;
  vertical-align: top;
}

.editor-how-to__table th {
  background: var(--publicant-bg);
  font-weight: 600;
}

.editor-how-to__table code {
  font-size: 1.2rem;
}

.editor-how-to__note,
.editor-how-to__warning {
  margin: 0.8rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 0.4rem;
  font-size: 1.35rem;
}

.editor-how-to__note {
  border-left: 0.3rem solid var(--publicant-brand);
  background: rgba(0, 51, 102, 0.06);
  color: var(--publicant-muted);
}

.editor-how-to__warning {
  border-left: 0.3rem solid #b45309;
  background: #fff7ed;
  color: #7c2d12;
}

.editor-how-to kbd {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.3rem;
  background: var(--publicant-bg);
  font-size: 1.2rem;
  line-height: 1.4;
}

.book-content-search__mark {
  background: #fff3b0;
  color: inherit;
  padding: 0;
}

.book-content-search__mark--active {
  background: #ffd54f;
  box-shadow: inset 0 0 0 0.1rem var(--publicant-brand);
}

.book-content-editor__save {
  margin: 0;
  flex: 0 0 auto;
}

.book-content-editor__pell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border: 0;
  box-shadow: none;
}

.book-content-editor__pell.is-html-mode .pell-button:not(.pell-button-html) {
  opacity: 0.45;
  pointer-events: none;
}

.book-content-editor__html-source {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 1.6rem;
  border: 0;
  background: var(--publicant-bg);
  color: var(--publicant-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1.3rem;
  line-height: 1.55;
  resize: none;
  box-sizing: border-box;
  tab-size: 2;
  white-space: pre;
  overflow: auto;
}

.book-content-editor__html-source[hidden] {
  display: none !important;
}

.book-content-editor__pell .pell-content[hidden] {
  display: none !important;
}

.book-content-editor__actionbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 0.1rem solid var(--publicant-border);
  background: var(--publicant-bg);
  flex-shrink: 0;
}

.book-content-editor__pell .pell-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: var(--publicant-icon-button-size);
  height: var(--publicant-icon-button-size);
  margin: 0;
  padding: 0 0.6rem;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-surface);
  color: var(--publicant-text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.book-content-editor__pell .pell-button .tilda-icon {
  display: block;
  width: 1.8rem;
  height: 1.8rem;
}

.book-content-editor__pell .pell-button-selected {
  border-color: var(--publicant-brand);
  color: var(--publicant-brand);
}

.book-content-editor__pell .pell-button.book-content-editor__history-undo,
.book-content-editor__pell .pell-button.book-content-editor__history-redo {
  position: relative;
  min-width: 3.6rem;
  padding-right: 1.2rem;
}

.book-content-editor__history-count {
  margin-left: 0.3rem;
  font-size: 1.1rem;
  font-weight: var(--publicant-font-weight-heading);
  line-height: 1;
  color: var(--publicant-brand);
}

.book-content-editor__pell .pell-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.book-content-editor__pell .book-content-editor__content {
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.book-content-editor__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.6rem;
}

.book-content-editor__content img,
.book-content-editor__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.2rem auto;
  cursor: pointer;
}

.book-content-editor__content ul,
.book-content-editor__content ol {
  margin: 0.8rem 0;
  padding-left: 2.4rem;
}

.book-content-editor__content li {
  margin: 0.35rem 0;
}

.book-content-editor__image--selected {
  outline: 0.2rem solid var(--publicant-brand);
  outline-offset: 0.2rem;
}

.book-content-editor__image--pending {
  display: block;
  min-height: 6rem;
  min-width: 8rem;
  background: rgba(0, 0, 0, 0.04);
  outline: 0.1rem dashed rgba(0, 0, 0, 0.2);
  outline-offset: 0.2rem;
}

.book-content-editor__image-input {
  display: none !important;
}

.book-content-editor__scroll-top {
  position: absolute;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  margin: 0;
  padding: 0;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 999px;
  background: var(--publicant-surface);
  color: var(--publicant-text);
  box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.book-content-editor__scroll-top[hidden] {
  display: none !important;
}

.book-content-editor__scroll-top:hover,
.book-content-editor__scroll-top:focus-visible {
  border-color: var(--publicant-brand);
  color: var(--publicant-brand);
}

.book-content-editor__scroll-top svg {
  display: block;
  width: 2rem;
  height: 2rem;
}

.book-content-editor__message {
  margin: 0;
  padding: 0 1.6rem 1.6rem;
  flex-shrink: 0;
}

.book-content-editor__content .book-content-footnote,
.book-content-editor__content a.sdfootnoteanc {
  color: var(--publicant-brand);
  text-decoration: none;
  cursor: pointer;
}

.book-content-editor__content .book-content-footnote sup,
.book-content-editor__content a.sdfootnoteanc sup {
  font-size: 0.75em;
  line-height: 0;
  vertical-align: super;
}

.book-content-editor__content .book-content-footnote--empty sup {
  color: #c0392b;
  font-weight: var(--publicant-font-weight-heading);
}

.book-content-footnote-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  background: rgba(0, 0, 0, 0.45);
}

.book-content-footnote-dialog[hidden] {
  display: none !important;
}

.book-content-footnote-dialog__panel {
  width: min(56rem, 100%);
  padding: 1.6rem;
  border-radius: 0.6rem;
  border: 0.1rem solid var(--publicant-border);
  background: var(--publicant-surface);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.18);
}

.book-content-footnote-dialog__title {
  margin: 0 0 1.2rem;
  font-size: 1.6rem;
  font-weight: var(--publicant-font-weight-heading);
}

.book-content-footnote-dialog__text {
  display: block;
  width: 100%;
  min-height: 12rem;
  margin: 0 0 1.2rem;
  padding: 1rem 1.2rem;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-bg);
  color: var(--publicant-text);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

.book-content-footnote-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.book-content-footnote-dialog__delete {
  margin-left: auto;
  color: #842029;
  border-color: #f5c2c7;
}

.profile-page__error {
  padding: 1.2rem 1.6rem;
  border-radius: 0.4rem;
  border: 0.1rem solid #f5c2c7;
  background: #f8d7da;
  color: #842029;
}

.profile-fields {
  display: grid;
  gap: 1.6rem;
}

.profile-field-card {
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.6rem;
  background: var(--publicant-surface);
  overflow: hidden;
}

.profile-field-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.3rem 1.2rem;
  border-bottom: 0.1rem solid var(--publicant-border);
  background: var(--publicant-bg);
}

.profile-field-card__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: var(--publicant-font-weight-heading);
  line-height: 1.1;
}

.profile-field-card__header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.profile-field-card__edit,
.profile-field-card__generate,
.profile-field-card__cancel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  min-width: 2.4rem;
  min-height: 2.4rem;
  margin: 0;
  padding: 0;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-surface);
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  vertical-align: top;
}

.profile-field-card__edit {
  color: var(--publicant-brand);
}

.profile-field-card__edit svg {
  display: block;
  width: 1.8rem;
  height: 1.8rem;
}

.profile-field-card__generate {
  text-decoration: none;
  color: var(--publicant-brand);
}

.profile-field-card__generate span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.profile-field-card__generate:hover,
.profile-field-card__generate:focus {
  border-color: var(--publicant-brand);
  color: var(--publicant-brand);
}

.profile-field-card__cancel-header {
  display: none;
  font-size: 1.4rem;
  color: var(--publicant-muted);
}

.profile-field-card.is-editing-inline .profile-field-card__cancel-header,
.profile-field-card.is-editing .profile-field-card__cancel-header {
  display: flex;
}

.profile-field-card__cancel-header[hidden] {
  display: none !important;
}

.profile-field-card__edit:hover,
.profile-field-card__edit:focus {
  border-color: var(--publicant-brand);
}

.profile-field-card__cancel-header:hover,
.profile-field-card__cancel-header:focus {
  border-color: var(--publicant-muted);
  color: #842029;
}

.profile-field-card__body {
  padding: 1.6rem;
}

.profile-field-card__value {
  white-space: pre-wrap;
  word-break: break-word;
}

.profile-field-card__value--empty {
  color: var(--publicant-muted);
}

.profile-field-card__image {
  display: block;
  border-radius: 0.4rem;
  object-fit: cover;
}

.profile-field-card__image--avatar {
  width: 175px;
  height: 175px;
  max-width: 175px;
  max-height: 175px;
}

.profile-field-card__avatar-editor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-field-card__avatar-preview {
  display: block;
  width: 150px;
  height: 150px;
  max-width: 150px;
  max-height: 150px;
  border-radius: 0.4rem;
  object-fit: cover;
}

.profile-field-card__avatar-preview[hidden] {
  display: none !important;
}

.profile-field-card__file-input {
  margin-bottom: 0;
}

.profile-field-card__input {
  width: 100%;
  margin-bottom: 1.2rem;
}

.profile-field-card__input--inline {
  margin-bottom: 0;
}

.profile-field-card__inline-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.profile-field-card__inline-date .profile-field-card__input--inline {
  flex: 1 1 16rem;
  width: auto;
}

.profile-field-card__clear-date {
  margin: 0;
}

.profile-field-card__inline-textarea,
.profile-field-card__inline-text {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.profile-field-card__textarea {
  margin-bottom: 0;
  min-height: calc(1.6em * 4 + 1.2rem);
  max-height: calc(1.6em * 8 + 1.2rem);
  resize: none;
  overflow-y: hidden;
  line-height: 1.6;
}

.profile-field-card__char-counter {
  align-self: flex-end;
  color: var(--publicant-muted);
  font-size: 1.2rem;
  font-weight: var(--publicant-font-weight-muted);
}

.profile-field-card__inline-error {
  color: #842029;
  font-size: 1.2rem;
}

.profile-field-card__input.is-invalid {
  border-color: #842029;
}

.profile-field-toggle {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  user-select: none;
}

.profile-field-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.profile-field-toggle__track {
  position: relative;
  display: inline-block;
  width: 5.2rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: #c8c8c8;
  transition: background-color 0.2s ease;
}

.profile-field-toggle__thumb {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.profile-field-toggle__input:checked+.profile-field-toggle__track {
  background: var(--publicant-brand);
}

.profile-field-toggle__input:checked+.profile-field-toggle__track .profile-field-toggle__thumb {
  transform: translateX(2.2rem);
}

.profile-field-toggle__input:focus-visible+.profile-field-toggle__track {
  outline: 0.2rem solid var(--publicant-brand);
  outline-offset: 0.2rem;
}

.profile-field-toggle__state {
  font-size: 1.5rem;
  color: var(--publicant-text);
}

.profile-field-trial-range {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.profile-field-trial-range__field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 12rem;
}

.profile-field-trial-range__label {
  font-size: 1.3rem;
  color: var(--publicant-muted);
}

.profile-field-trial-range__input {
  width: 12rem;
}

.profile-field-card__edit-source {
  display: none;
}

.profile-field-card.is-editing-inline .profile-field-card__edit {
  color: #fff;
  background: var(--publicant-brand);
  border-color: var(--publicant-brand);
}

.profile-field-card.is-editing-inline .profile-field-card__edit:disabled {
  opacity: 0.7;
}

.profile-field-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.profile-field-card__message {
  margin-top: 1.2rem;
  color: #842029;
}

.profile-field-card.is-editing .profile-field-card__edit {
  opacity: 0.5;
  pointer-events: none;
}

@media (min-width: 768px) {
  .login-form__submit {
    width: auto;
  }
}

.books-page {
  max-width: none;
}

.books-page__header {
  margin-bottom: 1.6rem;
}

.books-page__title {
  font-size: 2.4rem;
  font-weight: var(--publicant-font-weight-heading);
}

.books-page__intro,
.books-page__empty {
  margin: 0.8rem 0 0;
  color: var(--publicant-muted);
}

.books-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.books-page__actions .button {
  flex: 0 0 auto;
  margin: 0;
  text-decoration: none;
}

.books-page__add {
  white-space: nowrap;
}

.statistics-page {
  max-width: none;
}

.statistics-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}

.statistics-page__heading {
  flex: 1 1 20rem;
  min-width: 0;
}

.statistics-page__title {
  margin: 0 0 0.8rem;
  font-size: 2.4rem;
  font-weight: var(--publicant-font-weight-heading);
}

.statistics-page__intro,
.statistics-page__empty {
  margin: 0;
  color: var(--publicant-muted);
}

.statistics-page__error {
  margin-bottom: 1.6rem;
  padding: 1.2rem 1.6rem;
  border-radius: 0.4rem;
  border: 0.1rem solid #f5c2c7;
  background: #f8d7da;
  color: #842029;
}

.statistics-page__table-wrap {
  overflow-x: auto;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-surface);
}

.statistics-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 48rem;
  table-layout: fixed;
}

.statistics-table__col--title {
  width: 40%;
}

.statistics-table__col--metric {
  width: 20%;
}

.statistics-table th,
.statistics-table td {
  padding: 1.2rem 1.6rem;
  border-bottom: 0.1rem solid var(--publicant-border);
  text-align: left;
  vertical-align: top;
}

.statistics-table th {
  font-weight: var(--publicant-font-weight-heading);
  background: #fafafa;
}

.statistics-table__head {
  cursor: pointer;
  user-select: none;
}

.statistics-table__head-label {
  min-width: 0;
}

.statistics-table__sort-icon {
  display: inline-block;
  margin-left: 0.6rem;
  vertical-align: middle;
  color: var(--publicant-muted);
}

.statistics-table__head[aria-sort="descending"] .statistics-table__sort-icon,
.statistics-table__head[aria-sort="ascending"] .statistics-table__sort-icon {
  color: var(--publicant-brand);
}

.statistics-table__head:hover,
.statistics-table__head:focus-visible {
  color: var(--publicant-brand);
}

.statistics-table tbody tr:last-child td {
  border-bottom: none;
}

.statistics-table td:not(:first-child) {
  white-space: nowrap;
}

.book-audio-editor {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-width: none;
  overflow: hidden;
}

.book-audio-editor__header {
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}

.book-audio-editor__header.page-stub__header {
  margin-bottom: 1.2rem;
}

.book-audio-editor__title {
  font-size: 2.4rem;
  font-weight: var(--publicant-font-weight-heading);
}

.book-audio-editor__empty {
  margin: 0.8rem 0 0;
  color: var(--publicant-muted);
  flex-shrink: 0;
}

.book-audio-editor__assets-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin: 1.5rem 0 1rem;
  padding: 1.2rem 1.6rem;
  border-radius: 0.4rem;
  border: 0.1rem solid rgba(52, 73, 94, 0.2);
  background: rgba(52, 73, 94, 0.04);
  color: #2c3e50;
  line-height: 1.5;
  flex-shrink: 0;
}

.book-audio-editor__assets-card--error {
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.06);
  color: #962d22;
}

.book-audio-editor__assets-card-text {
  margin: 0;
  flex: 1 1 auto;
}

.book-audio-editor__assets-card-actions {
  margin-top: 0;
  flex-shrink: 0;
}

.book-audio-editor__back {
  margin-bottom: 0;
  flex-shrink: 0;
}

.book-audio-editor__message {
  flex-shrink: 0;
  margin-bottom: 1.2rem;
}

.book-audio-editor__workspace {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.book-audio-editor__header .page-stub__title-row {
  align-items: center;
}

.book-audio-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  min-width: 0;
  margin: 1.5rem 0 0;
}

.book-audio-editor__goto {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.book-audio-editor__goto-label {
  color: var(--publicant-muted);
  font-size: 1.4rem;
  white-space: nowrap;
}

.book-audio-editor__goto-field {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.book-audio-editor__goto-input {
  width: 1.4rem;
  min-width: 1.4rem;
  margin: 0;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  height: var(--publicant-icon-button-size);
  min-height: var(--publicant-icon-button-size);
  box-sizing: border-box;
  text-align: center;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.book-audio-editor__goto-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--publicant-icon-button-size);
  min-width: var(--publicant-icon-button-size);
  height: var(--publicant-icon-button-size);
  min-height: var(--publicant-icon-button-size);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0.1rem solid var(--publicant-border);
  border-left: 0;
  border-radius: 0 0.4rem 0.4rem 0;
  background: var(--publicant-surface);
  color: var(--publicant-muted);
  cursor: pointer;
}

.book-audio-editor__goto-submit:hover,
.book-audio-editor__goto-submit:focus {
  color: var(--publicant-brand);
  border-color: var(--publicant-brand);
}

.book-audio-editor__goto-submit svg {
  display: block;
  width: 1.8rem;
  height: 1.8rem;
}

.book-audio-editor__search {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  flex: 1 1 20rem;
  min-width: 0;
  margin: 0;
}

.book-audio-editor__search-field {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.book-audio-editor__search-input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  height: var(--publicant-icon-button-size);
  min-height: var(--publicant-icon-button-size);
  box-sizing: border-box;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.book-audio-editor__search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--publicant-icon-button-size);
  min-width: var(--publicant-icon-button-size);
  height: var(--publicant-icon-button-size);
  min-height: var(--publicant-icon-button-size);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0.1rem solid var(--publicant-border);
  border-left: 0;
  border-radius: 0 0.4rem 0.4rem 0;
  background: var(--publicant-surface);
  color: var(--publicant-muted);
  cursor: pointer;
}

.book-audio-editor__search-submit:hover,
.book-audio-editor__search-submit:focus {
  color: var(--publicant-brand);
  border-color: var(--publicant-brand);
}

.book-audio-editor__search-submit svg {
  display: block;
  width: 1.8rem;
  height: 1.8rem;
}

.book-audio-editor__search-results {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.book-audio-editor__search-results[hidden] {
  display: none !important;
}

.book-audio-editor__search-count {
  min-width: 4.8rem;
  color: var(--publicant-muted);
  font-size: 1.4rem;
  white-space: nowrap;
}

.book-audio-editor__search-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--publicant-icon-button-size);
  height: var(--publicant-icon-button-size);
  margin: 0;
  padding: 0;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-surface);
  color: var(--publicant-text);
  cursor: pointer;
}

.book-audio-editor__search-nav:hover:not(:disabled) {
  border-color: var(--publicant-brand);
  color: var(--publicant-brand);
}

.book-audio-editor__search-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.book-audio-table__text .book-content-search__mark {
  background: #fff3bf;
  color: inherit;
  padding: 0;
}

.book-audio-table__text .book-content-search__mark--active {
  background: #ffd43b;
  outline: 0.1rem solid #f08c00;
}

.publicant-app .button-outline.book-audio-editor__danger-button {
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.35);
  background-color: transparent;
}

.publicant-app .button-outline.book-audio-editor__danger-button:hover,
.publicant-app .button-outline.book-audio-editor__danger-button:focus-visible {
  color: #962d22;
  border-color: #c0392b;
  background-color: rgba(192, 57, 43, 0.06);
}

.publicant-app .button-outline.book-content-footnote-dialog__delete {
  color: #842029;
  border-color: #f5c2c7;
  background-color: transparent;
}

.publicant-app .button-outline.book-content-footnote-dialog__delete:hover,
.publicant-app .button-outline.book-content-footnote-dialog__delete:focus-visible {
  color: #842029;
  border-color: #842029;
  background-color: rgba(132, 32, 41, 0.06);
}

.book-audio-tts-single-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  background: rgba(0, 0, 0, 0.45);
}

.book-audio-tts-single-dialog[hidden] {
  display: none !important;
}

.book-audio-tts-single-dialog__panel {
  width: min(40rem, 100%);
  padding: 2rem;
  border-radius: 0.6rem;
  background: var(--publicant-surface);
  border: 0.1rem solid var(--publicant-border);
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.18);
}

.book-audio-tts-single-dialog__title {
  margin: 0 0 1.2rem;
  font-size: 1.8rem;
}

.book-audio-tts-single-dialog__preview {
  margin: 0 0 1.2rem;
  line-height: 1.5;
  word-break: break-word;
}

.book-audio-tts-single-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.book-audio-tts-dialog,
.book-audio-tts-progress {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  background: rgba(0, 0, 0, 0.45);
}

.book-audio-tts-dialog[hidden],
.book-audio-tts-progress[hidden] {
  display: none !important;
}

.book-audio-tts-dialog__panel,
.book-audio-tts-progress__panel {
  width: min(48rem, 100%);
  max-height: min(90vh, 100%);
  overflow: auto;
  padding: 2rem;
  border-radius: 0.6rem;
  background: var(--publicant-surface);
  border: 0.1rem solid var(--publicant-border);
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.18);
}

.book-audio-tts-dialog__title,
.book-audio-tts-progress__title {
  margin: 0 0 1.2rem;
  font-size: 1.8rem;
}

.book-audio-tts-dialog__warning,
.book-audio-tts-dialog__context,
.book-audio-tts-dialog__plan,
.book-audio-tts-progress__status {
  margin: 0 0 1.2rem;
  line-height: 1.5;
}

.book-audio-tts-dialog__modes {
  margin: 0 0 1.2rem;
  padding: 0;
  border: 0;
}

.book-audio-tts-dialog__legend {
  margin-bottom: 0.8rem;
  font-weight: var(--publicant-font-weight-heading);
}

.book-audio-tts-dialog__mode {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.book-audio-tts-dialog__mode input[disabled] + span {
  opacity: 0.55;
}

.book-audio-tts-dialog__range,
.book-audio-tts-dialog__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.book-audio-tts-dialog__range[hidden] {
  display: none !important;
}

.book-audio-tts-dialog__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.book-audio-tts-dialog__field input,
.book-audio-tts-dialog__field select {
  width: 100%;
}

.book-audio-tts-dialog__plan {
  padding: 1rem;
  border-radius: 0.4rem;
  background: var(--publicant-bg);
  white-space: pre-wrap;
}

.book-audio-tts-dialog__error {
  margin-bottom: 1.2rem;
  color: #c0392b;
}

.book-audio-tts-dialog__actions,
.book-audio-tts-progress__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.book-audio-tts-progress__bar {
  height: 0.8rem;
  margin-bottom: 1.2rem;
  border-radius: 999px;
  background: var(--publicant-bg);
  overflow: hidden;
}

.book-audio-tts-progress__bar-fill {
  width: 0;
  height: 100%;
  background: var(--publicant-accent, #2f6fed);
  transition: width 0.2s ease;
}

.book-audio-tts-progress__errors {
  margin: 0 0 1.2rem 1.2rem;
  color: #c0392b;
}

.book-audio-editor__table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-surface);
}

.book-audio-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 56rem;
  table-layout: fixed;
}

.book-audio-table th,
.book-audio-table td {
  padding: 1.2rem 1.6rem;
  border-bottom: 0.1rem solid var(--publicant-border);
  text-align: left;
  vertical-align: top;
}

.book-audio-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-weight: var(--publicant-font-weight-heading);
  background: var(--publicant-bg);
  box-shadow: 0 0.1rem 0 var(--publicant-border);
}

.book-audio-table tbody tr:last-child td {
  border-bottom: none;
}

.book-audio-table__col-sn {
  width: 6.75rem;
  white-space: nowrap;
}

.book-audio-table__col-audio {
  width: min(30.25rem, 38vw);
}

.book-audio-table__sn {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.book-audio-table__sn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.book-audio-table__sn-badge--stale {
  background: #c62828;
  color: #fff;
}

.book-audio-table__text {
  white-space: pre-wrap;
  word-break: break-word;
}

.book-audio-table__file-name {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  color: var(--publicant-muted);
  word-break: break-all;
}

.book-audio-table__player {
  display: block;
  width: 100%;
  max-width: 30.25rem;
}

.book-audio-table__empty-audio {
  color: var(--publicant-muted);
}

.book-audio-table__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.book-audio-table__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--publicant-icon-button-size);
  height: var(--publicant-icon-button-size);
  margin: 0;
  padding: 0;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: var(--publicant-surface);
  color: var(--publicant-muted);
  cursor: pointer;
}

.book-audio-table__icon-button:hover:not(:disabled) {
  border-color: var(--publicant-brand);
  color: var(--publicant-brand);
}

.book-audio-table__icon-button:focus-visible:not(:disabled) {
  border-color: var(--publicant-brand);
  color: var(--publicant-brand);
  outline: 0.2rem solid rgba(0, 51, 102, 0.35);
  outline-offset: 0.2rem;
}

.book-audio-table__icon-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.book-audio-table__icon-button--danger:hover:not(:disabled) {
  border-color: #842029;
  color: #842029;
}

.book-audio-editor__load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.6rem 0 0.4rem;
}

.book-audio-editor__load-more-status {
  color: var(--publicant-muted);
  font-size: 1.3rem;
}

.book-audio-editor__load-sentinel {
  height: 0.1rem;
}

.book-audio-editor__file-input {
  display: none;
}

.book-audio-editor__scroll-top {
  position: absolute;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--publicant-icon-button-size);
  height: var(--publicant-icon-button-size);
  margin: 0;
  padding: 0;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 999px;
  background: var(--publicant-surface);
  color: var(--publicant-text);
  box-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.book-audio-editor__scroll-top[hidden] {
  display: none !important;
}

.book-audio-editor__scroll-top:hover,
.book-audio-editor__scroll-top:focus-visible {
  border-color: var(--publicant-brand);
  color: var(--publicant-brand);
}

.book-audio-editor__scroll-top svg {
  display: block;
  width: 2rem;
  height: 2rem;
}

@media (max-width: 767px) {

  .book-audio-table {
    min-width: 0;
    table-layout: auto;
  }

  .book-audio-table thead {
    display: none;
  }

  .book-audio-table tbody tr {
    display: block;
    padding: 1.2rem var(--publicant-mobile-inset);
    border-bottom: 0.1rem solid var(--publicant-border);
  }

  .book-audio-table tbody tr:last-child {
    border-bottom: none;
  }

  .book-audio-table tbody td {
    display: block;
    padding: 0;
    border-bottom: none;
  }

  .book-audio-table__sn {
    margin-bottom: 0.4rem;
    color: var(--publicant-muted);
    font-size: 1.3rem;
  }

  .book-audio-table__text {
    margin-bottom: 0.8rem;
  }

  .book-audio-table__audio {
    width: 100%;
  }

  .book-audio-table__col-audio,
  .book-audio-table__player {
    max-width: none;
    width: 100%;
  }

  .book-audio-table__actions {
    justify-content: flex-end;
    margin-top: 0.8rem;
  }
}

.books-page__error {
  margin-bottom: 1.6rem;
  padding: 1.2rem 1.6rem;
  border-radius: 0.4rem;
  border: 0.1rem solid #f5c2c7;
  background: #f8d7da;
  color: #842029;
}

.books-page__reorder-error {
  margin-top: 1.6rem;
  padding: 1.2rem 1.6rem;
  border-radius: 0.4rem;
  border: 0.1rem solid #f5c2c7;
  background: #f8d7da;
  color: #842029;
}

.books-page__reorder-error[hidden] {
  display: none !important;
}

.books-page__sections {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.books-section__title {
  margin: 0 0 1.6rem;
  font-size: 2rem;
  font-weight: var(--publicant-font-weight-heading);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(0, 180px));
  gap: 2rem;
}

.book-card {
  display: block;
  width: 100%;
  max-width: 180px;
  cursor: grab;
  text-decoration: none;
  color: inherit;
  border-radius: 0.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.book-card:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.08);
}

.book-card:focus-visible {
  outline: 0.2rem solid var(--publicant-brand);
  outline-offset: 0.2rem;
}

.book-card.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.book-card.is-drag-over {
  outline: 0.2rem solid var(--publicant-brand);
  outline-offset: 0.2rem;
}

.book-card__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 2.75;
  margin-bottom: 1.2rem;
  border-radius: 0.4rem;
  overflow: hidden;
  background: var(--publicant-bg);
  border: 0.1rem solid var(--publicant-border);
}

.book-card__llm-chip {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.book-card__audio-chip {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  pointer-events: none;
}

.book-card__audio-chip-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.book-card__audio-chip--stale {
  background: #c62828;
  color: #fff;
}

.book-content-stale-audio-dialog,
.book-content-stale-audio-voice-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  background: rgba(0, 0, 0, 0.45);
}

.book-content-stale-audio-dialog[hidden],
.book-content-stale-audio-voice-dialog[hidden] {
  display: none;
}

.book-content-stale-audio-dialog__panel,
.book-content-stale-audio-voice-dialog__panel {
  width: min(100%, 52rem);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 2rem;
  border-radius: 1.2rem;
  background: var(--publicant-surface, #fff);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.18);
}

.book-content-stale-audio-dialog__title,
.book-content-stale-audio-voice-dialog__title {
  margin: 0 0 1.2rem;
  font-size: 2rem;
}

.book-content-stale-audio-dialog__assets {
  margin: 0 0 1.2rem;
  color: var(--publicant-muted);
}

.book-content-stale-audio-dialog__list {
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.book-content-stale-audio-dialog__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.book-content-stale-audio-dialog__item label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.book-content-stale-audio-dialog__actions,
.book-content-stale-audio-voice-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}

.book-content-stale-audio-dialog__error {
  margin-bottom: 1rem;
  color: #c62828;
}

.book-content-stale-audio-voice-dialog__context {
  margin: 0 0 1rem;
}

.book-content-stale-audio-voice-dialog__apply-all {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 1.4rem;
}

.book-card__cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.book-card__cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: transparent;
}

.book-card__cover-icon {
  display: block;
  width: 4.8rem;
  height: 4.8rem;
  max-width: min(200px, 100%);
  max-height: 100%;
  color: #b0b0b0;
  flex-shrink: 0;
}

.book-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
  font-weight: var(--publicant-font-weight-heading);
  line-height: 1.35;
}

.book-card__year {
  margin: 0;
  color: var(--publicant-muted);
  font-size: 1.4rem;
}

.book-card__year+.book-card__year {
  margin-top: 0.4rem;
}

.page-stub__back {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 0;
}

.page-stub__back .button {
  text-decoration: none;
}

.book-cover-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: start;
}

@media (min-width: 768px) {
  .book-cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.book-cover-grid .profile-field-card {
  height: 100%;
}

.book-cover-card__view {
  display: flex;
  justify-content: center;
}

.book-cover-card__cover-wrap,
.book-cover-placeholder-card__preview {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 2 / 2.75;
  box-sizing: border-box;
}

.book-cover-placeholder-card__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 0.4rem;
  border: 0.1rem solid var(--publicant-border);
  overflow: hidden;
  background-color: var(--cover-preview-bg, var(--publicant-surface));
  color: var(--cover-preview-text, var(--publicant-text));
}

.book-cover-card__avatar-editor {
  align-items: center;
}

.book-cover-card__editor .profile-field-card__actions {
  justify-content: center;
}

.book-cover-card__editor-preview {
  width: 150px;
  max-width: 150px;
  height: auto;
  aspect-ratio: 2 / 2.75;
  object-fit: contain;
  object-position: center;
  border-radius: 0.4rem;
  border: 0.1rem solid var(--publicant-border);
  background: var(--publicant-bg);
}

.book-cover-placeholder-card__view {
  display: flex;
  justify-content: center;
}

.book-cover-placeholder-card__preview-title {
  display: block;
  max-width: 100%;
  font-size: 1.4rem;
  font-weight: var(--publicant-font-weight-heading);
  line-height: 1.35;
  text-align: center;
  word-break: break-word;
}

.book-cover-placeholder-card__pickers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.6rem;
  justify-content: center;
}

.book-cover-placeholder-card__editor .profile-field-card__actions {
  justify-content: center;
}

.book-cover-placeholder-card__picker {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.book-cover-placeholder-card__picker-label {
  font-weight: var(--publicant-font-weight-muted);
}

.book-cover-placeholder-card__color-input {
  display: block;
  width: 250px;
  height: 250px;
  padding: 0;
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.4rem;
  background: none;
  cursor: pointer;
}

.book-cover-placeholder-card__color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.book-cover-placeholder-card__color-input::-webkit-color-swatch {
  border: none;
  border-radius: 0.3rem;
}

.book-cover-placeholder-card__color-input::-moz-color-swatch {
  border: none;
  border-radius: 0.3rem;
}

/* Tilda icons */
.tilda-icon {
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
  flex-shrink: 0;
}

.tilda-icon--sm {
  width: 1.8rem;
  height: 1.8rem;
}

.tilda-icon--md {
  width: 2rem;
  height: 2rem;
}

.tilda-icon--inline {
  display: inline-block;
  vertical-align: middle;
}

.tilda-icons-sprite {
  display: none;
}

.app-attribution {
  margin: 0;
  padding: 0.8rem 1.6rem calc(1.2rem + var(--publicant-safe-bottom));
  color: var(--publicant-muted);
  font-size: 1.1rem;
  text-align: center;
}

.app-attribution a {
  color: inherit;
}

/* Pell rich-text editor (v1.0.6) */
.pell {
  border: 0.1rem solid hsla(0, 0%, 4%, 0.1);
  box-sizing: border-box;
}

.pell-content {
  box-sizing: border-box;
  height: 30rem;
  outline: 0;
  overflow-y: auto;
  padding: 1rem;
}

.pell-actionbar {
  background-color: #fff;
  border-bottom: 0.1rem solid hsla(0, 0%, 4%, 0.1);
}

.pell-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  height: 2.8rem;
  outline: 0;
  width: 2.8rem;
  vertical-align: bottom;
}

.pell-button-selected {
  background-color: #f0f0f0;
}

.book-comments-page {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.book-comments-section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.book-comments-section__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.book-comments-section__empty {
  margin: 0;
  color: var(--publicant-muted);
}

.book-comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.book-comments-card {
  border: 0.1rem solid var(--publicant-border);
  border-radius: 0.6rem;
  background: var(--publicant-surface);
  padding: 1.4rem 1.6rem;
}

.book-comments-card__text {
  margin: 0 0 1rem;
  font-size: 2rem;
  white-space: pre-wrap;
}

.book-comments-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  color: var(--publicant-muted);
  font-size: 1.3rem;
}

.book-comments-card__author {
  font-weight: 500;
  color: var(--publicant-text);
}

.book-comments-card__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 500;
  white-space: nowrap;
}

.book-comments-card__chip--privacy {
  color: var(--publicant-muted);
  background: var(--publicant-bg);
  border: 0.1rem solid var(--publicant-border);
}

.book-comments-card--paragraph {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.book-comments-card__paragraph-field {
  margin: 0;
  border: none;
  border-radius: 0;
  border-top: 0.1rem solid var(--publicant-border);
}

.book-comments-card__paragraph-value {
  line-height: 1.6;
}

.book-comments-card__paragraph-value p,
.book-comments-card__paragraph-value h2,
.book-comments-card__paragraph-value h3 {
  margin: 0;
}

.book-comments-card__comment-block {
  padding: 1.4rem 1.6rem;
}

.book-comments-card__comment-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.book-comments-card__comment-body .book-comments-card__text {
  margin: 0;
}

.book-comments-card__comment-body .book-comments-card__meta {
  margin: 0;
}

.book-comments-card__response-field {
  margin: 1.2rem -1.6rem -1.4rem;
  border: none;
  border-radius: 0;
  border-top: 0.1rem solid var(--publicant-border);
}

.book-comments-paragraph-dialog {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}

.book-comments-paragraph-dialog[hidden] {
  display: none;
}

.book-comments-paragraph-dialog__panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(96vw, 72rem);
  max-height: min(90vh, 80rem);
  display: flex;
  flex-direction: column;
  border-radius: 0.8rem;
  background: var(--publicant-surface);
  border: 0.1rem solid var(--publicant-border);
  box-shadow: 0 1.6rem 4.8rem rgba(0, 0, 0, 0.22);
  pointer-events: auto;
}

.book-comments-paragraph-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  border-bottom: 0.1rem solid var(--publicant-border);
  cursor: move;
  user-select: none;
}

.book-comments-paragraph-dialog__title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 600;
}

.book-comments-paragraph-dialog__close {
  border: none;
  background: transparent;
  color: var(--publicant-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
}

.book-comments-paragraph-dialog__editor {
  margin: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.book-comments-paragraph-dialog__pell.book-content-editor__pell .pell-actionbar {
  background: var(--publicant-bg);
}

.book-comments-paragraph-dialog__pell {
  min-height: 24rem;
  display: flex;
  flex-direction: column;
}

.book-comments-paragraph-dialog__pell .pell-content {
  min-height: 18rem;
  max-height: 50vh;
  overflow-y: auto;
}

.book-comments-paragraph-dialog__message {
  margin: 0 1.6rem;
}

.book-comments-paragraph-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
  padding: 1.2rem 1.6rem 1.6rem;
  border-top: 0.1rem solid var(--publicant-border);
}

.book-comments-integrity-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  background: rgba(0, 0, 0, 0.45);
}

.book-comments-integrity-dialog[hidden] {
  display: none;
}

.book-comments-integrity-dialog__panel {
  width: min(100%, 52rem);
  padding: 2rem;
  border-radius: 0.8rem;
  background: var(--publicant-surface);
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.18);
}

.book-comments-integrity-dialog__title {
  margin: 0 0 1rem;
  font-size: 1.8rem;
}

.book-comments-integrity-dialog__text {
  margin: 0 0 1.6rem;
  line-height: 1.5;
}

.book-comments-integrity-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

@media (max-width: 959px) {
  :root {
    --publicant-mobile-inset: 1.6rem;
  }

  .app-header__inner.container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .publicant-app .container:not(:has(.login-page)) {
    padding-left: 0;
    padding-right: 0;
  }

  .app-main:not(:has(.login-page)) {
    padding-bottom: calc(var(--publicant-bottom-nav-height) + var(--publicant-safe-bottom));
  }

  .app-content:not(:has(.login-page)) {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: 0;
  }

  .app-content:has(.login-page) {
    margin: var(--publicant-wrap-padding);
  }

  .page-stub,
  .login-page {
    max-width: none;
  }

  .app-content:not(:has(.login-page)) :is(.page-stub__header,
    .books-page__header,
    .dashboard-page__header,
    .profile-page__header,
    .statistics-page__header,
    .book-audio-editor__header,
    .book-content-editor .page-stub__header) {
    padding-left: 16px;
    padding-right: 16px;
  }

  .app-content:not(:has(.login-page)) :is(.page-stub__subtitle,
    .profile-page__intro,
    .profile-page__error,
    .books-page__intro,
    .books-page__empty,
    .books-page__error,
    .books-page__reorder-error,
    .dashboard-page__subtitle,
    .dashboard-page__error,
    .dashboard-page__placeholder,
    .statistics-page__heading,
    .statistics-page__intro,
    .statistics-page__empty,
    .statistics-page__error,
    .book-editor-nav,
    .book-audio-editor__empty,
    .book-audio-editor__message,
    .book-audio-editor__back,
    .book-audio-editor__assets-card,
    .catalog-search-page__toolbar,
    .cover-generation-page__toolbar,
    .books-section__title,
    .catalog-search-section__header,
    .book-comments-section__title,
    .book-comments-section__empty,
    .app-flash,
    .book-editor-stub .profile-page__error) {
    padding-left: var(--publicant-mobile-inset);
    padding-right: var(--publicant-mobile-inset);
  }

  .app-content:not(:has(.login-page)) :is(.profile-field-card,
    .dashboard-stat-card,
    .book-copies-chart-card,
    .statistics-page__table-wrap,
    .catalog-item-card,
    .catalog-synopsis-card,
    .book-audio-editor__table-wrap,
    .book-comments-card,
    .cover-generation-gallery,
    .book-analytic-overlay__panel) {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .cover-generation-form {
    padding-left: var(--publicant-mobile-inset);
    padding-right: var(--publicant-mobile-inset);
  }

  .app-main:has(.book-audio-editor__workspace).container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  .app-content:has(.book-audio-editor__workspace) {
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  .book-audio-editor__workspace {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .book-audio-editor__table-wrap {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .app-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .app-nav-item+.app-nav-item {
    margin-top: 0;
  }

  .page-stub__header-actions {
    flex-wrap: wrap;
  }

  .books-grid {
    grid-template-columns: repeat(auto-fit, 180px);
    justify-content: center;
  }

  .page-body-nav {
    display: none !important;
  }

  .book-content-editor__panel-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
  }

  .book-content-editor__panel-nav {
    flex: 0 0 auto;
    gap: 0.4rem;
  }

  .book-content-editor__search {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
    position: relative;
  }

  .book-content-editor__search-field {
    flex: 1 1 auto;
    min-width: 0;
  }

  .book-content-editor__search-input {
    min-height: var(--publicant-icon-button-size);
    height: var(--publicant-icon-button-size);
    font-size: 1.4rem;
  }

  .book-content-editor__toc-toggle,
  .book-content-editor__footnotes-toggle,
  .book-content-editor__search-submit {
    width: var(--publicant-icon-button-size);
    min-width: var(--publicant-icon-button-size);
    height: var(--publicant-icon-button-size);
    min-height: var(--publicant-icon-button-size);
  }

  .book-content-editor__search-results {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    z-index: 25;
    padding: 0.4rem 0.6rem;
    border: 0.1rem solid var(--publicant-border);
    border-radius: 0.4rem;
    background: var(--publicant-surface);
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.12);
  }

  .book-content-editor .page-stub__header {
    margin-bottom: 0.8rem;
    padding-left: 16px;
    padding-right: 16px;
  }
}