*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Segoe UI","Segoe UI Variable",Inter,system-ui,-apple-system,sans-serif;background:#e8f1f7;color:#071d3b}button,input,select{font:inherit}button{cursor:pointer}.app-shell{width:430px;max-width:100vw;min-height:100vh;margin:0 auto;background:#f5f9fc;position:relative;padding-bottom:82px}.app-header{background:radial-gradient(circle at 90% 0%,rgba(39,169,224,.35),transparent 32%),linear-gradient(135deg,#071d3b,#174a78);color:#fff;padding:18px;border-bottom-left-radius:30px;border-bottom-right-radius:30px}.brand-row{display:flex;align-items:center;justify-content:space-between}.logo-box{background:#fff;border-radius:16px;width:218px;height:48px;padding:8px 10px;display:flex;align-items:center}.logo-box img{width:100%}.secure-pill{border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:8px 10px;font-size:11px;font-weight:800;text-transform:uppercase}.hero{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-top:18px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:1.1px;color:#bfdcea;font-weight:800;margin:0 0 8px}.hero h1{font-size:30px;line-height:1.02;margin:0;font-weight:800;letter-spacing:-.7px}.hero-copy{font-size:13px;line-height:1.45;color:#d5edf6;margin:8px 0 0}.hero-score{text-align:right;min-width:96px}.hero-score strong{display:block;font-size:38px;font-weight:300;color:#7ad0ff}.hero-score span{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:#c7e0ed;font-weight:800}.quick-row{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:16px}.quick-card{background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.14);border-radius:17px;padding:10px}.quick-card b{display:block;color:#7ad0ff;font-size:18px;font-weight:500}.quick-card span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.7px;color:#d5edf6;font-weight:800}.screen-wrap{padding:14px 14px 16px}.screen{display:none}.screen.active{display:block}.card{background:#fff;border:1px solid #d8e6ee;border-radius:24px;padding:16px;margin-bottom:14px;box-shadow:0 10px 26px rgba(7,29,59,.06)}.dark-card{background:linear-gradient(135deg,#12365e,#0b2444);color:#fff;border-color:rgba(39,169,224,.22)}h2{font-size:19px;margin:0 0 14px;font-weight:760;letter-spacing:-.3px}h3{font-size:15px;margin:0 0 10px}.muted{font-size:13px;color:#66778d;line-height:1.5}.dark-card .muted,.dark-card p{color:#c4dbe9}.step{display:grid;grid-template-columns:46px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #d8e6ee}.step:last-child{border-bottom:0}.step-icon{width:46px;height:46px;border-radius:16px;background:#eef8fb;border:1px solid #d8e6ee;display:grid;place-items:center;font-size:22px}.step b{font-size:14px}.step p{font-size:12px;color:#66778d;margin:3px 0 0}.step button{border:0;background:#eef6fa;color:#079a9a;font-weight:800;border-radius:12px;padding:9px 10px;font-size:11px}.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.feature{text-align:left;background:#fff;border:1px solid #d8e6ee;border-radius:18px;padding:13px;min-height:102px}.feature span{display:grid;place-items:center;width:34px;height:34px;border-radius:13px;background:#eef7fb;margin-bottom:9px}.feature b{display:block;font-size:13px;margin-bottom:4px}.feature small{font-size:11px;color:#66778d;line-height:1.35}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}label{font-size:12px;color:#66778d;font-weight:700;display:block;margin-bottom:10px}input,select{width:100%;border:1px solid #d8e6ee;border-radius:15px;padding:13px;margin-top:6px;background:#fff;color:#071d3b}.primary,.secondary,.ghost{border:0;border-radius:16px;padding:13px 14px;font-weight:800}.primary{background:linear-gradient(135deg,#079a9a,#27a9e0);color:#fff;box-shadow:0 10px 24px rgba(7,154,154,.22)}.secondary{background:#eef6fa;color:#071d3b;border:1px solid #d8e6ee}.ghost{background:rgba(255,255,255,.11);color:#fff;border:1px solid rgba(255,255,255,.16);margin-top:12px}.full{width:100%}table{width:100%;border-collapse:separate;border-spacing:0 7px}td{background:#f7fbfd;border-top:1px solid #d8e6ee;border-bottom:1px solid #d8e6ee;padding:10px 9px;font-size:12px}td:first-child{border-left:1px solid #d8e6ee;border-radius:12px 0 0 12px;color:#66778d}td:last-child{border-right:1px solid #d8e6ee;border-radius:0 12px 12px 0;text-align:right;font-weight:800}.ok{color:#16a36f!important}.warn{color:#c88719!important}.review{color:#d84c4c!important}.scan-box{height:260px;border:2px dashed #92cfe5;border-radius:24px;background:#fafdff;display:grid;place-items:center;text-align:center;overflow:hidden;margin-bottom:12px}.cassette{width:238px;height:96px;background:#fff;border:1px solid #c5d6e2;border-radius:20px;box-shadow:0 18px 36px rgba(7,29,59,.13);display:flex;align-items:center;justify-content:center;gap:20px;margin:auto}.well{width:32px;height:32px;border:3px solid #b8c8d4;border-radius:50%}.lines{width:54px;height:54px;display:flex;align-items:center;justify-content:center;gap:18px}.lines i{display:block;width:6px;height:44px;border-radius:9px;background:#37adc6}.lines i:last-child{background:#a5d2dd}.progress{height:10px;background:#e2eef4;border-radius:999px;overflow:hidden;margin:12px 0}.progress div{height:100%;width:0;background:linear-gradient(90deg,#079a9a,#27a9e0);transition:width .25s}.score-layout{display:grid;grid-template-columns:126px 1fr;gap:16px;align-items:center}.gauge{width:120px;height:120px;border-radius:50%;background:conic-gradient(#27a9e0 0 41%,#e7f0f5 41% 100%);display:grid;place-items:center}.gauge>div{width:88px;height:88px;border-radius:50%;background:#fff;display:grid;place-items:center;text-align:center;color:#071d3b}.gauge b{font-size:30px}.gauge span{font-size:9px;text-transform:uppercase;color:#66778d;font-weight:800}.line-chart{height:210px;border-radius:20px;overflow:hidden;background:#12365e;margin-top:14px}.line-chart svg{width:100%;height:100%}.line-chart line{stroke:rgba(255,255,255,.1)}.line-chart .area{fill:url(#area)}.line-chart .line{fill:none;stroke:#7ad0ff;stroke-width:5;stroke-linecap:round}.line-chart text{fill:#bdd8e7;font-size:11px}.report-header{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #d8e6ee;padding-bottom:12px;margin-bottom:12px}.report-header h2{margin:0 0 4px}.report-header p{margin:0;color:#66778d;font-size:11px}.report-header span{background:#ecf9f4;color:#16a36f;border:1px solid #ccebdd;border-radius:999px;padding:7px 9px;font-size:10px;font-weight:800;height:max-content}.notice{background:#fff8e8;border:1px solid #f2dba2;border-radius:16px;padding:12px;color:#6f4f08;font-size:12px;line-height:1.45;margin-bottom:10px}.bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);max-width:430px;width:100%;height:78px;background:#fff;border-top:1px solid #d8e6ee;display:grid;grid-template-columns:repeat(6,1fr);z-index:99;box-shadow:0 -8px 24px rgba(7,29,59,.08)}.bottom-nav button{border:0;background:#fff;color:#7b8794;font-size:9px;font-weight:800;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.bottom-nav button.active{color:#079a9a;background:#f1fafc}.bottom-nav span{font-size:20px}.toast{position:fixed;left:50%;bottom:88px;transform:translateX(-50%) translateY(10px);width:min(400px,calc(100% - 28px));background:#071d3b;color:#fff;border-radius:16px;padding:13px;opacity:0;transition:.22s;z-index:100;text-align:center;font-weight:700}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}@media(min-width:520px){body{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:18px}.app-shell{border:10px solid #050b14;border-radius:44px;box-shadow:0 34px 100px rgba(7,29,59,.30);min-height:932px;max-height:932px;overflow-y:auto}.bottom-nav{position:absolute;left:0;transform:none}}

