
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body, #app { width: 100%; height: 100%; overflow: hidden; }

/* 移动端/托管环境：按“动态可视高度”布局，避免地址栏/系统栏占位导致底部被裁、顶部空带 */
@supports (height: 100dvh) {
  html, body, #app { height: 100dvh; }
}

html, body {
  overscroll-behavior: none; /* 移动端禁止整页橡皮筋/滚动 */
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #1b2230;
  color: #e6ebf2;
}

#app { display: flex; position: relative; }

/* flex 子项允许收缩，避免内容把底部顶出屏幕 */
.main { min-height: 0; }

/* 托管域名（*.bspapp.com）下修正顶部约 20px 黑边（由 app.js 检测后加 is-bspapp）
 * —— 按需求先注释掉（不使用 top 修正） */
/* html.is-bspapp #app { top: -20px; } */

/* ---------- 手机端：模型库抽屉按钮 / 关闭 / 遮罩（桌面默认隐藏） ---------- */
.sidebar-mask { display: none; }
.sidebar-close { display: none; }
.mobile-lib-btn { display: none; }
.move-fab { display: none; }
.view-fab { display: none; }
.land-fab { display: none; }
.view-mask { display: none; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: 240px;
  flex: 0 0 240px;
  background: #212a3a;
  border-right: 1px solid #2f3a50;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 16px 6px;
}

