/* デジタルパンフレット 閲覧画面 */

:root {
  --navy-900: #0f1c33;
  --navy-800: #15274a;
  --navy-700: #1d3460;
  --navy-600: #284477;
  --line: rgba(255, 255, 255, 0.12);
  --text-on-dark: #e9eff7;
  --muted-on-dark: #a7b6cc;
  --accent: #2b8f88;
  --accent-strong: #3fb8ae;
  --accent-soft: rgba(63, 184, 174, 0.18);
  --paper-bg: #e7ebef;
  --paper: #ffffff;
  --ink: #1b2433;
  --ink-muted: #5a6678;
  --focus: #7fe0d6;
  --danger: #c4554a;
  --radius: 8px;
  --panel-w: 320px;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color-scheme: dark;
}

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

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--text-on-dark);
  -webkit-text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  top: 8px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- ボタン類 ---------- */

.btn,
.icon-btn,
select {
  font: inherit;
  color: var(--text-on-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy-700);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn:hover:not(:disabled) {
  background: var(--navy-600);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn.small {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.btn.icon-only {
  width: 40px;
  padding: 0;
}

.btn.accent {
  background: var(--accent);
  border-color: var(--accent-strong);
  color: #fff;
}

.btn.accent:hover:not(:disabled) {
  background: var(--accent-strong);
}

.btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent-strong);
  color: #fff;
}

.btn[aria-pressed="true"] .icon {
  fill: currentColor;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--navy-700);
}

select {
  min-height: 40px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy-700)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7b6cc' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 8px center / 14px;
  font-size: 14px;
  appearance: none;
  cursor: pointer;
}

select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- ヘッダー ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.55vw, 28px);
  min-height: 56px;
  padding: 8px 12px;
  padding-top: max(8px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
  background: var(--navy-900);
}

.header-heading {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.3vw, 24px);
  min-width: 0;
}

.back-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 10px 0 4px;
  border-radius: var(--radius);
  color: var(--text-on-dark);
  font-size: 14px;
  text-decoration: none;
}

.back-link:hover {
  background: var(--navy-700);
}

.title-wrap {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.book-title {
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.badge {
  flex: none;
  padding: 2px 8px;
  border: 1px solid #e3b866;
  border-radius: 999px;
  color: #f2cf8a;
  font-size: 12px;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  flex: none;
  gap: 8px;
  margin-left: auto;
}

#panelToggle { flex: none; }
#panelToggle[aria-expanded="true"] { background: var(--accent); border-color: var(--accent-strong); }
.label-short { display: none; }
#pdfDownload { text-decoration: none; }

/* ---------- レイアウト ---------- */

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

.viewer {
  position: relative;
  flex: 1;
  min-width: 0;
  background: var(--paper-bg);
  color: var(--ink);
}

.stage {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: manipulation;
  outline: none;
}

.stage:focus-visible {
  box-shadow: inset 0 0 0 3px var(--accent);
}

.stage.is-zoomed {
  cursor: grab;
}

.stage.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.sheet {
  display: flex;
  flex: none;
  margin: auto;
  padding: 14px;
}

/* ---------- 紙面 ---------- */

.page {
  position: relative;
  flex: none;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(20, 35, 60, 0.18), 0 10px 28px rgba(20, 35, 60, 0.14);
}

.page img {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-user-drag: none;
  user-select: none;
  transition: opacity 0.2s;
}

.page.is-loading img,
.page.is-failed img {
  opacity: 0;
}

.page.side-left::after,
.page.side-right::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5%;
  pointer-events: none;
}

.page.side-left::after {
  right: 0;
  background: linear-gradient(to left, rgba(20, 30, 50, 0.14), transparent);
}

.page.side-right::after {
  left: 0;
  background: linear-gradient(to right, rgba(20, 30, 50, 0.14), transparent);
}

.page-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(43, 143, 136, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.page.is-loading .page-spinner {
  display: block;
}

.page-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: #f6f7f9;
  color: var(--ink-muted);
  font-size: 14px;
  text-align: center;
}

.page-error strong {
  color: var(--ink);
  font-size: 16px;
}

.ribbon {
  display: none;
  position: absolute;
  top: 0;
  right: 7%;
  width: 18px;
  height: 34px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.page.is-bookmarked .ribbon {
  display: block;
}

/* ---------- 状態表示 ---------- */

.status-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.status-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 440px;
  padding: 32px 28px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 8px 30px rgba(20, 35, 60, 0.12);
  text-align: center;
}

.status-title {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.status-message {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eef2f6;
  color: var(--navy-700);
  font-size: 24px;
  font-weight: 700;
}

.status-card.is-error .status-icon {
  background: #fbeceb;
  color: var(--danger);
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.status-actions a.btn {
  text-decoration: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(43, 143, 136, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

/* ---------- 左右の送りボタン ---------- */

.side-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 72px;
  margin-top: -36px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(15, 28, 51, 0.55);
  color: #fff;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.15s, background-color 0.15s;
}

.side-nav:hover,
.side-nav:focus-visible {
  background: rgba(15, 28, 51, 0.85);
  opacity: 1;
}

.side-nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.side-nav.left {
  left: 10px;
}

.side-nav.right {
  right: 10px;
}

.side-nav .icon {
  width: 28px;
  height: 28px;
}

body:not(.is-ready) .side-nav {
  display: none;
}

/* ---------- ツールバー ---------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  padding: 8px 12px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--navy-800);
}

.group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px;
}

.page-form input {
  width: 3.6em;
  min-height: 36px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--navy-900);
  color: var(--text-on-dark);
  font: inherit;
  font-size: 15px;
  text-align: center;
}

.page-total {
  color: var(--muted-on-dark);
  font-size: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.zoom-value {
  min-width: 64px;
  font-variant-numeric: tabular-nums;
}

.select-label {
  color: var(--muted-on-dark);
  font-size: 13px;
}

/* ---------- サイドパネル ---------- */

.side-panel {
  display: flex;
  flex: none;
  flex-direction: column;
  width: var(--panel-w);
  min-height: 0;
  border-right: 1px solid var(--line);
  background: var(--navy-800);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  flex: 1;
  gap: 2px;
}

.tab {
  flex: 1;
  position: relative;
  min-height: 42px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: var(--muted-on-dark);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.tab:hover {
  color: var(--text-on-dark);
}

.tab[aria-selected="true"] {
  color: var(--text-on-dark);
  font-weight: 600;
}

.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent-strong);
}

.count {
  display: inline-block;
  min-width: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
}

.pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  overscroll-behavior: contain;
}

.pane-status {
  margin: 0 0 12px;
  color: var(--muted-on-dark);
  font-size: 13px;
}

.pane-status:empty {
  display: none;
}

.thumb-list,
.result-list,
.bookmark-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.thumb-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.thumb-list.is-rtl {
  direction: rtl;
}

.thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted-on-dark);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  direction: ltr;
}

