/* ==========================================================================
 * 酷可古籍 4.23.1-dev: 详情页 / 研读台 / 短链矢量二维码弹窗 / 首页 / 移动端精修与页脚单色语言选择器
 * 纯纸墨单色 · font-weight: 400 · 整数字号 (>=11px) · 零 backdrop-filter · <= 400 行
 * ========================================================================== */

/* ---------- 1. 单书详情页：宣纸托裱展台与著录行 ---------- */
.am-item-vis {
  border: 1px solid rgba(10, 10, 10, 0.075);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03), 0 4px 12px -6px rgba(10, 10, 10, 0.05);
  padding: 16px;
}
.am-item-vis__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 20px;
  border-radius: var(--cb-radius-sm);
  background: var(--cb-mat-xuan-bg);
  box-shadow: inset 0 0 0 1px var(--cb-mat-xuan-line);
  overflow: hidden;
  transition: box-shadow 200ms var(--cb-ease), background 200ms var(--cb-ease);
}
.am-item-vis__link:hover { box-shadow: inset 0 0 0 1px rgba(28, 25, 23, 0.18); }
.am-item-vis__main {
  width: auto;
  max-width: 100%;
  max-height: 440px;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  background: transparent;
  box-shadow: 0 4px 18px rgba(28, 25, 23, 0.15), 0 0 0 1px rgba(28, 25, 23, 0.07);
  transition: transform 280ms var(--cb-ease);
}
.am-item-vis__link:hover .am-item-vis__main { transform: scale(1.012); }
.am-thumb-btn { padding: 0; border: 0; background: transparent; flex: 0 0 64px; line-height: 0; cursor: pointer; }
.am-thumb-btn img { border-width: 1.5px; background: var(--cb-mat-xuan-bg); }
.cb-leaf-indicator { font-variant-numeric: tabular-nums; }

/* 详情页画眼导赏按钮：去橙色化，保持纸墨细线 */
.am-item-vis #amTourBtn.cb-btn--warm {
  background: var(--cb-paper);
  color: var(--cb-ink-near);
  border: 1px solid rgba(10, 10, 10, 0.2);
}
.am-item-vis #amTourBtn.cb-btn--warm:hover { background: var(--cb-fill); border-color: var(--cb-ink-near); }

/* 著录元数据表：克制发丝分隔线与等宽数字 */
.am-meta-box {
  gap: 0 22px;
  padding: 6px 20px;
  border: 1px solid rgba(10, 10, 10, 0.075);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03), 0 4px 12px -6px rgba(10, 10, 10, 0.05);
}
.am-meta-box > div {
  padding: 13px 0;
  border-bottom: 1px solid var(--cb-line-soft);
  line-height: 1.55;
  color: var(--cb-ink-near);
  font-variant-numeric: tabular-nums;
}
.am-meta-box > div:last-child { border-bottom: 0; }
.am-meta-box small { margin-bottom: 5px; letter-spacing: 0.02em; }
.am-rights {
  border: 1px solid rgba(10, 10, 10, 0.075);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03), 0 4px 12px -6px rgba(10, 10, 10, 0.05);
}

