/* Field app (field.js) — minimal, slightly futuristic skin over the business app's screen flow.
   Layout: one phone-width column; deep navy ground with a faint grid; glass panels; one glowing accent per module. */
.fx-root, .fx-dialog, .fx-dim {
  --bg0: #070b16; --bg1: #0d1428; --glass: rgba(255,255,255,.055); --glass2: rgba(255,255,255,.09); --line: rgba(255,255,255,.12);
  --tx: #eaf0ff; --mut: #8f9bb8; --dim: #5d6885;
  --cyan: #45e3ff; --mint: #3dffb0; --violet: #a98bff; --amber: #ffb36b; --red: #ff5d73;
  --ac: var(--cyan);
  --f-head: "Sora", "Segoe UI", system-ui, sans-serif; --f-body: "Inter", "Segoe UI", system-ui, sans-serif; --f-mono: "JetBrains Mono", ui-monospace, monospace;
}
.fx-root { background: var(--bg0); min-height: 100vh; min-height: 100dvh; color: var(--tx); }
:where(.fx-root, .fx-dialog, .fx-dim) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
:where(.fx-root, .fx-dialog, .fx-dim) button:hover { border-color: transparent; }
:where(.fx-root) input, :where(.fx-root) select { color: var(--tx); width: auto; }
:where(.fx-root) label { margin: 0; font-size: inherit; color: inherit; }
.fx-root *, .fx-dialog *, .fx-dim * { box-sizing: border-box; }
.fx-root :focus-visible, .fx-dialog :focus-visible, .fx-dim :focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }

.fx { position: relative; width: 100%; max-width: 440px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; overflow: hidden; font-family: var(--f-body); color: var(--tx);
  background: radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--ac) 16%, transparent), transparent 60%),
              linear-gradient(var(--bg0), var(--bg1));
  -webkit-tap-highlight-color: transparent; }