.thumb:hover {
  background: var(--navy-700);
}

.thumb.is-current {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
  color: var(--text-on-dark);
}

.thumb-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.thumb-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-frame.is-loading {
  background: linear-gradient(110deg, #dde3ea 30%, #eef2f6 50%, #dde3ea 70%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.thumb-frame.is-loading img,
.thumb-frame.is-failed img {
  opacity: 0;
}

.thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: #eef2f6;
  color: var(--ink-muted);
  font-size: 11px;
  text-align: center;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.thumb-no {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.thumb-mark {
  display: none;
  position: absolute;
  top: 6px;
  right: 12px;
  width: 12px;
  height: 20px;
  background: var(--accent-strong);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
}

.thumb.is-bookmarked .thumb-mark {
  display: block;
}

.search-form {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--text-on-dark);
  font: inherit;
}

.search-form input::placeholder {
  color: #7c8ba3;
}

.result-list,
.bookmark-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy-700);
  color: var(--text-on-dark);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.result:hover {
  background: var(--navy-600);
}

.result.is-current {
  border-color: var(--accent-strong);
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.result-count {
  color: var(--muted-on-dark);
  font-weight: 400;
}

.result-snippet {
  color: #cdd7e5;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-all;
}

.result-snippet mark {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(63, 184, 174, 0.45);
  color: #fff;
}

.bookmark-item {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.bookmark-go {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy-700);
  color: var(--text-on-dark);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bookmark-go:hover {
  background: var(--navy-600);
}

.bookmark-go.is-current {
  border-color: var(--accent-strong);
}

.bookmark-go .thumb-frame {
  width: 44px;
  flex: none;
}

.bookmark-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bookmark-page {
  font-size: 14px;
  font-weight: 600;
}

.bookmark-excerpt {
  overflow: hidden;
  color: var(--muted-on-dark);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bookmark-remove {
  flex: none;
  min-height: auto;
  font-size: 13px;
}

.backdrop {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: rgba(5, 12, 25, 0.55);
}

/* ---------- トースト・ダイアログ ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--navy-900);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 14px;
  transform: translateX(-50%);
}

.share-dialog {
  max-height: 85dvh;
  overflow: auto;
  width: min(92vw, 480px);
  padding: 20px;
  border: 0;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}

.share-dialog::backdrop {
  background: rgba(5, 12, 25, 0.55);
}

.share-dialog h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.share-dialog p {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 14px;
}

.share-dialog input {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #c9d1dc;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 899px) {
  .side-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    width: min(88vw, 360px);
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.35);
  }
}

@media (max-width: 719px), (max-height: 500px) and (orientation: landscape) {
  .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding: max(8px, env(safe-area-inset-top)) 8px 8px;
  }

  .header-heading { grid-column: 1 / -1; gap: clamp(10px, 2.5vw, 16px); }
  .back-link { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  #panelToggle { min-height: 44px; padding: 0 8px; font-size: 13px; }
  .topbar-actions { justify-content: flex-end; }

  .book-title {
    font-size: 15px;
  }

  .title-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .book-title {
    max-width: 100%;
  }

  .badge {
    font-size: 10px;
    padding: 1px 6px;
  }

  .back-link span, .topbar-actions .label-full, .topbar-actions .share-text, #pdfDownload .icon { display: none; }
  .topbar-actions .label-short { display: inline; }
  .topbar-actions > .btn { min-height: 44px; min-width: 44px; padding: 0 10px; font-size: 13px; }
  .topbar-actions #shareBtn { width: 44px; padding: 0; }
  .topbar-actions #pdfDownload { min-width: 52px; flex: none; }
  .toolbar .btn, .toolbar select, .page-form input { min-height: 44px; }
  .toolbar .btn { font-size: 13px; padding-left: 10px; padding-right: 10px; }
  .toolbar .icon-only { width: 44px; padding: 0; }
  .toolbar .zoom-value { min-width: 52px; }
  .zoom-group { gap: 4px; }
  .toolbar select { padding-left: 8px; padding-right: 24px; font-size: 12px; }

  .toolbar {
    gap: 6px 8px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .sheet {
    padding: 10px;
  }

  .side-nav {
    display: none;
  }

  .select-label {
    display: none;
  }
}

@media (max-width: 719px), (max-height: 500px) and (orientation: landscape) {
  .toast {
    bottom: 132px;
  }
}

@media (max-width: 380px) {
  .btn-text,
  #bookmarkBtnText {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .badge {
    display: none;
  }
}

@media (max-width: 450px) {
  .topbar-actions > .related-trigger { padding-inline: 6px; font-size: 12px; }
  .topbar-actions #pdfDownload { min-width: 44px; padding-inline: 6px; }
}

@media (max-width: 380px) {
  .topbar > .topbar-actions { gap: 2px; }
  .topbar-actions > .related-trigger { padding-inline: 4px; font-size: 11px; }
  .topbar-actions .reader-menu summary { min-width: 44px; padding-inline: 5px; }
}

@media (max-width: 420px), (min-width: 720px) and (max-width: 959px), (max-height: 500px) and (orientation: landscape) {
  #panelToggle { width: 44px; padding: 0; }
  #panelToggle span { display: none; }
}

@media (min-width: 360px) and (max-width: 420px) and (orientation: portrait) {
  #panelToggle { width: auto; padding-inline: 8px; }
  #panelToggle .label-short { display: inline; }
}

@media (min-width: 720px) and (max-width: 959px) {
  .back-link, .topbar-actions #shareBtn { width: 40px; padding: 0; justify-content: center; }
  .back-link span, .topbar-actions .share-text { display: none; }
}

/* 中間幅ではPDFを短く表記し、冊子名の領域を確保する。 */
@media (min-width: 720px) and (max-width: 1099px) {
  .book-title { font-size: 15px; }
  #pdfDownload .label-full { display: none; }
  #pdfDownload .label-short { display: inline; }
}

/* 横向きなど、高さが低い画面は紙面を優先する。 */
@media (max-height: 500px) and (orientation: landscape) {
  .topbar { display: flex; gap: 8px; min-height: 52px; padding-top: 4px; padding-bottom: 4px; }
  .header-heading { gap: 8px; }
  .book-title { font-size: 12px; }
  .badge { display: none; }
  .toolbar .reader-slider { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

.share-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.share-dialog .btn{background:white;color:#193440;border-color:#b7c8c7}.share-dialog .btn.accent{background:#16796f;color:white}.share-dialog #shareNotice{margin-top:12px;font-size:12px;line-height:1.7}.share-dialog #shareStatus{min-height:1.5em;margin:8px 0;color:#126558}
