:root {
  --orange: #ff3b00;
  --ink: #111111;
  --muted: #666666;
  --line: #e7e7e7;
  --bg: #f6f6f6;
  --red: #e6393f;
  --yellow: #f4a300;
  --green: #21bf62;
  --soft-orange: #fff3ee;
  --soft-green: #eefbf4;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  letter-spacing: 0;
}

html.modalLocked,
body.modalLocked {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.siteHeader,
.appShell {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.siteHeader {
  height: 70px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 116px;
  display: block;
}

.headerActions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.myOrders {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
}

.hamburger {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-content: center;
  gap: 4px;
}

.hamburger span {
  width: 19px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
  display: block;
}

.menuPanel {
  position: absolute;
  top: 62px;
  right: 14px;
  width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px #0000001c;
  padding: 8px;
}

[dir="rtl"] .menuPanel {
  right: auto;
  left: 14px;
}

.menuPanel button,
.menuPanel a {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  padding: 0 12px;
  text-decoration: none;
  font-weight: 800;
  text-align: start;
}

.menuPanel button:hover,
.menuPanel a:hover {
  background: #f4f4f4;
}

.hero {
  margin: 14px 16px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: 0 10px 34px #0000000b;
}

.hero h1 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.heroIcon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
  background:
    radial-gradient(circle, #d8d8d8 0 12%, #fff 13% 27%, #111 28% 51%, transparent 52%),
    #fff;
}

.heroIcon::before {
  content: "";
  position: absolute;
  right: -11px;
  top: 4px;
  width: 24px;
  height: 22px;
  border: 4px solid var(--orange);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  transform: rotate(-22deg);
}

.heroIcon::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 25px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px #fff;
}

.hero span {
  color: var(--orange);
}

.panel,
.result {
  margin: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 10px 34px #0000000b;
}

.sectionHead {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sectionHead > b {
  min-width: 40px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-weight: 950;
}

.sectionHead h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.sectionHead p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.photoGuide {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid #ffd2c4;
  background: #fff7f3;
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 14px;
}

.photoGuide b {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.photoGuide p {
  margin: 0;
  color: #3d3d3d;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
}

.photoGuide p:empty {
  display: none;
}

.treadDemo {
  min-height: 108px;
  border-radius: 15px;
  background:
    linear-gradient(90deg, #00000099, #00000026),
    url("assets/upload-tread.png") center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.treadDemo span {
  display: none;
}

.treadDemo.small {
  min-height: 66px;
}

.treadDemo.small span {
  display: none;
}

.tireCard {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fff;
}

.tireCard.photoEntry {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 0;
}

.tireTop {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.tireTitle {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.tireMiniPhoto {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--preview) center/cover no-repeat;
  border: 2px solid #ececec;
  flex: 0 0 auto;
}

.tireTop h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

.tireTop p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.tireActions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.smallButton,
.iconButton {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 900;
}

.iconButton {
  width: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  font-size: 22px;
  line-height: 1;
}

.collapsedSummary {
  width: 100%;
  min-height: 44px;
  border: 1px dashed #ffc7b7;
  border-radius: 15px;
  color: var(--orange);
  background: #fff8f5;
  font-weight: 900;
}

.photoButton {
  width: 100%;
  min-height: 220px;
  border: 2px dashed #d9d9d9;
  border-radius: 20px;
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffffd8 42%, #ffffff55 100%),
    var(--preview, url("assets/upload-tread.png")) center/cover no-repeat;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
  text-align: start;
  overflow: hidden;
}

.photoButton.hasPhoto {
  border-color: #f2a58e;
  background:
    linear-gradient(90deg, #fffffff0 0%, #ffffffbc 42%, #ffffff24 100%),
    var(--preview) center/cover no-repeat;
}

.photoButton.needsRetake {
  border-color: var(--red);
  background:
    linear-gradient(90deg, #fffffff4 0%, #ffffffcc 42%, #ffffff55 100%),
    var(--preview) center/cover no-repeat;
}

.cameraIcon {
  width: 76px;
  height: 76px;
  border: 3px solid var(--orange);
  border-radius: 22px;
  background: #fff;
  display: block;
  position: relative;
}

.cameraIcon::before {
  content: "";
  width: 38px;
  height: 26px;
  border: 7px solid var(--orange);
  border-radius: 7px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -44%);
}

.cameraIcon::after {
  content: "";
  width: 17px;
  height: 17px;
  border: 6px solid var(--orange);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -43%);
  background: #fff;
}

.photoText {
  display: grid;
  gap: 6px;
  max-width: 430px;
}

.photoText b {
  font-size: 28px;
  line-height: .98;
}

.photoText small {
  color: var(--orange);
  font-size: 15px;
  line-height: 1.22;
  font-weight: 900;
}

.photoText em {
  width: max-content;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff7f4;
  border: 1px solid #ffd5c8;
  color: var(--orange);
  font-style: normal;
  font-weight: 950;
  font-size: 14px;
}

.photoStatus {
  width: max-content;
  min-height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 950;
}

.photoStatus.pass {
  color: #0f7d3c;
  background: #e9f8ef;
}

.photoStatus.fail {
  color: #fff;
  background: var(--red);
}

.photoReason {
  color: #b82128;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.questionPhoto {
  width: 100%;
  min-height: 92px;
  border: 1px solid #dcdcdc;
  border-radius: 17px;
  background:
    linear-gradient(90deg, #0000006b, #00000012),
    var(--preview) center/cover no-repeat;
  color: #fff;
  text-align: start;
  padding: 14px;
  font-weight: 950;
}

.questionPhoto span {
  display: inline-flex;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #21bf62;
  align-items: center;
}

.questionGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.question {
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: 16px;
  padding: 12px;
}

.question p {
  margin: 0 0 10px;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.25;
}

.answerRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.answerRow button {
  min-height: 44px;
  border: 1px solid #dcdcdc;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
}

.answerRow button.selected {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.addTire {
  display: none;
  width: 100%;
  min-height: 80px;
  border: 2px solid #ffd0c2;
  border-radius: 22px;
  background: #fff8f5;
  color: var(--orange);
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-align: start;
}

.addTire b {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.addTire small {
  color: var(--ink);
  display: block;
  margin-top: 6px;
  font-weight: 800;
}

.tireIcon {
  width: 56px;
  height: 56px;
  border: 8px solid #111;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 14%, #ddd 15% 28%, #fff 29%);
  position: relative;
}

.tireIcon::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  position: absolute;
  right: -10px;
  bottom: -7px;
  font-size: 24px;
  font-weight: 950;
}

.primaryAction {
  width: calc(100% - 32px);
  max-width: 888px;
  min-height: 58px;
  margin: 12px 16px;
  border: 0;
  border-radius: 18px;
  background: var(--orange);
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 16px 28px #ff3b0022;
}

.buttonWheel {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle, #d9d9d9 0 13%, #fff 14% 31%, #111 32% 52%, transparent 53%),
    #fff;
  box-shadow: 0 0 0 1px #111;
}

.buttonWheel::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px #fff;
}

.buttonWheel.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.result[hidden],
[hidden] {
  display: none !important;
}

.resultTabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 8px;
  scrollbar-width: thin;
}

.resultTabs button {
  flex: 0 0 auto;
  min-width: 112px;
  border: 2px solid transparent;
  border-radius: 16px;
  color: #fff;
  padding: 10px 12px;
  text-align: start;
  box-shadow: 0 8px 18px #0000000f;
}

.resultTabs button span,
.resultTabs button b {
  display: block;
}

.resultTabs button span {
  font-size: 15px;
  font-weight: 900;
}

.resultTabs button b {
  font-size: 18px;
  margin-top: 2px;
}

.resultTabs button.red { background: var(--red); }
.resultTabs button.yellow { background: var(--yellow); color: #111; }
.resultTabs button.green { background: var(--green); }
.resultTabs button.active { border-color: #111; }

.reportCard,
.issueCard {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: #fff;
}

.reportTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.reportEyebrow {
  margin: 0 0 3px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.reportTop h2 {
  margin: 0;
  font-size: 36px;
  line-height: .95;
}

.riskBadge {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 950;
}

.red .riskBadge { background: var(--red); color: #fff; }
.yellow .riskBadge { background: var(--yellow); color: #111; }
.green .riskBadge { background: var(--green); color: #fff; }

.scoreWrap {
  margin: 18px 0;
}

.scoreLabels,
.scoreNumbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  text-align: center;
  font-weight: 950;
}

.scoreLabels span:first-child { color: var(--red); }
.scoreLabels span:nth-child(2) { color: #a87800; }
.scoreLabels span:last-child { color: var(--green); }

.scoreBar {
  height: 22px;
  margin: 7px 0 6px;
  border-radius: 999px;
  position: relative;
  background: linear-gradient(90deg, var(--red) 0 40%, var(--yellow) 40% 70%, var(--green) 70% 100%);
}

.scoreBar i {
  width: 5px;
  height: 40px;
  background: #111;
  border-radius: 999px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.scoreNumbers {
  grid-template-columns: repeat(11, 1fr);
  color: var(--muted);
  font-size: 13px;
}

.reportSection {
  margin-top: 16px;
}

.reportSection h3 {
  margin: 0 0 10px;
  min-height: 48px;
  border-radius: 15px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  line-height: 1;
}

.reportSection h3 span {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.problem h3 {
  background: #fff1ee;
}

.problem h3 span {
  background: var(--orange);
}

.recommendation h3 {
  background: var(--soft-green);
}

.recommendation h3 span {
  background: var(--green);
  font-size: 14px;
}

.finding,
.recommendation p,
.issueCard p,
.issueCard li {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px;
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}

.finding {
  position: relative;
  padding-inline-start: 32px;
}

.finding::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  position: absolute;
  top: 22px;
  inset-inline-start: 14px;
}

.finding b {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.finding p,
.recommendation p {
  color: #222;
}

.recommendation p {
  background: #fbfffc;
  border-color: #cef1dc;
}

.bookingBox {
  text-align: center;
  padding-top: 14px;
}

.bookingBox p {
  margin: 0 auto 10px;
  max-width: 620px;
  font-size: 19px;
  line-height: 1.24;
  font-weight: 900;
}

.bookingBox p b {
  color: var(--orange);
}

.bookingBox .primaryAction {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.shareButton {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #111;
  font-weight: 950;
}

.sheetBackdrop {
  position: fixed;
  inset: 0;
  background: #00000088;
  z-index: 50;
  display: grid;
  place-items: end center;
  padding: 18px;
}

.sheet {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 20px 70px #0000003a;
}

.sheet h3 {
  margin: 0 0 12px;
  font-size: 26px;
}

.sheetHint {
  margin: -4px 0 10px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.3;
}

.sheetGuide {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  border: 1px solid #ffd2c4;
  border-radius: 16px;
  background: #fff8f5;
  padding: 8px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
}

.sheet button {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  text-align: start;
  padding: 10px 14px;
  margin-top: 10px;
}

.sheet button:first-of-type {
  border-color: var(--orange);
  background: var(--soft-orange);
}

.sheet b {
  display: block;
  font-size: 20px;
}

.sheet small {
  color: var(--muted);
  display: block;
  margin-top: 2px;
  font-weight: 800;
}

.sheetCancel {
  display: block !important;
  grid-template-columns: 1fr !important;
  min-height: 52px !important;
  background: #f4f4f4 !important;
  text-align: center !important;
  font-weight: 950;
}

.cameraGlyph,
.albumGlyph {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--orange);
  display: block;
  position: relative;
}

.cameraGlyph::before,
.albumGlyph::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 4px solid #fff;
  border-radius: 5px;
}

.cameraGlyph::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 4px solid #fff;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%);
}

.albumGlyph::after {
  content: "";
  width: 18px;
  height: 13px;
  border-left: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: rotate(-45deg);
  position: absolute;
  left: 14px;
  top: 17px;
}

.cameraModal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #111;
  color: #fff;
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: max(14px, env(safe-area-inset-top)) 18px max(14px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 14px;
}

.cameraTop {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
}

#cameraClose {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #111;
  font-size: 34px;
  font-weight: 950;
}

.cameraTop h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  white-space: nowrap;
}

.cameraTop p {
  margin: 3px 0 0;
  color: #ddd;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.15;
}

.flashToggle {
  min-height: 42px;
  border: 1px solid #444;
  border-radius: 999px;
  background: #222;
  color: #fff;
  padding: 0 12px;
  font-weight: 900;
}

.flashToggle.active {
  background: #fff;
  color: #111;
}

.videoWrap {
  position: relative;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
}

#cameraVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.albumPickArea {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    linear-gradient(90deg, #000000a6, #00000045),
    url("assets/upload-tread.png") center/cover no-repeat;
  color: #fff;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: center;
  padding: 28px;
  text-align: start;
}

.albumPickArea[hidden] {
  display: none !important;
}

.albumPickArea b {
  display: block;
  font-size: 28px;
  line-height: 1.05;
}

.albumPickArea small {
  display: block;
  margin-top: 8px;
  color: #f1f1f1;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}

.cameraModal.albumMode #cameraVideo,
.cameraModal.albumMode .guideFrame,
.cameraModal.albumMode .flashToggle {
  display: none !important;
}

.cameraModal.albumMode .videoWrap {
  background:
    linear-gradient(90deg, #000000a6, #00000045),
    url("assets/upload-tread.png") center/cover no-repeat;
}

.guideFrame {
  position: absolute;
  inset: 10%;
  border: 3px dashed rgba(255, 255, 255, .88);
  border-radius: 26px;
  background: none;
  transform: none;
  pointer-events: none;
}

.cameraBottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.cameraModal.albumMode .cameraBottom {
  grid-template-columns: 1fr;
}

.cameraModal.albumMode .captureButton {
  display: none;
}

.cameraProgress {
  display: grid;
  gap: 8px;
}

.cameraProgress p {
  margin: 0;
  color: #eee;
  font-weight: 900;
  font-size: 17px;
  line-height: 1.2;
}

.cameraProgress.needsRetake p {
  color: #ff5a4a;
}

.cameraThumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 2px 2px;
}

.cameraThumb {
  flex: 0 0 100px;
  min-height: 84px;
  position: relative;
}

.cameraThumbMain,
.cameraThumb.empty {
  width: 100%;
  min-height: 84px;
  border: 2px solid #3a3a3a;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #00000012, #00000099),
    var(--preview) center/cover no-repeat;
  color: #fff;
  display: grid;
  align-content: end;
  justify-items: start;
  padding: 10px;
  text-align: start;
}

.cameraThumb.active .cameraThumbMain,
.cameraThumb.empty.active {
  border-color: var(--orange);
}

.cameraThumb.needsRetake .cameraThumbMain {
  border-color: var(--red);
  box-shadow: 0 0 0 3px #ef3b4030 inset;
}

.cameraThumb.empty {
  flex: 0 0 100px;
  background: #1f1f1f;
  color: #ddd;
  border-style: dashed;
}

.cameraThumb b,
.cameraThumb.empty b {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-weight: 950;
  font-size: 18px;
}

.cameraThumb.needsRetake b {
  background: var(--red);
}

.cameraThumb span,
.cameraThumb.empty span {
  display: block;
  margin-top: 7px;
  font-size: 15px;
  line-height: 1.05;
  font-weight: 900;
}

.cameraThumbDelete {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  font-size: 19px;
  line-height: 1;
  font-weight: 950;
}

.cameraThumb.needsRetake .cameraThumbDelete {
  background: var(--red);
  border-color: #fff;
  color: #fff;
}

.captureButton,
.cameraDone {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  font-size: 20px;
  font-weight: 950;
}

.cameraDone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.captureButton {
  background: var(--orange);
  color: #fff;
}

.cameraDone {
  background: #fff;
  color: #111;
  padding: 0 18px;
}

.cameraDone:disabled {
  opacity: .7;
}

.cameraDone .buttonWheel {
  width: 27px;
  height: 27px;
  border-width: 6px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  max-width: min(480px, calc(100% - 40px));
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 900;
  text-align: center;
  z-index: 100;
  box-shadow: 0 10px 28px #0000002f;
}

.hiddenFileInput {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
  overflow: hidden;
}

@media (max-width: 620px) {
  .siteHeader {
    height: 66px;
  }

  .brand img {
    width: 108px;
  }

  .myOrders {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  .hamburger {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding: 15px 16px;
  }

  .hero h1 {
    font-size: 19px;
    white-space: nowrap;
  }

  .panel,
  .result {
    border-radius: 22px;
    padding: 14px;
  }

  .sectionHead h2 {
    font-size: 22px;
  }

  .photoGuide {
    grid-template-columns: 158px 1fr;
    gap: 12px;
  }

  .treadDemo {
    min-height: 96px;
  }

  .photoButton {
    min-height: 210px;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    padding: 22px;
  }

  .cameraIcon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .photoText b {
    font-size: 25px;
  }

  .photoText small {
    font-size: 15px;
  }

  .questionGrid {
    grid-template-columns: 1fr;
  }

  .reportTop h2 {
    font-size: 34px;
  }

  .riskBadge {
    min-height: 40px;
    font-size: 14px;
    padding: 0 12px;
  }

  .reportSection h3 {
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .brand img {
    width: 100px;
  }

  .myOrders {
    padding: 0 10px;
    font-size: 12px;
  }

  .photoButton {
    min-height: 196px;
    grid-template-columns: 82px 1fr;
    padding: 18px;
  }

  .hero h1 {
    font-size: 18px;
    gap: 10px;
  }

  .heroIcon {
    width: 36px;
    height: 36px;
  }

  .photoText b {
    font-size: 22px;
  }

  .photoText small {
    font-size: 13px;
  }

  .reportTop {
    display: block;
  }

  .riskBadge {
    margin-top: 10px;
  }
}