.fx::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(#000, transparent 70%); -webkit-mask-image: linear-gradient(#000, transparent 70%); }
.fx > * { position: relative; }
.fx-i { display: block; width: 24px; height: 24px; }

/* buttons */
.fx-pill { display: block; margin: 0 auto; min-width: 160px; height: 46px; padding: 0 26px; border-radius: 14px !important; font: 600 15px var(--f-head) !important; letter-spacing: .3px;
  color: #06101c !important; background: var(--ac) !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ac) 60%, transparent), 0 8px 28px -8px var(--ac);
  transition: transform .15s, box-shadow .2s, opacity .2s; }
.fx-pill:active { transform: scale(.97); }
.fx-pill:disabled { opacity: .35; box-shadow: none; cursor: default; }
.fx-pill.fx-wb, .fx-pill.fx-ghost { color: var(--tx) !important; background: var(--glass2) !important; box-shadow: inset 0 0 0 1px var(--line); }
.fx-pill.fx-go, .fx-pill.fx-orange, .fx-pill.fx-greyb { color: #06101c !important; background: var(--ac) !important; }
.fx-pill.fx-grey { color: var(--mut) !important; background: var(--glass) !important; box-shadow: inset 0 0 0 1px var(--line); opacity: 1; }
.fx-pill.fx-wb { min-width: 92px; height: 42px; padding: 0 16px; }
.fx-pill.fx-start { margin-top: 18px !important; }

/* brand */
.fx-dmits { font: 700 20px var(--f-head); letter-spacing: .4px; text-align: center; padding-top: 22px; color: var(--tx); }
.fx-dmits span { color: var(--red); }
.fx-logo { height: 30px; filter: drop-shadow(0 0 10px rgba(69,227,255,.25)); }

/* intro + welcome */
.fx-intro { display: flex; flex-direction: column; align-items: center; padding: 80px 28px 36px; text-align: center; --ac: var(--amber); }
.fx-ill { width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; color: var(--ac);
  background: radial-gradient(circle, color-mix(in srgb, var(--ac) 22%, transparent), transparent 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 35%, transparent); }
.fx-ill .fx-i { width: 86px; height: 86px; }
.fx-ill.c0 { --ac: var(--cyan); } .fx-ill.c1 { --ac: var(--mint); } .fx-ill.c2 { --ac: var(--violet); }
.fx-it { font: 600 19px var(--f-head); margin-top: 34px; text-wrap: balance; }
.fx-is { font: 400 14px/1.55 var(--f-body); color: var(--mut); margin-top: 12px; max-width: 300px; }
.fx-dots { display: flex; gap: 6px; margin: 64px 0 30px; } .fx-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--dim); transition: width .3s; } .fx-dots i.on { width: 24px; background: var(--ac); }
.fx-skip { margin-top: 14px; font: 500 14px var(--f-body); color: var(--mut) !important; }
.fx-welcome { display: flex; flex-direction: column; --ac: var(--red); }
.fx-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px; gap: 14px; }
.fx-biglogo { width: 150px; padding: 12px 16px; background: #fff; border-radius: 18px; box-shadow: 0 20px 60px -20px var(--red); }
.fx-tag { font: 500 13px var(--f-mono); letter-spacing: 2px; text-transform: uppercase; color: var(--mut); margin: 6px 0 26px; }
.fx-red, .fx-redline { display: block; width: 100%; height: 50px; border-radius: 14px !important; font: 600 15px var(--f-head) !important; letter-spacing: .5px; }
.fx-red { background: var(--red) !important; color: #fff !important; box-shadow: 0 10px 30px -10px var(--red); }
.fx-redline { color: var(--tx) !important; box-shadow: inset 0 0 0 1px var(--line); background: var(--glass) !important; }
.fx-powered { text-align: center; font: 500 10px var(--f-mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); padding-bottom: 28px; }
.fx-powered img { display: block; width: 52px; margin: 8px auto 0; filter: drop-shadow(0 0 12px rgba(255,60,60,.4)); }

/* sign in / sign up */
.fx-sign, .fx-signup { --ac: var(--red); }
.fx-sign { padding: 0 24px 30px; }
.fx-sign .fx-dmits { margin: 36px 0 64px; }
.fx-h, .fx-sh { font: 600 22px var(--f-head); margin-bottom: 18px; }
.fx-sh { font-size: 13px; font-family: var(--f-mono); color: var(--mut); text-transform: uppercase; letter-spacing: 1.5px; margin: 18px 0 10px; }
.fx-box, .fx-sq, .fx-in, .fx-lang { display: block; width: 100% !important; height: 50px; border: 0 !important; border-radius: 14px !important; padding: 0 16px; margin: 0;
  font: 400 15px var(--f-body) !important; color: var(--tx) !important; background: var(--glass) !important; box-shadow: inset 0 0 0 1px var(--line); outline: none; transition: box-shadow .2s; }
.fx-box, .fx-sq { margin-bottom: 14px; }
.fx-box:focus, .fx-sq:focus, .fx-in:focus, .fx-lang:focus { box-shadow: inset 0 0 0 1px var(--ac), 0 0 0 4px color-mix(in srgb, var(--ac) 18%, transparent); }
.fx-box::placeholder, .fx-sq::placeholder, .fx-in::placeholder { color: var(--dim); opacity: 1; }
input.fx-in[type="date"] { color-scheme: dark; }
.fx-pw { position: relative; } .fx-pw .fx-eye { position: absolute; right: 12px; top: 13px; color: var(--mut) !important; }
.fx-row2 { display: flex; justify-content: space-between; font: 500 12.5px var(--f-body); color: var(--mut); margin: 4px 0 20px; }
.fx-lab { display: flex; align-items: center; gap: 10px; font: 500 13px var(--f-body); color: var(--mut); margin-bottom: 14px; }
.fx-cb, .fx-consent input { width: 18px; height: 18px; accent-color: var(--ac); }
.fx-err { color: var(--red); font: 500 13px var(--f-body); margin: 6px 0 10px; } .fx-err:empty { display: none; }
.fx-err.w { color: var(--tx); background: var(--glass); padding: 10px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.fx-sign .fx-red { margin-top: 18px; }
.fx-link { display: block; margin: 20px auto 0; color: var(--ac) !important; font: 500 14px var(--f-body) !important; }
.fx-signup { padding: 0 0 24px; }
.fx-tb { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 18px; border-bottom: 1px solid var(--line); font: 600 17px var(--f-head); }
.fx-arrow { font-size: 22px !important; color: var(--tx) !important; }
.fx-signup > :not(.fx-tb) { margin-left: 22px; margin-right: 22px; }
.fx-signup .fx-sq { width: calc(100% - 44px) !important; }
.fx-signup .fx-dmits { padding-top: 18px; margin-bottom: 4px; }
.fx-small { font: 500 11px var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.fx-gender { display: inline-flex; padding: 4px; gap: 4px; background: var(--glass); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 6px; }
.fx-gender button { width: 96px; height: 36px; border-radius: 9px !important; font: 500 13px var(--f-body) !important; color: var(--mut) !important; transition: background .2s, color .2s; }
.fx-gender button.on { background: var(--ac) !important; color: #06101c !important; }
.fx-note2 { font: 400 12px/1.5 var(--f-body); color: var(--dim); margin-bottom: 12px; }
.fx-two { display: flex; gap: 10px; } .fx-two .fx-pill { flex: 1; min-width: 0; }

/* home */
.fx-home { padding: 0 18px 120px; }
.fx-home.under { pointer-events: none; }
.fx-top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; }
.fx-orb { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--cyan);
  background: radial-gradient(circle, rgba(69,227,255,.22), transparent 70%); box-shadow: inset 0 0 0 1px rgba(69,227,255,.35), 0 0 30px -6px rgba(69,227,255,.6); }
.fx-orb .fx-i { width: 28px; height: 28px; }
.fx-hi { margin-top: 30px; font: 700 30px/1.1 var(--f-head); letter-spacing: -.5px; }
.fx-wel { margin-top: 6px; font: 400 13px var(--f-body); color: var(--mut); }
.fx-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.fx-tile { position: relative; height: 136px; border-radius: 20px !important; padding: 16px !important; display: flex !important; flex-direction: column; justify-content: space-between; align-items: flex-start;
  text-align: left; font: 600 14px/1.3 var(--f-head) !important; color: var(--tx) !important; background: var(--glass) !important; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
  transition: transform .15s, box-shadow .25s; }
.fx-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ac) 30%, transparent), transparent 70%); }
.fx-tile .fx-i { width: 34px; height: 34px; color: var(--ac); position: relative; z-index: 1; }
.fx-tile:active { transform: scale(.97); }
.fx-tile:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 55%, transparent); }
.fx-tile.cyan { --ac: var(--cyan); } .fx-tile.green { --ac: var(--mint); } .fx-tile.purple { --ac: var(--violet); } .fx-tile.orange { --ac: var(--amber); }
.fx-tile.off { opacity: .38; } .fx-tile.off .fx-i * { animation: none !important; }
.fx-reports { margin-top: 14px; border-radius: 20px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); padding: 14px 0 14px 16px; }
.fx-rep-tab { font: 500 11px var(--f-mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--mut); margin-bottom: 10px; }
.fx-rep-list { display: flex; gap: 10px; overflow-x: auto; padding-right: 16px; scrollbar-width: none; } .fx-rep-list::-webkit-scrollbar { display: none; }
.fx-rep-empty { font: 500 14px/1.5 var(--f-body); color: var(--mut); padding: 6px 0 4px; }
.fx-rep { flex: 0 0 auto; display: flex !important; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px !important; border-radius: 12px !important; background: var(--glass2) !important; box-shadow: inset 0 0 0 1px var(--line); --ac: var(--amber); }
.fx-rep .fx-i { width: 20px; height: 20px; color: var(--ac); }
.fx-rep span { font: 500 13px var(--f-body); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-nav { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 20px; background: rgba(13,20,40,.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -20px #000; }
.fx-homebtn, .fx-navi, .fx-chat { display: flex !important; align-items: center; gap: 8px; height: 44px; padding: 0 14px !important; border-radius: 14px !important; color: var(--mut) !important; }
.fx-homebtn { color: #06101c !important; background: var(--cyan) !important; font: 600 14px var(--f-head) !important; }
.fx-homebtn .fx-i, .fx-navi .fx-i, .fx-chat .fx-i { width: 22px; height: 22px; }
.fx-navi:hover, .fx-chat:hover { color: var(--tx) !important; }

/* module pages over the dimmed home screen */
.fx-stack { position: relative; width: 100%; max-width: 440px; margin: 0 auto; min-height: 100dvh; overflow: hidden; }
.fx-ov { position: absolute; inset: 0; z-index: 2; overflow-y: auto; padding-bottom: 40px; color: var(--tx); font-family: var(--f-body);
  background: radial-gradient(120% 50% at 50% 0%, color-mix(in srgb, var(--ac) 20%, transparent), transparent 65%), rgba(7,11,22,.9);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: fx-in .35s ease-out; }
.fx-ov.cyan { --ac: var(--cyan); } .fx-ov.green { --ac: var(--mint); } .fx-ov.purple { --ac: var(--violet); } .fx-ov.orange { --ac: var(--amber); }
@keyframes fx-in { from { opacity: 0; transform: translateY(10px); } }
.fx-bar { display: flex; align-items: center; gap: 12px; padding: 18px 18px 6px; }
.fx-back { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px !important; display: grid !important; place-items: center; color: var(--tx) !important; background: var(--glass) !important; box-shadow: inset 0 0 0 1px var(--line); }
.fx-back .fx-i { width: 20px; height: 20px; }
.fx-title { font: 600 21px var(--f-head); letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-title::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 10px var(--ac); vertical-align: middle; }

/* client registration */
.fx-form { padding: 18px 20px 10px; display: flex; flex-direction: column; gap: 10px; }
.fx-three { display: flex; gap: 8px; } .fx-three .fx-in { min-width: 0; padding: 0 12px; }
.fx-exeid { position: relative; } .fx-exeid span { position: absolute; left: 66px; top: 16px; font: 400 13px var(--f-body); color: var(--dim); pointer-events: none; white-space: nowrap; opacity: .7; }
.fx-exeid input:not(:placeholder-shown) + span { display: none; }
.fx-consent { display: flex; gap: 10px; align-items: center; color: var(--mut); font: 400 13px/1.4 var(--f-body); padding: 6px 2px; }
.fx-form .fx-pill { margin-top: 16px; }
.fx-client { display: flex !important; justify-content: space-between; align-items: center; text-align: left; } .fx-client span { color: var(--dim); font-size: 13px; }

/* capture grid */
.fx-side { position: relative; display: flex !important; align-items: center; margin: 8px auto 0; width: max-content; height: 36px; padding: 0 16px !important; border-radius: 12px !important;
  background: var(--glass) !important; box-shadow: inset 0 0 0 1px var(--line); font: 500 13px var(--f-mono) !important; letter-spacing: 1px; text-transform: uppercase; color: var(--ac) !important; }
.fx-side::before { content: "Hand ·"; color: var(--mut); margin-right: 6px; }
.fx-side::after { content: "⇄"; color: var(--mut); margin-left: 8px; }
.fx-grid { margin: 22px 18px 24px; display: flex; flex-direction: column; gap: 10px; }
.fx-gr { display: flex; align-items: center; padding: 8px 8px 8px 14px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.fx-gr > span { flex: 1; font: 500 14px var(--f-body); color: var(--tx); }
.fx-dot { flex: 0 0 48px; width: 48px; height: 48px; margin-left: 8px; border-radius: 14px !important; display: grid !important; place-items: center; font: 600 15px var(--f-mono) !important; color: var(--mut) !important;
  box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, box-shadow .25s, color .25s; }
.fx-dot:hover { color: var(--tx) !important; box-shadow: inset 0 0 0 1px var(--ac); }
.fx-dot.ok { background: color-mix(in srgb, var(--ac) 18%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 60%, transparent), 0 0 18px -6px var(--ac); color: var(--ac) !important; }
.fx-dot.ok .fx-i { width: 24px; height: 24px; }
.fx-sheet-dim { position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,.4); animation: fx-in .2s; }
.fx-sheet { position: absolute; left: 14px; right: 14px; bottom: 16px; height: 120px; border-radius: 24px; display: flex; align-items: stretch; gap: 10px; padding: 10px;
  background: rgba(13,20,40,.92); box-shadow: inset 0 0 0 1px var(--line), 0 -10px 40px -10px #000; animation: fx-up .3s ease-out; }
@keyframes fx-up { from { transform: translateY(30px); opacity: 0; } }
.fx-sheet button { flex: 1; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 16px !important; background: var(--glass) !important; color: var(--ac) !important;
  box-shadow: inset 0 0 0 1px var(--line); }
.fx-sheet button::after { font: 500 12px var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mut); }
.fx-sheet button:first-child::after { content: "Camera"; } .fx-sheet button:last-of-type::after { content: "FS80H scanner"; }
.fx-sheet .fx-i { width: 40px; height: 40px; } .fx-sheet > i { display: none; }

/* live capture */
.fx-livepage { z-index: 6; }
.fx-sub { text-align: center; font: 500 14px var(--f-mono); letter-spacing: .5px; color: var(--ac); margin: 20px 0 16px; }
.fx-livebox { position: relative; width: 272px; height: 380px; margin: 0 auto; border-radius: 26px; overflow: hidden; display: grid; place-items: center; background: #02050c;
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px #000; transition: box-shadow .3s; }
.fx-livebox.touch { box-shadow: inset 0 0 0 1px var(--ac), 0 0 50px -12px var(--ac); }
.fx-livebox canvas, .fx-livebox img { width: 100%; height: 100%; object-fit: contain; }
.fx-corners { position: absolute; inset: 16px; pointer-events: none; --c: color-mix(in srgb, var(--ac) 80%, transparent);
  background: linear-gradient(var(--c), var(--c)) left top / 22px 2px no-repeat, linear-gradient(var(--c), var(--c)) left top / 2px 22px no-repeat,
              linear-gradient(var(--c), var(--c)) right top / 22px 2px no-repeat, linear-gradient(var(--c), var(--c)) right top / 2px 22px no-repeat,
              linear-gradient(var(--c), var(--c)) left bottom / 22px 2px no-repeat, linear-gradient(var(--c), var(--c)) left bottom / 2px 22px no-repeat,
              linear-gradient(var(--c), var(--c)) right bottom / 22px 2px no-repeat, linear-gradient(var(--c), var(--c)) right bottom / 2px 22px no-repeat; }
.fx-beam { position: absolute; left: 16px; right: 16px; top: 16px; height: 2px; border-radius: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--ac), transparent); box-shadow: 0 0 14px var(--ac); }
.fx-livebox.live .fx-beam { opacity: .9; animation: fx-beam 2.2s ease-in-out infinite; }
@keyframes fx-beam { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(344px); } }
.fx-live-info { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 10px; border-radius: 12px; font: 500 12px var(--f-body); color: var(--tx); text-align: center;
  background: rgba(7,11,22,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line); }
.fx-live-info:empty { display: none; }
.fx-three-b { display: flex; justify-content: center; gap: 10px; margin-top: 26px; } .fx-three-b .fx-pill { margin: 0; }
.fx-three-b .fx-pill:nth-child(2) { color: #06101c !important; background: var(--ac) !important; min-width: 120px; }

/* submitted dialog */
.fx-dialog { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(4,7,15,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); --ac: var(--mint); animation: fx-in .3s; }
.fx-dlg { max-width: 380px; margin: 0 20px; padding: 30px 24px 26px; text-align: center; border-radius: 26px; background: var(--bg1); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -30px #000; color: var(--tx); }
.fx-okring { width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; color: var(--ac); box-shadow: inset 0 0 0 1px var(--ac), 0 0 40px -8px var(--ac); }
.fx-okring .fx-i { width: 34px; height: 34px; }
.fx-dlg .g { font: 400 14.5px/1.6 var(--f-body); color: var(--tx); margin: 0 0 14px; } .fx-dlg .r { font: 400 13px/1.55 var(--f-body); color: var(--mut); margin: 18px 0 24px; padding: 12px; border-radius: 12px; background: var(--glass); }

/* profile sheet */
.fx-dim { position: fixed; inset: 0; z-index: 1500; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; }
.fx-card { width: 100%; max-width: 440px; padding: 24px 22px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; border-radius: 26px 26px 0 0;
  background: var(--bg1); color: var(--tx); font: 400 14px var(--f-body); box-shadow: inset 0 1px 0 var(--line); animation: fx-up .3s ease-out; }
.fx-card b { font: 600 17px var(--f-head); }

/* dermatoglyphics assessment */
.fx-assess { padding-top: 10px; }
.fx-car { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 90px; scrollbar-width: none; } .fx-car::-webkit-scrollbar { display: none; }
.fx-card3 { flex: 0 0 220px; height: 280px; border-radius: 22px; scroll-snap-align: center; display: grid; place-items: center; overflow: hidden; background: #02050c; box-shadow: inset 0 0 0 1px var(--line); opacity: .55; transform: scale(.94); transition: .3s; }
.fx-card3.mid { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 60%, transparent), 0 0 40px -14px var(--ac); }
.fx-card3 span { font: 500 11px var(--f-mono); letter-spacing: 1px; color: var(--dim); text-transform: uppercase; } .fx-card3 img { width: 100%; height: 100%; object-fit: contain; }
.fx-assess .fx-sub { margin: 22px 0 10px; }
.fx-pats { display: flex; gap: 10px; overflow-x: auto; padding: 8px 150px; align-items: center; scrollbar-width: none; height: 140px; } .fx-pats::-webkit-scrollbar { display: none; }
.fx-pat { flex: 0 0 64px; height: 64px; border-radius: 50% !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--glass) !important;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--mut) !important; transition: .25s; }
.fx-pat b { font: 600 15px var(--f-mono); color: var(--tx); } .fx-pat small { font: 400 8px/1.1 var(--f-body); max-width: 54px; text-align: center; }
.fx-pat.on { flex-basis: 116px; height: 116px; box-shadow: inset 0 0 0 1px var(--ac), 0 0 40px -10px var(--ac); background: color-mix(in srgb, var(--ac) 14%, transparent) !important; }
.fx-pat.on b { font-size: 28px; color: var(--ac); } .fx-pat.on small { font-size: 11px; max-width: 96px; color: var(--tx); }
.fx-code { width: max-content; min-width: 76px; padding: 0 16px; height: 34px; margin: 8px auto 10px; border-radius: 10px; display: grid; place-items: center; font: 600 16px var(--f-mono); color: var(--ac); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.fx-hint { color: var(--mut); font: 400 12px/1.5 var(--f-body); text-align: center; padding: 0 30px 16px; } .fx-hint.dark { color: var(--mut); }

/* generate report */
.fx-repform { padding: 22px 20px; }
.fx-lbl { font: 500 12px var(--f-mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--mut); margin: 0 0 12px; }
.fx-fmts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.fx-fmt { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; height: 54px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 15px var(--f-body); color: var(--tx); cursor: pointer; transition: box-shadow .2s; }
.fx-fmt:has(input:checked) { box-shadow: inset 0 0 0 1px var(--ac), 0 0 26px -12px var(--ac); }
.fx-sqcb { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--dim); position: relative; background: none; }
.fx-sqcb:checked { box-shadow: inset 0 0 0 1.5px var(--ac); } .fx-sqcb:checked::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 8px var(--ac); }
.fx-lang { margin-bottom: 26px; appearance: auto; color-scheme: dark; }
.fx-repform .fx-pill { min-width: 180px; }

/* animated icon parts */
.a-scan { animation: a-scan 2.4s ease-in-out infinite; opacity: .85; }
@keyframes a-scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(17px); } }
.a-draw { stroke-dasharray: 14; stroke-dashoffset: 14; animation: a-draw 2.8s ease-out infinite; }
.a-draw.once { stroke-dasharray: 24; stroke-dashoffset: 24; animation: a-draw-once .6s .15s ease-out forwards; }
@keyframes a-draw { 0% { stroke-dashoffset: 14; } 30%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes a-draw-once { to { stroke-dashoffset: 0; } }
.a-ping { transform-origin: 12px 12px; animation: a-ping 2.8s ease-out infinite; }
@keyframes a-ping { 0% { transform: scale(.7); opacity: .6; } 100% { transform: scale(1.05); opacity: 0; } }
.a-orbit { transform-origin: 12px 12px; animation: a-orbit 4s ease-in-out infinite; }
@keyframes a-orbit { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(1.5px, -1px) rotate(6deg); } 50% { transform: translate(0, 1.5px) rotate(0); } 75% { transform: translate(-1.5px, -1px) rotate(-6deg); } }
.a-type { stroke-dasharray: 8; stroke-dashoffset: 8; animation: a-type 3s ease-out infinite; } .a-type.t2 { animation-delay: .35s; } .a-type.t3 { animation-delay: .7s; }
@keyframes a-type { 0% { stroke-dashoffset: 8; } 35%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.a-pulse { transform-origin: 12px 13px; animation: a-pulse 2s ease-in-out infinite; }
@keyframes a-pulse { 50% { transform: scale(.8); } }
.a-dot { animation: a-dot 1.4s ease-in-out infinite; } .a-dot.d2 { animation-delay: .2s; } .a-dot.d3 { animation-delay: .4s; }
@keyframes a-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-1.6px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .fx-root *, .fx-dialog *, .fx-dim * { animation: none !important; transition: none !important; }
  .a-draw, .a-type { stroke-dashoffset: 0; }
}

