
#fsenseRoot{
  --fsense-bg:#05070b;
  --fsense-panel:#0b1017;
  --fsense-panel-2:#101923;
  --fsense-border:#223247;
  --fsense-text:#f4f7fb;
  --fsense-muted:#9db0c8;
  --fsense-accent:#7ccf5b;
  --fsense-accent-2:#b7f08f;
  --fsense-good:#47d18c;
  --fsense-warn:#ffcb6b;
}
#fsenseRoot.fsense-shell{max-width:1040px;margin:0 auto;color:var(--fsense-text);font-family:Inter,Segoe UI,Arial,sans-serif;display:grid;gap:18px;background:transparent;padding:0}
#fsenseRoot.fsense-shell *{box-sizing:border-box}
#fsenseRoot .fsense-card{background:linear-gradient(180deg,var(--fsense-panel),var(--fsense-panel-2));border:1px solid var(--fsense-border);border-radius:22px;padding:20px;box-shadow:0 10px 28px rgba(0,0,0,.18)}
#fsenseRoot .fsense-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
#fsenseRoot .fsense-kicker{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--fsense-accent-2);margin-bottom:6px}
#fsenseRoot .fsense-header h2{margin:0 0 6px;font-size:34px;line-height:1.05;color:var(--fsense-text)}
#fsenseRoot .fsense-subtitle{margin:0;color:var(--fsense-muted);font-size:15px}
#fsenseRoot .fsense-grid-primary,#fsenseRoot .fsense-grid-secondary{display:grid;grid-template-columns:1.15fr .85fr;gap:18px}
#fsenseRoot .fsense-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
#fsenseRoot .fsense-card-head h3{margin:0;font-size:20px;color:var(--fsense-text)}
#fsenseRoot .fsense-pill{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:rgba(94,163,255,.12);border:1px solid rgba(94,163,255,.24);color:var(--fsense-accent-2);font-size:12px;font-weight:700}
#fsenseRoot .fsense-btn{border:0;border-radius:16px;padding:14px 18px;font-size:16px;font-weight:800;cursor:pointer;transition:transform .15s ease,opacity .15s ease,background .15s ease}
#fsenseRoot .fsense-btn:hover{transform:translateY(-1px)}
#fsenseRoot .fsense-btn:disabled{cursor:not-allowed;opacity:.55;transform:none}
#fsenseRoot .fsense-btn-primary{background:linear-gradient(135deg,var(--fsense-accent),var(--fsense-accent-2));color:#06111f;min-width:180px;font-size:18px;padding:16px 22px}
#fsenseRoot .fsense-btn-secondary,#fsenseRoot .fsense-btn-ghost{background:#102133;color:var(--fsense-text);border:1px solid var(--fsense-border)}
#fsenseRoot .fsense-video-wrap{position:relative;border-radius:22px;overflow:hidden;background:#081018;border:1px solid var(--fsense-border)}
#fsenseRoot #fsenseLiveVideo{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:#050a10;border-radius:22px;border:0}
#fsenseRoot .fsense-video-overlay{position:absolute;inset:0;pointer-events:none;display:grid;place-items:center}
#fsenseRoot #fsenseRoiCircle.fsense-geolock-box{width:64px;height:64px;border:2px solid rgba(255,255,255,.92);border-radius:18px;box-shadow:0 0 0 9999px rgba(0,0,0,.16);pointer-events:none;position:absolute;left:50%;top:50%;margin-left:0;margin-top:0;transform:translate(-50%,-50%)}
#fsenseRoot #fsenseSignalCanvas{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:20;mix-blend-mode:screen;opacity:.95}
#fsenseRoot .fsense-status-bar{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:14px;color:var(--fsense-muted);font-size:14px}
#fsenseRoot .fsense-progress-wrap{display:grid;gap:12px;margin-top:14px}
#fsenseRoot .fsense-progress-item{background:#0f1620;border:1px solid var(--fsense-border);border-radius:18px;padding:14px}
#fsenseRoot .fsense-progress-label{font-size:12px;color:var(--fsense-muted);text-transform:uppercase;letter-spacing:.08em;margin-bottom:10px}
#fsenseRoot input[type=range]{width:100%}
#fsenseRoot .fsense-control-row{display:flex;gap:12px;align-items:center;justify-content:flex-start;margin-top:16px;flex-wrap:wrap}
#fsenseRoot .fsense-reading-main{padding:10px 0 4px}
#fsenseRoot .fsense-reading-label{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--fsense-muted);margin-bottom:4px}
#fsenseRoot .fsense-reading-value{font-size:48px;font-weight:900;line-height:1;color:var(--fsense-text)}
#fsenseRoot .fsense-reading-value span{font-size:20px;font-weight:700;color:var(--fsense-muted)}
#fsenseRoot .fsense-reading-sub{font-size:16px;color:var(--fsense-muted);margin-top:8px}
#fsenseRoot .fsense-metric-grid,#fsenseRoot .fsense-advanced-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
#fsenseRoot .fsense-advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#fsenseRoot .fsense-metric-box,#fsenseRoot .fsense-box-field{background:#0f1620;border:1px solid var(--fsense-border);border-radius:18px;padding:14px}
#fsenseRoot .fsense-box-field-wide{grid-column:span 2}
#fsenseRoot .fsense-metric-label{font-size:12px;color:var(--fsense-muted);text-transform:uppercase;letter-spacing:.08em;margin-bottom:7px}
#fsenseRoot .fsense-reference-row{display:flex;gap:10px;align-items:center}
#fsenseRoot .fsense-field{display:flex;flex-direction:column;gap:7px;min-width:140px}
#fsenseRoot .fsense-field-label{font-size:13px;color:var(--fsense-muted);font-weight:600}
#fsenseRoot .fsense-field-input,
#fsenseRoot .fsense-age-select,
#fsenseRoot select{width:100%;padding:14px 14px;border-radius:14px;border:1px solid var(--fsense-border);background:#0f1620;color:var(--fsense-text);font-size:16px}
#fsenseRoot .fsense-check-row{display:flex;align-items:center;gap:10px}
#fsenseRoot .fsense-check-row input[type=checkbox]{width:18px;height:18px;accent-color:var(--fsense-accent)}
#fsenseRoot .fsense-field-hint{font-size:12px;color:var(--fsense-muted);line-height:1.4}
#fsenseRoot .fsense-note{font-size:12px;color:var(--fsense-muted);line-height:1.45}
#fsenseRoot .fsense-optional{font-size:12px;opacity:.7}
#fsenseRoot .fsense-main-controls{margin-top:14px}
#fsenseRoot .fsense-history-panel{margin-top:14px}
#fsenseRoot .fsense-panel-title{font-size:14px;color:var(--fsense-text);opacity:.95;margin:8px 0 6px}
#fsenseRoot .fsense-tablewrap{border:1px solid var(--fsense-border);background:#0f1620;border-radius:18px;padding:10px;max-height:230px;overflow:auto}
#fsenseRoot .fsense-table{width:100%;border-collapse:collapse;font-size:13px}
#fsenseRoot .fsense-table thead th{text-align:left;font-weight:600;padding:6px 6px;border-bottom:1px solid rgba(255,255,255,.08);position:sticky;top:0;background:#0f1620;color:var(--fsense-muted)}
#fsenseRoot .fsense-table tbody td{padding:8px 6px;border-bottom:1px solid rgba(255,255,255,.05);color:var(--fsense-text)}
#fsenseRoot .fsense-table tbody tr:last-child td{border-bottom:none}
#fsenseRoot .fsense-chartwrap{border:1px solid var(--fsense-border);background:#0f1620;border-radius:18px;padding:10px}
#fsenseRoot #fsenseTrendCanvas{width:100%;height:220px;display:block}
@media (max-width:900px){
  #fsenseRoot .fsense-grid-primary,#fsenseRoot .fsense-grid-secondary{grid-template-columns:1fr}
}
@media (max-width:640px){
  #fsenseRoot .fsense-header{flex-direction:column}
  #fsenseRoot .fsense-reading-value{font-size:40px}
  #fsenseRoot .fsense-metric-grid,#fsenseRoot .fsense-advanced-grid{grid-template-columns:1fr}
  #fsenseRoot .fsense-box-field-wide{grid-column:auto}
  #fsenseRoot .fsense-reference-row{flex-direction:column;align-items:stretch}
  #fsenseRoot .fsense-btn-primary{width:100%}
}