/* ---------- 2. 短链与印刷级矢量二维码分享弹窗 (.cb-share-modal) ---------- */
dialog.cb-share-modal {
  width: min(460px, calc(100vw - 24px));
  max-width: 460px;
  padding: 20px 22px;
  border-radius: var(--cb-radius-lg);
  border: 1px solid rgba(10, 10, 10, 0.09);
  background: var(--cb-paper);
  color: var(--cb-ink);
  box-shadow: var(--cb-shadow-modal);
  font-weight: 400;
}
dialog.cb-share-modal::backdrop { background: var(--cb-scrim); }
.cb-share-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.cb-share-modal__title-wrap { min-width: 0; }
.cb-share-modal__title { margin: 0; font-size: var(--cb-fs-16); font-weight: 400; color: var(--cb-ink-near); line-height: 1.35; }
.cb-share-modal__sub { margin: 3px 0 0; font-size: var(--cb-fs-12); color: var(--cb-muted); }
.cb-share-modal__scope { display: flex; justify-content: center; margin-bottom: 14px; }
.cb-share-modal__scope .am-seg { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cb-share-modal__scope .am-seg button { height: 30px; padding: 0 12px; font-size: var(--cb-fs-12); font-weight: 400; }
.cb-share-modal__body { display: flex; flex-direction: column; gap: 14px; }
.cb-share-qr-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 14px;
  border-radius: var(--cb-radius);
  background: var(--cb-mat-xuan-bg);
  box-shadow: inset 0 0 0 1px var(--cb-mat-xuan-line);
  text-align: center;
}
.cb-share-qr-frame {
  width: 196px;
  height: 196px;
  padding: 10px;
  border-radius: var(--cb-radius-sm);
  background: #ffffff;
  border: 1px solid rgba(28, 25, 23, 0.08);
  box-shadow: 0 2px 10px rgba(28, 25, 23, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.cb-share-qr-frame svg,
.cb-share-qr-img { width: 100%; height: 100%; display: block; }
.cb-share-qr-book { font-size: var(--cb-fs-15); color: var(--cb-ink-near); line-height: 1.4; }
.cb-share-qr-meta { font-size: var(--cb-fs-12); color: var(--cb-muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.cb-share-link-box { display: flex; flex-direction: column; gap: 6px; }
.cb-share-link-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cb-share-link-label { font-size: var(--cb-fs-12); color: var(--cb-ink-near); }
.cb-share-link-status { font-size: var(--cb-fs-11); color: var(--cb-muted); }
.cb-share-link-row { display: flex; align-items: center; gap: 8px; }
.cb-share-link-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  border-radius: var(--cb-radius-sm);
  border: 1px solid var(--cb-line);
  background: var(--cb-fill);
  color: var(--cb-ink-near);
  font-family: var(--cb-mono);
  font-size: var(--cb-fs-12);
  font-weight: 400;
}
.cb-share-modal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--cb-line-soft);
}
.cb-share-modal__foot .cb-btn { flex: 1 1 auto; }

/* ---------- 3. 三态研读工作台：32px 发丝工具栏、单箭头 Select 与 ? 快捷键浮窗 ---------- */
.cb-rd-controls .am-seg { height: 32px; }
.cb-rd-controls .am-seg button,
.cb-rd-controls .am-seg a { height: 26px; padding: 0 12px; }
.cb-rd-btn { height: 32px; padding: 0 13px; border-color: rgba(10, 10, 10, 0.11); }
.cb-rd-btn--icon { width: 32px; min-width: 32px; padding: 0; }
.cb-rd-shortcuts-wrap { position: relative; display: inline-flex; align-items: center; }
.cb-rd-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: var(--cb-z-nav);
  width: 268px;
  padding: 12px 14px;
  border-radius: var(--cb-radius);
  border: 1px solid rgba(10, 10, 10, 0.1);
  background: var(--cb-paper);
  color: var(--cb-ink);
  box-shadow: var(--cb-shadow-float);
}
.cb-rd-popover[hidden] { display: none; }
.cb-rd-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--cb-line-soft);
  font-size: var(--cb-fs-13);
  color: var(--cb-ink-near);
}
.cb-rd-popover__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cb-rd-popover__list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--cb-fs-12); color: var(--cb-ink); }
.cb-rd-popover__list kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--cb-radius-2xs);
  border: 1px solid var(--cb-line);
  background: var(--cb-fill);
  color: var(--cb-ink-near);
  font-family: var(--cb-mono);
  font-size: var(--cb-fs-11);
  font-weight: 400;
}
.cb-rd-popover__foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--cb-line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--cb-fs-11);
  color: var(--cb-muted);
}
.cb-rd-popover__more {
  border: 0;
  background: transparent;
  color: var(--cb-ink-near);
  font-size: var(--cb-fs-11);
  font-weight: 400;
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 隐藏 Chromium ::picker-icon，统一 32px 发丝韵律 */
#cbReaderRoot select,
.cb-cmp-select,
.cb-cmp-leaf-jump {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 32px;
  border-color: rgba(10, 10, 10, 0.11);
}
#cbReaderRoot select::picker-icon,
.cb-cmp-select::picker-icon,
.cb-cmp-leaf-jump::picker-icon { display: none; }
.cb-cmp-filter { height: 32px; border-color: rgba(10, 10, 10, 0.11); }

/* ---------- 4. 首页策展卡片与名画卡精修（对齐 4.14–4.16） ---------- */
.am-hero__card {
  border: 1px solid rgba(10, 10, 10, 0.08);
  box-shadow: 0 2px 8px rgba(10, 10, 10, 0.06), 0 12px 28px -16px rgba(10, 10, 10, 0.14);
}
.am-hero__img { transition: transform 0.7s var(--cb-ease), opacity 220ms var(--cb-ease); }
.cb-hero-tour { background: rgba(255, 255, 255, 0.14); color: #ffffff; border-color: rgba(255, 255, 255, 0.34); }
.cb-hero-tour:hover { background: rgba(255, 255, 255, 0.24); border-color: rgba(255, 255, 255, 0.56); }
.cb-resume-bar,
.cb-curator-pill,
.cb-tl-card,
.cb-inst-card {
  border-color: rgba(10, 10, 10, 0.075);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03), 0 4px 12px -6px rgba(10, 10, 10, 0.05);
}
.cb-curator-pill { height: 34px; padding: 0 15px; }
.cb-curator-pill:hover,
.cb-tl-card:hover,
.cb-inst-card:hover {
  border-color: rgba(10, 10, 10, 0.16);
  box-shadow: 0 8px 20px -12px rgba(10, 10, 10, 0.14), 0 2px 6px -2px rgba(10, 10, 10, 0.05);
}
.cb-tl-card__thumb { background: var(--cb-mat-xuan-bg); }
.cb-tl-card__cnt,
.cb-inst-card__cnt { font-variant-numeric: tabular-nums; }

/* ---------- 5. 深色模式对比度与暗匣托裱 (html.cb-dark / html.dark) ---------- */
html.cb-dark .am-item-vis, html.dark .am-item-vis,
html.cb-dark .am-meta-box, html.dark .am-meta-box,
html.cb-dark .am-rights, html.dark .am-rights,
html.cb-dark .cb-resume-bar, html.dark .cb-resume-bar,
html.cb-dark .cb-curator-pill, html.dark .cb-curator-pill,
html.cb-dark .cb-tl-card, html.dark .cb-tl-card,
html.cb-dark .cb-inst-card, html.dark .cb-inst-card {
  border-color: var(--cb-border-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
html.cb-dark .am-item-vis__link, html.dark .am-item-vis__link,
html.cb-dark .am-art-card__media, html.dark .am-art-card__media,
html.cb-dark .am-book-card .am-cover, html.dark .am-book-card .am-cover,
html.cb-dark .cb-tl-card__thumb, html.dark .cb-tl-card__thumb,
html.cb-dark .cb-share-qr-stage, html.dark .cb-share-qr-stage {
  background: var(--cb-mat-dark-well);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
html.cb-dark .am-item-vis__main, html.dark .am-item-vis__main {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
html.cb-dark .am-item-vis #amTourBtn.cb-btn--warm,
html.dark .am-item-vis #amTourBtn.cb-btn--warm {
  background: var(--cb-well);
  color: var(--cb-ink-near);
  border-color: rgba(255, 255, 255, 0.16);
}
html.cb-dark dialog.cb-share-modal, html.dark dialog.cb-share-modal,
html.cb-dark .cb-rd-popover, html.dark .cb-rd-popover {
  border-color: rgba(255, 255, 255, 0.12);
}
html.cb-dark .cb-rd-btn, html.dark .cb-rd-btn,
html.cb-dark #cbReaderRoot select, html.dark #cbReaderRoot select,
html.cb-dark .cb-cmp-filter, html.dark .cb-cmp-filter {
  border-color: var(--cb-line);
}

/* ---------- 6. 390px 移动端舒展间距精修 ---------- */
@media (max-width: 640px) {
  .am-sec__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .am-seg-bar { gap: 10px; }
  .am-seg-bar .am-seg { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .am-item-vis { padding: 12px; }
  .am-item-vis__link { min-height: 220px; padding: 14px; }
  .am-meta-box { grid-template-columns: minmax(0, 1fr); padding: 4px 16px; }
  .am-item-vis .am-acts .cb-btn,
  .am-acts > .cb-btn { flex: 1 1 calc(50% - 6px); justify-content: center; }
  .cb-share-modal { padding: 16px; }
  .cb-share-link-row { flex-direction: column; align-items: stretch; }
  .cb-share-link-row .cb-btn { width: 100%; justify-content: center; }
  .cb-share-modal__foot { flex-direction: column; align-items: stretch; }
  .cb-rd-popover { position: fixed; top: auto; bottom: 16px; left: 12px; right: 12px; width: auto; }
}

/* ---------- 7. 全站 P2 精修：关于页 / 全球藏馆图录 / 时间轴单书与纸墨单色徽章 ---------- */
.cb-about-lede {
  max-width: 860px;
}
.cb-about-grid {
  align-items: stretch;
}
.cb-about-card {
  display: flex;
  flex-direction: column;
}
.cb-about-card ul {
  flex: 1 1 auto;
}
.cb-about-card__note {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--cb-line-soft);
  line-height: 1.6;
}
.cb-keep-arrow {
  white-space: nowrap;
}
.cb-about-page .cb-rights-badge--cc0,
.cb-about-page .cb-rights-badge--pdm,
.cb-tl-work-card__tags .cb-tl-rights-pill {
  background: var(--cb-fill);
  color: var(--cb-ink-near);
  border: 1px solid var(--cb-line);
  font-weight: 400;
}
.cb-tl-work-card__tags .cb-tl-rights-pill.cb-rights-badge--unknown,
.cb-tl-work-card__tags .cb-tl-rights-pill.cb-rights-badge--nkc {
  background: transparent;
  color: var(--cb-muted);
  border-style: dashed;
}

/* 全球藏馆图录卡片：纯纸墨胶囊 + 紧凑排版消除大面积留白 */
.cb-atlas-inst-card {
  gap: 10px;
  padding: 16px 18px;
}
.cb-atlas-inst-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.cb-atlas-inst-card__titles {
  min-width: 0;
}
.cb-atlas-inst-card__name {
  margin: 0;
  font-size: var(--cb-fs-16);
  font-weight: 400;
  color: var(--cb-ink-near);
  line-height: 1.35;
}
.cb-atlas-inst-card__en {
  margin: 2px 0 0;
  font-size: var(--cb-fs-12);
  color: var(--cb-muted);
  line-height: 1.4;
}
.cb-atlas-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  border-radius: var(--cb-radius-pill);
  font-size: var(--cb-fs-11);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.cb-atlas-pill--active {
  background: var(--cb-fill);
  color: var(--cb-ink-near);
  border: 1px solid var(--cb-line);
}
.cb-atlas-pill--ref {
  background: transparent;
  color: var(--cb-muted);
  border: 1px dashed var(--cb-line);
}
.cb-atlas-inst-card__desc {
  margin: 0;
  font-size: var(--cb-fs-13);
  color: var(--cb-ink);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cb-atlas-inst-card__foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--cb-line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--cb-fs-12);
  color: var(--cb-muted);
}
.cb-atlas-inst-card__coord {
  font-variant-numeric: tabular-nums;
}
.cb-atlas-inst-card__foot .cb-btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.cb-atlas-inst-card__license {
  margin: 0;
  font-size: var(--cb-fs-11);
  color: var(--cb-muted-2);
  line-height: 1.45;
}

/* 时间轴单书断代（如先秦·老子集解）平滑铺满整行 */
.cb-tl-works-grid.cb-era-books--single {
  grid-template-columns: minmax(0, 1fr);
}
.cb-tl-works-grid.cb-era-books--single .cb-tl-work-card__main {
  padding: 16px 18px;
  gap: 18px;
}
.cb-tl-works-grid.cb-era-books--single .cb-tl-work-card__cover {
  flex: 0 0 92px;
  width: 92px;
  height: 124px;
}

html.cb-dark .cb-about-page .cb-rights-badge--cc0,
html.dark .cb-about-page .cb-rights-badge--cc0,
html.cb-dark .cb-about-page .cb-rights-badge--pdm,
html.dark .cb-about-page .cb-rights-badge--pdm,
html.cb-dark .cb-tl-work-card__tags .cb-tl-rights-pill,
html.dark .cb-tl-work-card__tags .cb-tl-rights-pill,
html.cb-dark .cb-atlas-pill--active,
html.dark .cb-atlas-pill--active {
  background: var(--cb-fill);
  color: var(--cb-ink-near);
  border-color: var(--cb-line);
}
html.cb-dark .cb-tl-work-card__tags .cb-tl-rights-pill.cb-rights-badge--unknown,
html.dark .cb-tl-work-card__tags .cb-tl-rights-pill.cb-rights-badge--unknown,
html.cb-dark .cb-tl-work-card__tags .cb-tl-rights-pill.cb-rights-badge--nkc,
html.dark .cb-tl-work-card__tags .cb-tl-rights-pill.cb-rights-badge--nkc,
html.cb-dark .cb-atlas-pill--ref,
html.dark .cb-atlas-pill--ref {
  background: transparent;
  color: var(--cb-muted);
  border-color: var(--cb-line);
}

/* ---------- 8. 条款与通用文本策展页：舒朗中性白纸阅读卡片排版 ---------- */
.cb-exhibit-page--doc {
  max-width: 840px;
}
.cb-exhibit-page__head {
  margin-bottom: 24px;
}
.cb-exhibit-page__blocks .block-html {
  background: var(--cb-paper);
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  padding: 36px 44px 40px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03), 0 6px 18px -10px rgba(10, 10, 10, 0.06);
}
.cb-terms-doc,
.cb-exhibit-page__blocks .block-html {
  font-family: var(--cb-font-body);
  font-size: var(--cb-fs-15);
  line-height: 1.9;
  color: var(--cb-ink);
}
.cb-terms-doc > p:first-child {
  margin: 0 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--cb-line-soft);
  font-size: var(--cb-fs-15);
  color: var(--cb-ink-title);
}
.cb-terms-doc h2,
.cb-exhibit-page__blocks .block-html h2 {
  margin: 32px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--cb-line-soft);
  font-family: var(--cb-font-ui);
  font-size: var(--cb-fs-17);
  font-weight: 400;
  line-height: 1.45;
  color: var(--cb-ink-near);
  letter-spacing: 0.01em;
}
.cb-terms-doc > p:first-child + h2 {
  margin-top: 4px;
  padding-top: 0;
  border-top: 0;
}
.cb-terms-doc p,
.cb-exhibit-page__blocks .block-html p {
  margin: 0 0 14px;
}
.cb-terms-doc p:last-child,
.cb-exhibit-page__blocks .block-html p:last-child {
  margin-bottom: 0;
}
.cb-terms-doc strong,
.cb-exhibit-page__blocks .block-html strong {
  font-weight: 400;
  color: var(--cb-ink-near);
}
.cb-terms-doc ul,
.cb-exhibit-page__blocks .block-html ul {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cb-terms-doc li,
.cb-exhibit-page__blocks .block-html li {
  position: relative;
  margin: 0;
  padding: 12px 16px 12px 26px;
  background: var(--cb-fill);
  border: 1px solid var(--cb-line-soft);
  border-radius: var(--cb-radius-sm);
  font-size: var(--cb-fs-14);
  line-height: 1.8;
  color: var(--cb-ink);
}
.cb-terms-doc li::before,
.cb-exhibit-page__blocks .block-html li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 22px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cb-muted);
}
.cb-terms-doc a,
.cb-exhibit-page__blocks .block-html a {
  color: var(--cb-ink-near);
  text-decoration: underline;
  text-decoration-color: var(--cb-line);
  text-underline-offset: 3px;
}
.cb-terms-doc a:hover,
.cb-exhibit-page__blocks .block-html a:hover {
  text-decoration-color: var(--cb-ink-near);
}
.cb-doc-foot {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cb-doc-foot__meta {
  font-size: var(--cb-fs-12);
  color: var(--cb-muted);
}
.cb-doc-foot__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 640px) {
  .cb-exhibit-page__blocks .block-html {
    padding: 22px 18px 24px;
  }
  .cb-terms-doc li,
  .cb-exhibit-page__blocks .block-html li {
    padding: 10px 12px 10px 22px;
  }
}

