/* NexGauge compact scan dashboard. Layout only — never influences diagnostics. */
main{max-width:690px;padding:18px 16px 68px}
h1{font-size:26px}
.console-actions{display:grid;gap:10px;margin:12px 0}
.console-actions>button{margin:0}
.demo-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.demo-pair button{font-size:14px;padding:12px 5px;margin:0;min-height:44px;border-radius:12px}
#scan{margin:0}
#connect{min-height:52px}
.family-vin{display:flex;align-items:center;gap:9px;margin:1px 0 2px;min-height:34px}
.family-vin input{width:18px;height:18px;accent-color:#2fe0e8}
#log{margin:11px 0 14px;padding:10px 12px;font-size:14px;line-height:1.4}
.source-vault{display:none}
.board-heading{display:flex;align-items:end;justify-content:space-between;gap:9px;margin:14px 0 10px}
.board-heading h2{margin:0;font-size:20px}
.board-heading small{font-size:12px;color:#a9b6c9}
.board-tabs{display:flex;gap:7px;margin:9px 0 12px;padding:5px;background:#121f35;border:1px solid #253756;border-radius:14px}
.board-tabs button{flex:1;width:auto;margin:0;padding:11px 5px;font-size:13px;font-weight:750;background:transparent;color:#a9b6c9;border-radius:10px;min-height:44px}
.board-tabs button[aria-selected="true"]{background:#2fe0e8;color:#051827}
.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dash-tile{position:relative;min-width:0;aspect-ratio:1.02;min-height:155px;width:100%;margin:0!important;padding:14px!important;border:1px solid #2b466c!important;border-radius:19px!important;background:linear-gradient(145deg,#172943,#112035)!important;color:#f0f7ff!important;display:flex!important;flex-direction:column;align-items:stretch;text-align:left;gap:5px;justify-content:space-between;box-shadow:0 7px 20px #00000012;overflow:hidden}
.dash-tile:active{transform:scale(.985)}
.dash-tile:focus-visible,.board-tabs button:focus-visible,.sheet-close:focus-visible{outline:3px solid #2fe0e8;outline-offset:2px}
.dash-tile .tile-top{display:flex;justify-content:space-between;gap:6px;align-items:start}
.dash-tile .tile-icon{font-size:22px;line-height:1.1}
.dash-tile .tile-chevron{font-size:16px;color:#93abc7}
.dash-tile .tile-label{display:block;color:#cbdaf0;font-size:13px;font-weight:700;line-height:1.3}
.dash-tile .tile-value{display:block;font-size:clamp(18px,4.9vw,25px);font-weight:850;line-height:1.15;letter-spacing:-.4px;overflow-wrap:break-word}
.dash-tile .tile-sub{display:block;font-size:12px;line-height:1.3;color:#bdcce0;font-weight:450;overflow-wrap:break-word}
.dash-tile.tone-pass{background:linear-gradient(145deg,#126444,#103a31)!important;border-color:#48e4a0!important}
.dash-tile.tone-pass .tile-label,.dash-tile.tone-pass .tile-sub{color:#e0ffef}
.dash-tile.tone-fail{background:linear-gradient(145deg,#7b263b,#411e2b)!important;border-color:#ff7b90!important}
.dash-tile.tone-fail .tile-label,.dash-tile.tone-fail .tile-sub{color:#ffe5eb}
.dash-tile.tone-caution{background:linear-gradient(145deg,#61491b,#332e21)!important;border-color:#f2bd59!important}
.dash-tile.tone-caution .tile-label,.dash-tile.tone-caution .tile-sub{color:#fff0d5}
.dash-tile.tone-muted{border-color:#2c3c52!important;background:#141f30!important}
.board-help{margin:12px 3px 0;color:#91a8c5;font-size:13px}
.sheet-root[hidden]{display:none}
.sheet-root{position:fixed;inset:0;z-index:9999;display:flex;align-items:end;justify-content:center}
.sheet-backdrop{position:absolute;inset:0;background:#020a16c9;backdrop-filter:blur(5px)}
.sheet-panel{position:relative;z-index:1;width:100%;max-width:690px;max-height:min(87dvh,900px);min-height:220px;overflow:hidden;display:flex;flex-direction:column;background:#111e33;border:1px solid #365279;border-bottom:0;border-radius:22px 22px 0 0;box-shadow:0 -20px 70px #0008}
.sheet-header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 18px 14px;border-bottom:1px solid #314463;background:#15263e}
.sheet-title{font-size:20px;font-weight:850;line-height:1.2;margin:0}
.sheet-close{flex:none;border:1px solid #48617e;background:#263853;color:#fff;font-size:23px;font-weight:600;width:42px;height:42px;padding:0;margin:0;border-radius:12px}
.sheet-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:8px 16px 24px}
.sheet-scroll .card{margin:12px 0}
.sheet-scroll .card:first-child{margin-top:8px}
.sheet-scroll p{overflow-wrap:break-word}
.sheet-scroll pre{max-height:55vh;overflow:auto;font-size:13px;line-height:1.35}
.sheet-scroll button{min-height:46px}
.sheet-scroll .modal-main-action{background:#2fe0e8;color:#04121f;font-weight:750}
.sheet-scroll .status-plain{padding:11px 13px;border:1px solid #334965;border-radius:12px;margin:10px 0;font-size:15px;color:#cddcee}
.sheet-scroll .status-fail{border-color:#ef6176;color:#ffc8d2;background:#4c2734}
.sheet-scroll .status-pass{border-color:#4add93;color:#b7ffd8;background:#204836}
.sheet-scroll .detail-data{margin:12px 0;padding:11px;border:1px solid #304968;border-radius:12px}
.sheet-scroll .detail-data dt{font-size:13px;color:#99bad5;margin-top:10px}
.sheet-scroll .detail-data dd{font-size:17px;margin:0 0 7px}
body.sheet-open{overflow:hidden}
@media(min-width:650px){
  .dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dash-tile{aspect-ratio:1.17}
  .sheet-root{align-items:center;padding:20px}
  .sheet-panel{border-bottom:1px solid #365279;border-radius:22px;max-height:86dvh}
}
@media(max-width:350px){
  .dash-tile{min-height:142px;padding:11px!important}
  .dash-tile .tile-value{font-size:18px}
  .dash-tile .tile-sub{font-size:11px}
}
@media(prefers-reduced-motion:no-preference){
  .sheet-panel{animation:sheet-rise .18s ease-out}
  @keyframes sheet-rise{from{opacity:.7;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
}