#fsenseRoot /* v6.13.18 pressure guidance */
.fsense-pressure-panel{margin:12px 0;padding:12px;border:1px solid rgba(148,163,184,.35);border-radius:14px;background:rgba(15,23,42,.04)}
#fsenseRoot .fsense-pressure-head{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:700;margin-bottom:8px}
#fsenseRoot .fsense-pressure-track{height:10px;border-radius:999px;background:linear-gradient(90deg,#ef4444 0 30%,#22c55e 35% 65%,#ef4444 70% 100%);overflow:hidden;box-shadow:inset 0 0 0 1px rgba(0,0,0,.10)}
#fsenseRoot .fsense-pressure-bar{height:100%;width:0%;background:rgba(255,255,255,.72);border-right:2px solid rgba(15,23,42,.65);transition:width .18s ease}
#fsenseRoot .fsense-pressure-state{margin-top:7px;font-size:12px;color:#64748b}
#fsenseRoot .fsense-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px;}
#fsenseRoot .fsense-mini-grid>*{min-width:0;}
@media (max-width:720px){#fsenseRoot .fsense-mini-grid{grid-template-columns:1fr;}}

#fsenseRoot .fsense-front-profile-card{border:1px solid rgba(148,163,184,.28);border-radius:14px;padding:12px;margin-top:10px;background:rgba(15,23,42,.035);max-width:100%;box-sizing:border-box}
#fsenseRoot .fsense-front-profile-card .fsense-mini-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}

#fsenseRoot .fsense-trend-mean-card{margin-bottom:12px}
#fsenseRoot .fsense-trend-mean-display{font-size:0.95rem;line-height:1.5}
#fsenseRoot .fsense-trend-mean-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin-top:8px}
#fsenseRoot .fsense-trend-mean-grid>div{padding:8px;border:1px solid rgba(255,255,255,0.12);border-radius:10px;background:rgba(255,255,255,0.04)}
#fsenseRoot .fsense-trend-mean-grid span{display:block;opacity:.78;font-size:.86rem}
#fsenseRoot .fsense-trend-mean-grid strong{display:block;margin-top:2px}

#fsenseRoot .fsense-advanced-card .fsense-trend-mean-display{margin-top:2px}
#fsenseRoot .fsense-advanced-panel{margin-top:14px}

#fsenseRoot .fsense-trend-mean-summary{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin-bottom:8px}
#fsenseRoot .fsense-trend-mean-summary span{display:inline-flex;align-items:center;gap:4px}

#fsenseRoot .fsense-advanced-metrics-card{margin:12px 0 14px;}
#fsenseRoot .fsense-grid-secondary{grid-template-columns:1fr;}

#fsenseRoot .fsense-card.fsense-review-mode-banner,
#fsenseRoot .fsense-review-mode-banner{
  border:1px solid #f2d28b !important;
  border-left:6px solid #b7791f !important;
  background:#fff7e6 !important;
  background-image:none !important;
  color:#3a2a00 !important;
  margin-bottom:1rem;
  box-shadow:none !important;
}
#fsenseRoot .fsense-card.fsense-review-mode-banner strong,
#fsenseRoot .fsense-review-mode-banner strong{
  color:#3a2a00 !important;
}


#fsenseRoot /* v7.4.5 startup timing dropdown dialog */
.fsense-timing-dialog-backdrop{position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.62);display:flex;align-items:center;justify-content:center;padding:18px}
#fsenseRoot .fsense-timing-dialog{width:min(440px,100%);background:linear-gradient(180deg,var(--fsense-panel),var(--fsense-panel-2));border:1px solid var(--fsense-border);border-radius:22px;padding:20px;box-shadow:0 18px 48px rgba(0,0,0,.42);color:var(--fsense-text);display:grid;gap:12px}
#fsenseRoot .fsense-timing-dialog-title{font-size:20px;font-weight:900;color:var(--fsense-text)}
#fsenseRoot .fsense-timing-dialog-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:4px}
#fsenseRoot .fsense-timing-dialog .fsense-btn-primary{min-width:120px}
@media (max-width:640px){#fsenseRoot .fsense-timing-dialog-actions{flex-direction:column}#fsenseRoot .fsense-timing-dialog .fsense-btn{width:100%}}
#fsenseRoot .fsense-timing-dialog .fsense-btn{border:0;border-radius:16px;padding:14px 18px;font-size:16px;font-weight:800;cursor:pointer;transition:transform .15s ease,opacity .15s ease,background .15s ease}
#fsenseRoot .fsense-timing-dialog .fsense-btn-primary{background:linear-gradient(135deg,var(--fsense-accent),var(--fsense-accent-2));color:#06111f}
#fsenseRoot .fsense-timing-dialog .fsense-btn-ghost{background:#102133;color:var(--fsense-text);border:1px solid var(--fsense-border)}
#fsenseRoot .fsense-timing-dialog .fsense-field-input{width:100%;padding:14px 14px;border-radius:14px;border:1px solid var(--fsense-border);background:#0f1620;color:var(--fsense-text);font-size:16px}
#fsenseRoot .fsense-timing-dialog .fsense-field-label{font-size:13px;color:var(--fsense-muted);font-weight:600}
#fsenseRoot .fsense-timing-dialog .fsense-field-hint{font-size:12px;color:var(--fsense-muted);line-height:1.4}


#fsenseRoot /* v7.4.11 smartphone portrait alignment repair
   Goal: prevent horizontal overflow/clipping on narrow mobile screens while preserving desktop layout. */
#fsenseRoot.fsense-shell{
  width:min(100%,1040px);
  max-width:100%;
  min-width:0;
  overflow-x:hidden;
}
#fsenseRoot,
#fsenseRoot .fsense-card,
#fsenseRoot .fsense-card *,
#fsenseRoot .fsense-grid-primary,
#fsenseRoot .fsense-grid-secondary,
#fsenseRoot .fsense-mini-grid,
#fsenseRoot .fsense-metric-grid,
#fsenseRoot .fsense-advanced-grid{
  min-width:0;
  max-width:100%;
}
#fsenseRoot canvas,
#fsenseRoot video,
#fsenseRoot img,
#fsenseRoot svg{
  max-width:100%;
}
#fsenseRoot .fsense-btn,
#fsenseRoot .fsense-field-input,
#fsenseRoot .fsense-age-select,
#fsenseRoot select{
  max-width:100%;
}
#fsenseRoot .fsense-tablewrap,
#fsenseRoot .fsense-chartwrap,
#fsenseRoot .fsense-video-wrap{
  max-width:100%;
  overflow:hidden;
}
#fsenseRoot .fsense-tablewrap{overflow-x:auto;}
#fsenseRoot .fsense-trend-mean-summary{max-width:100%;overflow-wrap:anywhere;}
#fsenseRoot .fsense-trend-mean-grid>div{min-width:0;overflow-wrap:anywhere;}