.sidebar-header h1 { font-size: 16px; font-weight: 600; color: #fff; }
.sidebar-header .count { font-size: 12px; color: #8fa3bd; }

.hint {
  padding: 0 16px 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #7d8ea8;
  border-bottom: 1px solid #2f3a50;
}

/* ---------- 左侧分类手风琴 + 产品卡片 ---------- */
.cat-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.cat-list::-webkit-scrollbar { width: 6px; }
.cat-list::-webkit-scrollbar-thumb { background: #3a4574; border-radius: 3px; }

.cat { border-bottom: 1px solid #2f3a50; }

.cat-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 12px;
  background: #26303f;
  border: none;
  color: #e6ebf2;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.cat-head:hover { background: #2c3a50; }
.cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-count {
  font-size: 11px;
  color: #ffffff;
  background: #f7941d;
  border: none;
  border-radius: 999px;
  padding: 0 8px;
  line-height: 18px;
  font-weight: 600;
}
/* 展开箭头：灰底圆形 + 白色箭头（收起朝下、展开朝上；固定 22px，垂直居中） */
.cat-chev {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: #6d7278;
  transform: rotate(180deg); /* 默认(收起)=朝下 */
  transition: transform .2s ease;
}
.cat-chev::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 8px;
  height: 8px;
  border-left: 2.5px solid #fff;
  border-top: 2.5px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg); /* 形成朝上箭头 */
}
.cat.open .cat-chev { transform: rotate(0deg); } /* 展开=朝上（原图方向） */

/* 有图片时：直接显示图片（22px、居中、随容器旋转），CSS 画的箭头隐藏、圆底也去掉 */
.cat-chev-img { display: none; width: 22px; height: 22px; object-fit: contain; }
.cat-chev.has-img { background: transparent; }
.cat-chev.has-img::before { display: none; }
.cat-chev.has-img .cat-chev-img { display: block; }

/* 分类内容：内部独立滚动（不带动整页），电脑一行两个、手机一行一个 */
.cat-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  max-height: 62vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #212a3a;
}
.cat-body::-webkit-scrollbar { width: 6px; }
.cat-body::-webkit-scrollbar-thumb { background: #3a4574; border-radius: 3px; }

/* 产品卡片：上面模型图、下面文字描述 */
.prod {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px 10px;
  border-radius: 8px;
  background: #26303f;
  border: 1px solid #2f3a50;
  cursor: grab;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.prod:hover { border-color: #4f6aa8; background: #2c3a50; }
.prod.disabled { opacity: .55; cursor: wait; }
.prod.broken { opacity: .6; cursor: not-allowed; }

.prod-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #1a212e;
  border: 1px solid #2f3a50;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb-placeholder { font-size: 11px; color: #8fa3bd; }

.prod-info { width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.prod-name {
  width: 100%;
  max-width: 100%;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #dfe7f2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prod-meta { font-size: 11px; color: #8fa3bd; margin-top: 3px; text-align: center; }
.prod .broken-tip { font-size: 10.5px; line-height: 1.5; color: #e0a15c; text-align: center; margin-top: 4px; }

/* 手机端：一行一个；文字区自适应宽度、超长省略，字号整体缩小 */
@media (max-width: 767px), (max-width: 1023px) and (max-height: 560px) {
  .cat-body {
    grid-template-columns: 1fr;
    max-height: 52vh;
    gap: 8px;
  }
  .cat-head { font-size: 13.5px; padding: 11px 10px; }
  .hint { font-size: 11.5px; }
  .sidebar-header h1 { font-size: 15px; }
  .sidebar-header .count { font-size: 11px; }
  .prod { flex-direction: row; align-items: center; gap: 8px; padding: 7px; overflow: hidden; }
  .prod-thumb { width: 56px; height: 56px; flex: 0 0 56px; aspect-ratio: auto; margin-bottom: 0; }
  .prod-info { flex: 1 1 0; min-width: 0; overflow: hidden; align-items: flex-start; }
  .prod-name, .prod-meta, .prod .broken-tip { text-align: left; max-width: 100%; }
  .prod-name { font-size: 11.5px; }
  .prod-meta { font-size: 10px; margin-top: 2px; }
}

.sidebar-foot {
  padding: 10px 14px;
  font-size: 11.5px;
  line-height: 1.7;
  color: #7d8ea8;
  border-top: 1px solid #2f3a50;
}

/* ---------- 主区域 ---------- */
.main { flex: 1; display: flex; flex-direction: column; position: relative; min-width: 0; }

.toolbar {
  height: 46px;
  flex: 0 0 46px;
  background: #1d2433;
  border-bottom: 1px solid #2f3a50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  z-index: 5;
}

.btn {
  padding: 6px 14px;
  font-size: 13px;
  color: #dfe7f2;
  background: #2a344a;
  border: 1px solid #3a4a68;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}

.btn:hover:not(:disabled) { background: #34425e; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.danger:hover:not(:disabled) { background: #6b2f38; border-color: #8a4a56; }
.btn.active { background: #2e4f9e; border-color: #5a85ff; color: #fff; }

/* 工具栏按钮：桌面=完整文字（含图标），手机=图标/短词（见移动端媒体查询） */
.btn .ico { margin-right: 6px; font-size: 14px; }
.lbl-short { display: none; } /* 短标签默认隐藏（仅手机显示） */

.overall {
  margin-left: auto;
  font-size: 13px;
  color: #ffd479;
  white-space: nowrap;
}

.status-overlay {
  position: absolute;
  top: 12px;
  right: 14px;
  max-width: 55%;
  padding: 8px 12px;
  background: rgba(15, 20, 30, .85);
  border: 1px solid #3a4a68;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #dfe7f2;
  text-align: right;
  white-space: pre-line; /* 支持“Selected / Size”分两行显示 */
  overflow-wrap: anywhere;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

/* 视图内左侧操作栏：视角预设 + 缩放（桌面：避开左侧列表；手机端改为右下弹层） */
.view-panel {
  position: absolute;
  left: calc(240px + 12px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 6px;
  background: rgba(15, 20, 30, .72);
  border: 1px solid #3a4a68;
  border-radius: 10px;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

.vp-btn {
  width: 48px;
  padding: 7px 0;
  font-size: 12.5px;
  color: #dfe7f2;
  background: #2a344a;
  border: 1px solid #3a4a68;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}

.vp-btn:hover { background: #34425e; }
.vp-btn:active { background: #2e4f9e; border-color: #5a85ff; }

.vp-sep {
  height: 1px;
  background: #3a4a68;
  margin: 2px 2px;
}

#viewport { flex: 1; min-height: 0; position: relative; cursor: grab; touch-action: none; }
#viewport:active { cursor: grabbing; }
#viewport canvas { display: block; touch-action: none; }

.help-tip {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 11.5px;
  color: #7d8ea8;
  background: rgba(20, 26, 38, .72);
  border: 1px solid #2f3a50;
  border-radius: 6px;
  padding: 6px 10px;
  pointer-events: none;
  z-index: 4;
}

/* ---------- 右侧购买清单：贴边 Tab + 抽屉面板（无删除入口） ---------- */
.cart-tab {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 61;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 76px;
  padding: 0;
  font-size: 18px;
  color: #dfe7f2;
  background: rgba(20, 26, 38, .88);
  border: 1px solid #3a4a68;
  border-right: none;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  box-shadow: -4px 0 14px rgba(0, 0, 0, .35);
}
.cart-tab:hover { background: #34425e; }
.cart-tab-badge {
  position: absolute;
  top: 8px;
  right: 4px;
  min-width: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: #f7941d;
  border-radius: 999px;
}

.cart-mask {
  position: absolute;
  inset: 0;
  z-index: 55;
  background: rgba(8, 12, 20, .35);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: 340px;
  max-width: 88vw;
  display: flex;
  flex-direction: column;
  background: #212a3a;
  border-left: 1px solid #2f3a50;
  box-shadow: -8px 0 24px rgba(0, 0, 0, .45);
  transform: translateX(102%);
  transition: transform .22s ease;
}
.cart-panel.open { transform: translateX(0); }

/* 打开购买清单时：隐藏其它悬浮按钮/弹层，保证它不被遮挡（最高层） */
.cart-open .move-fab,
.cart-open .view-fab,
.cart-open .land-fab,
.cart-open .mobile-lib-btn,
.cart-open .view-panel,
.cart-open .sidebar {
  display: none !important;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #2f3a50;
}
.cart-title { font-size: 15px; font-weight: 600; color: #fff; }
.cart-close {
  width: 28px;
  height: 28px;
  color: #dfe7f2;
  background: #2a344a;
  border: 1px solid #3a4a68;
  border-radius: 6px;
  cursor: pointer;
}

.cart-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 12px;
}
.cart-body::-webkit-scrollbar { width: 6px; }
.cart-body::-webkit-scrollbar-thumb { background: #3a4574; border-radius: 3px; }

.cart-empty { padding: 40px 10px; text-align: center; font-size: 12.5px; line-height: 1.9; color: #8fa3bd; }

.cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  margin-bottom: 10px;
  background: #26303f;
  border: 1px solid #2f3a50;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s;
}
.cart-row:hover { border-color: #4f6aa8; }

.cart-thumb {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 6px;
  overflow: hidden;
  background: #1a212e;
  border: 1px solid #2f3a50;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cthumb-none {
  display: block;
  width: 100%;
  height: 100%;
  background: #2a344a;
}
.cart-info { flex: 1; min-width: 0; }
.cart-name { font-size: 13.5px; color: #dfe7f2; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-unit { font-size: 12px; color: #8fa3bd; margin-top: 4px; }
.cart-line { font-size: 14px; color: #ffd479; font-weight: 600; white-space: nowrap; }

.cart-foot {
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #2f3a50;
  background: #1d2433;
}
.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.cart-qty { font-size: 12px; color: #8fa3bd; }
.cart-sum { font-size: 17px; font-weight: 700; color: #ffd479; }
.cart-buy {
  width: 100%;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #f7941d;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.cart-buy:hover { background: #ff9f2e; }
.cart-buy:active { background: #e07f0a; }

/* 手机端：面板宽度 65%，Tab 稍小 */
@media (max-width: 767px), (max-width: 1023px) and (max-height: 560px) {
  .cart-tab { width: 38px; height: 68px; font-size: 17px; }
  .cart-panel { width: 65vw; min-width: 240px; max-width: 520px; }
}

/* ---------- 提示 ---------- */
.toast {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  background: rgba(15, 20, 30, .92);
  border: 1px solid #4f6aa8;
  color: #dfe7f2;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 8px;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  animation: toast-in .2s ease-out;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.server-error {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 22, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.err-box {
  background: #212a3a;
  border: 1px solid #4f6aa8;
  border-radius: 12px;
  padding: 28px 36px;
  text-align: center;
  max-width: 420px;
}

.err-box h2 { font-size: 18px; margin-bottom: 12px; }
.err-box p { font-size: 13px; line-height: 1.8; color: #8fa3bd; }
.err-box b { color: #ffd479; }

/* ============================================================
 * 响应式（三档）：电脑 ≥1024 / 平板 768-1023 / 手机 <768
 * ============================================================ */

/* ---------- 平板：列表收窄、缩略图变小，仍左右分栏 ---------- */
@media (max-width: 1023px) {
  .sidebar { width: 200px; flex: 0 0 200px; }
  .sidebar-header { padding: 12px 12px 6px; }
  .hint { padding: 0 12px 10px; }
  .toolbar { height: 42px; flex: 0 0 42px; gap: 6px; padding: 0 8px; }
  .btn { padding: 5px 10px; font-size: 12.5px; }
  .overall { font-size: 12px; }
  .status-overlay { max-width: 62%; font-size: 12px; }
  .view-panel { left: calc(200px + 12px); }
}

/* ---------- 手机：列表变抽屉、3D 全屏、按钮压缩 ----------
 * 条件：窄屏(<768) 或 矮屏(横屏手机：≤1023 且高≤560) */
@media (max-width: 767px), (max-width: 1023px) and (max-height: 560px) {
  /* 抽屉 + 遮罩 */
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 52vw;
    min-width: 210px;
    max-width: 300px;
    flex: none;
    transform: translateX(-105%);
    transition: transform .24s ease;
    z-index: 30;
    padding-top: env(safe-area-inset-top);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-mask {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 20, .45);
    z-index: 25;
  }
  .sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: auto;
    color: #dfe7f2;
    background: #2a344a;
    border: 1px solid #3a4a68;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
  }
  .sidebar-header { align-items: center; }

  /* 顶部工具栏：自动换行（保证所有按钮都能看到），按钮加大方便点击 */
  .toolbar {
    height: auto;
    flex: 0 0 auto;
    min-height: 48px;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 8px;
    overflow: visible;
  }
  .btn { padding: 8px 13px; font-size: 13px; white-space: nowrap; }
  /* 手机端：只显示图标/短词，按“Size、Reset、旋转、删除”排序（用户习惯顺序） */
  .btn .lbl-full { display: none; }
  .btn .lbl-short { display: inline; }
  .btn .ico { margin-right: 0; font-size: 17px; }
  .btn-size { order: 1; }
  .btn-reset { order: 2; }
  .btn-rot-l { order: 3; margin-left: auto; } /* 图标组推到右侧 */
  .btn-rot-r { order: 4; }
  .btn-del { order: 5; }
  .overall { display: none; } /* 手机顶栏放不下，隐藏放置/总尺寸信息 */
  .status-overlay {
    top: 8px;
    left: 8px;
    right: auto;
    max-width: 70%;
    font-size: 11.5px;
    padding: 6px 9px;
    text-align: left; /* 手机端选中信息靠左显示 */
  }
  /* 抽屉里的模型列表：底部留安全区，条目名称可看全 */
  .cat-list { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

  /* 视角/缩放：默认收成右下角一个「视角」按钮，点击弹出竖排面板 */
  .view-panel {
    display: none;
    left: auto;
    right: 22px;
    top: auto;
    bottom: calc(108px + env(safe-area-inset-bottom));
    transform: none;
    padding: 6px;
    gap: 6px;
    z-index: 9;
  }
  .view-panel.open { display: flex; }
  .vp-btn { width: 44px; padding: 7px 0; font-size: 11.5px; }

  .view-fab,
  .land-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 22px;
    z-index: 10;
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
    color: #dfe7f2;
    background: rgba(20, 26, 38, .88);
    border: 1px solid #3a4a68;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  }
  /* 右下两枚（View / Landscape）与左下角 Library 同一水平线对齐 */
  .view-fab { bottom: calc(60px + env(safe-area-inset-bottom)); }
  .land-fab { bottom: calc(12px + env(safe-area-inset-bottom)); }

  .view-mask {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 6;
    background: transparent;
  }

  /* 左下角「模型库」按钮（与右下角按钮等高） */
  .mobile-lib-btn {
    display: inline-flex;
    align-items: center;
    position: absolute;
    left: 18px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 20;
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
    color: #dfe7f2;
    background: rgba(20, 26, 38, .88);
    border: 1px solid #3a4a68;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  }
  .mobile-lib-count {
    margin-left: 6px;
    padding: 0 6px;
    font-size: 11px;
    line-height: 16px;
    color: #fff;
    background: #2e4f9e;
    border-radius: 999px;
  }

  /* 左下角第二枚：模型锁（🔒 锁住=不能拖模型；🔓 解锁=可拖动） */
  .move-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 18px;
    bottom: calc(60px + env(safe-area-inset-bottom));
    z-index: 20;
    width: 44px;
    height: 40px;
    padding: 0;
    font-size: 18px;
    color: #ffb3b3;
    background: rgba(38, 20, 24, .88);
    border: 1px solid #8a4a56;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  }

  /* 解锁状态：绿色 */
  .move-fab.unlocked {
    color: #b9f5c4;
    background: rgba(16, 32, 22, .88);
    border-color: #2f8a4a;
  }

  .toast { bottom: calc(64px + env(safe-area-inset-bottom)); font-size: 12.5px; padding: 8px 14px; }
}

/* ---------- 手机横屏（矮屏）：紧凑模式，腾出 3D 可视高度 ---------- */
@media (max-width: 900px) and (max-height: 560px) and (orientation: landscape) {
  .toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    min-height: 34px;
    padding: 4px 8px;
  }
  .toolbar::-webkit-scrollbar { display: none; }
  .status-overlay { font-size: 11px; padding: 4px 8px; }
  .mobile-lib-btn { bottom: 8px; }
  .move-fab { bottom: 56px; }
  .land-fab { bottom: 8px; right: 22px; }
  .view-fab { bottom: 56px; right: 22px; }
  .view-panel {
    bottom: 104px;
    right: 22px;
  }
}

/* ---------- 全屏（尤其手机）：控件再内收一圈，避开系统边缘手势，防止误触退出 ---------- */
@media (max-width: 1023px) {
  body.is-fullscreen .view-fab,
  body.is-fullscreen .land-fab { right: 34px; }
  body.is-fullscreen .view-panel { right: 34px; }
  body.is-fullscreen .mobile-lib-btn,
  body.is-fullscreen .move-fab { left: 26px; }
  body.is-fullscreen .status-overlay {
    left: 18px;
    top: calc(10px + env(safe-area-inset-top));
  }
  body.is-fullscreen .toolbar { padding-top: calc(8px + env(safe-area-inset-top)); }
}
