:root {
  --granatello-radius: 0px;
  --granatello-shadow: 0 25px 80px rgba(0, 0, 0, 0.48);
  --granatello-soft-line: rgba(255, 255, 255, 0.08);
  --granatello-soft-line-strong: rgba(255, 255, 255, 0.14);
  --granatello-toolbar-bg: rgba(14, 14, 14, 0.92);
  --granatello-panel-bg: rgba(255, 255, 255, 0.045);
  --granatello-panel-bg-strong: rgba(255, 255, 255, 0.08);
  --granatello-control-height: 38px;
}

.granatello-flipbook-root {
  width: 100%;
  position: relative;
  color: #f3f5f8;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  contain: layout style;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
  overflow-anchor: none;
  isolation: isolate;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(139, 211, 255, 0.12), transparent 28%),
    linear-gradient(145deg, #020202, #171717);
}

.granatello-flipbook-shell {
  min-height: 0;
  height: auto;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border-radius: var(--granatello-radius);
  border: 1px solid var(--granatello-soft-line);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(139, 211, 255, 0.12), transparent 28%),
    linear-gradient(145deg, var(--granatello-bg-start, #020202), var(--granatello-bg-end, #171717));
  box-shadow: var(--granatello-shadow);
}

.granatello-flipbook-header {
  padding: 12px 16px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
}

.granatello-branding {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.granatello-book-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.granatello-meta,
.granatello-meta a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.82rem;
}

.granatello-flipbook-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 10px;
  padding: 0 10px 10px;
  align-items: stretch;
}

.granatello-stage-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  contain: layout paint;
  overflow-anchor: none;
}

.granatello-stage-scroll {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  padding: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translateZ(0);
  overflow-anchor: none;
  scroll-behavior: auto;
}

.granatello-stage-scale {
  width: 100%;
  min-width: fit-content;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform-origin: center center;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  padding-block: 0;
}

.granatello-book-stage {
  position: relative;
  width: min(100%, 1600px);
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  perspective: 3200px;
  transform-style: preserve-3d;
  transform: translateZ(0);
}

.granatello-book {
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  will-change: transform;
}

.granatello-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: opacity 220ms ease;
}

.granatello-loading-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.granatello-loading-overlay.is-error {
  color: #ffb8b8;
}

.granatello-page {
  background: linear-gradient(180deg, #ffffff, #f1f1f1);
  color: #121212;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.granatello-page-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fcfcfc, #efefef);
}

.granatello-page-canvas-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.05), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.05)),
    linear-gradient(180deg, #fff, #f6f6f6);
}

.granatello-page-canvas,
.granatello-thumb-canvas {
  display: block;
  width: 100%;
  height: auto;
  backface-visibility: hidden;
  image-rendering: auto;
  transform: translateZ(0);
}

.granatello-page-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.45);
  font-size: 0.95rem;
}

.granatello-page-footer {
  padding: 9px 12px 11px;
  text-align: right;
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.65);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.granatello-side-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.granatello-side-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.granatello-side-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  color: #fff;
  min-height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.granatello-side-tab:hover,