@media (max-width:640px){
  #fsenseRoot{max-width:100%;overflow-x:hidden;}
  #fsenseRoot.fsense-shell{
    width:100%;
    max-width:100%;
    margin-left:0;
    margin-right:0;
    padding-left:10px;
    padding-right:10px;
    gap:14px;
  }
  #fsenseRoot .fsense-card{
    width:100%;
    max-width:100%;
    border-radius:18px;
    padding:14px;
    overflow:hidden;
  }
  #fsenseRoot .fsense-header,
  #fsenseRoot .fsense-card-head,
  #fsenseRoot .fsense-control-row,
  #fsenseRoot .fsense-reference-row,
  #fsenseRoot .fsense-trend-mean-summary{
    width:100%;
    max-width:100%;
  }
  #fsenseRoot .fsense-card-head{
    flex-direction:column;
    align-items:stretch;
  }
  #fsenseRoot .fsense-header h2{font-size:30px;}
  #fsenseRoot .fsense-subtitle{font-size:15px;line-height:1.35;}
  #fsenseRoot .fsense-kicker{text-align:center;}
  #fsenseRoot .fsense-grid-primary,
  #fsenseRoot .fsense-grid-secondary,
  #fsenseRoot .fsense-metric-grid,
  #fsenseRoot .fsense-advanced-grid,
  #fsenseRoot .fsense-front-profile-card .fsense-mini-grid,
  #fsenseRoot .fsense-mini-grid,
  #fsenseRoot .fsense-trend-mean-grid{
    grid-template-columns:1fr !important;
    width:100%;
  }
  #fsenseRoot .fsense-field,
  #fsenseRoot .fsense-btn,
  #fsenseRoot .fsense-btn-primary,
  #fsenseRoot .fsense-btn-secondary,
  #fsenseRoot .fsense-btn-ghost,
  #fsenseRoot .fsense-field-input,
  #fsenseRoot .fsense-age-select,
  #fsenseRoot select{
    width:100%;
    min-width:0;
  }
  #fsenseRoot .fsense-btn{
    white-space:normal;
    overflow-wrap:anywhere;
    line-height:1.2;
    padding-left:12px;
    padding-right:12px;
  }
  #fsenseRoot .fsense-reading-value{font-size:36px;}
  #fsenseRoot .fsense-video-wrap,
  #fsenseRoot #fsenseLiveVideo{
    border-radius:18px;
  }
  #fsenseRoot #fsenseLiveVideo{aspect-ratio:4/3;}
  #fsenseRoot .fsense-trend-mean-summary{
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
  }
  #fsenseRoot .fsense-trend-mean-summary span{display:block;}
  #fsenseRoot .fsense-front-profile-card{padding:10px;}
  #fsenseRoot .fsense-field-hint,
  #fsenseRoot .fsense-note{overflow-wrap:anywhere;}
  #fsenseRoot #goog-gt-tt,
  #fsenseRoot .goog-te-banner-frame,
  #fsenseRoot .goog-te-balloon-frame{max-width:100vw !important;}
}

@media (max-width:380px){
  #fsenseRoot.fsense-shell{padding-left:8px;padding-right:8px;}
  #fsenseRoot .fsense-card{padding:12px;border-radius:16px;}
  #fsenseRoot .fsense-header h2{font-size:28px;}
  #fsenseRoot .fsense-reading-value{font-size:34px;}
}

