/* Mockup-only stand-ins for the product screenshots, recreated from NASRescueApp's SwiftUI
   layout (RescueWizardView / RescueDesign / RescueToolsViews). Each stand-in is laid out at the
   window size (--aw × --ah, default --w × --h), cropped to the screenshot region (--cx, --cy,
   --w × --h) and scaled to its frame by appshots.js. Production pages
   replace every .shot-frame's content with <img src="assets/img/<lang>/<screen>.png">. */

.ax-app {
  position: absolute; top: 0; left: 0; width: calc(var(--aw, var(--w)) * 1px); height: calc(var(--ah, var(--h)) * 1px);
  transform-origin: 0 0; transform: scale(var(--s, 1)) translate(calc(var(--cx, 0) * -1px), calc(var(--cy, 0) * -1px));
  display: flex; flex-direction: column;
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans", "Helvetica Neue", sans-serif;
  color: #1d1d1f; background: #ececec; text-align: left; -webkit-font-smoothing: antialiased;
}
.ax-app * { box-sizing: border-box; }
.ax-tb { flex: none; height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #e3e3e3; border-bottom: 1px solid #d0d0d0; }
.ax-tb i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px #0002; }
.ax-tb i:nth-child(2) { background: #febc2e; }
.ax-tb i:nth-child(3) { background: #28c840; }
.ax-tb span { flex: 1; text-align: center; margin-right: 52px; font-weight: 600; color: #4d4d4d; }

.ax-head { flex: none; display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: #f6f6f6; border-bottom: 1px solid #d9d9d9; }
.ax-icon {
  flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 20px;
  background: linear-gradient(140deg, #3d7bff 0%, #1f4fd6 55%, #11a4a0 100%); box-shadow: 0 1px 2px #0003;
}
.ax-title b { display: block; font-size: 13px; }
.ax-title small { color: #1f9d3a; font-size: 11px; white-space: nowrap; }
.ax-steps { flex: 1; display: flex; align-items: center; justify-content: center; }
.ax-step { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ax-step i {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 700 11px/1 inherit;
  font-style: normal; color: #8a8a8e; background: #e1e1e3;
}
.ax-step.on i, .ax-step.done i { background: #007aff; color: #fff; }
.ax-step b { display: block; font-size: 13px; font-weight: 400; color: #8a8a8e; }
.ax-step.on b { font-weight: 600; color: #1d1d1f; }
.ax-step small { display: block; font-size: 10px; color: #8a8a8e; }
.ax-steps hr { width: 34px; height: 2px; margin: 0 10px; border: 0; border-radius: 2px; background: #d6d6d8; }
.ax-steps hr.done { background: #007aff; }

.ax-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 6px; font-size: 13px; white-space: nowrap;
  background: #fff; border: .5px solid #c4c4c6; box-shadow: 0 .5px 1px #0002; color: #1d1d1f;
}
.ax-btn.primary { background: #007aff; border-color: #0066d6; color: #fff; }
.ax-btn.large { padding: 6px 16px; font-size: 13.5px; }
.ax-btn.pro { color: #fff; border: 0; background: linear-gradient(135deg, #ff9f0a, #ff6a3d); font-weight: 600; }
.ax-btn.dim { opacity: .5; }

.ax-body { flex: 1; min-height: 0; overflow: hidden; }
.ax-page { max-width: 980px; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.ax-h { font-size: 22px; font-weight: 700; margin: 0; }
.ax-sub { color: #6e6e73; margin: -10px 0 0; }
.ax-card { background: #fff; border: 1px solid #dcdcde; border-radius: 10px; padding: 16px; }
.ax-row { display: flex; align-items: center; gap: 10px; }
.ax-grow { flex: 1; }
.ax-muted { color: #6e6e73; }
.ax-orange { color: #c56a00; }
.ax-green { color: #1f9d3a; }
.ax-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #e8f1ff; color: #0060df; }
.ax-chip.gray { background: #ececee; color: #6e6e73; }
.ax-chip.green { background: #e3f6e8; color: #1f8a37; }
.ax-chip.pro { background: linear-gradient(135deg, #ff9f0a, #ff6a3d); color: #fff; }
.ax-foot { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 18px; background: #f6f6f6; border-top: 1px solid #d9d9d9; color: #6e6e73; }
.ax-foot a { color: #007aff; }
.ax-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #c7c7cc; border-top-color: #6e6e73; }

/* scan results */
.ax-summary { display: flex; gap: 16px; align-items: flex-start; }
.ax-summary .ic { font-size: 34px; line-height: 1; color: #ff9500; }
.ax-summary h4 { margin: 0 0 4px; font-size: 17px; }
.ax-disclose { color: #1d1d1f; font-size: 13px; }
.ax-disclose::before { content: "▾ "; color: #8a8a8e; }
.ax-stack { display: grid; grid-template-columns: 170px 28px 150px 28px 180px 28px 140px 28px 1fr; align-items: center; row-gap: 8px; }
.ax-stack .col { display: flex; flex-direction: column; gap: 8px; }
.ax-stack .lbl { font-size: 10.5px; font-weight: 700; color: #8a8a8e; text-transform: uppercase; letter-spacing: .3px; }
.ax-node { border: 1px solid #d4d4d8; border-radius: 8px; padding: 6px 9px; background: #fafafa; font-size: 12px; line-height: 1.3; }
.ax-node b { display: block; font-size: 12.5px; }
.ax-node.miss { border-style: dashed; color: #c56a00; background: #fff8ec; border-color: #f5c37a; }
.ax-node.warn { border-color: #f5c37a; background: #fff8ec; }
.ax-node.vol { border-color: #7fb1ff; background: #eef5ff; }
.ax-arrow { text-align: center; color: #a1a1a6; font-size: 16px; }

/* volume cards */
.ax-vol { display: flex; align-items: center; gap: 14px; }
.ax-vol .vi { width: 34px; font-size: 26px; text-align: center; }
.ax-vol h5 { margin: 0; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.ax-vol.rec { border: 2px solid #007aff; }
.ax-bar { height: 6px; border-radius: 3px; background: #e5e5ea; overflow: hidden; width: 220px; margin-top: 6px; }
.ax-bar i { display: block; height: 100%; background: #007aff; }
.ax-locked { background: #fffaf0; border-color: #f2d49b; }

/* browser */
.ax-split { display: flex; height: 100%; }
.ax-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }
.ax-side { width: 340px; flex: none; border-left: 1px solid #dcdcde; background: #f8f8f8; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ax-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid #e5e5ea; background: #fbfbfb; }
.ax-path { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.ax-path a { color: #007aff; }
.ax-path em { font-style: normal; color: #a1a1a6; }
.ax-seg { display: inline-flex; border: .5px solid #c4c4c6; border-radius: 6px; overflow: hidden; background: #fff; }
.ax-seg span { padding: 2px 10px; font-size: 12px; border-left: .5px solid #c4c4c6; }
.ax-seg span:first-child { border-left: 0; }
.ax-seg span.on { background: #6e6e73; color: #fff; }
.ax-select { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 6px; border: .5px solid #c4c4c6; background: #fff; font-size: 12px; }
.ax-select::after { content: "⌄"; color: #8a8a8e; margin-top: -4px; }
.ax-wall { flex: 1; overflow: hidden; padding: 12px 16px; }
.ax-month { font-weight: 700; font-size: 13px; margin: 6px 0 8px; }
.ax-month small { font-weight: 400; color: #8a8a8e; margin-left: 6px; }
.ax-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-bottom: 12px; }
.ax-tiles i { aspect-ratio: 1; border-radius: 4px; background: var(--g); position: relative; }
.ax-tiles i.sel { outline: 3px solid #007aff; outline-offset: -3px; }
.ax-tiles i.sel::after { content: "✓"; position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; border-radius: 50%; background: #007aff; color: #fff; font: 700 10px/16px sans-serif; text-align: center; font-style: normal; }
.ax-preview { border-radius: 8px; aspect-ratio: 4/3; background: var(--g); box-shadow: 0 1px 3px #0003; }
.ax-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 12px; }
.ax-kv dt { color: #8a8a8e; }
.ax-kv dd { margin: 0; }
.ax-actionbar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-top: 1px solid #e5e5ea; background: #fbfbfb; }

/* list view */
.ax-list { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ax-list th { text-align: left; font-weight: 500; color: #6e6e73; padding: 5px 14px; border-bottom: 1px solid #e5e5ea; font-size: 11.5px; }
.ax-list td { padding: 5px 14px; }
.ax-list tr:nth-child(even) td { background: #f5f5f7; }
.ax-banner { display: flex; align-items: center; gap: 8px; padding: 7px 14px; background: #eef5ff; border-bottom: 1px solid #cfe0ff; color: #0050c0; font-size: 12.5px; }
.ax-menu {
  position: absolute; z-index: 3; min-width: 250px; padding: 5px; border-radius: 9px; background: #f6f6f6f2;
  border: .5px solid #c4c4c6; box-shadow: 0 10px 30px #0003; font-size: 13px;
}
.ax-menu div { padding: 3px 10px 3px 26px; border-radius: 5px; position: relative; }
.ax-menu div.on { background: #007aff; color: #fff; }
.ax-menu div.chk::before { content: "✓"; position: absolute; left: 9px; }
.ax-menu hr { border: 0; border-top: 1px solid #d6d6d8; margin: 4px 6px; }
.ax-menu .h { color: #8a8a8e; font-size: 11.5px; padding-left: 10px; }

/* export */
.ax-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ax-sec { font-size: 13.5px; font-weight: 700; margin: 0 0 8px; }
.ax-check { display: flex; align-items: center; gap: 6px; }
.ax-check i { width: 14px; height: 14px; border-radius: 4px; border: .5px solid #b9b9bd; background: #fff; display: grid; place-items: center; font: 700 10px/1 sans-serif; font-style: normal; color: #fff; }
.ax-check i.on { background: #007aff; border-color: #007aff; }
.ax-checks { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 16px; justify-content: start; }
.ax-field { padding: 4px 9px; border-radius: 6px; border: .5px solid #c4c4c6; background: #fff; font-size: 12.5px; }
.ax-progress { height: 8px; border-radius: 4px; background: #e5e5ea; overflow: hidden; }
.ax-progress i { display: block; height: 100%; background: #007aff; border-radius: 4px; }

/* tools sheet */
.ax-dim { position: absolute; inset: 28px 0 0; background: #0000002e; display: grid; place-items: start center; padding-top: 40px; }
.ax-sheet { width: 860px; background: #f6f6f6; border-radius: 12px; border: .5px solid #b9b9bd; box-shadow: 0 20px 60px #0005; overflow: hidden; }
.ax-sheet-head { display: flex; justify-content: center; padding: 12px; border-bottom: 1px solid #dcdcde; }
.ax-sheet-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.ax-sheet-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px; border-top: 1px solid #dcdcde; }
.ax-heat { display: grid; grid-template-columns: repeat(48, 1fr); gap: 2px; padding: 10px; background: #fff; border: 1px solid #dcdcde; border-radius: 8px; }
.ax-heat i { aspect-ratio: 1; border-radius: 2px; background: #34c759; }
.ax-heat i.b { background: #ff3b30; }
.ax-heat i.t { background: #ffcc00; }
.ax-heat i.p { background: #e5e5ea; }
.ax-legend { display: flex; gap: 14px; font-size: 11.5px; color: #6e6e73; }
.ax-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; background: var(--c); }
.ax-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ax-stats div { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 8px 10px; }
.ax-stats b { display: block; font-size: 16px; }
.ax-stats small { color: #8a8a8e; font-size: 11px; }
.ax-key { font: 13px ui-monospace, Menlo, monospace; letter-spacing: .3px; }

/* Finder window (Pro: mounted in Finder) */
.ax-finder { display: flex; flex: 1; min-height: 0; background: #fff; }
.ax-fside { width: 190px; flex: none; padding: 10px 8px; background: #ececec; border-right: 1px solid #d6d6d8; font-size: 13px; }
.ax-fside h6 { margin: 10px 8px 4px; font-size: 11px; color: #8a8a8e; font-weight: 600; }
.ax-fside div { display: flex; align-items: center; gap: 7px; padding: 3px 8px; border-radius: 6px; }
.ax-fside div.on { background: #d6d6db; }
.ax-fside div em { margin-left: auto; font-style: normal; color: #8a8a8e; }
.ax-fmain { flex: 1; display: flex; flex-direction: column; }
.ax-ftool { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid #e5e5ea; font-weight: 600; font-size: 14px; }
.ax-ftool .ro { margin-left: auto; font-weight: 500; font-size: 12px; color: #6e6e73; }
.ax-icons { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); align-content: start; gap: 18px 8px; padding: 22px 18px; }
.ax-icons div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; text-align: center; }
.ax-icons i { font-style: normal; font-size: 54px; line-height: 1; }
.ax-icons div.sel span { background: #007aff; color: #fff; border-radius: 4px; padding: 0 5px; }
.ax-icons div.sel i { background: #0000000f; border-radius: 8px; }
.ax-fstatus { padding: 5px 14px; border-top: 1px solid #e5e5ea; font-size: 11.5px; color: #6e6e73; text-align: center; }

/* ---------------------------------------------------------------- drive apps (NTFSApp/DriveViews.swift) */
.ax-app:has(.dw) { flex-direction: row; background: #f5f5f7; }
.dw { flex: 1; display: flex; min-height: 0; }
.dw-side { width: 250px; flex: none; display: flex; flex-direction: column; padding: 0 10px 12px; background: #e8e8ec; border-right: 1px solid #d4d4d8; }
.dw-lights { background: transparent; border: 0; padding: 0 4px; height: 44px; }
.dw-sec { font-size: 11px; font-weight: 700; color: #8a8a8e; padding: 6px 8px 4px; }
.dw-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px; font-size: 13px; }
.dw-row.on { background: #d0d0d6; }
.dw-row small { display: block; font-size: 11px; color: #6e6e73; }
.dw-row .ej { color: #8a8a8e; font-size: 12px; }
.dw-row .dot { position: absolute; left: 28px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: #34c759; border: 1.5px solid #e8e8ec; }
.dw-row .dot.ro { background: #ff9500; }
.dw-dicon {
  flex: none; position: relative; width: var(--z); height: calc(var(--z) * .72); border-radius: calc(var(--z) * .16);
  background: linear-gradient(180deg, #5b9dff, #2f6fe0); box-shadow: inset 0 -2px 0 #0002;
}
.dw-dicon::after { content: ""; position: absolute; right: 18%; bottom: 22%; width: 12%; height: 17%; border-radius: 50%; background: #fff; }
.dw-row:not(.on) .dw-dicon { background: linear-gradient(180deg, #a1a1a6, #7c7c80); }
.dw-plan { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px; background: #fff; border: 1px solid #dcdcde; font-size: 12.5px; }
.dw-plan small { color: #6e6e73; font-size: 11px; line-height: 1.35; }
.dw-plan .ax-btn { justify-content: center; }
.dw-plan.pro { flex-direction: row; color: #1f9d3a; font-weight: 600; }
.dw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fafafa; }
.dw-toolbar { flex: none; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid #e0e0e3; background: #f6f6f6; font-size: 14px; }
.dw-detail { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.dw-hcard { position: relative; display: flex; align-items: center; gap: 16px; }
.dw-name { font-size: 19px; font-weight: 600; margin-bottom: 5px; }
.dw-pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.dw-pill.blue { background: #e3eeff; color: #0060df; }
.dw-pill.green { background: #e3f6e8; color: #1f8a37; }
.dw-pill.gray { background: #ececee; color: #6e6e73; }
.dw-pill.orange { background: #fff1dc; color: #b45f00; }
.ax-btn.orangeb { background: #ff9500; border-color: #e58600; color: #fff; }
.ax-btn.redb { background: #ff3b30; border-color: #e0291f; color: #fff; }
.dw-tools { top: 62px; right: 70px; min-width: 230px; }
.dw-notice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.dw-notice.orange { background: #fff3e0; color: #1d1d1f; }
.dw-notice.orange > span:first-child { color: #ff9500; }
.dw-browser { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #e0e0e3; border-radius: 12px; overflow: hidden; }
.dw-pathbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #e5e5ea; }
.dw-split { flex: 1; min-height: 0; display: flex; }
.dw-table { flex: 1; align-self: flex-start; }
.dw-table tr.sel td { background: #0064e1 !important; color: #fff; }
.dw-table .fi { font-style: normal; color: #8a8a8e; margin-right: 4px; }
.dw-table .fi.d { color: #3d8bfd; }
.dw-table tr.sel .fi { color: #fff; }
.dw-preview { width: 300px; flex: none; display: flex; flex-direction: column; gap: 3px; padding: 12px; border-left: 1px solid #e5e5ea; }
.dw-preview b { font-size: 13.5px; }
.dw-preview small { font-size: 11.5px; }
.dw-preview hr { width: 100%; border: 0; border-top: 1px solid #e5e5ea; margin: 6px 0; }
.dw-job { display: flex; flex-direction: column; gap: 10px; }
.dw-log { height: 130px; margin: 0; padding: 10px; border-radius: 8px; background: #fff; border: 1px solid #e5e5ea; font: 11.5px/1.5 ui-monospace, Menlo, monospace; color: #3a3a3c; overflow: hidden; }
.dw-unlock, .dw-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.dw-unlock .big, .dw-empty .big { font-size: 42px; opacity: .6; }
.dw-utitle, .dw-empty > b { font-size: 17px; }
.dw-umsg, .dw-empty > .ax-muted { max-width: 460px; }
.dw-uform { width: 420px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.dw-uform .mono { font: 11.5px ui-monospace, Menlo, monospace; }
.ax-field.ph { color: #a1a1a6; }
.dw-format { width: 500px; padding: 24px; display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.dw-format .big.red { font-size: 30px; color: #ff3b30; line-height: 1; }
.dw-ftitle { font-size: 18px; display: block; margin-bottom: 4px; }
.dw-form { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #e0e0e3; }
.dw-form .hint { font-size: 11.5px; margin-top: -4px; }