.validation-card-ui{border:1px solid #d8e6ee;border-radius:22px;overflow:hidden;margin:14px 0;background:#fff}
.validation-head{background:#252b38;color:white;text-align:center;font-weight:800;letter-spacing:.8px;padding:18px 10px}
.validation-body{height:280px;position:relative;background:linear-gradient(#fff 0 28%, #8b3d61 28% 43%, #fff 43% 47%, #bd91a7 47% 62%, #fff 62% 66%, #f4f2f3 66% 84%, #fff 84% 100%);display:grid;place-items:center}
.validation-strip{width:126px;height:230px;background:white;border:4px solid #d6d6d6;border-radius:14px;box-shadow:0 8px 20px rgba(0,0,0,.12);position:relative;display:grid;grid-template-columns:34px 1fr;align-items:center;padding:24px 18px 18px 14px;color:#bbb;font-weight:700}
.validation-strip .band{display:block;height:9px;border-radius:4px;background:#8b3d61;width:52px}
.validation-strip .band.mid{background:#bd91a7}.validation-strip .band.faint{background:#efeef0}.validation-strip .band.trace{background:#f7f7f7}.validation-strip span{font-size:18px;color:#b6b6b6}
.validation-bars{position:absolute;left:24px;right:24px;top:74px;bottom:62px;display:grid;grid-template-rows:repeat(4,1fr);gap:18px;z-index:0;opacity:.25}.validation-bars div{border-top:3px solid #111}
.validation-strip{z-index:2}
@media(max-width:420px){.bottom-nav{grid-template-columns:repeat(7,1fr)}.bottom-nav button{font-size:8px}.bottom-nav span{font-size:17px}}


/* ------------------------------------------------------------------
   Premium Claude-style medical-device UI update
   ------------------------------------------------------------------ */

body {
  background:
    radial-gradient(circle at 20% 0%, rgba(39,169,224,.12), transparent 34%),
    linear-gradient(180deg, #101827 0%, #e8f1f7 42%);
}

.app-shell {
  background: #f6f9fc;
}

.app-header {
  background:
    radial-gradient(circle at 86% 4%, rgba(39,169,224,.40), transparent 30%),
    linear-gradient(145deg, #101827 0%, #122b4f 48%, #071d3b 100%);
  border-bottom-left-radius: 34px;
  border-bottom-right-radius: 34px;
}

.logo-box {
  box-shadow: 0 12px 24px rgba(0,0,0,.16);
}

.hero h1 {
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -.9px;
}

.card {
  border-radius: 26px;
  border: 1px solid rgba(216,230,238,.92);
  box-shadow: 0 16px 38px rgba(7,29,59,.08);
}

.dark-card {
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    radial-gradient(circle at 76% 18%, rgba(39,169,224,.20), transparent 30%),
    linear-gradient(145deg, #101827 0%, #122b4f 58%, #071d3b 100%);
  background-size: 34px 34px, 34px 34px, 100% 100%, 100% 100%;
}

.scan-box {
  background:
    radial-gradient(circle at center, rgba(39,169,224,.10), transparent 44%),
    linear-gradient(180deg, #ffffff, #f7fbfd);
}

.vertical-scan {
  min-height: 360px;
}

.phone-camera-frame {
  width: 240px;
  height: 330px;
  border-radius: 28px;
  border: 2px dashed rgba(39,169,224,.55);
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(7,29,59,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,29,59,.035) 1px, transparent 1px),
    #ffffff;
  background-size: 28px 28px;
  box-shadow: inset 0 0 0 8px rgba(39,169,224,.035);
}

.vertical-cassette {
  width: 118px;
  height: 282px;
  background: #ffffff;
  border: 2px solid #cbd8e2;
  border-radius: 20px;
  box-shadow: 0 22px 44px rgba(7,29,59,.18);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vertical-cassette:before {
  content: "UNIBIOSCIENCE";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .8px;
  color: #778899;
}

.cassette-qr {
  margin-top: 34px;
  width: 42px;
  height: 42px;
  border: 2px solid #071d3b;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  color: #071d3b;
  background:
    linear-gradient(90deg, #071d3b 2px, transparent 2px),
    linear-gradient(#071d3b 2px, transparent 2px),
    #fff;
  background-size: 10px 10px;
}

.result-window {
  margin-top: 18px;
  width: 45px;
  height: 116px;
  border: 3px solid #d0d8df;
  border-radius: 18px;
  position: relative;
  background: #fbfbfb;
}

.result-window .line {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 7px;
  border-radius: 999px;
  background: #8b3d61;
}

.result-window .control {
  top: 28px;
}

.result-window .test {
  top: 72px;
  background: #bd91a7;
}

.result-window .label-c,
.result-window .label-t {
  position: absolute;
  left: -28px;
  font-size: 14px;
  font-weight: 800;
  color: #9aa8b4;
}

.result-window .label-c {
  top: 22px;
}

.result-window .label-t {
  top: 66px;
}

.sample-well {
  margin-top: 30px;
  width: 48px;
  height: 48px;
  border: 4px solid #d0d8df;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #9aa8b4;
  font-weight: 800;
}

.scan-warning {
  background: #eef8fb;
  color: #071d3b;
  border: 1px solid #d8e6ee;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  margin: -4px 0 12px;
}

.validation-head {
  background: #252b38 !important;
  letter-spacing: 1.4px;
}

.bottom-nav {
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(14px);
}


/* ---------------------------
   V3 Premium Mobile Redesign
---------------------------- */

body{
  background:
    radial-gradient(circle at top left, rgba(39,169,224,.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(7,29,59,.18), transparent 32%),
    linear-gradient(180deg,#0d1524 0%,#eef4f8 44%);
}

.app-shell{
  background:#f7fbfd;
  border:1px solid rgba(255,255,255,.5);
}

.card{
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(18px);
  border:1px solid rgba(216,230,238,.75);
  box-shadow:
    0 10px 24px rgba(7,29,59,.05),
    0 30px 70px rgba(7,29,59,.06);
}

.hero{
  padding-top:10px;
}

.hero-copy{
  max-width:260px;
}

.quick-card{
  backdrop-filter:blur(10px);
  background:rgba(255,255,255,.09);
}

.feature,
.modern-feature{
  border-radius:22px;
  transition:.22s ease;
  background:
    linear-gradient(180deg,#ffffff,#f7fbfd);
}

.feature:hover,
.modern-feature:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(7,29,59,.08);
}

.feature span,
.modern-icon{
  width:42px !important;
  height:42px !important;
  border-radius:14px !important;
  background:
    linear-gradient(145deg,#0f2848,#27a9e0) !important;
  color:white !important;
  font-size:18px !important;
  font-weight:800;
  box-shadow:0 10px 20px rgba(39,169,224,.24);
}

.modern-icon{
  display:grid;
  place-items:center;
}

.bottom-nav{
  height:82px;
  border-top:1px solid rgba(216,230,238,.8);
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(18px);
}

.bottom-nav button{
  position:relative;
  transition:.2s ease;
}

.bottom-nav button.active{
  color:#079a9a;
  background:transparent;
}

.bottom-nav button.active:before{
  content:"";
  position:absolute;
  top:6px;
  left:50%;
  transform:translateX(-50%);
  width:34px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,#079a9a,#27a9e0);
}

.primary{
  background:
    linear-gradient(135deg,#0f2848,#27a9e0);
  border:1px solid rgba(255,255,255,.16);
}

.secondary{
  background:#f5f9fc;
}

input,select{
  background:#fbfdff;
  border:1px solid #dbe8ef;
  box-shadow:inset 0 1px 2px rgba(7,29,59,.03);
}

.dark-card{
  box-shadow:
    0 14px 40px rgba(7,29,59,.20),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.gauge{
  box-shadow:
    inset 0 0 0 10px rgba(255,255,255,.06),
    0 18px 40px rgba(39,169,224,.16);
}

.report-card{
  background:
    linear-gradient(180deg,#ffffff,#f8fbfd);
}

.report-header{
  align-items:flex-start;
}

.notice{
  background:#fffdf5;
  border:1px solid #f0e3b2;
}

.phone-camera-frame{
  backdrop-filter:blur(10px);
  background:
    linear-gradient(rgba(255,255,255,.76),rgba(255,255,255,.82)),
    linear-gradient(rgba(7,29,59,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,29,59,.04) 1px, transparent 1px);
}

.vertical-cassette{
  box-shadow:
    0 24px 50px rgba(7,29,59,.18),
    inset 0 1px 0 rgba(255,255,255,.7);
}

.validation-card-ui{
  box-shadow:0 20px 44px rgba(7,29,59,.08);
}

.toast{
  backdrop-filter:blur(12px);
  background:rgba(7,29,59,.92);
}

h1,h2,h3,b,strong{
  letter-spacing:-.02em;
}


.nav-modern-icon{
  font-size:18px !important;
  width:28px;
  height:28px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#0f2848,#27a9e0);
  color:white;
  box-shadow:0 8px 18px rgba(39,169,224,.22);
}


.report-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:12px;
}
.gp-pdf-card{
  background:
    linear-gradient(180deg,#ffffff,#f8fbfd);
  border:1px solid rgba(39,169,224,.16);
}
@media(min-width:390px){
  .report-actions{
    grid-template-columns:1fr;
  }
}


/* V6 Unibioscience AI Reader Dashboard */
.reader-dashboard{padding:18px}
.reader-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.reader-header h2{font-size:30px;margin:0 0 6px}
.reader-subtitle{color:#c4dbe9;font-size:13px;line-height:1.45;margin:0;max-width:310px}
.filters-row{display:flex;gap:8px;overflow:auto;margin:18px 0 14px;padding-bottom:2px}
.filter-pill{border:0;border-radius:12px;background:rgba(255,255,255,.10);color:#dceff7;padding:10px 12px;font-size:12px;font-weight:800;white-space:nowrap}
.filter-pill.active{background:#ffffff;color:#071d3b}
.scan-table{border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04)}
.scan-table-head,.scan-row{display:grid;grid-template-columns:38px 1.4fr 1.2fr 1.1fr;gap:8px;align-items:center}
.scan-table-head{background:#202b3a;color:#dceff7;padding:12px;font-size:12px;font-weight:800}
.scan-row{width:100%;border:0;text-align:left;background:rgba(255,255,255,.98);color:#071d3b;padding:13px 12px;border-bottom:1px solid #eef2f5}
.scan-row:last-child{border-bottom:0}
.scan-row.selected{background:#fffaf2}
.scan-row b{font-size:13px;display:block}
.scan-row small{display:block;color:#66778d;font-size:11px;margin-top:3px}
.check{width:22px;height:22px;border-radius:5px;background:#f5bd3b;color:#071d3b;display:grid;place-items:center;font-size:13px;font-weight:900}
.check.empty{background:#fff;border:2px solid #cbd5df}
.status-chip{padding:7px 8px;border-radius:999px;font-size:10px;font-weight:900;text-align:center}
.status-chip.low{background:#ecf9f4;color:#16a36f}.status-chip.moderate{background:#fff8e8;color:#c88719}.status-chip.review{background:#fff1f1;color:#d84c4c}
.reader-detail{padding:0;overflow:hidden}
.detail-header{display:flex;justify-content:space-between;align-items:flex-start;padding:18px 18px 14px;border-bottom:1px solid #e6eef3}
.dark-text{color:#66778d!important}
.detail-header h2{font-size:20px;margin:0}
.icon-btn{width:34px;height:34px;border:0;border-radius:12px;background:#f5f9fc;color:#071d3b;font-size:24px;line-height:1}
.detail-image-block{height:220px;background:linear-gradient(135deg,#e5f6fb,#f7fbfd);display:grid;place-items:center;border-bottom:1px solid #e6eef3}
.vertical-cassette.mini{transform:scale(.72);transform-origin:center}
.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:0 18px 14px}
.result-grid div{background:#f7fbfd;border:1px solid #d8e6ee;border-radius:16px;padding:12px}
.result-grid b{display:block;font-size:16px;color:#071d3b}
.result-grid span{display:block;color:#66778d;font-size:11px;margin-top:4px}
.reader-detail h3{padding:16px 18px 8px;margin:0;color:#66778d;text-transform:uppercase;letter-spacing:.8px;font-size:12px}
.detail-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;padding:4px 18px 18px}
.algorithm-card{overflow:hidden}
.algo-flow{margin:14px 0 18px;text-align:center}
.algo-node{border:2px solid #202b3a;background:#fff8f1;color:#071d3b;border-radius:2px;padding:14px 10px;font-size:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;min-height:58px}
.algo-node.top,.algo-node.bottom{min-width:210px}
.algo-band{background:#202b3a;margin:0 -16px;padding:20px 10px;display:grid;grid-template-columns:1fr 28px 1fr 28px 1fr;align-items:center;gap:4px}
.algo-band .algo-node{font-size:12px;min-height:74px}
.algo-node small{font-weight:600;color:#344154}
.algo-arrow{font-size:28px;color:#202b3a;font-weight:800;line-height:1.2}
.algo-arrow.horizontal{color:white}
@media(max-width:420px){
  .scan-table-head,.scan-row{grid-template-columns:30px 1.2fr 1fr}
  .scan-table-head span:nth-child(4),.scan-row span:nth-child(4){display:none}
  .algo-band{grid-template-columns:1fr;gap:8px}
  .algo-arrow.horizontal{transform:rotate(90deg)}
}


/* -------------------------------------------------------
   V7 Scroll-safe floating bottom navigation
   Prevents the nav bar from covering App Features / cards
-------------------------------------------------------- */

.app-shell{
  padding-bottom: 0 !important;
}

.screen-wrap{
  padding-bottom: 148px !important;
}

.bottom-nav{
  position: fixed !important;
  left: 50% !important;
  bottom: max(14px, env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%) translateY(0) !important;
  width: min(402px, calc(100% - 28px)) !important;
  height: 74px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(216,230,238,.85) !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 18px 44px rgba(7,29,59,.18) !important;
  backdrop-filter: blur(18px) !important;
  display: grid !important;
  grid-template-columns: repeat(7,1fr) !important;
  overflow: hidden !important;
  z-index: 9999 !important;
  transition: transform .28s ease, opacity .28s ease, bottom .28s ease !important;
}

.bottom-nav.nav-hidden{
  transform: translateX(-50%) translateY(104px) !important;
  opacity: .18 !important;
}

.bottom-nav button{
  min-width: 0 !important;
  padding: 7px 2px 6px !important;
  font-size: 8.5px !important;
  border-radius: 0 !important;
}

.bottom-nav button span{
  font-size: 17px !important;
  margin-bottom: 2px !important;
}

.bottom-nav button.active:before{
  top: 4px !important;
  width: 28px !important;
  height: 3px !important;
}

@media (min-width: 520px){
  .bottom-nav{
    position: absolute !important;
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    transform: translateY(0) !important;
    width: auto !important;
  }
  .bottom-nav.nav-hidden{
    transform: translateY(104px) !important;
  }
}

@media (max-width: 390px){
  .bottom-nav{
    width: calc(100% - 18px) !important;
    grid-template-columns: repeat(7,1fr) !important;
  }
  .bottom-nav button{
    font-size: 7.8px !important;
  }
}

.card:last-child{margin-bottom:34px;}


/* V8 PDF + GP Email reporting */
.gp-email-label{
  display:block;
  margin-top:12px;
  color:#66778d;
  font-size:12px;
  font-weight:800;
}
.gp-email-label input{
  width:100%;
  margin-top:7px;
  border:1px solid #d8e6ee;
  border-radius:15px;
  padding:13px;
  background:#fbfdff;
}
.report-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:12px;
}
.pdf-modal{
  position:fixed;
  inset:0;
  background:rgba(7,29,59,.62);
  display:none;
  z-index:20000;
  padding:18px;
  overflow:auto;
}
.pdf-modal.show{
  display:block;
}
.pdf-modal-inner{
  max-width:860px;
  margin:0 auto;
  background:#f4f8fb;
  border-radius:24px;
  padding:14px;
  box-shadow:0 30px 90px rgba(0,0,0,.28);
}
.pdf-toolbar{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  align-items:center;
  padding:8px 4px 14px;
}
.pdf-toolbar button{
  border:0;
  border-radius:12px;
  padding:11px 14px;
  font-weight:800;
}
.pdf-toolbar .primary{
  background:linear-gradient(135deg,#079a9a,#27a9e0);
  color:white;
}
.pdf-toolbar .secondary{
  background:white;
  color:#071d3b;
  border:1px solid #d8e6ee;
}
.gp-report{
  background:white;
  color:#071d3b;
  width:794px;
  min-height:1123px;
  margin:0 auto;
  border-radius:2px;
  overflow:hidden;
  font-family:"Segoe UI",Arial,sans-serif;
}
.gp-report-header{
  background:#071d3b;
  color:white;
  padding:32px 38px;
  display:flex;
  justify-content:space-between;
  gap:20px;
}
.gp-report-header h1{
  margin:0;
  font-size:28px;
  letter-spacing:-.5px;
}
.gp-report-header p{
  margin:8px 0 0;
  color:#cfe8f4;
  font-size:13px;
}
.gp-report-id{
  text-align:right;
  font-size:12px;
  color:#d7eef7;
  line-height:1.7;
}
.gp-report-body{
  padding:30px 38px 34px;
}
.gp-section{
  margin-bottom:24px;
}
.gp-section h2{
  font-size:17px;
  margin:0 0 12px;
  color:#071d3b;
}
.gp-info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.gp-info-card{
  border:1px solid #d8e6ee;
  background:#f8fbfd;
  border-radius:14px;
  padding:12px;
}
.gp-info-card span{
  display:block;
  color:#66778d;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.5px;
}
.gp-info-card b{
  display:block;
  margin-top:5px;
  font-size:15px;
  color:#071d3b;
}
.gp-score-panel{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:20px;
  align-items:center;
  border:1px solid #d8e6ee;
  background:linear-gradient(180deg,#ffffff,#f7fbfd);
  border-radius:18px;
  padding:18px;
}
.gp-score-circle{
  width:128px;
  height:128px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:conic-gradient(#c88719 0 41%, #e7f0f5 41% 100%);
}
.gp-score-circle div{
  width:92px;
  height:92px;
  border-radius:50%;
  background:white;
  display:grid;
  place-items:center;
  text-align:center;
  border:1px solid #e0ebf1;
}
.gp-score-circle b{
  font-size:32px;
}
.gp-score-circle span{
  font-size:10px;
  color:#66778d;
  font-weight:800;
}
.gp-status{
  display:inline-block;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:900;
  background:#fff8e8;
  color:#c88719;
  border:1px solid #f2dba2;
}
.gp-chart{
  height:210px;
  border-radius:18px;
  background:#12365e;
  overflow:hidden;
  border:1px solid #d8e6ee;
}
.gp-chart svg{
  width:100%;
  height:100%;
}
.gp-chart line{
  stroke:rgba(255,255,255,.12);
}
.gp-chart .area{
  fill:url(#gpArea);
}
.gp-chart .line{
  fill:none;
  stroke:#7ad0ff;
  stroke-width:5;
  stroke-linecap:round;
}
.gp-chart text{
  fill:#bdd8e7;
  font-size:11px;
}
.gp-table{
  width:100%;
  border-collapse:collapse;
}
.gp-table th{
  background:#071d3b;
  color:white;
  padding:10px;
  text-align:left;
  font-size:12px;
}
.gp-table td{
  border:1px solid #d8e6ee;
  padding:10px;
  background:white;
  font-size:12px;
}
.gp-notice{
  background:#fff8e8;
  border:1px solid #f2dba2;
  color:#6f4f08;
  border-radius:14px;
  padding:14px;
  font-size:12px;
  line-height:1.55;
}
.gp-footer{
  border-top:1px solid #d8e6ee;
  margin-top:26px;
  padding-top:12px;
  color:#66778d;
  font-size:10px;
  line-height:1.5;
}
@media(max-width:840px){
  .gp-report{
    width:100%;
    min-height:auto;
  }
  .gp-report-header,.gp-report-body{
    padding-left:22px;
    padding-right:22px;
  }
  .gp-score-panel,.gp-info-grid{
    grid-template-columns:1fr;
  }
}
@media print{
  body *{visibility:hidden!important}
  #gpReportModal,#gpReportModal *{visibility:visible!important}
  #gpReportModal{position:absolute!important;inset:0!important;background:white!important;padding:0!important;display:block!important}
  .pdf-toolbar{display:none!important}
  .pdf-modal-inner{box-shadow:none!important;padding:0!important;background:white!important}
  .gp-report{width:210mm!important;min-height:297mm!important;border-radius:0!important}
}