#fsenseRoot /* FibroSense light-touch Miznee card layer */
#fsenseRoot{--fsense-bg:#f4f8f7;--fsense-panel:#ffffff;--fsense-panel-2:#ffffff;--fsense-border:#dce8e4;--fsense-text:#17312b;--fsense-muted:#637b74;--fsense-accent:#52a88a;--fsense-accent-2:#8bd1b7;--fsense-good:#3a9b76;--fsense-warn:#d59a38}
#fsenseRoot .fsense-card{background:#fff;box-shadow:0 10px 30px rgba(39,78,66,.09)}
#fsenseRoot .fsense-grid-primary{grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)}
#fsenseRoot .fsense-core-hidden{display:none!important}
#fsenseRoot .fsense-pill{background:#edf8f4;border-color:#cce9de;color:#28795f}
#fsenseRoot .fsense-btn-primary{background:linear-gradient(135deg,#4fa789,#8dd1b8);color:#08241b}
#fsenseRoot .fsense-progress-item,#fsenseRoot .fsense-pressure-panel{background:#f7fbfa;border-color:#dce8e4}
#fsenseRoot .fsense-overall-state{font-size:30px;font-weight:850;line-height:1.1;color:#214c40;margin-top:8px}
#fsenseRoot .fsense-context-card{margin-top:18px;padding:14px;background:#f7fbfa;border:1px solid #dce8e4;border-radius:18px}
#fsenseRoot .fsense-context-title{font-weight:800;margin-bottom:10px;color:#214c40}
#fsenseRoot .fsense-context-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#fsenseRoot .fsense-context-grid label{font-size:12px;font-weight:700;color:#637b74}
#fsenseRoot .fsense-context-grid select{margin-top:6px;background:#fff;color:#17312b;border-color:#d4e4df;padding:11px;font-size:14px}
#fsenseRoot .fsense-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:15px}
#fsenseRoot .fsense-result-card{padding:15px;border:1px solid #dce8e4;border-radius:18px;background:linear-gradient(180deg,#fff,#f7fbfa);min-width:0}
#fsenseRoot .fsense-result-card span{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#6c837c;font-weight:800}
#fsenseRoot .fsense-result-card strong{display:block;font-size:22px;color:#1b4a3d;margin:7px 0 4px;overflow-wrap:anywhere}
#fsenseRoot .fsense-result-card small{display:block;color:#6c837c;line-height:1.35}
#fsenseRoot .fsense-confidence-panel{margin-top:12px;padding:11px 14px;border-radius:14px;background:#edf8f4;color:#28795f;font-weight:800;text-align:center}
#fsenseRoot .fsense-awareness-note{font-size:12px;line-height:1.45;color:#6c837c;margin:12px 2px 0}
@media(max-width:720px){#fsenseRoot .fsense-context-grid,#fsenseRoot .fsense-results-grid{grid-template-columns:1fr 1fr}}
@media(max-width:460px){#fsenseRoot .fsense-context-grid,#fsenseRoot .fsense-results-grid{grid-template-columns:1fr}#fsenseRoot .fsense-overall-state{font-size:26px}}

#fsenseRoot /* v1.0.3 Miznee dark contrast and complete metric groups */
#fsenseRoot.fsense-shell{background:radial-gradient(circle at 15% 0%,rgba(124,207,91,.08),transparent 34%),#05070b;padding:16px;border-radius:26px}
#fsenseRoot .fsense-card{background:linear-gradient(180deg,#0b1017,#101923);box-shadow:0 16px 40px rgba(0,0,0,.36)}
#fsenseRoot .fsense-result-card{background:#080d13;border:1px solid #213148;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
#fsenseRoot .fsense-result-card strong{color:#f7fbff}
#fsenseRoot .fsense-result-card span{color:#b7f08f}
#fsenseRoot .fsense-metric-group{margin-top:14px;border:1px solid #213148;border-radius:18px;background:#070b11;overflow:hidden}
#fsenseRoot .fsense-metric-group>summary{cursor:pointer;list-style:none;padding:14px 16px;font-weight:850;color:#f4f7fb;background:#0d151e;border-bottom:1px solid transparent}
#fsenseRoot .fsense-metric-group[open]>summary{border-bottom-color:#213148}
#fsenseRoot .fsense-metric-group>summary::-webkit-details-marker{display:none}
#fsenseRoot .fsense-metric-group>summary:after{content:'+';float:right;color:#b7f08f}
#fsenseRoot .fsense-metric-group[open]>summary:after{content:'−'}
#fsenseRoot .fsense-metric-group .fsense-results-grid{padding:12px;margin-top:0}
#fsenseRoot .fsense-context-card,#fsenseRoot .fsense-pressure-panel,#fsenseRoot .fsense-progress-item{background:#080d13!important}

#fsenseRoot /* v1.0.5 advanced signal dashboard and confidence explanation */
#fsenseRoot .fsense-confidence-explain{margin:8px 3px 14px;color:#a9b8c8;font-size:12px;line-height:1.5;text-align:center}
#fsenseRoot .fsense-advanced-signal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}
#fsenseRoot .fsense-advanced-signal-grid article{background:#080d13;border:1px solid #213148;border-radius:16px;padding:13px;min-width:0}
#fsenseRoot .fsense-advanced-signal-grid span{display:block;color:#b7f08f;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
#fsenseRoot .fsense-advanced-signal-grid strong{display:block;color:#f7fbff;font-size:19px;margin:6px 0 3px;overflow-wrap:anywhere}
#fsenseRoot .fsense-advanced-signal-grid small{display:block;color:#91a4b6;line-height:1.35}
#fsenseRoot .fsense-confidence-breakdown{margin:0 12px 12px;padding:11px 13px;border:1px solid #29425b;border-radius:14px;background:#0b151f;color:#cbd7e3;font-size:12px;line-height:1.45}
@media(max-width:460px){#fsenseRoot .fsense-advanced-signal-grid{grid-template-columns:1fr}}

#fsenseRoot /* v1.0.8 persistent profile and reset controls */
.fsense-profile-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;flex-wrap:wrap}
#fsenseRoot .fsense-profile-actions .fsense-note{flex:1;min-width:220px}
#fsenseRoot .fsense-context-grid select:disabled{opacity:.78;cursor:not-allowed;border-color:rgba(116,209,138,.45)}
@media(max-width:640px){#fsenseRoot .fsense-profile-actions .fsense-btn{width:100%}}


#fsenseRoot /* v1.0.9 complete Miznee-dark contrast repair and visible history export */
#fsenseRoot{
  --fsense-bg:#05070b;
  --fsense-panel:#0b1017;
  --fsense-panel-2:#101923;
  --fsense-border:#2b3c50;
  --fsense-text:#f5f8fb;
  --fsense-muted:#c2ced9;
  --fsense-accent:#7bd75d;
  --fsense-accent-2:#a8ec84;
}
#fsenseRoot .fsense-card,
#fsenseRoot .fsense-context-card,
#fsenseRoot .fsense-progress-item,
#fsenseRoot .fsense-pressure-panel,
#fsenseRoot .fsense-box-field,
#fsenseRoot .fsense-tablewrap,
#fsenseRoot .fsense-chartwrap{color:var(--fsense-text)}
#fsenseRoot .fsense-subtitle,
#fsenseRoot .fsense-reading-sub,
#fsenseRoot .fsense-reading-sub *,
#fsenseRoot .fsense-reading-label,
#fsenseRoot .fsense-status-bar,
#fsenseRoot .fsense-progress-label,
#fsenseRoot .fsense-field-label,
#fsenseRoot .fsense-field-hint,
#fsenseRoot .fsense-note,
#fsenseRoot .fsense-awareness-note,
#fsenseRoot .fsense-result-card small,
#fsenseRoot .fsense-pressure-state,
#fsenseRoot .fsense-confidence-explain,
#fsenseRoot .fsense-advanced-signal-grid small{color:#c2ced9!important;opacity:1!important}
#fsenseRoot .fsense-context-title,
#fsenseRoot .fsense-overall-state,
#fsenseRoot .fsense-panel-title,
#fsenseRoot .fsense-card-head h3{color:#f5f8fb!important}
#fsenseRoot .fsense-context-grid label{color:#d6e0e8!important}
#fsenseRoot select,
#fsenseRoot input[type="number"],
#fsenseRoot input[type="text"],
#fsenseRoot .fsense-field-input,
#fsenseRoot .fsense-context-grid select{
  background:#080d13!important;
  color:#f5f8fb!important;
  border-color:#354a62!important;
}
#fsenseRoot select option{background:#080d13;color:#f5f8fb}
#fsenseRoot select:disabled,
#fsenseRoot input:disabled{
  opacity:1!important;
  background:#111a24!important;
  color:#d2dce5!important;
  -webkit-text-fill-color:#d2dce5!important;
  border-color:#496079!important;
}
#fsenseRoot .fsense-btn-secondary,
#fsenseRoot .fsense-btn-ghost{
  background:#142236!important;
  color:#f7fbff!important;
  border:1px solid #45617e!important;
}
#fsenseRoot .fsense-btn-secondary:hover,
#fsenseRoot .fsense-btn-ghost:hover{background:#1b3049!important}
#fsenseRoot .fsense-confidence-panel{
  background:#122719!important;
  color:#bdf49f!important;
  border:1px solid #356b42;
}
#fsenseRoot .fsense-table thead th{background:#0d151e!important;color:#d3dde6!important}
#fsenseRoot .fsense-table tbody td{color:#f1f5f8!important}
#fsenseRoot .fsense-trend-mean-display,
#fsenseRoot .fsense-trend-mean-display *{color:#edf3f7!important}
#fsenseRoot .fsense-trend-mean-grid>div{background:#080d13!important;border-color:#30455d!important}
#fsenseRoot .fsense-profile-actions{
  background:#0b151f;
  border:1px solid #30455d;
  border-radius:15px;
  padding:12px;
}
#fsenseRoot .fsense-history-export-panel{
  margin-top:14px;
  padding:13px;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  background:#080d13;
  border:1px solid #30455d;
  border-radius:16px;
}
#fsenseRoot .fsense-history-export-panel .fsense-btn{flex:0 0 auto}
#fsenseRoot .fsense-history-export-panel .fsense-note{flex:1;min-width:220px;margin:0}
@media(max-width:640px){
  #fsenseRoot .fsense-history-export-panel .fsense-btn{width:100%}
  #fsenseRoot .fsense-history-export-panel .fsense-note{min-width:0}
}


/* v1.0.15 field readiness */
#fsenseRoot .fsense-field-status{border:1px solid rgba(91,220,146,.55);background:linear-gradient(180deg,rgba(17,49,38,.98),rgba(8,25,21,.98));}
#fsenseRoot .fsense-field-status[data-state="restricted"]{border-color:rgba(255,184,77,.75);background:linear-gradient(180deg,rgba(58,39,14,.98),rgba(28,20,9,.98));}
#fsenseRoot .fsense-field-ready-state{font-weight:800;letter-spacing:.12em;font-size:1.05rem;margin:.35rem 0;color:#aaf0c8;}
#fsenseRoot .fsense-field-status[data-state="restricted"] .fsense-field-ready-state{color:#ffd083;}