/* ---------- 全站页脚单色语言选择器（纯纸墨单色，暗色自适应） ---------- */
.am-footer__lang {
  display: inline-flex;
  align-items: center;
  padding-left: 14px;
  border-left: 1px solid var(--cb-line);
}
.am-footer__lang-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 30px;
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius-xs);
  background: var(--cb-paper);
  color: var(--cb-ink-2);
  transition: border-color var(--cb-dur) var(--cb-ease), color var(--cb-dur) var(--cb-ease), background var(--cb-dur) var(--cb-ease);
}
.am-footer__lang-picker:hover,
.am-footer__lang-picker:focus-within {
  border-color: var(--cb-line-strong);
  color: var(--cb-ink);
}
.am-footer__lang-ico,
.am-footer__lang-caret {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cb-muted);
  pointer-events: none;
}
.am-footer__lang-ico { left: 8px; }
.am-footer__lang-caret { right: 7px; }
.am-footer__lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block;
  height: 28px;
  margin: 0;
  padding: 0 24px 0 26px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font-family: var(--cb-font-ui);
  font-size: var(--cb-fs-12);
  font-weight: 400;
  line-height: 28px;
  cursor: pointer;
  outline: none;
}
.am-footer__lang-select::picker-icon { display: none; }
.am-footer__lang-select option {
  background: var(--cb-paper);
  color: var(--cb-ink);
}
.cb-iiif-dnd {
  cursor: grab;
}
.cb-iiif-dnd:active {
  cursor: grabbing;
}

@media (max-width: 720px) {
  .am-footer__lang {
    padding-left: 0;
    border-left: 0;
  }
  .am-footer__lang-picker {
    min-height: 44px;
  }
  .am-footer__lang-select {
    min-height: 44px;
    line-height: 44px;
  }
  .cb-detail-acts .cb-btn,
  .cb-detail-tools .cb-tool-btn,
  .cb-rights-acts .cb-btn,
  .cb-cite-tab {
    min-height: 44px;
    min-width: 44px;
  }
}
