.road-page { max-width: 1320px; padding: 0 48px 80px; margin: 0 auto; color: #142c43; }
.road-intro { padding: 64px 0 36px; }
.road-intro .eyebrow { margin-bottom: 16px; font-size: 10px; letter-spacing: 2.5px; color: #7091ac; }
.road-intro h1 { font-size: clamp(31px, 3.3vw, 44px); font-weight: 600; letter-spacing: -1.7px; line-height: 1.25; margin: 0 0 16px; }
.road-intro h1 span { display: inline-block; }
.road-intro > p { color: #718397; font-size: 14px; line-height: 1.8; margin: 0; }
.road-workbench { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
.road-upload-panel, .road-output-panel { border: 1px solid #dce9f3; background: #fff; border-radius: 24px; min-width: 0; overflow: hidden; box-shadow: 0 10px 40px #35688e04; }
.road-upload-panel { padding: 27px; }
.road-output-panel { min-height: 590px; }
.road-section-title { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; }
.road-section-title h2 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -.3px; }
.road-output-panel > .road-section-title { padding: 27px 28px 22px; margin: 0; border-bottom: 1px solid #edf2f7; }
.road-step-number { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #eff7fe; color: #5b91bb; font-size: 10px; font-variant-numeric: tabular-nums; }
.road-state { margin-left: auto; color: #8092a3; font-size: 11px; white-space: nowrap; }
.road-state[data-status="completed"] { color: #278469; }
.road-state[data-status="processing"] { color: #0071e3; }
.road-state[data-status="failed"] { color: #a87345; }
.road-dropzone { border: 1px dashed #c8dfea; border-radius: 17px; background: linear-gradient(155deg, #fbfdff, #f5faff); text-align: center; padding: 29px 15px 25px; transition: background .18s, border-color .18s; }
.road-dropzone.is-dragover { background: #edf7ff; border-color: #329ddf; }
.road-dropzone.is-disabled { opacity: .65; }
.road-dropzone[hidden], .road-selected[hidden] { display: none; }
.road-upload-glyph { width: 49px; height: 49px; margin: 0 auto 19px; border-radius: 15px; display: grid; place-items: center; background: #e9f5fe; color: #399edc; }
.road-upload-glyph svg { width: 23px; height: 23px; }
.road-dropzone h3 { margin: 0 0 9px; font-size: 15px; font-weight: 550; }
.road-dropzone p { font-size: 12px; color: #8397a9; margin: 0 0 21px; }
.road-dropzone .btn { min-height: 38px; padding: 9px 22px; font-size: 12px; background: white; }
.road-format { display: block; font-size: 10px; color: #899eae; line-height: 1.8; margin-top: 20px; }
.road-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.road-selected video { width: 100%; max-height: 280px; display: block; border-radius: 14px; background: #0f1f2d; object-fit: contain; }
.road-selected video[hidden], .road-file-ready[hidden] { display: none; }
.road-file-ready { border: 1px solid #dfedf7; border-radius: 14px; background: #f5faff; padding: 30px 20px; text-align: center; }
.road-file-ready > span { display: grid; place-items: center; width: 44px; height: 44px; background: #e8f4fd; border-radius: 13px; margin: 0 auto 15px; color: #329ddf; }
.road-file-ready svg { width: 22px; height: 22px; }
.road-file-ready h3 { font-size: 14px; font-weight: 550; margin: 0 0 9px; }
.road-file-ready p { color: #8398aa; font-size: 11px; line-height: 1.8; margin: 0; }
.road-file-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; margin-top: 15px; }
.road-file-row > div { min-width: 0; }
.road-file-row strong { display: block; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.road-file-row span { display: block; font-size: 10px; color: #8798a8; margin-top: 5px; }
.road-text-button { padding: 5px 0; border: 0; background: transparent; color: #2875b0; font-size: 11px; white-space: nowrap; }
.road-field { display: block; margin: 25px 0 22px; }
.road-field > span { font-size: 12px; font-weight: 500; display: flex; justify-content: space-between; margin-bottom: 10px; }
.road-field small { font-size: 10px; font-weight: 400; color: #9aa9b7; }
.road-field input { display: block; width: 100%; min-width: 0; height: 44px; padding: 0 13px; color: #29445c; font-size: 12px; background: #fbfdff; border: 1px solid #dce8f1; border-radius: 11px; }
.road-field input::placeholder { color: #9aaebe; }
.road-field input:focus { outline: 2px solid #92c6f05c; outline-offset: 1px; border-color: #78b8e9; }
.road-submit { width: 100%; min-height: 45px; font-size: 12px; }
.road-submit svg { width: 17px; height: 17px; }
.road-page button:disabled { cursor: default; opacity: .46; transform: none; }
.road-message { margin: 12px 0 0; min-height: 15px; color: #678195; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.road-message.is-error { color: #af4c3d; }
.road-scope { border-top: 1px solid #edf2f7; padding-top: 20px; margin-top: 22px; }
.road-scope > span { color: #8096a8; font-size: 10px; }
.road-scope > p { margin: 9px 0 0; color: #70869a; font-size: 11px; line-height: 2; }
.road-empty { min-height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px 36px 50px; text-align: center; }
.road-empty > svg { width: 230px; height: auto; flex-shrink: 0; max-width: 100%; margin-bottom: 15px; }
.road-empty h3 { font-size: 20px; font-weight: 550; letter-spacing: -.7px; margin: 0 0 13px; }
.road-empty p { max-width: 280px; color: #8395a5; font-size: 12px; line-height: 1.9; margin: 0; }
.road-output-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 25px; }
.road-output-types span { padding: 6px 10px; border-radius: 7px; background: #f5f9fc; color: #8196a8; font-size: 10px; }
.road-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px; padding: 40px 20px 0; }
.road-how > div { position: relative; padding-left: 35px; }
.road-how > div > span { position: absolute; left: 0; top: 3px; font-size: 10px; color: #99aec0; }
.road-how h3 { margin: 0 0 8px; font-size: 12px; font-weight: 550; }
.road-how p { margin: 0; color: #8a9bac; font-size: 11px; line-height: 1.8; }
.road-progress, .road-failure { min-height: 480px; padding: 65px 42px; text-align: center; display: flex; align-items: center; flex-direction: column; justify-content: center; }
.road-progress-orbit { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #edf7ff; color: #329ddf; margin-bottom: 30px; box-shadow: 0 0 0 12px #f7fbff; }
.road-progress-orbit svg { width: 26px; height: 26px; }
.road-progress h3, .road-failure h3 { margin: 0 0 10px; font-size: 18px; font-weight: 550; line-height: 1.6; }
.road-progress p, .road-failure p { color: #879aaa; font-size: 12px; line-height: 1.8; margin: 0; max-width: 340px; overflow-wrap: anywhere; }
.road-progress-track { width: min(100%, 320px); background: #edf4fa; height: 5px; border-radius: 5px; overflow: hidden; margin-top: 35px; }
.road-progress-track > span { height: 100%; display: block; background: #329ddf; border-radius: 5px; transition: width .3s; }
.road-progress-value { display: block; font-size: 11px; color: #6595b7; margin-top: 12px; font-variant-numeric: tabular-nums; }
.road-progress-steps { display: flex; align-items: center; width: min(100%, 350px); margin-top: 35px; gap: 11px; color: #a5b6c5; font-size: 10px; }
.road-progress-steps span { white-space: nowrap; }
.road-progress-steps i { display: block; flex: 1; height: 1px; background: #e2edf6; }
.road-progress-steps .current { color: #2a92d7; }
.road-progress-steps .done { color: #6e99ad; }
.road-failure-icon { display: grid; place-items: center; width: 55px; height: 55px; background: #f7f9fc; border-radius: 16px; color: #92a7b8; margin-bottom: 24px; }
.road-failure-icon svg { width: 24px; height: 24px; }
.road-failure .btn { margin-top: 24px; }
.road-failure p.road-failure-hint { margin-top: 18px; font-size: 11px; }
.road-report { padding: 26px 28px 20px; }
.road-report-heading { display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; align-items: flex-end; }
.road-report-heading > div:first-child { min-width: 0; }
.road-report-kicker { font-size: 10px; color: #6fa0be; }
.road-report-heading h3 { font-size: 21px; line-height: 1.45; font-weight: 550; letter-spacing: -.6px; margin: 7px 0 10px; overflow-wrap: anywhere; }
.road-report-heading p { color: #8a9aab; font-size: 10px; margin: 0; overflow-wrap: anywhere; }
.road-report-heading p span { margin: 0 9px; }
.road-downloads { display: flex; gap: 8px; flex-wrap: wrap; }
.road-downloads .btn { padding: 9px 14px; font-size: 10px; min-height: 34px; gap: 7px; }
.road-downloads svg { width: 13px; height: 13px; }
.road-retention { margin: 12px 0 0; font-size: 10px; color: #91a2b0; }
.road-report-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 23px 0; margin: 22px 0 0; border-top: 1px solid #edf2f7; border-bottom: 1px solid #edf2f7; }
.road-report-stats > div { display: flex; gap: 9px; align-items: baseline; }
.road-report-stats strong { font-size: 27px; font-weight: 500; letter-spacing: -.7px; }
.road-report-stats span { font-size: 10px; color: #8b9baa; }
.road-summary { padding: 24px 0 26px; }
.road-summary h4, .road-findings-heading h4 { margin: 0; font-size: 13px; font-weight: 550; }
.road-summary > p { margin: 12px 0 0; font-size: 12px; line-height: 1.95; color: #6f8598; white-space: pre-wrap; }
.road-condition { display: inline-block; padding: 4px 8px; border-radius: 6px; background: #f1f7fc; color: #7095b1; font-size: 10px; margin-bottom: 13px; }
.road-checks { margin-bottom: 27px; }
.road-checks > h4 { margin: 0 0 13px; font-size: 13px; font-weight: 550; }
.road-check { padding: 14px 0; border-bottom: 1px solid #edf2f7; }
.road-check > div { display: flex; gap: 15px; justify-content: space-between; align-items: center; }
.road-check strong { font-size: 11px; font-weight: 500; }
.road-check-status { font-size: 9px; color: #91a3b0; white-space: nowrap; }
.road-check-status.normal { color: #5c9b84; }
.road-check-status.attention { color: #b18152; }
.road-check p { font-size: 11px; color: #7a8f9f; line-height: 1.9; margin: 8px 0 0; }
.road-findings-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 13px; }
.road-findings-heading > span { font-size: 10px; color: #9badbb; }
.road-finding { border: 1px solid #e5edf4; border-radius: 14px; padding: 17px; margin-bottom: 13px; }
.road-finding-top { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.road-finding-index { font-size: 10px; color: #9bafbe; font-variant-numeric: tabular-nums; }
.road-severity { font-size: 9px; padding: 3px 7px; border-radius: 5px; }
.road-severity.high { color: #b66a4c; background: #fdf2eb; }
.road-severity.medium { color: #a2844c; background: #fbf7eb; }
.road-severity.low { color: #5f8aab; background: #eff6fc; }
.road-page .road-time { margin-left: auto; border: 0; background: transparent; font-size: 10px; color: #4e8fb9; padding: 3px 0; font-variant-numeric: tabular-nums; }
.road-page .road-time:disabled { opacity: 1; color: #8ca0b1; }
.road-finding-content { display: grid; gap: 16px; }
.road-evidence { overflow: hidden; border-radius: 9px; background: #f3f7fa; min-height: 140px; display: grid; place-items: center; }
.road-evidence > img { display: block; width: 100%; max-height: 260px; object-fit: contain; background: #f3f7fa; }
.road-evidence > span { color: #8ba1b2; font-size: 11px; padding: 40px 20px; }
.road-category { display: block; font-size: 9px; color: #8e9fae; margin-bottom: 6px; }
.road-finding h5 { font-size: 13px; font-weight: 550; margin: 0 0 8px; line-height: 1.6; }
.road-finding p { margin: 0; font-size: 11px; color: #72879a; line-height: 1.9; }
.road-recommendation { margin-top: 15px; padding: 12px 14px; border-radius: 8px; background: #f7fafc; }
.road-recommendation > strong { display: block; font-weight: 500; font-size: 10px; color: #67879f; margin-bottom: 6px; }
.road-no-findings { padding: 25px; background: #f6fafc; border-radius: 12px; font-size: 12px; color: #6c899d; }
.road-report-foot { border-top: 1px solid #edf2f7; margin-top: 23px; padding-top: 16px; display: flex; gap: 15px; justify-content: space-between; flex-wrap: wrap; font-size: 9px; color: #9aabba; overflow-wrap: anywhere; }
@media (max-width: 1050px) {
  .road-page { padding-left: 28px; padding-right: 28px; }
  .road-workbench { grid-template-columns: minmax(280px, .9fr) minmax(0, 1.15fr); gap: 18px; }
  .road-upload-panel { padding: 22px; }
  .road-output-panel > .road-section-title { padding: 24px 23px 20px; }
  .road-report { padding: 22px; }
  .road-report-stats > div { display: block; }
  .road-report-stats span { display: block; margin-top: 4px; }
  .road-how { gap: 25px; padding-left: 7px; padding-right: 7px; }
}
@media (max-width: 760px) {
  .road-page { padding-left: 22px; padding-right: 22px; padding-bottom: 50px; }
  .road-intro { padding: 40px 0 28px; }
  .road-intro h1 { font-size: 31px; line-height: 1.3; letter-spacing: -1.3px; }
  .road-intro > p { font-size: 12px; max-width: 340px; }
  .road-workbench { grid-template-columns: 1fr; gap: 20px; }
  .road-upload-panel, .road-output-panel { border-radius: 20px; }
  .road-output-panel { min-height: 0; }
  .road-output-panel > .road-section-title { padding: 22px; }
  .road-section-title { margin-bottom: 21px; }
  .road-empty { min-height: 380px; padding: 22px 24px 35px; }
  .road-empty > svg { width: 180px; }
  .road-empty h3 { font-size: 18px; }
  .road-empty p { font-size: 11px; }
  .road-progress, .road-failure { min-height: 380px; padding: 45px 26px; }
  .road-progress h3, .road-failure h3 { font-size: 16px; }
  .road-progress-steps { gap: 8px; font-size: 9px; }
  .road-how { grid-template-columns: 1fr; gap: 23px; padding: 29px 6px 0; }
  .road-how > div { padding-left: 33px; }
  .road-how h3 { margin-bottom: 5px; }
  .road-report { padding: 22px 20px 18px; }
  .road-report-heading h3 { font-size: 20px; }
  .road-report-stats { padding: 20px 0; }
  .road-report-stats strong { font-size: 25px; }
  .road-report-stats span { font-size: 9px; }
  .road-finding { padding: 14px; }
  .road-finding-top { gap: 7px; }
  .road-page .road-time { font-size: 9px; }
  .road-summary > p { font-size: 11px; }
  .road-field input { font-size: 16px; }
}

/* Evidence viewer: image and boxes share one image-sized coordinate system. */
.road-page.has-report { max-width: 1480px; }
.has-report .road-workbench { grid-template-columns: minmax(260px, .55fr) minmax(0, 1.45fr); }
.road-visual { margin: 0 0 28px; border: 1px solid #dce9f3; border-radius: 15px; overflow: hidden; }
.road-visual-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; }
.road-visual-head h4 { font-size:13px; margin:0; font-weight:550; }
.road-visual-head select { max-width:160px; border:1px solid #dfebf3; border-radius:7px; padding:6px; color:#57758b; background:#fff; font-size:11px; }
.road-visual-stage { position:relative; overflow:auto; min-height:180px; max-height:440px; background:#142c43; }
.road-visual-picture { position:relative; width:100%; line-height:0; }
.road-visual-picture > img { display:block; width:100%; height:auto; max-width:none; }
.road-visual-box { position:absolute; border:2px solid var(--box-color); background:color-mix(in srgb, var(--box-color) 8%, transparent); pointer-events:none; }
.road-visual-box[hidden], .road-visual-loading[hidden] { display:none; }
.road-visual-box span { position:absolute; top:0; left:0; line-height:1; padding:3px 5px; color:#102638; background:var(--box-color); font-size:10px; font-weight:650; }
.road-visual-loading { position:absolute; inset:0; display:grid; place-items:center; color:#bbd3e5; font-size:12px; }
.road-visual-loading button { border:1px solid #7794aa; background:#213e54; color:white; padding:9px 15px; border-radius:8px; }
.road-visual-tools { display:flex; flex-wrap:wrap; gap:6px; padding:10px 12px; background:#f7fafc; }
.road-visual-tools button { font-size:11px; color:#57758b; background:white; border:1px solid #dde9f2; border-radius:6px; padding:5px 9px; min-height:29px; }
.road-visual-tools button[aria-pressed=true] { color:#1779b8; border-color:#80c5ec; background:#eef8ff; }
.road-visual-tools [data-export] { margin-left:auto; }
.road-visual-timeline { position:relative; height:28px; margin:10px 20px 0; }
.road-visual-timeline:before { content:''; position:absolute; left:0; right:0; top:14px; height:3px; background:#e0edf6; border-radius:3px; }
.road-visual-timeline button { position:absolute; width:16px; height:16px; border-radius:50%; top:7px; transform:translateX(-50%); border:3px solid white; background:var(--mark-color); box-shadow:0 0 0 1px #c6dae8; }
.road-visual-timeline button[aria-pressed=true] { box-shadow:0 0 0 3px #8bccef; z-index:1; }
.road-visual-time-labels { display:flex; justify-content:space-between; padding:0 15px; font-size:9px; color:#91a6b6; }
.road-visual-list { display:flex; gap:7px; overflow-x:auto; padding:15px 13px; }
.road-visual-list button { flex:0 0 172px; display:grid; gap:6px; text-align:left; border:1px solid #e0eaf2; background:#fff; border-radius:9px; padding:10px 12px; color:#6e879a; }
.road-visual-list button[aria-pressed=true] { border-color:#74bdec; background:#f1f9ff; }
.road-visual-list strong { color:#294c66; font-size:11px; font-weight:500; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.road-visual-list span, .road-visual-list small { font-size:9px; }
.road-visual-caption { padding:0 16px 17px; display:flex; gap:15px; align-items:flex-start; }
.road-visual-caption > div { min-width:0; }
.road-visual-caption span { font-size:9px; color:#7b96aa; }
.road-visual-caption h5 { font-size:13px; font-weight:550; margin:7px 0; }
.road-visual-caption p { font-size:11px; color:#708a9e; line-height:1.8; margin:0; }
.road-visual-caption button { margin-left:auto; flex-shrink:0; background:#f1f7fb; border:0; color:#4786b0; font-size:10px; padding:6px 8px; border-radius:6px; }
.road-segments { margin-bottom:24px; border-bottom:1px solid #edf2f7; padding-bottom:15px; }
.road-segments summary { font-size:12px; font-weight:500; cursor:pointer; }
.road-segments article { display:flex; gap:18px; margin-top:17px; font-size:11px; line-height:1.8; }
.road-segments article > span { flex:0 0 82px; color:#75a1bd; font-size:10px; }
.road-segments strong { font-weight:500; }
.road-segments p { margin:5px 0 0; color:#7b91a3; }
.road-open-evidence { margin-top:16px; }
@media (max-width:900px) { .has-report .road-workbench { grid-template-columns:1fr; } .has-report .road-upload-panel { max-width:none; } }
@media (max-width:440px) { .road-visual-caption { flex-direction:column; gap:8px; } .road-visual-caption button { margin-left:0; } .road-visual-head { padding:12px 10px; } .road-visual-head select { max-width:120px; } .road-visual-stage { min-height:140px; } }
.road-visual .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.road-visual-caption, .road-segments article { overflow-wrap:anywhere; }
.road-visual-head h4 { flex-shrink:0; }
.road-empty [data-road-example] { margin-top:22px; padding:10px; font-size:12px; }
