/* Wolfer 3D file viewer (2026-11-20) — the page <lang>/step-viewer.html, drawn by assets/wolfer-models.js.
   沃孚尔「三维图查看」页面样式。全部限定在 .wfm-main / #wf-models / .wfm-dialog / .wfm-toast 之内，
   不影响全站导航（site chrome）和用户系统的对话框（wolfer-account.css）。唯一碰到站内公共元素的地方：
   登录后的电脑端工作区、手机全屏看图、以及文件行菜单打开时，让右下角的悬浮 WhatsApp 按钮 / 手机底部条让位
   （body.wfm-in / body.wfm-viewing / body.wfm-menu-open，这三个 class 只有本页脚本会加）。
   Phones (below 900 px): one column; an open file takes the whole screen (.wfm-stage[data-open="1"]). */
.wfm-main, .wfm-foot, .wfm-dialog, .wfm-toast {
  --wfm-ink: #10212f; --wfm-text: #2c4557; --wfm-muted: #5d7688; --wfm-line: #d6e3ec; --wfm-soft: #eef5fa;
  --wfm-blue: #1673b1; --wfm-blue-dark: #0f5c90; --wfm-red: #c0392b; --wfm-radius: 14px;
  color: var(--wfm-text);
  font-family: Saira, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.wfm-main { display: block; max-width: 1400px; margin: 0 auto; padding: 18px 24px 40px; }
:where(.wfm-main, .wfm-dialog) *, :where(.wfm-main, .wfm-dialog) *::before, :where(.wfm-main, .wfm-dialog) *::after { box-sizing: border-box; }
:where(.wfm-main, .wfm-dialog) :is(h1, h2, p, ul, li) { margin: 0; padding: 0; }
:where(.wfm-main, .wfm-dialog) ul { list-style: none; }
:where(.wfm-main, .wfm-dialog) :is(button, input) { font: inherit; }
:where(.wfm-main, .wfm-dialog) button { margin: 0; padding: 0; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:where(.wfm-main, .wfm-dialog) button:disabled { opacity: .45; cursor: not-allowed; }
:where(.wfm-main, .wfm-dialog) :is(button, a, input):focus-visible { outline: 3px solid #1684c9; outline-offset: 2px; }
:where(.wfm-main, .wfm-dialog) svg { display: block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:where(.wfm-main) [hidden] { display: none !important; }

.wfm-skip { position: absolute; left: -9999px; top: 0; z-index: 200; padding: 10px 14px; color: #fff; background: #10212f; border-radius: 0 0 8px 0; }
.wfm-skip:focus { left: 0; }
.wfm-crumb { display: flex; align-items: center; gap: 6px; color: var(--wfm-muted); font-size: 13px; }
.wfm-crumb a { color: inherit; text-decoration: none; }
.wfm-crumb a:hover { color: var(--wfm-blue); }
.wfm-crumb svg { width: 14px; height: 14px; }
.wfm-head { margin: 14px 0 18px; }
.wfm-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--wfm-blue); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.wfm-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.wfm-head h1 { margin-top: 8px; color: var(--wfm-ink); font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.2; letter-spacing: 0; }
.wfm-head p { max-width: 62em; margin-top: 8px; color: var(--wfm-muted); font-size: 15px; line-height: 1.7; }
/* signed in: the heading steps back and the workspace gets the height */
.wfm-main[data-state="in"] .wfm-eyebrow, .wfm-main[data-state="in"] .wfm-head p { display: none; }
.wfm-main[data-state="in"] .wfm-head { margin: 8px 0 12px; }
.wfm-main[data-state="in"] .wfm-head h1 { margin-top: 0; font-size: clamp(20px, 2.2vw, 26px); }
#wf-models { min-height: 320px; }
.wfm-note { padding: 28px; color: var(--wfm-text); background: #fff; border: 1px solid var(--wfm-line); border-radius: var(--wfm-radius); line-height: 1.7; }
/* a <div role="contentinfo">, not a <footer>: the site styles every <footer> as its big dark one */
/* its right end stays clear of the site's floating WhatsApp button (20 px from the corner, 56 px wide) */
.wfm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; box-sizing: border-box; max-width: 1400px; margin: 0 auto; padding: 16px max(24px, calc(88px - max(0px, (100vw - 1400px) / 2))) 28px 24px; color: var(--wfm-muted); font-size: 13px; }
.wfm-foot a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.wfm-foot a:hover { color: var(--wfm-blue); }
.wfm-foot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* buttons */
.wfm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; color: var(--wfm-text) !important; font-size: 14px; font-weight: 600; line-height: 1.2; background: #fff !important; border: 1px solid #cfdde8 !important; border-radius: 9px; transition: background .15s, border-color .15s, color .15s; }
.wfm-btn:hover { border-color: #9fbdd1 !important; color: var(--wfm-ink) !important; }
.wfm-btn-primary { color: #fff !important; background: var(--wfm-blue) !important; border-color: var(--wfm-blue) !important; }
.wfm-btn-primary:hover { color: #fff !important; background: var(--wfm-blue-dark) !important; border-color: var(--wfm-blue-dark) !important; }
.wfm-btn-danger { color: #fff !important; background: var(--wfm-red) !important; border-color: var(--wfm-red) !important; }
.wfm-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--wfm-muted) !important; border-radius: 9px; }
.wfm-icon:hover { color: var(--wfm-ink) !important; background: #e8f1f7 !important; }
.wfm-pill { min-height: 36px; padding: 6px 13px; color: var(--wfm-text) !important; font-size: 13px; font-weight: 600; white-space: nowrap; background: #fff !important; border: 1px solid #cfdde8 !important; border-radius: 999px; }
.wfm-pill:hover { border-color: #9fbdd1 !important; }
.wfm-pill[aria-pressed="true"] { color: #fff !important; background: var(--wfm-blue) !important; border-color: var(--wfm-blue) !important; }
.wfm-pill-axis { min-width: 40px; padding-inline: 0; }

/* nobody signed in */
.wfm-gate { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 34px; background: linear-gradient(135deg, #fff 0%, #f1f7fb 100%); border: 1px solid var(--wfm-line); border-radius: var(--wfm-radius); }
.wfm-gate-lock { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; color: var(--wfm-blue); background: #e3eff7; border-radius: 12px; }
.wfm-gate h2 { margin-top: 16px; color: var(--wfm-ink); font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.3; }
.wfm-gate-copy p { margin-top: 10px; color: var(--wfm-muted); font-size: 15px; line-height: 1.75; }
.wfm-gate-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.wfm-gate-row .wfm-btn { min-width: 132px; min-height: 46px; }
.wfm-feats { display: grid; gap: 12px; }
.wfm-feats li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1px solid var(--wfm-line); border-radius: 12px; }
.wfm-feats svg { width: 24px; height: 24px; margin-top: 2px; color: var(--wfm-blue); }
.wfm-feats strong { display: block; color: var(--wfm-ink); font-size: 15px; font-weight: 600; }
.wfm-feats span { display: block; margin-top: 3px; color: var(--wfm-muted); font-size: 13px; line-height: 1.6; }

/* signed in: the files beside the viewer */
.wfm-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: stretch; height: clamp(480px, calc(100dvh - 236px), 900px); }
.wfm-side { display: flex; flex-direction: column; min-height: 0; padding: 16px; background: #fff; border: 1px solid var(--wfm-line); border-radius: var(--wfm-radius); }
.wfm-drop { padding: 16px; text-align: center; background: #f6fafd; border: 1.5px dashed #b9cfde; border-radius: 12px; transition: background .15s, border-color .15s; }
.wfm-drop.is-drag { background: #e3f0f9; border-color: var(--wfm-blue); }
.wfm-upload { width: 100%; min-height: 46px; }
.wfm-drop-hint { margin-top: 8px; color: var(--wfm-muted); font-size: 13px; }
@media (hover: none) and (pointer: coarse) { .wfm-drop-hint { display: none; } .wfm-formats { margin-top: 10px; } }   /* nothing to drag on a phone */
.wfm-formats { margin-top: 4px; color: #7890a1; font-size: 12px; line-height: 1.6; }
.wfm-uploads:empty { display: none; }
.wfm-uploads { display: grid; flex: 0 1 auto; gap: 8px; min-height: 0; max-height: 38%; margin-top: 12px; overflow-y: auto; }
.wfm-drop, .wfm-usage, .wfm-side-title, .wfm-privacy { flex: none; }
.wfm-up { position: relative; padding: 10px 44px 10px 12px; background: #f3f8fc; border: 1px solid var(--wfm-line); border-radius: 10px; }
.wfm-up p { color: var(--wfm-text); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.wfm-up.is-error { background: #fdf3f1; border-color: #f1cfc9; }
.wfm-up.is-error p { color: #9b2c1f; }
.wfm-up .wfm-icon { position: absolute; top: 3px; right: 3px; width: 36px; height: 36px; }
.wfm-progress { height: 5px; margin-top: 8px; overflow: hidden; background: #dbe7ef; border-radius: 99px; }
.wfm-progress i { display: block; height: 100%; background: var(--wfm-blue); border-radius: inherit; transition: width .25s; }
.wfm-usage { margin-top: 14px; color: var(--wfm-muted); font-size: 12px; }
.wfm-usage-bar { height: 5px; margin-bottom: 6px; overflow: hidden; background: #e4edf3; border-radius: 99px; }
.wfm-usage-bar i { display: block; height: 100%; background: #5fa3cf; border-radius: inherit; }
.wfm-side-title { margin: 16px 0 8px !important; color: var(--wfm-ink); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.wfm-list { flex: 1 1 auto; min-height: 80px; margin: 0 -6px !important; padding: 0 6px !important; overflow-y: auto; overscroll-behavior: contain; }
.wfm-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 12px; color: var(--wfm-muted); font-size: 13px; line-height: 1.6; text-align: center; }
.wfm-empty svg { width: 30px; height: 30px; color: #a9c0d0; }
.wfm-item { position: relative; display: flex; align-items: center; gap: 2px; border-radius: 11px; }
.wfm-item + .wfm-item { margin-top: 2px; }
.wfm-item:hover { background: #f3f8fc; }
.wfm-item.is-current { background: #e6f1f9; }
.wfm-item-open { display: flex; flex: 1 1 auto; align-items: center; gap: 11px; min-width: 0; padding: 7px !important; text-align: left; border-radius: 11px; }
.wfm-thumb { display: flex; align-items: center; justify-content: center; width: 68px; height: 51px; flex: none; overflow: hidden; color: #9db6c8; background: linear-gradient(#f6fafd, #e3edf4); border: 1px solid #dbe6ee; border-radius: 8px; }
.wfm-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wfm-thumb svg { width: 24px; height: 24px; }
.wfm-item-text { display: block; min-width: 0; }
.wfm-item-text strong { display: block; overflow: hidden; color: var(--wfm-ink); font-size: 14px; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.wfm-item-text span { display: block; overflow: hidden; color: var(--wfm-muted); font-size: 12px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.wfm-item-more { flex: none; }
/* fixed, placed by wolfer-models.js next to its button: the list scrolls and would cut an absolute menu off */
.wfm-menu { position: fixed; top: 0; left: 0; z-index: 95; display: grid; min-width: 168px; padding: 6px; background: #fff; border: 1px solid var(--wfm-line); border-radius: 11px; box-shadow: 0 16px 40px #0d2a3f26; }
.wfm-menu :is(button, a) { display: block; padding: 10px 12px !important; color: var(--wfm-text) !important; font-size: 14px; text-align: left; text-decoration: none; border-radius: 7px; }
.wfm-menu :is(button, a):hover { background: #eef5fa !important; }
.wfm-menu .is-danger { color: var(--wfm-red) !important; }
.wfm-privacy { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px !important; padding-top: 12px !important; color: var(--wfm-muted); font-size: 12px; line-height: 1.6; border-top: 1px solid #e6eef4; }
.wfm-privacy svg { width: 15px; height: 15px; margin-top: 2px; }
.wfm-privacy button { color: var(--wfm-blue) !important; text-decoration: underline; text-underline-offset: 2px; }

/* the viewer */
.wfm-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; overflow: hidden; background: #fff; border: 1px solid var(--wfm-line); border-radius: var(--wfm-radius); }
.wfm-stage:fullscreen { border: 0; border-radius: 0; }
.wfm-bar { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 10px 8px 16px; border-bottom: 1px solid #e3ecf2; }
.wfm-back { display: none; margin-left: -8px; }
.wfm-title { flex: 1 1 auto; min-width: 0; }
.wfm-title strong { display: block; overflow: hidden; color: var(--wfm-ink); font-size: 15px; font-weight: 700; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.wfm-title span { display: block; overflow: hidden; color: var(--wfm-muted); font-size: 12px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.wfm-bar-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.wfm-quote { min-height: 38px; padding: 7px 13px; font-size: 13px; }
.wfm-quote svg { width: 18px; height: 18px; }
.wfm-view { position: relative; min-height: 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, #f9fcfe 0%, #e6eff5 100%); }
.wfm-canvas { position: absolute; inset: 0; }
.wfm-canvas canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
.wfm-marks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.wfm-mark { position: absolute; top: -7px; left: -7px; width: 14px; height: 14px; background: #d9480f; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #d9480f, 0 2px 6px #0004; }
.wfm-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; color: var(--wfm-muted); font-size: 14px; line-height: 1.7; text-align: center; }
.wfm-over p { max-width: 30em; }
.wfm-idle svg { width: 46px; height: 46px; color: #a9c0d0; stroke-width: 1.2; }
.wfm-busy, .wfm-fail { background: #f4f9fcf2; }
.wfm-fail p { color: var(--wfm-ink); }
.wfm-over-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.wfm-busy .wfm-progress { width: min(260px, 70%); margin-top: 0; }
.wfm-ring { width: 34px; height: 34px; border: 3px solid #cfe0ec; border-top-color: var(--wfm-blue); border-radius: 50%; animation: wfm-spin .9s linear infinite; }
@keyframes wfm-spin { to { transform: rotate(360deg); } }
.wfm-chip { position: absolute; top: 12px; left: 12px; max-width: min(70%, 340px); padding: 8px 12px; background: #fffffff0; border: 1px solid var(--wfm-line); border-radius: 10px; box-shadow: 0 6px 18px #0d2a3f14; pointer-events: none; }
.wfm-restore { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 6px 18px #0d2a3f14; }
.wfm-restore svg { width: 16px; height: 16px; }
.wfm-chip strong { display: block; overflow: hidden; color: var(--wfm-ink); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.wfm-chip span { display: block; color: var(--wfm-muted); font-size: 12px; }
.wfm-tray { position: absolute; right: 12px; bottom: 12px; left: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto; padding: 8px 10px; width: fit-content; max-width: calc(100% - 24px); overflow-x: auto; background: #fffffff2; border: 1px solid var(--wfm-line); border-radius: 14px; box-shadow: 0 10px 28px #0d2a3f1f; scrollbar-width: none; }
.wfm-tray::-webkit-scrollbar { display: none; }
.wfm-tray-text { padding: 0 6px; color: var(--wfm-ink); font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wfm-tray-text b { margin-right: 8px; font-weight: 700; white-space: nowrap; }
.wfm-tray-text span { color: var(--wfm-text); white-space: nowrap; }
.wfm-range { flex: 1 1 180px; width: 220px; min-width: 120px; height: 36px; margin: 0; accent-color: var(--wfm-blue); }
.wfm-parts { position: absolute; top: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; width: min(290px, 60%); background: #fffffff7; border: 1px solid var(--wfm-line); border-radius: 12px; box-shadow: 0 12px 32px #0d2a3f24; }
.wfm-parts header { display: flex; align-items: center; gap: 8px; padding: 8px 6px 8px 14px; border-bottom: 1px solid #e3ecf2; }
.wfm-parts header strong { flex: 1 1 auto; color: var(--wfm-ink); font-size: 13px; font-weight: 700; }
.wfm-parts header .wfm-pill { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.wfm-parts ul { flex: 1 1 auto; min-height: 0; padding: 6px !important; overflow-y: auto; overscroll-behavior: contain; }
.wfm-group { padding: 8px 8px 3px calc(8px + var(--d, 0) * 12px) !important; overflow: hidden; color: var(--wfm-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.wfm-part { display: flex; align-items: center; padding-left: calc(var(--d, 0) * 12px) !important; border-radius: 8px; }
.wfm-part:hover { background: #eef5fa; }
.wfm-part.is-selected { background: #dcecf8; }
.wfm-part.is-off .wfm-part-name { color: #9aaebc !important; }
.wfm-part-eye, .wfm-part-only { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; color: var(--wfm-muted) !important; border-radius: 8px; }
.wfm-part-eye svg, .wfm-part-only svg { width: 17px; height: 17px; }
.wfm-part-name { flex: 1 1 auto; min-width: 0; padding: 7px 4px !important; overflow: hidden; color: var(--wfm-text) !important; font-size: 13px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.wfm-tools { display: flex; gap: 2px; padding: 6px 8px; overflow-x: auto; border-top: 1px solid #e3ecf2; scrollbar-width: none; }
.wfm-tools::-webkit-scrollbar { display: none; }
/* too long for the row (phones, long words): it scrolls sideways, and the side with more fades out */
.wfm-tools[data-more="end"] { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.wfm-tools[data-more="start"] { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(270deg, #000 calc(100% - 36px), transparent); }
.wfm-tools[data-more="both"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.wfm-tool { display: inline-flex; flex: 1 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 64px; min-height: 52px; padding: 6px 8px !important; color: var(--wfm-muted) !important; font-size: 11px; font-weight: 600; line-height: 1.2; white-space: nowrap; border-radius: 10px; }
.wfm-tool:hover { color: var(--wfm-ink) !important; background: #eef5fa !important; }
.wfm-tool[aria-pressed="true"] { color: var(--wfm-blue) !important; background: #e3f0f9 !important; }
.wfm-hint { position: absolute; bottom: 74px; left: 50%; width: max-content; max-width: calc(100% - 24px); padding: 8px 14px; color: #fff; font-size: 12px; line-height: 1.5; text-align: center; background: #10212fd9; border-radius: 14px; transform: translateX(-50%); pointer-events: none; }
.wfm-hint span { white-space: nowrap; }

/* small dialog, toast */
dialog.wfm-dialog { width: min(420px, calc(100% - 28px)); margin: auto; padding: 0; color: var(--wfm-text); background: #fff; border: 1px solid var(--wfm-line); border-radius: 14px; box-shadow: 0 30px 80px #0d2a3f40; }
dialog.wfm-dialog::backdrop { background: #0f2a3d59; }
.wfm-dialog-in { display: grid; gap: 12px; margin: 0; padding: 20px; }
.wfm-dialog-in h2 { color: var(--wfm-ink); font-size: 17px; font-weight: 700; }
.wfm-dialog-in p { color: var(--wfm-text); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.wfm-dialog-in label { display: grid; gap: 6px; color: var(--wfm-muted); font-size: 13px; }
.wfm-dialog-in input { width: 100%; min-height: 42px; padding: 8px 11px; color: var(--wfm-ink); font-size: 16px; background: #fff; border: 1px solid #cfdee9; border-radius: 8px; }
.wfm-dialog-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
/* above the account script's own toast (bottom: 30px) and, on a phone, above the viewer's tool row */
/* under the site header, at the top: the bottom of the screen belongs to the tools, their trays and the hint */
.wfm-toast { position: fixed; top: 128px; left: 50%; z-index: 130; width: max-content; max-width: calc(100% - 28px); padding: 11px 16px; color: #fff; font-size: 14px; line-height: 1.5; background: #10212ff2; border-radius: 10px; box-shadow: 0 12px 32px #0d2a3f40; transform: translateX(-50%); }
.wfm-toast[hidden] { display: none; }
/* The site's floating WhatsApp button (bottom right) and its phone dock give way to the work screen and to an open row menu;
   WhatsApp stays one tap away in the bar at the top of the page. */
@media (min-width: 900px) {
  body.wfm-in .wf-wa-float { display: none; }
  .wfm-main[data-state="in"] ~ .wfm-foot { padding-right: 24px; }
}
body.wfm-menu-open :is(.wf-wa-float, .wf-dock) { opacity: 0 !important; pointer-events: none !important; }

@media (max-width: 899px) {
  .wfm-main { padding: 12px 14px 28px; }
  .wfm-head { margin: 10px 0 14px; }
  .wfm-head p { font-size: 14px; }
  .wfm-gate { grid-template-columns: 1fr; gap: 20px; padding: 22px 18px; }
  .wfm-gate-row .wfm-btn { flex: 1 1 130px; }
  .wfm-layout { display: block; height: auto; }
  .wfm-side { padding: 14px; }
  .wfm-list { max-height: none; overflow: visible; }
  .wfm-uploads { max-height: none; overflow: visible; }
  .wfm-thumb { width: 76px; height: 57px; }
  .wfm-item-open { padding: 8px 6px !important; }
  .wfm-stage { display: none; }
  .wfm-stage[data-open="1"] { position: fixed; inset: 0; z-index: 90; display: grid; height: 100dvh; border: 0; border-radius: 0; }
  .wfm-back { display: inline-flex; }
  .wfm-bar { min-height: 54px; padding: calc(6px + env(safe-area-inset-top)) 8px 6px 14px; }
  .wfm-quote span { display: none; }
  .wfm-quote { width: 40px; min-height: 40px; padding: 0; }
  .wfm-tools { justify-content: flex-start; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); }
  .wfm-tool { flex: 0 0 auto; min-width: 55px; padding: 6px 5px !important; }
  .wfm-parts { top: auto; right: 8px; bottom: 8px; left: 8px; width: auto; max-height: 52%; }
  /* a tray shows all it has: its buttons wrap onto a second row instead of scrolling out of sight */
  .wfm-tray { right: 8px; bottom: 8px; left: 8px; flex-wrap: wrap; gap: 0 6px; padding: 5px 10px; max-width: calc(100% - 16px); overflow: visible; }
  .wfm-tray > * { margin-block: 3px; }
  .wfm-tray > .wfm-break { flex: 0 0 100%; height: 0; margin: 0; }        /* wolfer-models.js: where two even rows part */
  .wfm-tray-text { flex: 1 1 0; min-width: 0; white-space: normal; }
  .wfm-range { flex-basis: 110px; min-width: 96px; }          /* X · Y · Z, the slider and “flip” stay on one row */
  .wfm-hint { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .wfm-toast { top: calc(76px + env(safe-area-inset-top)); }
  body.wfm-viewing { overflow: hidden; }
  body.wfm-viewing .wf-wa-float { display: none; }
  /* the last line of the page keeps to the left of the site's floating button (14 px from the corner, 50 px wide) */
  .wfm-foot { justify-content: flex-start; padding: 12px 78px calc(22px + env(safe-area-inset-bottom)) 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .wfm-ring { animation-duration: 2.4s; }
  .wfm-progress i { transition: none; }
}