/* my clients: home card + pipeline page */
.fx-cc { display: block !important; width: 100%; margin-top: 14px; padding: 14px 16px !important; border-radius: 20px !important; text-align: left; background: var(--glass) !important; box-shadow: inset 0 0 0 1px var(--line); }
.fx-cc-h { display: flex; justify-content: space-between; font: 500 11px var(--f-mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--mut); }
.fx-cc-go { color: var(--cyan); letter-spacing: .5px; text-transform: none; font-family: var(--f-body); font-size: 12px; }
.fx-cc-b { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.fx-donut { flex: 0 0 auto; transform: rotate(0deg); overflow: visible; }
.fx-seg { transition: stroke-width .25s, opacity .25s; animation: fx-seg .8s ease-out both; }
.fx-seg[tabindex] { cursor: pointer; } .fx-seg.dim { opacity: .28; } .fx-seg[tabindex]:hover { stroke-width: 6.4; }
@keyframes fx-seg { from { stroke-dasharray: 0 100; } }
.fx-dn-n { font: 700 9px var(--f-head); fill: var(--tx); } .fx-dn-l { font: 500 2.6px var(--f-mono); letter-spacing: .3px; fill: var(--mut); }
.fx-legend { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fx-lg { display: flex; align-items: center; gap: 8px; font: 400 12.5px var(--f-body); color: var(--mut); }
.fx-lg i { flex: 0 0 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.fx-lg span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fx-lg b { font: 600 13px var(--f-mono); color: var(--tx); }
.fx-legend.big .fx-lg { padding: 6px 8px; border-radius: 10px; cursor: pointer; transition: background .2s; }
.fx-legend.big .fx-lg:hover, .fx-legend.big .fx-lg.on { background: var(--glass2); color: var(--tx); }
.fx-pipe { padding: 10px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.fx-pipe-top { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 22px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.fx-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px; scrollbar-width: none; } .fx-tabs::-webkit-scrollbar { display: none; }
.fx-tab { --tc: var(--tx); flex: 0 0 auto; display: flex !important; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 14px !important; border-radius: 12px !important;
  font: 500 13px var(--f-body) !important; color: var(--mut) !important; background: var(--glass) !important; box-shadow: inset 0 0 0 1px var(--line); transition: .2s; }
.fx-tab span { font: 600 11px var(--f-mono); padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--tx); }
.fx-tab.on { color: #06101c !important; background: var(--tc) !important; box-shadow: 0 0 22px -8px var(--tc); } .fx-tab.on span { background: rgba(0,0,0,.15); color: #06101c; }
.fx-search { height: 44px !important; }
.fx-list { display: flex; flex-direction: column; gap: 8px; }
.fx-row { display: flex !important; align-items: center; gap: 12px; padding: 10px 12px !important; border-radius: 16px !important; text-align: left; background: var(--glass) !important; box-shadow: inset 0 0 0 1px var(--line);
  animation: fx-in .3s ease-out both; transition: box-shadow .2s; }
.fx-row:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 55%, transparent); }
.fx-av { flex: 0 0 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 600 13px var(--f-head); color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 40%, transparent); }
.fx-rmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fx-rmain b { font: 600 14px var(--f-head); color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-rmain small { font: 400 12px var(--f-body); color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-chip { flex: 0 0 auto; font: 500 10.5px var(--f-mono); letter-spacing: .3px; padding: 4px 8px; border-radius: 8px; color: var(--tc); background: color-mix(in srgb, var(--tc) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 35%, transparent); }

/* module pages are exactly one screen tall and scroll inside; bottom sheets stick to the screen, not the page */
.fx-stack { height: 100vh; height: 100dvh; min-height: 0; }
.fx-stack > .fx-home.under { height: 100%; overflow: hidden; }
.fx-ov { overscroll-behavior: contain; }
.fx-sheet-dim { position: fixed; inset: 0; z-index: 50; }
.fx-sheet { position: fixed; left: 50%; right: auto; width: min(412px, calc(100vw - 28px)); transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom, 0px)); animation: fx-up2 .3s ease-out; }
@keyframes fx-up2 { from { transform: translate(-50%, 30px); opacity: 0; } }
.fx-home:not(.under) .fx-nav { position: fixed; z-index: 20; }

/* phone camera capture */
.fx-cam { --vh: clamp(230px, calc(100dvh - 350px), 470px); height: var(--vh); width: min(calc(var(--vh) * .75), calc(100vw - 36px)); cursor: crosshair; }
.fx-cam video, .fx-cam .fx-review { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-cam .fx-review { display: none; object-fit: contain; background: #02050c; transition: transform .25s; cursor: zoom-in; }
.fx-cam .fx-review.zoom { transform: scale(2.2); cursor: zoom-out; }
.fx-cam.reviewing .fx-review { display: block; } .fx-cam.reviewing .fx-guide, .fx-cam.reviewing .fx-meter { display: none; }
.fx-guide { position: absolute; left: 19%; top: 14%; width: 62%; height: 72%; border-radius: 40% 40% 18% 18% / 30% 30% 12% 12%; pointer-events: none;
  box-shadow: 0 0 0 1.5px var(--ac), 0 0 0 999px rgba(2,5,12,.45), 0 0 24px -4px var(--ac); }
.fx-meter { position: absolute; left: 12px; right: 12px; top: 12px; height: 26px; border-radius: 9px; overflow: hidden; background: rgba(7,11,22,.7); box-shadow: inset 0 0 0 1px var(--line); }
.fx-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red); opacity: .55; transition: width .2s, background .2s; }
.fx-meter.mid i { background: var(--amber); } .fx-meter.ok i { background: var(--mint); opacity: .7; }
.fx-meter span { position: relative; display: block; text-align: center; font: 600 11.5px/26px var(--f-mono); letter-spacing: .5px; color: var(--tx); }
.fx-cam .fx-live-info { bottom: 10px; }
.fx-ctls { display: flex; justify-content: center; gap: 8px; margin: 12px 18px 0; }
.fx-ctl { flex: 1; max-width: 130px; height: 36px; border-radius: 11px !important; font: 500 12.5px var(--f-body) !important; color: var(--tx) !important; background: var(--glass) !important; box-shadow: inset 0 0 0 1px var(--line); }
.fx-ctl:disabled { opacity: .35; } .fx-ctl.on { color: #06101c !important; background: var(--amber) !important; }
.fx-sliders { display: flex; flex-direction: column; gap: 4px; margin: 8px 24px 0; } .fx-sliders:empty { display: none; }
.fx-sl { display: flex; align-items: center; gap: 10px; font: 500 11px var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mut); }
.fx-sl span { flex: 0 0 44px; } .fx-range { flex: 1; accent-color: var(--ac); height: 26px; }
.fx-three-b.cam { align-items: center; margin-top: 12px; gap: 22px; }
.fx-shutter { width: 70px; height: 70px; border-radius: 50% !important; display: grid !important; place-items: center; box-shadow: inset 0 0 0 3px var(--tx), 0 0 30px -8px var(--ac); }
.fx-shutter i { width: 54px; height: 54px; border-radius: 50%; background: var(--tx); transition: transform .15s, background .2s; }
.fx-shutter:active i { transform: scale(.88); } .fx-shutter.busy i { background: var(--amber); animation: a-pulse 1s infinite; }
.fx-shutter.use { box-shadow: inset 0 0 0 3px var(--mint), 0 0 30px -6px var(--mint); }
.fx-shutter.use i { background: var(--mint); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/60% no-repeat, linear-gradient(#000,#000); -webkit-mask-composite: xor; mask-composite: exclude; }

/* scanner screen: hand map, current instruction, one-impression option */
.fx-map { margin: 4px 16px 0; padding: 10px 10px 8px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.fx-map-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 8px; font: 500 11px var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mut); }
.fx-map-h b { color: var(--ac); font-weight: 600; letter-spacing: .5px; }
.fx-map-g { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.fx-mf { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 2px; border-radius: 12px; transition: background .2s; }
.fx-mf.cur { background: color-mix(in srgb, var(--ac) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 35%, transparent); }
.fx-mf > span { font: 500 10.5px var(--f-body); color: var(--mut); } .fx-mf.cur > span { color: var(--tx); font-weight: 600; }
.fx-mcs { display: flex; gap: 3px; }
.fx-mc { width: 19px; height: 22px; border-radius: 6px !important; display: grid !important; place-items: center; font: 600 10px var(--f-mono) !important; color: var(--dim) !important; box-shadow: inset 0 0 0 1px var(--line); }
.fx-mc.ok { color: #06101c !important; background: var(--ac) !important; box-shadow: none; }
.fx-mc.one { width: 63px; font-size: 11px !important; }
.fx-mc.now { color: var(--tx) !important; box-shadow: inset 0 0 0 1.5px var(--ac), 0 0 12px -2px var(--ac); animation: fx-now 1.4s ease-in-out infinite; }
.fx-mc.ok.now { color: #06101c !important; }
@keyframes fx-now { 50% { box-shadow: inset 0 0 0 1.5px var(--ac), 0 0 2px -2px var(--ac); } }
.fx-now { display: flex; align-items: center; gap: 12px; margin: 10px 16px 10px; padding: 8px 12px; border-radius: 14px; background: color-mix(in srgb, var(--ac) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 30%, transparent); }
.fx-roll { flex: 0 0 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 600 20px var(--f-mono); color: #06101c; background: var(--ac); }
.fx-now b { display: block; font: 600 15px var(--f-head); color: var(--tx); } .fx-now small { display: block; font: 400 12.5px var(--f-body); color: var(--mut); margin-top: 1px; }
.fx-scanbox { --bh: clamp(190px, calc(100dvh - 430px), 380px); height: var(--bh); width: calc(var(--bh) * .72); border-radius: 22px; }
.fx-scanbox .fx-corners { inset: 12px; }
@keyframes fx-beam { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--bh, 380px) - 36px)); } }
.fx-onebtn { display: block !important; margin: 10px auto 0; padding: 6px 12px !important; border-radius: 10px !important; font: 500 12.5px var(--f-body) !important; color: var(--ac) !important; text-decoration: underline; text-underline-offset: 3px; }
.fx-onebtn[hidden] { display: none !important; }
.fx-note-ok { display: none; margin: 10px 16px 0; padding: 10px 12px; border-radius: 12px; font: 400 13px/1.45 var(--f-body); color: var(--tx); background: color-mix(in srgb, var(--mint) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mint) 45%, transparent); }
.fx-note-ok.on { display: block; animation: fx-in .3s; }
.fx-livepage .fx-three-b { margin-top: 12px; }
.fx-one { flex: 0 0 160px !important; width: 160px !important; margin-left: 8px; display: flex !important; gap: 6px; align-items: center; justify-content: center; }
.fx-one small { font: 500 12px var(--f-body); }
.fx-map { --cw: clamp(13px, calc((100vw - 92px) / 17), 19px); }
.fx-map-g { gap: 2px; } .fx-mf { padding: 6px 1px; min-width: 0; } .fx-mcs { gap: 2px; }
.fx-mc { width: var(--cw); } .fx-mc.one { width: calc(var(--cw) * 3 + 4px); }
.fx-mf > span { font-size: clamp(9px, 2.6vw, 10.5px); }

/* assessment: ridge count entry */
.fx-rc { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 12px; }
.fx-rc > span { font: 500 11px var(--f-mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--mut); margin-right: 4px; }
.fx-rc-b { width: 40px; height: 40px; border-radius: 12px !important; font: 600 20px var(--f-head) !important; color: var(--tx) !important; background: var(--glass) !important; box-shadow: inset 0 0 0 1px var(--line); }
.fx-rc-in { width: 76px !important; height: 44px; border: 0 !important; border-radius: 12px !important; text-align: center; font: 600 22px var(--f-mono) !important; color: var(--ac) !important;
  background: var(--glass) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 50%, transparent); -moz-appearance: textfield; }