/* v1.0.22 profile-save state and metric information dialog */
#fsenseRoot .fsense-profile-actions .fsense-btn:disabled{
  opacity:.55!important;
  cursor:not-allowed!important;
  filter:saturate(.55);
}
#fsenseRoot .fsense-result-card-info{
  cursor:pointer;
  position:relative;
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
#fsenseRoot .fsense-result-card-info::after{
  content:'Tap for details';
  display:block;
  margin-top:8px;
  color:#9fdbb5;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.02em;
}
#fsenseRoot .fsense-result-card-info:hover,
#fsenseRoot .fsense-result-card-info:focus-visible{
  transform:translateY(-1px);
  border-color:#56c98a!important;
  box-shadow:0 0 0 3px rgba(86,201,138,.16);
  outline:none;
}
#fsenseRoot .fsense-metric-info-modal[hidden]{display:none!important}
#fsenseRoot .fsense-metric-info-modal{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(0,0,0,.76);
  backdrop-filter:blur(4px);
}
#fsenseRoot .fsense-metric-info-dialog{
  position:relative;
  width:min(620px,100%);
  max-height:min(82vh,760px);
  overflow:auto;
  padding:25px 22px 22px;
  border:1px solid #4a6a82;
  border-radius:20px;
  background:linear-gradient(180deg,#101c27,#09121a);
  box-shadow:0 24px 70px rgba(0,0,0,.55);
  color:#f5f8fb;
}
#fsenseRoot .fsense-metric-info-dialog h3{margin:0 44px 18px 0;color:#d9f7e5;font-size:1.35rem}
#fsenseRoot .fsense-metric-info-close{
  position:absolute;
  top:12px;
  right:14px;
  width:38px;
  height:38px;
  border:1px solid #59738c;
  border-radius:50%;
  background:#142536;
  color:#fff;
  font-size:1.55rem;
  line-height:1;
  cursor:pointer;
}
#fsenseRoot .fsense-metric-info-close:focus-visible{outline:3px solid rgba(86,201,138,.5);outline-offset:2px}
#fsenseRoot .fsense-metric-info-section{
  margin-top:14px;
  padding:15px;
  border:1px solid #2e4559;
  border-radius:14px;
  background:#0a141d;
}
#fsenseRoot .fsense-metric-info-section strong{display:block;margin-bottom:6px;color:#9fdbb5;font-size:.9rem;text-transform:uppercase;letter-spacing:.06em}
#fsenseRoot .fsense-metric-info-section p{margin:0;color:#eef4f8;line-height:1.58}
body.fsense-modal-open{overflow:hidden}
@media(max-width:640px){
  #fsenseRoot .fsense-metric-info-modal{padding:12px;align-items:flex-end}
  #fsenseRoot .fsense-metric-info-dialog{max-height:88vh;border-radius:20px 20px 10px 10px;padding:23px 17px 18px}
}


/* v1.0.29 optional reference values */
#fsenseRoot .fsense-reference-panel{margin:16px 0;border:1px solid rgba(99,230,170,.32);border-radius:16px;background:#0c1714;padding:12px 14px;color:#f3fff9}
#fsenseRoot .fsense-reference-panel>summary{cursor:pointer;font-weight:800;color:#dfffee}
#fsenseRoot .fsense-reference-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin-top:14px}
#fsenseRoot .fsense-reference-grid label{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center;background:#12231e;border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:10px;color:#f4fff9;font-weight:700}
#fsenseRoot .fsense-reference-grid input,#fsenseRoot .fsense-reference-grid select{grid-column:1/-1;width:100%;background:#07110e;color:#fff;border:1px solid #6aa98c;border-radius:9px;padding:10px;box-sizing:border-box}
#fsenseRoot .fsense-reference-grid small{color:#bfe7d2;font-weight:600}


/* v1.0.31 — automated women’s fibroid-support layer */
#fsenseRoot .fsense-womens-support{border-color:#ead9e7;}
#fsenseRoot .fsense-fibroid-card strong{font-size:1.22rem;}

/* v1.0.33 report exports */
.fsense-report-export-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px;}
.fsense-report-export-actions .fsense-btn{width:100%;}
@media(max-width:640px){.fsense-report-export-actions{grid-template-columns:1fr;}}


/* v1.0.35 minimal two-window consumer UI. Core measurement/calibration logic unchanged. */
#fsenseRoot.fsense-consumer-mode{
  width:100%; max-width:100%; margin:0 auto; padding:12px; display:block; overflow-x:hidden;
}
#fsenseRoot .fsense-consumer-window{
  width:min(430px, calc(100vw - 24px)); min-height:600px; margin:0 auto;
  border-radius:24px; box-sizing:border-box;
}
#fsenseRoot .fsense-consumer-result{
  background:#f5f3ed; color:#53605e; border:1px solid #dddcd5;
  box-shadow:0 10px 30px rgba(15,23,42,.12); padding:28px 26px 24px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
}
#fsenseRoot .fsense-consumer-brand{font-size:24px;font-weight:800;letter-spacing:.01em;color:#344845;margin-bottom:34px}
#fsenseRoot .fsense-consumer-label{font-size:13px;font-weight:800;letter-spacing:.08em;color:#7a8683;margin-bottom:16px}
#fsenseRoot .fsense-consumer-value{font-size:82px;line-height:.95;font-weight:600;color:#697572;letter-spacing:-.04em}
#fsenseRoot .fsense-consumer-unit{font-size:20px;color:#74807d;margin-top:10px}
#fsenseRoot .fsense-consumer-status{font-size:19px;font-weight:700;color:#455a56;margin-top:28px}
#fsenseRoot .fsense-consumer-note{font-size:14px;line-height:1.4;color:#7a8683;margin:8px auto 24px;max-width:310px}
#fsenseRoot .fsense-consumer-actions{width:100%;display:grid;gap:12px;margin-top:auto}
#fsenseRoot .fsense-consumer-primary,#fsenseRoot .fsense-consumer-secondary{
  width:100%;border:0;border-radius:15px;padding:16px 18px;font-size:18px;font-weight:700;cursor:pointer
}
#fsenseRoot .fsense-consumer-primary{background:#2189d8;color:#fff}
#fsenseRoot .fsense-consumer-secondary{background:#e8e7e1;color:#53605e}
#fsenseRoot .fsense-consumer-datetime{font-size:18px;color:#707b79;margin-top:18px;min-height:22px}

/* Initial view is result only. Existing app content is retained but gated behind Details. */
#fsenseRoot.fsense-consumer-mode>.fsense-header,
#fsenseRoot.fsense-consumer-mode>.fsense-grid-primary,
#fsenseRoot.fsense-consumer-mode>.fsense-grid-secondary{display:none!important}
#fsenseRoot.fsense-capture-mode>#fsenseConsumerResult{display:none!important}
#fsenseRoot.fsense-capture-mode>.fsense-grid-primary{display:block!important;width:100%;margin:0 auto}
#fsenseRoot.fsense-capture-mode .fsense-reading-card{display:none!important}
#fsenseRoot.fsense-capture-mode .fsense-camera-card{display:block!important}
#fsenseRoot.fsense-details-mode>#fsenseConsumerResult{display:none!important}
#fsenseRoot.fsense-details-mode>.fsense-header{display:flex!important}
#fsenseRoot.fsense-details-mode>.fsense-grid-primary{display:block!important}
#fsenseRoot.fsense-details-mode>.fsense-grid-secondary{display:block!important}
#fsenseRoot.fsense-details-mode .fsense-camera-card{display:none!important}
#fsenseRoot.fsense-details-mode .fsense-reading-card{display:block!important;max-width:1040px;margin:0 auto 18px}
#fsenseRoot.fsense-details-mode .fsense-grid-secondary{max-width:1040px;margin:0 auto}

