/* Read-only File Service lookup, scoped to its own page. */
.file-page .tmcheck-wrap{padding:48px 16px 70px;background:#10151d;color:#17202b;font-family:Inter,Arial,sans-serif;}
.file-page .tmcheck{max-width:1180px;margin:0 auto;box-sizing:border-box;}
.file-page .tmcheck *{box-sizing:border-box;}
.file-page .tmcheck-head{padding:0 4px 27px;color:#fff;}
.file-page .tmcheck-back{display:inline-block;margin-bottom:29px;color:#e2e4e8!important;font-size:13px;font-weight:700;text-decoration:none;}
.file-page .tmcheck-back:hover{text-decoration:underline;}
.file-page .tmcheck-eyebrow{display:block;font-size:11px;letter-spacing:.14em;color:#ff5578;font-weight:900;}
.file-page .tmcheck h1{font:800 clamp(35px,5vw,60px)/1 "Barlow Condensed",Inter,sans-serif;margin:12px 0 15px;color:#fff;}
.file-page .tmcheck-head p{font-size:15px;color:#d4dae3;line-height:1.8;max-width:790px;}
.file-page .tmcheck-body{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;}
.file-page .tmcheck-panel,.file-page .tmcheck-results{min-width:0;max-width:100%;}
.file-page .tmcheck-panel,.file-page .tmcheck-results{background:#fff;border:1px solid #dee4ea;border-radius:16px;padding:29px 32px;}
.file-page .tmcheck-section-head{display:flex;align-items:flex-start;gap:15px;margin-bottom:22px;}
.file-page .tmcheck-section-head>b{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:10px;background:#e3032e;color:#fff;font-weight:900;font-size:15px;}
.file-page .tmcheck h2{font:800 clamp(25px,3vw,33px)/1.1 "Barlow Condensed",Inter,sans-serif;color:#17212b;margin:0 0 5px;}
.file-page .tmcheck-section-head p{margin:0;font-size:13px;color:#677381;line-height:1.6;}
.file-page .tmcheck-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.file-page .tmcheck-field{min-width:0;display:flex;flex-direction:column;gap:7px;color:#28313d;font-size:14px;font-weight:800;}
.file-page .tmcheck-field span small{font-size:12px;color:#626e7a;font-weight:500;}
.file-page .tmcheck-field input,.file-page .tmcheck-field select{width:100%;min-height:48px;padding:11px 13px;background:#fff;color:#1b2632;border:1px solid #cbd4de;border-radius:9px;font:500 15px Inter,Arial,sans-serif;}
.file-page .tmcheck-field select:disabled{background:#f0f2f5;color:#67727e;cursor:not-allowed;}
.file-page .tmcheck input:focus-visible,.file-page .tmcheck select:focus-visible,.file-page .tmcheck button:focus-visible,.file-page .tmcheck a:focus-visible{outline:3px solid #1385d5;outline-offset:3px;}
.file-page .tmcheck-plate{max-width:680px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:13px;align-items:end;}
.file-page .tmcheck-primary{min-height:48px;padding:11px 19px;border:1px solid #ba0829;background:#e3032e;color:white!important;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;font:800 14px/1.3 Inter,Arial,sans-serif;text-decoration:none!important;cursor:pointer;white-space:nowrap;}
.file-page .tmcheck-primary:hover{background:#c4032e;color:#fff!important;}
.file-page .tmcheck-primary:disabled{opacity:.55;cursor:not-allowed;}
.file-page .tmcheck-note{margin:12px 0 0;color:#697687;font-size:12px;line-height:1.65;}
.file-page .tmcheck-divider{position:relative;margin:23px 0;border-bottom:1px solid #dce3ea;}
.file-page .tmcheck-divider span{position:absolute;left:0;top:-10px;padding-right:13px;background:#fff;color:#566472;font-size:11px;letter-spacing:.1em;font-weight:900;}
.file-page .tmcheck-unit{display:flex;flex-wrap:wrap;gap:13px;border:0;padding:0;margin:0 0 23px;}
.file-page .tmcheck-unit legend{width:100%;font-size:14px;font-weight:800;color:#1f2a35;margin-bottom:8px;}
.file-page .tmcheck-unit label{padding:12px 18px;display:flex;gap:11px;align-items:center;border:1px solid #cbd4df;border-radius:10px;cursor:pointer;font-size:15px;font-weight:700;min-width:175px;}
.file-page .tmcheck-unit label:has(input:checked){background:#fff0f3;border-color:#e3032e;}
.file-page .tmcheck-unit input{accent-color:#e3032e;width:18px;height:18px;}
.file-page .tmcheck-consult{margin-top:23px;min-width:260px;}
.file-page .tmcheck-error{border:1px solid #f0b2bf;background:#fff2f5;color:#a51739;padding:12px 16px;border-radius:9px;font-size:13px;margin-top:15px;}
.file-page .tmcheck-error[hidden],.file-page .tmcheck-results[hidden],.file-page .tmcheck [hidden]{display:none!important;}
.file-page .tmcheck-confidence{padding:13px 17px;border:1px solid #c9deeb;border-radius:11px;background:#f2f8fb;color:#1d506a;font-size:14px;line-height:1.65;margin-bottom:22px;}
.file-page .tmcheck-confidence.is-warning{border-color:#e8d5a9;background:#fffaf0;color:#78551f;}
.file-page .tmcheck-empty{padding:18px 20px;border-radius:10px;border:1px solid #e2e8ef;background:#f6f8fa;color:#3d4957;line-height:1.7;font-size:14px;}
.file-page .tmcheck-table-toolbar{display:flex;justify-content:space-between;align-items:end;gap:22px;margin-bottom:14px;}
.file-page .tmcheck-table-toolbar h3,.file-page .tmcheck-stage h3{font:800 23px/1.1 "Barlow Condensed",Inter,sans-serif;margin:0 0 7px;color:#1e2732;}
.file-page .tmcheck-table-toolbar label{width:min(100%,300px);}
.file-page .tmcheck-table-scroll{width:100%;max-width:100%;overflow-x:auto;border:1px solid #dfe5ec;border-radius:11px;}
.file-page .tmcheck-table{width:100%;min-width:620px;border-collapse:collapse;table-layout:fixed;font-size:14px;color:#24303d;}
.file-page .tmcheck-table th{padding:15px;text-align:left;background:#edf1f5;font-weight:900;white-space:nowrap;color:#283745;}
.file-page .tmcheck-table td{padding:16px 15px;border-top:1px solid #e6ebf0;vertical-align:middle;}
.file-page .tmcheck-table th:not(:first-child),.file-page .tmcheck-table td:not(:first-child){text-align:center;}
.file-page .tmcheck-table th:first-child{width:30%;}
.file-page .tmcheck-table th:last-child{width:27%;}
.file-page .tmcheck-method{display:inline-block;padding:5px 10px;border-radius:50px;background:#ecf9f0;color:#267045;font-size:12px;font-weight:900;}
.file-page .tmcheck-method.is-mixed{background:#fff1d6;color:#85561b;}
.file-page .tmcheck-method.is-unknown{background:#f2f3f5;color:#69727c;}
.file-page .tmcheck-stage{margin-top:24px;padding:22px;background:#f7f9fc;border:1px solid #dee5ed;border-radius:12px;}
.file-page .tmcheck-stage-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:16px;}
.file-page .tmcheck-stage-metric{padding:16px;background:#fff;border:1px solid #e2e7ec;border-radius:9px;}
.file-page .tmcheck-stage-metric small{display:block;font-size:12px;color:#5b6773;font-weight:700;}
.file-page .tmcheck-stage-metric strong{font:800 28px/1.3 "Barlow Condensed",Inter,sans-serif;color:#cb0b35;display:block;}
.file-page .tmcheck-stage-metric span{display:block;font-size:12px;color:#4a5664;}
.file-page .tmcheck-actions{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:26px;padding:22px;background:#17212d;border-radius:12px;color:#fff;}
.file-page .tmcheck-actions strong{font-size:17px;}
.file-page .tmcheck-actions p{margin:6px 0 0;color:#c0c9d3;font-size:13px;}
.file-page .tmcheck-footer{font-size:12px;line-height:1.8;color:#aeb8c4;padding:22px 5px;}
@media(max-width:750px){.file-page .tmcheck-wrap{padding:25px 10px 35px;}.file-page .tmcheck-panel,.file-page .tmcheck-results{padding:21px 17px;border-radius:12px;}.file-page .tmcheck-fields,.file-page .tmcheck-plate{grid-template-columns:1fr;}.file-page .tmcheck-plate .tmcheck-primary{width:100%;}.file-page .tmcheck-table-toolbar{align-items:stretch;flex-direction:column;}.file-page .tmcheck-stage-data{grid-template-columns:1fr;}.file-page .tmcheck-actions{flex-direction:column;align-items:stretch;}.file-page .tmcheck-actions .tmcheck-primary{width:100%;white-space:normal;}.file-page .tmcheck-consult{width:100%;}.file-page .tmcheck-unit label{flex:1 1 170px;}}

/* ECU discovery cards show the possible units from the existing engine-ECU
   links; they are never represented as guaranteed matches for a registration. */
.file-page .tmcheck-unit-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px;}
.file-page .tmcheck-unit-card {min-width:0;border:1px solid #d4dde7;background:#f9fbfd;color:#192735;border-radius:11px;padding:18px;text-align:left;display:flex;flex-direction:column;gap:8px;cursor:pointer;font-family:Inter,Arial,sans-serif;}
.file-page .tmcheck-unit-card:hover,.file-page .tmcheck-unit-card:focus-visible {border-color:#e3032e;background:#fff4f6;}
.file-page .tmcheck-unit-card strong {font-size:16px;font-weight:850;overflow-wrap:anywhere;}
.file-page .tmcheck-unit-card>span {font-size:12px;color:#657384;line-height:1.55;}
.file-page .tmcheck-unit-card small {font-size:12px;color:#ba082b;font-weight:800;}
.file-page .tmcheck-discovery #tmcheck-find-units {min-height:49px;}
.file-page .tmcheck-wrap.tmcheck-embedded {margin:24px auto 38px;padding:36px 24px;max-width:1250px;border-radius:18px;background:linear-gradient(130deg,#121920,#292532);}
.file-page .tmcheck-wrap.tmcheck-embedded .tmcheck-head {padding:0 4px 20px;}
.file-page .tmcheck-embedded h2#tmcheck-title {font:800 clamp(34px,4vw,52px)/1.07 "Barlow Condensed",Inter,sans-serif;color:#fff;margin:12px 0 16px;}
@media(max-width:750px){
  .file-page .tmcheck-unit-grid {grid-template-columns:1fr;}
  .file-page .tmcheck-wrap.tmcheck-embedded {padding:25px 10px;margin:18px 12px;border-radius:14px;}
}


/* Circle-select radio list for possible ECU/TCU, no visible manufacturer/ECU dropdowns. */
.file-page .tmcheck-unit-card{cursor:pointer;flex-direction:row;align-items:flex-start;gap:14px;}
.file-page .tmcheck-unit-card>input[type="radio"]{appearance:auto;width:21px;height:21px;flex:none;margin:0;accent-color:#e3032e;cursor:pointer;}
.file-page .tmcheck-unit-card-copy{display:flex;flex-direction:column;min-width:0;gap:8px;}
.file-page .tmcheck-unit-card-copy>strong{font-size:16px;overflow-wrap:anywhere;}
.file-page .tmcheck-unit-card-copy>span{font-size:12px;line-height:1.55;color:#667381;}
.file-page .tmcheck-unit-card-copy>small{font-size:12px;color:#ba082b;font-weight:800;}
.file-page .tmcheck-unit-card:has(input:checked){border:2px solid #e3032e;background:#fff0f3;padding:17px;}
.file-page .tmcheck-unit-card:focus-within{outline:3px solid #1385d5;outline-offset:2px;}
.file-page .tmcheck-hidden-selectors[hidden]{display:none!important;}
.file-page .tmcheck-results{scroll-margin-top:100px;}

/* Discoverable companion URL for the app embedded in the File Service landing. */
.file-page .tmcheck-open-standalone {display:none;color:#fff!important;font:700 13px/1.5 Inter,Arial,sans-serif;text-decoration:underline;text-underline-offset:4px;margin:10px 0 0;}
.file-page .tmcheck-embedded .tmcheck-open-standalone {display:inline-flex;align-items:center;min-height:36px;}
.file-page .tmcheck-embedded .tmcheck-open-standalone:hover {color:#ff6a85!important;}

/* Four clean tool columns; confidence stays in the explanation, not as a
   repeated fifth column on every tool row. */
.file-page .tmcheck-table{min-width:470px;}
.file-page .tmcheck-table th:first-child{width:34%;}
.file-page .tmcheck-table th:last-child{width:22%;}
/* StageTec's simulated four-series power/torque curve, responsive. */
.file-page .tmcheck-chart{margin-top:22px;background:#fff;border:1px solid #e1e6ec;border-radius:12px;padding:21px;}
.file-page .tmcheck-chart-head{display:flex;justify-content:space-between;gap:14px 22px;align-items:center;flex-wrap:wrap;}
.file-page .tmcheck-chart-head>div:first-child>span{font-size:10px;letter-spacing:.12em;color:#bf1233;font-weight:900;}
.file-page .tmcheck-chart h4{font:800 22px/1.2 "Barlow Condensed",Inter,sans-serif;margin:5px 0;color:#17212b;}
.file-page .tmcheck-chart-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 18px;font-size:11px;color:#596576;}
.file-page .tmcheck-chart-legend>span{display:flex;align-items:center;gap:8px;white-space:nowrap;}
.file-page .tmcheck-legend-line{display:block;width:24px;border-top:3px solid #94a3b8;}
.file-page .tmcheck-legend-line.is-power-stage1{border-color:#e3032e;}
.file-page .tmcheck-legend-line.is-torque-original{border-color:#b0b9c9;border-top-style:dashed;}
.file-page .tmcheck-legend-line.is-torque-stage1{border-color:#e5a22b;border-top-style:dashed;}
.file-page .tmcheck-chart-canvas-wrap{width:100%;min-width:0;margin-top:14px;}
.file-page .tmcheck-chart-canvas-wrap canvas{display:block;width:100%;height:auto;max-width:100%;}
@media(max-width:640px){
 .file-page .tmcheck-chart{padding:12px;}
 .file-page .tmcheck-chart h4{font-size:19px;}
 .file-page .tmcheck-chart-legend{grid-template-columns:1fr 1fr;gap:8px 10px;font-size:10px;}
 .file-page .tmcheck-chart-legend>span{white-space:normal;}
}