.fx-rc-in::-webkit-outer-spin-button, .fx-rc-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fx-assess-nav { padding: 0 20px; } .fx-assess-nav .fx-pill { height: 42px; }
.fx-assess.saving { pointer-events: none; opacity: .7; }

/* generate report: five formats, result */
.fx-fmt { gap: 12px; height: auto !important; min-height: 60px; padding: 10px 14px !important; }
.fx-fmt.on { box-shadow: inset 0 0 0 1px var(--ac), 0 0 26px -12px var(--ac); }
.fx-fmt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fx-fmt-t b { font: 600 15px var(--f-head); color: var(--tx); } .fx-fmt-t small { font: 400 12px var(--f-body); color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-fmt-p { font: 600 14px var(--f-mono); color: var(--ac); }
.fx-done { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 24px 10px 20px; }
.fx-done b { font: 600 20px var(--f-head); color: var(--tx); } .fx-done span { font: 500 14px var(--f-body); color: var(--ac); } .fx-done small { font: 400 12.5px/1.5 var(--f-body); color: var(--mut); max-width: 300px; }
.fx-done .fx-okring { margin-bottom: 10px; }
.fx-okring.spin { animation: fx-spin-glow 1.6s ease-in-out infinite; } .fx-okring.spin .fx-i { color: var(--ac); }
@keyframes fx-spin-glow { 50% { box-shadow: inset 0 0 0 1px var(--ac), 0 0 60px -4px var(--ac); transform: scale(1.04); } }
.fx-repform .fx-link { margin-top: 14px; }
.fx-repform > .fx-pill { position: sticky; bottom: max(14px, env(safe-area-inset-bottom, 0px)); z-index: 3; }
@media (max-height: 640px) { .fx-fmt { min-height: 50px; padding: 7px 12px !important; } .fx-fmts { gap: 6px; margin-bottom: 16px; } .fx-lang { margin-bottom: 16px; } .fx-repform { padding-top: 12px; } }