/* Capture window: same dimensions as result window, centred on phones. */
#fsenseRoot .fsense-camera-card.fsense-consumer-capture{
  width:min(430px, calc(100vw - 24px)); min-height:600px; margin:0 auto!important;
  background:#f5f3ed!important;color:#53605e!important;border:1px solid #dddcd5!important;
  box-shadow:0 10px 30px rgba(15,23,42,.12)!important;padding:20px!important;
}
#fsenseRoot .fsense-consumer-capture .fsense-card-head h3{color:#344845!important}
#fsenseRoot .fsense-consumer-capture .fsense-pill{background:#e9efed!important;border-color:#d2ddda!important;color:#53605e!important}
#fsenseRoot .fsense-consumer-capture .fsense-video-wrap{border-radius:18px;background:#18201f;border-color:#ccd5d2}
#fsenseRoot .fsense-consumer-capture #fsenseLiveVideo{aspect-ratio:4/3;border-radius:18px}
#fsenseRoot .fsense-consumer-capture .fsense-status-bar{color:#667572;font-size:13px}
#fsenseRoot .fsense-consumer-capture .fsense-pressure-panel,
#fsenseRoot .fsense-consumer-capture .fsense-progress-item{background:#ebeae4;border-color:#d9d8d1;color:#53605e}
#fsenseRoot .fsense-consumer-capture .fsense-progress-label,
#fsenseRoot .fsense-consumer-capture .fsense-pressure-state{color:#667572}
#fsenseRoot .fsense-consumer-capture-timing{margin-top:14px;text-align:left}
#fsenseRoot .fsense-consumer-capture-timing label{display:block;font-size:13px;font-weight:700;color:#53605e;margin-bottom:6px}
#fsenseRoot .fsense-consumer-capture-timing select{background:#fff;color:#455a56;border-color:#d3d8d5}
#fsenseRoot .fsense-consumer-capture-actions{display:grid;grid-template-columns:1fr 1.4fr!important;gap:10px!important}
#fsenseRoot .fsense-consumer-capture-actions .fsense-btn{width:100%!important;min-width:0!important}
#fsenseRoot .fsense-consumer-capture-actions .fsense-btn-primary{background:#2189d8!important;color:#fff!important}
#fsenseRoot .fsense-consumer-capture-actions .fsense-btn-secondary{background:#e3e2dc!important;color:#53605e!important;border-color:#d4d3cc!important}
@media(max-width:640px){
  #fsenseRoot.fsense-consumer-mode{padding:8px!important;display:block!important}
  #fsenseRoot .fsense-consumer-window,#fsenseRoot .fsense-camera-card.fsense-consumer-capture{width:min(430px,calc(100vw - 16px))!important;margin-left:auto!important;margin-right:auto!important}
  #fsenseRoot .fsense-consumer-result{padding:24px 20px 20px!important}
  #fsenseRoot .fsense-consumer-value{font-size:72px}
  #fsenseRoot.fsense-details-mode>.fsense-header{display:flex!important}
}


/* v1.0.36 consumer UI alignment and responsive formatting repair. */
#fsenseRoot.fsense-consumer-mode:not(.fsense-details-mode){
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:12px!important;
  padding-right:12px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  overflow-x:clip!important;
}
#fsenseRoot.fsense-consumer-mode:not(.fsense-details-mode) > #fsenseConsumerResult,
#fsenseRoot.fsense-capture-mode > .fsense-grid-primary,
#fsenseRoot.fsense-capture-mode .fsense-camera-card.fsense-consumer-capture{
  width:100%!important;
  max-width:430px!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
#fsenseRoot.fsense-capture-mode > .fsense-grid-primary{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
}
#fsenseRoot .fsense-consumer-window{
  overflow:hidden;
}
#fsenseRoot .fsense-consumer-result,
#fsenseRoot .fsense-camera-card.fsense-consumer-capture{
  min-height:600px;
}
#fsenseRoot .fsense-consumer-primary,
#fsenseRoot .fsense-consumer-secondary,
#fsenseRoot .fsense-consumer-capture-actions .fsense-btn{
  box-sizing:border-box!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:52px!important;
  padding:12px 14px!important;
  line-height:1.2!important;
  text-align:center!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
#fsenseRoot .fsense-consumer-capture-actions{
  width:100%!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)!important;
  align-items:stretch!important;
}
#fsenseRoot .fsense-consumer-capture-actions .fsense-btn{
  font-size:15px!important;
}
#fsenseRoot .fsense-consumer-capture-timing,
#fsenseRoot .fsense-consumer-capture-timing select{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
#fsenseRoot .fsense-consumer-capture .fsense-card-head{
  width:100%;
  min-width:0;
  flex-wrap:wrap;
}
#fsenseRoot .fsense-consumer-capture .fsense-card-head h3,
#fsenseRoot .fsense-consumer-capture .fsense-pill,
#fsenseRoot .fsense-consumer-capture .fsense-status-bar,
#fsenseRoot .fsense-consumer-note,
#fsenseRoot .fsense-consumer-status,
#fsenseRoot .fsense-consumer-datetime{
  max-width:100%;
  overflow-wrap:anywhere;
}
#fsenseRoot .fsense-consumer-capture .fsense-video-wrap,
#fsenseRoot .fsense-consumer-capture #fsenseLiveVideo{
  width:100%!important;
  max-width:100%!important;
}
@media(max-width:640px){
  #fsenseRoot.fsense-consumer-mode:not(.fsense-details-mode){
    padding-left:8px!important;
    padding-right:8px!important;
  }
  #fsenseRoot.fsense-consumer-mode:not(.fsense-details-mode) > #fsenseConsumerResult,
  #fsenseRoot.fsense-capture-mode > .fsense-grid-primary,
  #fsenseRoot.fsense-capture-mode .fsense-camera-card.fsense-consumer-capture{
    width:100%!important;
    max-width:430px!important;
  }
  #fsenseRoot .fsense-consumer-result,
  #fsenseRoot .fsense-camera-card.fsense-consumer-capture{
    padding-left:18px!important;
    padding-right:18px!important;
  }
}
@media(max-width:390px){
  #fsenseRoot .fsense-consumer-brand{font-size:21px!important;margin-bottom:28px!important}
  #fsenseRoot .fsense-consumer-value{font-size:66px!important}
  #fsenseRoot .fsense-consumer-status{font-size:17px!important}
  #fsenseRoot .fsense-consumer-capture-actions{
    grid-template-columns:1fr!important;
  }
  #fsenseRoot .fsense-consumer-capture-actions .fsense-btn{
    width:100%!important;
    font-size:16px!important;
  }
}

/* FibroSense v1.0.0 focused fibroid-support experience */
#fsenseRoot .fsense-fibro-focus{margin-top:16px}
#fsenseRoot .fsense-fibro-focus-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#fsenseRoot .fsense-fibro-primary{border:1px solid rgba(20,49,78,.12);box-shadow:0 6px 18px rgba(20,49,78,.06)}
#fsenseRoot .fsense-fibroid-card{border-left:4px solid #2aa876}
#fsenseRoot .fsense-dual-metric{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:7px}
#fsenseRoot .fsense-dual-metric>div{min-width:0;padding:10px;border-radius:12px;background:rgba(20,49,78,.04)}
#fsenseRoot .fsense-dual-metric strong{display:block;margin:3px 0;font-size:1.15rem}
#fsenseRoot .fsense-fibro-advanced-btn{width:100%;margin-top:12px}
#fsenseRoot .fsense-fibro-advanced-metrics[hidden]{display:none!important}
#fsenseRoot .fsense-fibro-advanced-metrics{margin-top:14px}
#fsenseRoot .fsense-fibro-advanced-only{display:none!important}
#fsenseRoot.fsense-show-advanced .fsense-fibro-advanced-only{display:block!important}
#fsenseRoot .fsense-consumer-trajectory{font-size:clamp(2rem,8vw,3.6rem);line-height:1.05;text-transform:none}
@media(max-width:700px){
  #fsenseRoot .fsense-fibro-focus-grid{grid-template-columns:1fr}
  #fsenseRoot .fsense-dual-metric{grid-template-columns:1fr 1fr}
}

