/* NeoSapien-style skin (same look as the dmits.in "mg-dmit-neo" theme): white ground, Outfit type, deep green-black pill
   buttons with mint text, soft mint/lavender tints, 1px hairlines, large radii, almost no shadow.
   Loaded after style.css and field.css; it only re-maps their tokens and restyles shared components. */

/* ---------- console (style.css) ---------- */
:root, :root:not([data-x]) {
  --bg:#f5f6f5; --card:#ffffff; --ink:#121917; --mut:#6c7775; --line:#e4e8e6; --pri:#1b2624; --pri2:#0c1412;
  --ok:#15803d; --warn:#b45309; --err:#dc2626; --side:#1b2624; --sideink:#c9d6d1;
  --neo-mint:#8af5c4; --neo-mint-2:#e7fbf2; --neo-lav:#f4f0ff; --neo-deep:#1b2624;
  --neo-font:"Outfit","Inter",ui-sans-serif,system-ui,sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme:dark){ :root{ --bg:#f5f6f5; --card:#ffffff; --ink:#121917; --mut:#6c7775; --line:#e4e8e6; --side:#1b2624; } }
body{ font:400 15px/1.55 var(--neo-font); background:var(--bg); color:var(--ink); }
h1,h2,h3{ font-family:var(--neo-font); font-weight:500; letter-spacing:-.02em; color:var(--ink); }
h1{ font-size:26px; }
a{ color:#15803d; }
.side{ background:var(--side); }
.side .brand{ font:600 18px var(--neo-font); letter-spacing:-.01em; }
.side a{ border-radius:999px; padding:8px 14px; }
.side a.on{ background:var(--neo-mint); color:var(--neo-deep); }
.side .grp{ color:#7f948d; }
.top{ background:rgba(255,255,255,.85); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.card,.stat{ border-radius:24px; border-color:var(--line); box-shadow:none; }
.card{ padding:20px; }
.stat{ background:linear-gradient(165deg,var(--neo-mint-2),#fff 70%); }
.grid > .stat:nth-child(3n+2){ background:linear-gradient(165deg,var(--neo-lav),#fff 70%); }
.stat .v{ font-weight:500; letter-spacing:-.02em; }
tr.click:hover{ background:var(--neo-mint-2); }
/* console controls only: the field app (.fx-*) has its own button/input styles that must not inherit these */
:is(.layout,.modal,.card) :is(button,.btn):not([class*="fx-"]){ border-radius:999px; padding:9px 18px; font-weight:500; }
:is(.layout,.modal,.card) button:not([class*="fx-"]):hover{ border-color:var(--neo-deep); }
:is(.layout,.modal,.card) :is(button.pri,.btn.pri){ background:var(--neo-deep); border-color:var(--neo-deep); color:var(--neo-mint); box-shadow:0 12px 28px -14px rgba(10,20,18,.55); }
:is(.layout,.modal,.card) button.pri:hover{ background:var(--pri2); }
:is(.layout,.modal,.card) :is(input,select,textarea){ border-radius:14px; background:#fff; padding:10px 14px; }
:is(.layout,.modal,.card) :is(input,select,textarea):focus{ outline:2px solid var(--neo-deep); }
.badge{ background:var(--neo-mint-2); color:var(--neo-deep); border:1px solid #c9f0dd; }
.modal{ border-radius:28px; padding:24px; }
.modal-bg{ background:rgba(18,25,23,.45); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); }
.toast{ background:var(--neo-deep); color:var(--neo-mint); border-radius:999px; padding:10px 18px; }

/* ---------- field app (field.css) ---------- */
.fx-root, .fx-dialog, .fx-dim {
  --bg0:#ffffff; --bg1:#f5f6f5; --glass:rgba(17,24,22,.035); --glass2:rgba(17,24,22,.065); --line:rgba(17,24,22,.10);
  --tx:#121917; --mut:#6c7775; --dim:#9aa3a1;
  --cyan:#15803d; --mint:#16a34a; --violet:#7c4dff; --amber:#b45309; --red:#dc2626;
  --f-head:"Outfit","Inter",ui-sans-serif,system-ui,sans-serif; --f-body:"Outfit","Inter",ui-sans-serif,system-ui,sans-serif;
  color-scheme: light;
}
.fx-root{ background:#f5f6f5; }
.fx{ background:radial-gradient(90% 40% at 100% 0%, #e7fbf2, transparent 70%), radial-gradient(80% 35% at 0% 100%, #f4f0ff, transparent 70%), #ffffff; }
.fx::before{ display:none; }

/* primary pill: deep with mint text, whatever the module accent */
.fx-pill, .fx-pill.fx-go, .fx-pill.fx-orange, .fx-pill.fx-greyb, .fx-three-b .fx-pill:nth-child(2){
  border-radius:999px !important; font:500 15px var(--f-head) !important; letter-spacing:.01em;
  color:#8af5c4 !important; background:#1b2624 !important; box-shadow:0 12px 28px -14px rgba(10,20,18,.6); }
.fx-pill.fx-wb, .fx-pill.fx-ghost{ color:var(--tx) !important; background:#fff !important; box-shadow:inset 0 0 0 1px var(--line); }
.fx-pill.fx-grey{ color:var(--mut) !important; background:var(--glass2) !important; box-shadow:none; }
.fx-pill:disabled{ opacity:.35; }

/* elements that put dark text on the accent fill: white text on the (now darker) accents */
.fx-homebtn, .fx-tab.on, .fx-ctl.on, .fx-mc.ok, .fx-mc.ok.now, .fx-roll{ color:#fff !important; }
.fx-homebtn{ background:#1b2624 !important; color:#8af5c4 !important; border-radius:999px; }
.fx-tab.on span{ background:rgba(255,255,255,.2); color:#fff; }
.fx-tab span{ background:var(--glass2); }

/* panels, sheets and dialogs: white cards with hairlines */
.fx-dlg{ background:#fff; box-shadow:inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(17,24,22,.35); border-radius:28px; }
.fx-sheet-dim, .fx-dim{ background:rgba(18,25,23,.35); }
.fx-sheet{ background:rgba(255,255,255,.97); box-shadow:inset 0 0 0 1px var(--line), 0 -10px 40px -16px rgba(17,24,22,.3); }
.fx-nav{ background:rgba(255,255,255,.88); border-radius:999px; box-shadow:inset 0 0 0 1px var(--line), 0 16px 34px -18px rgba(17,24,22,.35); }
.fx-dmits{ font-weight:600; letter-spacing:-.01em; color:#121917; }
.fx-logo{ filter:none; }
.fx-title{ font-weight:500; letter-spacing:-.02em; }
/* module pages (registration, clients, capture, assessment, report) slide over home: white, softly tinted */
.fx-ov{ background:radial-gradient(120% 45% at 50% 0%, color-mix(in srgb, var(--ac) 10%, #ffffff), #ffffff 65%); }
.fx-dialog{ background:rgba(245,246,245,.82); }
/* text strips that sit on top of the (dark) camera view keep light text */
.fx-live-info, .fx-meter{ color:#ffffff; }
/* the finger map is sized to the screen width to the pixel; keep its narrower Inter so it never overflows */
.fx-map{ --f-head:"Inter",ui-sans-serif,system-ui,sans-serif; --f-body:"Inter",ui-sans-serif,system-ui,sans-serif; }

/* guided tour + self-service screens (onboard.js) */
.tour{max-width:460px}
.tour p{line-height:1.55;margin:8px 0}
.tour-dots{display:flex;gap:6px;margin-bottom:10px}
.tour-dots span{width:8px;height:8px;border-radius:50%;background:#d6dcd9}
.tour-dots span.on{background:#16a34a;width:22px;border-radius:4px}
.auth a.btn{display:inline-block;padding:10px 16px;border-radius:10px;background:#1b2624;color:#8af5c4;text-decoration:none}
.auth select{width:100%}