.granatello-side-tab:focus-visible,
.granatello-side-tab.is-active {
  transform: translateY(-1px);
  border-color: var(--granatello-accent, #8bd3ff);
  background: linear-gradient(180deg, rgba(139, 211, 255, 0.18), rgba(139, 211, 255, 0.06));
  box-shadow: 0 0 0 3px rgba(139, 211, 255, 0.1);
  outline: none;
}

.granatello-thumbnails-panel,
.granatello-outline-panel {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 8px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.granatello-thumb {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;
  margin: 0 0 10px;
  padding: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.granatello-thumb:hover,
.granatello-thumb.is-active {
  transform: translateY(-1px);
  border-color: var(--granatello-accent, #8bd3ff);
  background: rgba(139, 211, 255, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.granatello-thumb-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
}

.granatello-outline-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.granatello-outline-item {
  appearance: none;
  width: 100%;
  text-align: left;
  color: #fff;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 10px 10px calc(10px + (var(--granatello-outline-depth, 0) * 10px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.granatello-outline-item:hover,
.granatello-outline-item:focus-visible,
.granatello-outline-item.is-active {
  transform: translateY(-1px);
  border-color: var(--granatello-accent, #8bd3ff);
  background: rgba(139, 211, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  outline: none;
}

.granatello-outline-title {
  min-width: 0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.granatello-outline-page {
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.66);
}

.granatello-outline-empty {
  padding: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  line-height: 1.5;
}

.granatello-toolbar {
  display: grid;
  grid-template-columns: auto auto auto minmax(240px, 1.1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.18));
}

.granatello-toolbar-outside-viewer {
  margin: 0;
  flex: 0 0 auto;
  border: 1px solid var(--granatello-soft-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.14)),
    linear-gradient(145deg, var(--granatello-bg-start, #020202), var(--granatello-bg-end, #171717));
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  z-index: 45;
  position: sticky;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.granatello-toolbar-outside-viewer::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  pointer-events: none;
}

.granatello-toolbar.is-sticky-top {
  top: 0;
}

.granatello-toolbar.is-sticky-bottom {
  bottom: 0;
}

.granatello-flipbook-root.granatello-toolbar-position-top .granatello-toolbar {
  order: -1;
  border-bottom-width: 1px;
}

.granatello-flipbook-root.granatello-toolbar-position-top .granatello-flipbook-shell {
  border-top-width: 0;
}

.granatello-flipbook-root.granatello-toolbar-position-bottom .granatello-flipbook-shell {
  border-bottom-width: 0;
}

.granatello-flipbook-root.granatello-toolbar-position-bottom .granatello-toolbar {
  order: 2;
}

.granatello-toolbar-group {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 0;
  background: rgba(12, 12, 12, var(--granatello-toolbar-opacity, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.granatello-toolbar-search {
  min-width: 0;
  gap: 8px;
}

.granatello-toolbar-nav {
  justify-self: start;
}

.granatello-toolbar-page-selector {
  justify-self: start;
}

.granatello-toolbar-zoom {
  justify-self: start;
}

.granatello-toolbar-actions {
  justify-self: start;
}

.granatello-toolbar-counter {
  justify-self: end;
}

.granatello-btn,
.granatello-toolbar select,
.granatello-page-input,
.granatello-search-input {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: #fff;
  border-radius: 0;
  min-height: var(--granatello-control-height);
  padding: 0 12px;
  font-size: 0.88rem;
  text-decoration: none;
}

.granatello-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, opacity 160ms ease;
}

.granatello-btn:hover,
.granatello-btn:focus-visible,
.granatello-btn.is-active {
  transform: translateY(-1px);
  border-color: var(--granatello-accent, #8bd3ff);
  box-shadow: 0 0 0 3px rgba(139, 211, 255, 0.12);
  outline: none;
}

.granatello-btn.is-active {
  background: linear-gradient(180deg, rgba(139, 211, 255, 0.24), rgba(139, 211, 255, 0.08));
}

.granatello-btn.is-disabled,
.granatello-btn:disabled {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.granatello-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: currentColor;
}

.granatello-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.granatello-btn-label,
.granatello-side-tab-label {
  min-width: 0;
}

.granatello-toolbar-page-selector label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.granatello-toolbar-page-selector span,
.granatello-page-total,
.granatello-counter-label,
.granatello-search-status {
  font-size: 0.82rem;
}

.granatello-page-input {
  width: 78px;
}

.granatello-search-input {
  width: min(240px, 100%);
  min-width: 0;
}

.granatello-search-status {
  min-width: 0;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.68);
}

.granatello-counter-label {
  white-space: nowrap;
}

.granatello-flipbook-root.granatello-ui-mode-minimal .granatello-flipbook-header {
  padding-bottom: 6px;
}

.granatello-flipbook-root.granatello-ui-mode-minimal .granatello-btn-label,
.granatello-flipbook-root.granatello-ui-mode-minimal .granatello-counter-label,
.granatello-flipbook-root.granatello-ui-mode-minimal .granatello-side-tab-label,
.granatello-flipbook-root.granatello-ui-mode-minimal .granatello-toolbar-page-selector > .granatello-page-total {
  display: none;
}

.granatello-flipbook-root.granatello-ui-mode-minimal .granatello-toolbar {
  grid-template-columns: auto auto auto minmax(170px, 1fr) auto;
}

.granatello-flipbook-root.granatello-ui-mode-minimal .granatello-toolbar-group {
  padding: 5px 6px;
  gap: 5px;
}

.granatello-flipbook-root.granatello-ui-mode-minimal .granatello-btn,
.granatello-flipbook-root.granatello-ui-mode-minimal .granatello-toolbar select,
.granatello-flipbook-root.granatello-ui-mode-minimal .granatello-page-input,
.granatello-flipbook-root.granatello-ui-mode-minimal .granatello-search-input {
  min-height: 34px;
  padding: 0 10px;
}

.granatello-flipbook-root.granatello-ui-mode-minimal .granatello-side-panel {
  gap: 6px;
}

.granatello-flipbook-error {
  padding: 18px;
  border-radius: 0;
  color: #fff;
  background: #751616;
}

.granatello-flipbook-shell,
.granatello-stage-wrap,
.granatello-thumbnails-panel,
.granatello-outline-panel,
.granatello-toolbar,
.granatello-toolbar-group,
.granatello-btn,
.granatello-toolbar select,
.granatello-page-input,
.granatello-search-input,
.granatello-thumb,
.granatello-page,
.granatello-page-inner,
.granatello-flipbook-error,
.granatello-side-tab,
.granatello-outline-item {
  border-radius: 0 !important;
}

.granatello-flipbook-root.is-refreshing .granatello-stage-scale,
.granatello-flipbook-root.is-refreshing .stf__wrapper,
.granatello-flipbook-root.is-refreshing .stf__block {
  transition: none !important;
}

.granatello-flipbook-root.is-fullscreen,
.granatello-flipbook-root.is-embedded {
  height: 100vh !important;
  min-height: 100vh !important;
}

.granatello-flipbook-root.is-fullscreen.granatello-toolbar-position-top .granatello-flipbook-shell,
.granatello-flipbook-root.is-embedded.granatello-toolbar-position-top .granatello-flipbook-shell {
  border-top-width: 0;
}

.granatello-flipbook-root.is-fullscreen .granatello-flipbook-shell,
.granatello-flipbook-root.is-embedded .granatello-flipbook-shell {
  height: auto;
  min-height: 0;
  border-radius: 0;
  border-width: 0;
  box-shadow: none;
}

.granatello-flipbook-root.is-embedded .granatello-flipbook-body,
.granatello-flipbook-root.is-fullscreen .granatello-flipbook-body {
  padding: 0 6px 6px;
}

.granatello-flipbook-root.is-embedded .granatello-flipbook-header,
.granatello-flipbook-root.is-fullscreen .granatello-flipbook-header {
  padding: 8px 10px 6px;
}

.granatello-flipbook-root .stf__parent {
  margin: 0 auto;
  transform: translateZ(0);
  will-change: transform;
}

.granatello-flipbook-root .stf__wrapper {
  filter: drop-shadow(0 20px 42px rgba(0, 0, 0, 0.34));
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.granatello-flipbook-root .stf__block,
.granatello-flipbook-root .stf__item {
  background: transparent;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.granatello-flipbook-root.granatello-no-sidebar .granatello-flipbook-body,
.granatello-flipbook-root.granatello-no-thumbs .granatello-flipbook-body {
  grid-template-columns: 1fr;
}

.granatello-flipbook-root.granatello-no-sidebar .granatello-stage-wrap,
.granatello-flipbook-root.granatello-no-thumbs .granatello-stage-wrap {
  min-width: 0;
}

.granatello-block-editor-preview {
  min-height: 180px;
}

@media (hover: hover) and (pointer: fine) {
  .granatello-btn:hover,
  .granatello-btn:focus-visible,
  .granatello-btn.is-active,
  .granatello-thumb:hover,
  .granatello-thumb.is-active,
  .granatello-side-tab:hover,
  .granatello-side-tab.is-active,
  .granatello-outline-item:hover,
  .granatello-outline-item.is-active {
    transform: translateY(-1px);
  }
}

@media (hover: none), (pointer: coarse) {
  .granatello-btn,
  .granatello-thumb,
  .granatello-stage-scale,
  .granatello-side-tab,
  .granatello-outline-item {
    transition-duration: 120ms;
  }

  .granatello-btn:hover,
  .granatello-thumb:hover,
  .granatello-side-tab:hover,
  .granatello-outline-item:hover {
    transform: none;
  }
}

@media (max-width: 1280px) {
  .granatello-toolbar {
    grid-template-columns: auto auto auto minmax(180px, 1fr) auto;
  }

  .granatello-toolbar-counter {
    display: none;
  }
}

@media (max-width: 1100px) {
  .granatello-flipbook-body {
    grid-template-columns: 1fr;
  }

  .granatello-side-panel {
    order: 2;
  }

  .granatello-thumbnails-panel,
  .granatello-outline-panel {
    max-height: 210px;
  }

  .granatello-thumbnails-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
  }

  .granatello-thumb {
    margin: 0;
  }

  .granatello-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .granatello-toolbar-group {
    width: 100%;
    justify-self: stretch;
  }

  .granatello-toolbar-search {
    grid-column: 1 / -1;
  }

  .granatello-toolbar-counter {
    grid-column: 1 / -1;
    justify-content: center;
    display: inline-flex;
  }

  .granatello-flipbook-root.granatello-ui-mode-minimal .granatello-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .granatello-flipbook-root {
    min-height: 100vh;
  }

  .granatello-flipbook-header {
    padding: 12px 14px 8px;
  }

  .granatello-flipbook-body {
    padding: 0 10px 10px;
    gap: 8px;
  }

  .granatello-stage-scroll {
    padding: 6px;
  }

  .granatello-side-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .granatello-thumbnails-panel,
  .granatello-outline-panel {
    max-height: 34vh;
  }

  .granatello-toolbar {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px;
  }

  .granatello-toolbar.is-sticky-bottom {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .granatello-toolbar-group {
    min-width: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px 6px;
  }

  .granatello-toolbar-nav {
    order: 1;
  }

  .granatello-toolbar-actions {
    order: 2;
  }

  .granatello-toolbar-zoom {
    order: 3;
  }

  .granatello-toolbar-page-selector {
    order: 4;
  }

  .granatello-toolbar-search {
    order: 5;
    grid-column: 1 / -1;
  }

  .granatello-toolbar-counter {
    order: 6;
    grid-column: 1 / -1;
  }

  .granatello-btn,
  .granatello-toolbar select,
  .granatello-page-input,
  .granatello-search-input {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .granatello-search-input {
    width: 100%;
  }

  .granatello-toolbar-search {
    justify-content: stretch;
  }

  .granatello-search-status {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .granatello-toolbar-page-selector label {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .granatello-page-total,
  .granatello-counter-label {
    font-size: 0.78rem;
  }

  .granatello-page-input {
    width: 72px;
  }

  .granatello-flipbook-root.granatello-ui-mode-minimal .granatello-toolbar-search {
    grid-column: 1 / -1;
  }

  .granatello-flipbook-root.granatello-ui-mode-minimal .granatello-page-total,
  .granatello-flipbook-root.granatello-ui-mode-minimal .granatello-counter-label {
    display: none;
  }
}

.granatello-toolbar-rail-toggle {
  justify-self: start;
}

.granatello-toolbar-toggle-btn {
  min-width: 44px;
}

.granatello-toolbar.is-sticky-left {
  top: 0;
  left: 0;
}

.granatello-flipbook-root.granatello-toolbar-left-fallback-top .granatello-toolbar {
  order: -1;
}

.granatello-flipbook-root.granatello-toolbar-left-fallback-top .granatello-flipbook-shell {
  border-top-width: 0;
}

.granatello-flipbook-root.granatello-toolbar-left-mode {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
}

.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-flipbook-shell {
  min-width: 0;
  border-left-width: 0;
}

.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-toolbar {
  order: 0;
  width: 228px;
  height: 100%;
  min-height: 100%;
  grid-template-columns: 1fr;
  align-content: start;
  align-items: stretch;
  gap: 8px;
  padding: 10px 8px;
  border-right-width: 1px;
  box-shadow: 12px 0 24px rgba(0, 0, 0, 0.22);
  transition: width 180ms cubic-bezier(0.22, 1, 0.36, 1), padding 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-toolbar-outside-viewer::after {
  inset: 0 0 0 auto;
  width: 1px;
  height: auto;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-toolbar-group {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  white-space: normal;
  padding: 6px;
}

.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-toolbar-nav,
.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-toolbar-page-selector,
.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-toolbar-zoom,
.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-toolbar-search,
.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-toolbar-actions,
.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-toolbar-counter,
.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-toolbar-rail-toggle {
  justify-self: stretch;
}

.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-btn,
.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-toolbar select,
.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-page-input,
.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-search-input {
  width: 100%;
  justify-content: flex-start;
}

.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-toolbar-page-selector label {
  width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-search-input,
.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-search-status {
  width: 100%;
  max-width: none;
}

.granatello-flipbook-root.granatello-toolbar-left-mode .granatello-search-status {
  text-align: left;
}

.granatello-flipbook-root.granatello-toolbar-left-mode:not(.granatello-toolbar-left-collapsed) .granatello-btn-label,
.granatello-flipbook-root.granatello-toolbar-left-mode:not(.granatello-toolbar-left-collapsed) .granatello-counter-label,
.granatello-flipbook-root.granatello-toolbar-left-mode:not(.granatello-toolbar-left-collapsed) .granatello-page-total {
  display: inline !important;
}

.granatello-flipbook-root.granatello-toolbar-left-mode.granatello-toolbar-left-collapsed .granatello-toolbar {
  width: 70px;
  padding: 10px 6px;
}

.granatello-flipbook-root.granatello-toolbar-left-mode.granatello-toolbar-left-collapsed .granatello-toolbar-group {
  padding: 4px;
  align-items: center;
}

.granatello-flipbook-root.granatello-toolbar-left-mode.granatello-toolbar-left-collapsed .granatello-btn {
  min-width: 44px;
  padding: 0;
  justify-content: center;
}

.granatello-flipbook-root.granatello-toolbar-left-mode.granatello-toolbar-left-collapsed .granatello-btn-label,
.granatello-flipbook-root.granatello-toolbar-left-mode.granatello-toolbar-left-collapsed .granatello-counter-label,
.granatello-flipbook-root.granatello-toolbar-left-mode.granatello-toolbar-left-collapsed .granatello-page-total,
.granatello-flipbook-root.granatello-toolbar-left-mode.granatello-toolbar-left-collapsed .granatello-side-tab-label {
  display: none !important;
}

.granatello-flipbook-root.granatello-toolbar-left-mode.granatello-toolbar-left-collapsed .granatello-toolbar-page-selector,
.granatello-flipbook-root.granatello-toolbar-left-mode.granatello-toolbar-left-collapsed .granatello-toolbar-search,
.granatello-flipbook-root.granatello-toolbar-left-mode.granatello-toolbar-left-collapsed .granatello-toolbar-counter {
  display: none;
}

.granatello-flipbook-root.granatello-toolbar-left-mode.granatello-toolbar-left-collapsed .granatello-zoom-select {
  display: none;
}

.granatello-flipbook-root.granatello-toolbar-left-mode.granatello-ui-mode-minimal:not(.granatello-toolbar-left-collapsed) .granatello-toolbar {
  width: 210px;
}

@media (max-width: 1100px) {
  .granatello-flipbook-root.granatello-toolbar-left-mode .granatello-toolbar {
    width: 196px;
  }

  .granatello-flipbook-root.granatello-toolbar-left-mode.granatello-toolbar-left-collapsed .granatello-toolbar {
    width: 66px;
  }
}