/* FibroSense v1.0.4 — stable measurement layout and non-jumping live status. */
#fsenseRoot .fsense-consumer-capture .fsense-card-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(140px,55%)!important;
  align-items:center!important;
  min-height:42px;
}
#fsenseRoot .fsense-consumer-capture .fsense-pill{
  width:100%; box-sizing:border-box; justify-content:center; text-align:center;
  min-height:34px; line-height:1.25; white-space:normal;
}
#fsenseRoot .fsense-consumer-capture .fsense-status-bar{
  display:block!important; width:100%; min-height:42px; margin-top:12px!important;
  line-height:1.35; overflow:hidden;
}
#fsenseRoot .fsense-consumer-capture #fsenseTimerMsg{
  display:block; min-height:38px; font-variant-numeric:tabular-nums;
}
#fsenseRoot .fsense-consumer-capture .fsense-pressure-head{
  display:grid; grid-template-columns:1fr 58px; align-items:center; gap:8px;
}
#fsenseRoot .fsense-consumer-capture #fsensePressureText{
  display:block; width:58px; text-align:right; font-variant-numeric:tabular-nums;
}
#fsenseRoot .fsense-consumer-capture #fsensePressureState{min-height:18px;}
#fsenseRoot .fsense-consumer-capture .fsense-progress-label{min-height:20px;}
#fsenseRoot .fsense-consumer-capture input[type=range]{width:100%;box-sizing:border-box;}
@media(max-width:390px){
  #fsenseRoot .fsense-consumer-capture .fsense-card-head{
    grid-template-columns:minmax(0,1fr) minmax(120px,58%)!important;
  }
}


/* FibroSense v1.0.5 — compact core indices, reliable navigation, explicit details actions and contrast repair. */
#fsenseRoot .fsense-consumer-core-grid{
  width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
  margin:2px 0 16px;
}
#fsenseRoot .fsense-consumer-core-item{
  min-width:0;padding:10px 11px;border-radius:12px;background:#f2f5f4;
  border:1px solid #d4dcda;text-align:left;
}
#fsenseRoot .fsense-consumer-core-item span{display:block;font-size:11px;line-height:1.2;font-weight:800;color:#334744;margin-bottom:4px;}
#fsenseRoot .fsense-consumer-core-item strong{display:block;font-size:14px;line-height:1.25;color:#102f2a;overflow-wrap:anywhere;}
#fsenseRoot .fsense-back-main{
  appearance:none;border:1px solid #b9c8c4;background:#ffffff;color:#143d36;border-radius:10px;
  padding:9px 13px;font-weight:800;font-size:14px;line-height:1;cursor:pointer;margin:0 0 12px;
}
#fsenseRoot .fsense-back-main:hover,#fsenseRoot .fsense-back-main:focus-visible{background:#eaf4f0;border-color:#2aa876;outline:2px solid rgba(42,168,118,.22);outline-offset:2px;}
#fsenseRoot .fsense-back-main-advanced{width:100%;margin-top:14px;}
#fsenseRoot .fsense-result-card-info::after{content:none!important;display:none!important;}
#fsenseRoot .fsense-card-details-trigger{
  appearance:none;border:0;background:transparent;padding:7px 0 0;margin:4px 0 0;
  color:#075f47;font-size:.76rem;font-weight:800;text-decoration:underline;cursor:pointer;text-align:left;
}
#fsenseRoot .fsense-card-details-trigger:hover,#fsenseRoot .fsense-card-details-trigger:focus-visible{color:#043d2f;outline:none;text-decoration-thickness:2px;}
/* Higher contrast across light Miznee surfaces. */
#fsenseRoot .fsense-consumer-label,#fsenseRoot .fsense-consumer-note,#fsenseRoot .fsense-consumer-datetime,
#fsenseRoot .fsense-subtitle,#fsenseRoot .fsense-note,#fsenseRoot .fsense-field-hint,
#fsenseRoot .fsense-result-card small,#fsenseRoot .fsense-pressure-state,#fsenseRoot .fsense-progress-label,
#fsenseRoot .fsense-consumer-capture .fsense-status-bar{color:#3f5350!important;}
#fsenseRoot .fsense-result-card span,#fsenseRoot .fsense-context-title,#fsenseRoot .fsense-field-label{color:#263f3b!important;}
#fsenseRoot .fsense-consumer-secondary,#fsenseRoot .fsense-consumer-capture-actions .fsense-btn-secondary{color:#273e3a!important;}
@media(max-width:380px){
  #fsenseRoot .fsense-consumer-core-grid{gap:6px;}
  #fsenseRoot .fsense-consumer-core-item{padding:9px;}
  #fsenseRoot .fsense-consumer-core-item strong{font-size:13px;}
}


/* FibroSense v1.0.7 — dark-surface contrast + export-button alignment repair. */
#fsenseRoot .fsense-report-export-actions{
  width:100%;
  align-items:stretch;
}
#fsenseRoot .fsense-report-export-actions .fsense-btn{
  width:100%!important;
  min-width:0!important;
  min-height:64px!important;
  height:auto!important;
  padding:14px 16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  line-height:1.18!important;
  white-space:normal!important;
  overflow:visible!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  text-wrap:balance;
}
#fsenseRoot .fsense-report-export-actions .fsense-btn-primary{
  color:#071d17!important;
}
#fsenseRoot .fsense-report-export-actions .fsense-btn-secondary{
  color:#f7fbff!important;
}

/* v1.0.5's light-surface contrast rules must not bleed into dark Details/Advanced panels. */
#fsenseRoot.fsense-details-mode .fsense-card,
#fsenseRoot.fsense-details-mode .fsense-history-export-panel,
#fsenseRoot.fsense-details-mode .fsense-advanced-panel,
#fsenseRoot.fsense-details-mode .fsense-box-field,
#fsenseRoot.fsense-details-mode .fsense-context-card,
#fsenseRoot.fsense-details-mode .fsense-progress-item,
#fsenseRoot.fsense-details-mode .fsense-pressure-panel{
  color:#f5f8fb!important;
}
#fsenseRoot.fsense-details-mode .fsense-note,
#fsenseRoot.fsense-details-mode .fsense-field-hint,
#fsenseRoot.fsense-details-mode .fsense-subtitle,
#fsenseRoot.fsense-details-mode .fsense-awareness-note,
#fsenseRoot.fsense-details-mode .fsense-pressure-state,
#fsenseRoot.fsense-details-mode .fsense-progress-label,
#fsenseRoot.fsense-details-mode .fsense-result-card small,
#fsenseRoot.fsense-details-mode .fsense-status-bar,
#fsenseRoot.fsense-details-mode .fsense-trend-mean-display,
#fsenseRoot.fsense-details-mode .fsense-trend-mean-display span{
  color:#d3dee7!important;
  opacity:1!important;
}
#fsenseRoot.fsense-details-mode .fsense-field-label,
#fsenseRoot.fsense-details-mode .fsense-context-title,
#fsenseRoot.fsense-details-mode .fsense-card-head h3,
#fsenseRoot.fsense-details-mode .fsense-panel-title{
  color:#f7fbff!important;
}
#fsenseRoot.fsense-details-mode .fsense-result-card span,
#fsenseRoot.fsense-details-mode .fsense-metric-label,
#fsenseRoot.fsense-details-mode .fsense-kicker{
  color:#b7f08f!important;
}
#fsenseRoot.fsense-details-mode .fsense-card-details-trigger{
  color:#9fe7c1!important;
}
#fsenseRoot.fsense-details-mode .fsense-card-details-trigger:hover,
#fsenseRoot.fsense-details-mode .fsense-card-details-trigger:focus-visible{
  color:#d5f8e6!important;
}
#fsenseRoot.fsense-details-mode .fsense-back-main{
  background:#f7fbff!important;
  color:#103e34!important;
  border-color:#b9d4cb!important;
}

@media(max-width:640px){
  #fsenseRoot .fsense-report-export-actions .fsense-btn{
    min-height:70px!important;
    font-size:16px!important;
    padding:15px 14px!important;
  }
}

/* FibroTrail */
.fsense-fibrotrail-button{flex:1 1 100%}.fsense-fibrotrail-summary{margin-top:8px;font-size:.82rem;line-height:1.35;color:#dbeafe;text-align:center;min-height:1.2em}.fsense-fibrotrail-modal{position:fixed;inset:0;z-index:99999;background:rgba(2,8,23,.78);display:flex;align-items:center;justify-content:center;padding:16px}.fsense-fibrotrail-modal[hidden]{display:none!important}.fsense-fibrotrail-dialog{position:relative;width:min(520px,100%);max-height:88vh;overflow:auto;background:#fff;color:#10233e;border-radius:18px;padding:20px;box-shadow:0 24px 70px rgba(0,0,0,.38)}.fsense-fibrotrail-dialog h3{margin:0 42px 8px 0;color:#0b1f3a}.fsense-fibrotrail-dialog .fsense-note{color:#334155}.fsense-fibrotrail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.fsense-fibrotrail-grid label{display:flex;flex-direction:column;gap:5px;font-weight:700;font-size:.88rem;color:#14233b}.fsense-fibrotrail-grid input,.fsense-fibrotrail-grid select{width:100%;box-sizing:border-box;min-height:44px;border:1px solid #94a3b8;border-radius:10px;background:#fff;color:#0f172a;padding:9px 10px;font-size:16px}.fsense-fibrotrail-grid small{font-weight:500;color:#475569}.fsense-fibrotrail-actions{display:flex;justify-content:flex-end;margin-top:16px}@media(max-width:520px){.fsense-fibrotrail-grid{grid-template-columns:1fr}.fsense-fibrotrail-dialog{padding:16px}}

/* v1.1.1 — UK/international units primary; US equivalents secondary */
#fsenseRoot .fsense-unit-primary{display:block;font-size:1em;font-weight:inherit;line-height:1.15}
#fsenseRoot .fsense-unit-secondary{display:block;margin-top:2px;font-size:.66em;font-weight:650;line-height:1.15;opacity:.78;letter-spacing:0}
#fsenseRoot .fsense-consumer-core-item .fsense-unit-secondary{font-size:.64em;margin-top:3px}
#fsenseRoot #fsenseEstTxt .fsense-unit-primary{display:inline;font-weight:800}
#fsenseRoot #fsenseEstTxt .fsense-unit-secondary{display:inline;margin:0 6px 0 4px;font-size:.72em}
#fsenseRoot .fsense-table .fsense-unit-secondary{font-size:.78em}

/* v1.2.1 FibroTrail validation campaign entry gate */
#fsenseRoot .fsense-fibrotrail-consent{display:flex;align-items:flex-start;gap:10px;margin-top:16px;padding:12px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;color:#0f172a;font-size:.88rem;line-height:1.4;font-weight:650}
#fsenseRoot .fsense-fibrotrail-consent input{width:20px;height:20px;min-width:20px;margin-top:1px}
#fsenseRoot .fsense-fibrotrail-joined{background:#e8f7ee!important;color:#14532d!important;border-color:#86efac!important}
#fsenseRoot #fsenseFibroTrailJoinNote,#fsenseRoot #fsenseFibroTrailNote{margin-top:10px;color:#0f172a!important;font-weight:650}

#fsenseRoot .fsense-fibrotrail-join-actions{gap:10px;flex-wrap:wrap}
#fsenseRoot .fsense-fibrotrail-join-actions .fsense-btn{flex:1 1 190px;min-height:46px;text-align:center}

/* FibroSense v1.2.4 — HemaSense360 glucose-pipeline parity + visible participant ID. */
body.fsense-fibrotrail-gated{overflow:hidden!important}
#fsenseRoot.fsense-enrolment-required > :not(#fsenseConsumerResult){pointer-events:none!important}
#fsenseRoot.fsense-enrolment-required #fsenseConsumerResult > :not(#fsenseFibroTrailJoinModal){filter:blur(2px);opacity:.18;pointer-events:none!important;user-select:none!important}
#fsenseRoot .fsense-fibrotrail-campaign-consent{margin-top:14px;padding:10px 12px;border-radius:10px;background:#eef5ff;border:1px solid #bfd5f5;color:#10233e}
#fsenseRoot .fsense-fibrotrail-campaign-consent strong{display:block;margin-bottom:3px;color:#0b1f3a}
#fsenseRoot .fsense-fibrotrail-join-actions .fsense-btn{width:100%!important;min-height:52px!important}

/* Signal-capture screen must be high-contrast white on black. */
#fsenseRoot .fsense-camera-card.fsense-consumer-capture{background:#050505!important;color:#fff!important;border-color:#252525!important}
#fsenseRoot .fsense-consumer-capture .fsense-card-head h3,
#fsenseRoot .fsense-consumer-capture .fsense-pill,
#fsenseRoot .fsense-consumer-capture .fsense-status-bar,
#fsenseRoot .fsense-consumer-capture #fsenseTimerMsg,
#fsenseRoot .fsense-consumer-capture .fsense-pressure-head,
#fsenseRoot .fsense-consumer-capture #fsensePressureText,
#fsenseRoot .fsense-consumer-capture .fsense-pressure-state,
#fsenseRoot .fsense-consumer-capture .fsense-progress-label,
#fsenseRoot .fsense-consumer-capture .fsense-note,
#fsenseRoot .fsense-consumer-capture label{color:#fff!important}
#fsenseRoot .fsense-consumer-capture .fsense-pill{background:#171717!important;border-color:#3a3a3a!important}
#fsenseRoot .fsense-consumer-capture .fsense-pressure-panel,
#fsenseRoot .fsense-consumer-capture .fsense-progress-item{background:#111!important;border-color:#343434!important;color:#fff!important}
#fsenseRoot .fsense-consumer-capture .fsense-video-wrap{background:#000!important;border-color:#363636!important}
#fsenseRoot .fsense-consumer-capture-timing select{background:#111!important;color:#fff!important;border-color:#555!important}
#fsenseRoot .fsense-advanced-data-tools{margin:14px 0 18px;padding:14px;border:1px solid rgba(255,255,255,.18);border-radius:12px}
#fsenseRoot .fsense-fibrotrail-campaign-list{margin-top:12px;padding:10px 12px;border-radius:10px;background:#f8fafc;border:1px solid #cbd5e1;color:#10233e}
#fsenseRoot .fsense-fibrotrail-campaign-list strong{display:block;margin-bottom:5px;color:#0b1f3a}
#fsenseRoot .fsense-fibrotrail-campaign-list ul{margin:0;padding-left:20px}
#fsenseRoot .fsense-fibrotrail-campaign-list li{margin:3px 0}

.fsense-participant-id{margin:7px auto 0;padding:5px 10px;width:max-content;max-width:100%;box-sizing:border-box;border-radius:999px;background:#e8f0fb;color:#0b1f3a;font-weight:800;font-size:.82rem;line-height:1.2;text-align:center;letter-spacing:.01em}
