/* ====== Base / Reset ====== */
:root {
  --bg: #0d1117;
  --bg-2: #0f1522;
  --panel: #111a2e;
  --card: #0f1729;
  --ink: #e6eefc;
  --ink-2: #c9d6f3;
  --muted: #96a4c7;
  --stroke: rgba(255, 255, 255, 0.08);
  --pri: #6aa2ff;
  --pri-2: #40e3ff;
  --ok: #2cffc3;
  --err: #ff7e7e;
  --warn: #ffd266;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font: 15px/1.6 Inter, ui-sans-serif, system-ui, Segoe UI, Roboto, Arial;
  color: var(--ink);
  background: radial-gradient(
      900px 600px at 85% -10%,
      rgba(64, 227, 255, 0.14),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at -10% 20%,
      rgba(106, 162, 255, 0.16),
      transparent 60%
    ),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
}
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ====== Layout ====== */
.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 20px;
}
.panel {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      transparent 40%
    ),
    var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px 24px; /* was 20px 50px */
  margin: 16px 0;
  box-shadow: var(--shadow);
  max-width: 100%; /* never exceed viewport */
  box-sizing: border-box; /* include padding in width */
}

.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    180deg,
    rgba(13, 17, 23, 0.85),
    rgba(13, 17, 23, 0.55)
  );
  border-bottom: 1px solid var(--stroke);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--pri), var(--pri-2));
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #0b1020;
}
.title {
  font-weight: 800;
  letter-spacing: 0.2px;
}
nav a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink-2);
}
nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}
.hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  margin: 10px 0 6px;
}
.sub {
  color: white;
}

/* ====== Dropzone / Uploader ====== */
.drop {
  margin-top: 30px;
  display: grid;
  place-items: center;
  row-gap: 8px;
  border: 1px dashed var(--stroke);
  border-radius: var(--radius-sm);
  padding: 22px;
  background: rgba(255, 255, 255, 0.02);
}
.drop.drag {
  outline: 2px dashed var(--pri-2);
  outline-offset: 4px;
}
.drop-cta {
  display: flex;
  align-items: center;
  gap: 12px;

  text-align: center;
}
.drop-cta .icon {
  font-size: 26px;
}
.notes {
  color: var(--muted);
  font-size: 13px;
}

/* ====== Grid preview ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.item {
  position: relative;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.item .meta {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(10, 16, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 11px;
  color: var(--ink-2);
}

/* ====== Buttons / Actions ====== */
.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  border: 0;
  padding: 10px 22px;
  font-size: 15px;
  color: #fff;
  background: #24304f; /* base dark tone */
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.08s ease;
}

/* modern hover */
.btn:hover {
  background: linear-gradient(90deg, #5ac8fa, #4d9fff);
  box-shadow: 0 0 14px rgba(90, 200, 250, 0.4);
  transform: translateY(-2px);
}

/* pressed state */
.btn:active {
  transform: translateY(0);
  box-shadow: 0 0 6px rgba(90, 200, 250, 0.2);
}

.btn.primary {
  padding: 12px 20px;
  color: #0c1226;
  background: linear-gradient(135deg, var(--pri), var(--pri-2));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}
.btn.link {
  border: 0;
  background: none;
  color: var(--pri-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0 3px;
}

/* ====== Progress ====== */
.progress {
  position: relative;
  flex: 1;
  min-width: 260px;
  height: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  border-radius: 999px;
}
.bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(135deg, var(--pri), var(--pri-2));
  border-radius: 999px;
  transition: width 0.25s ease;
}
.progress + #ptext,
.progress span {
  margin-left: 6px;
  color: var(--ink-2);
  font-size: 13px;
}

/* ====== Results / Alerts ====== */
.result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* centers horizontally */
  padding: 16px 20px;
  width: fit-content;
  max-width: 90%;

  color: #e5e7eb;
}

.ok {
  color: var(--ok);
}
.err {
  color: var(--err);
}
.warn {
  color: var(--warn);
}

/* ====== FAQ / Footer ====== */
.faq h2 {
  margin: 6px 0 8px;
}
.faq ol {
  margin: 0 0 0 18px;
  color: var(--ink-2);
}
.foot {
  border-top: 1px solid var(--stroke);
  text-align: center;
  padding: 26px 0;
  color: var(--muted);
}

/* ====== Viewer tweaks ====== */
.viewer-status {
  color: var(--muted);
  margin: 8px 0;
}
.viewer-frame {
  width: min(1100px, 92%);
  height: 72vh;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #0a1124;
}

/* ====== Utilities ====== */
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}

/* ====== Mobile ====== */
@media (max-width: 640px) {
  .wrap {
    padding: 16px;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .progress {
    width: 100%;
    min-width: 0;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.progress {
  position: relative;
  overflow: visible; /* allow text below */
}

.progress #ptext {
  position: absolute;
  top: 100%; /* place just below */
  left: 0;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}

/* --- existing styles above --- */

/* ========== NAVBAR ========== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #0e0f12;
  border-bottom: 1px solid #1b1e24;
}
.site-nav .nav-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: #e5e7eb;
}
.site-nav .nav-brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7c5cff;
  display: inline-block;
}
.site-nav .nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
}
.site-nav .nav-link {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
}
.site-nav .nav-link:hover {
  background: #171a21;
  color: #ffffff;
}
.site-nav .nav-link.active {
  background: #222631;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px #2f3744;
}
.site-nav .nav-toggle {
  display: none;
  border: 1px solid #2a2f3a;
  background: #13161b;
  color: #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}

/* Mobile */
@media (max-width: 920px) {
  .site-nav {
    flex-wrap: wrap;
  }
  .site-nav .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .site-nav .nav-links {
    width: 100%;
    margin-top: 8px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav .nav-links.open {
    display: flex;
  }
  .site-nav .nav-link {
    padding: 10px 12px;
  }
}

/* --- existing styles above --- */

/* Floating Home button */
.fab-home {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #1b2440;
  color: #e5e7eb;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 0 0 1px #2a3350;
  font-weight: 700;
}
.fab-home:hover {
  background: #24304f;
}
.fab-home .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7c5cff;
}
@media (max-width: 520px) {
  .fab-home {
    padding: 9px 12px;
  }
}

/* === Mobile progress bar fix === */
/* === Mobile upload/result layout tweaks (no desktop impact) === */
@media (max-width: 640px) {
  .panel {
    padding: 12px;
  }

  /* Thumbnails grid: two-up, tight gaps */
  .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .grid .item img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Actions: full-width button + stacked progress */
  .actions {
    align-items: stretch;
    gap: 8px;
  }
  .actions .btn {
    width: 100%;
  }

  .progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: none;
    margin-top: 8px;
    margin-bottom: 35px;
    height: auto;
    overflow: visible;
    background: transparent;
    border: 0;
  }
  .progress .bar {
    height: 14px;
    border-radius: 12px;
  }

  #ptext {
    padding-top: 20px;
    font-size: 0.95rem;
    text-align: left;
    padding-left: 2px;
    margin: 0;
  }

  /* Result panel: centered, full width, buttons fill width */
  .result {
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    text-align: center;
  }
  .result .btn {
    width: 100%;
  }
}

/* ===== Kicker block readability / overflow control ===== */
.kicker {
  margin: 14px 0 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #7c5cff;
  border-radius: 10px;
  color: #cbd5e1;
  line-height: 1.55;
  font-size: 0.96rem;
  overflow-wrap: anywhere; /* prevent overflow */
  word-break: break-word;
  hyphens: auto;
}
.kicker p {
  margin: 0 0 8px;
}
.kicker p:last-child {
  margin-bottom: 0;
}
.kicker a {
  color: #9fd9ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== Upload page background image =====
   Place your file at: hla/static/ui/bg-upload.jpeg
*/
.page-upload {
  position: relative;
}
.page-upload::before {
  content: "";
  position: fixed; /* cover full viewport while scrolling */
  inset: 0;
  z-index: -1; /* sit behind all content */
  pointer-events: none;

  /* your image + dark overlay to keep text readable */
  background: linear-gradient(
      180deg,
      rgba(10, 14, 22, 0.66),
      rgba(10, 14, 22, 0.8)
    ),
    url("/static/ui/bg-upload.jpeg") center/cover no-repeat;
  filter: saturate(1) contrast(1.02);
}

/* optional: slightly darker panel on top of image */
.page-upload .panel {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      transparent 40%
    ),
    rgba(17, 26, 46, 0.88);
  backdrop-filter: blur(2px);
}

/* Force progress to stay invisible when [hidden] is present (mobile + desktop) */
.progress[hidden] {
  display: none !important;
}

/* Ensure status label never escapes the container on phones */
@media (max-width: 640px) {
  #ptext {
    position: static !important;
    margin-top: 6px;
    white-space: normal;
    text-align: left;
    padding-left: 2px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    text-align: center;
  }
}

/* ====== Mobile thumbnails: many small tiles per row ====== */
@media (max-width: 640px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(
      auto-fit,
      minmax(72px, 1fr)
    ); /* 3–5 per row */
    gap: 6px;
    margin-top: 10px;
  }
  .item {
    border-radius: 10px;
  }
  .item img {
    width: 100%;
    height: 84px; /* small thumb height */
    object-fit: cover;
    display: block;
  }
  .item .meta {
    left: 4px;
    bottom: 4px;
    font-size: 10px;
    padding: 2px 5px;
  }
}

/* AAA Center the result block on desktop and mobile */
.result {
  max-width: 760px;
  width: 100%;
  margin: 16px auto 0; /* centers the section */
  display: flex;
  flex-direction: column;
  align-items: center; /* centers inner content */
  text-align: center;
}

/* Explicit row for action buttons under the result */
.result .btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center horizontally */
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

/* Natural button widths; stack nicely on small screens */
.result .btn {
  min-width: 180px;
}
@media (max-width: 640px) {
  .result {
    max-width: 520px;
  }
  .result .btn {
    min-width: 160px;
  }
}

/* ===== Mobile thumbnails: show full image (no crop) ===== */
@media (max-width: 640px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 per row; adjust if needed */
    gap: 8px;
  }
  .grid .item {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    background: var(--card);
    display: grid;
    place-items: center;
    aspect-ratio: 9 / 19.5; /* tall phone ratio; keeps full image visible */
    overflow: hidden;
  }
  .grid .item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* no cropping */
    display: block;
  }
}

/* Background image lowest */
.page-upload::before {
  /* keep your existing image url(...) here */
  z-index: -4; /* image stays at the very back */
}

/* Dimmer overlay for readable text (above particles, below UI) */
.page-upload::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
      1200px 700px at 20% 0%,
      rgba(6, 10, 18, 0.55),
      transparent 65%
    ),
    radial-gradient(
      1200px 700px at 80% 15%,
      rgba(8, 12, 20, 0.5),
      transparent 65%
    ),
    linear-gradient(
      180deg,
      rgba(8, 12, 20, 0.55),
      rgba(8, 12, 20, 0.25) 40%,
      rgba(8, 12, 20, 0.55)
    );
}

/* Particles above image, below overlay */
.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: screen;
}

/* Optional subtle glow (kept under the dim overlay) */
.fx-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(
      900px 600px at 85% -10%,
      rgba(64, 227, 255, 0.12),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at -10% 20%,
      rgba(106, 162, 255, 0.14),
      transparent 60%
    );
}

/* Ensure hero/panels are crisp over the scrim */
.page-upload .hero,
.page-upload .panel {
  position: relative;
  z-index: 0;
}

.empty {
  max-width: 880px;
  margin: 12px auto;
  padding: 22px 24px;
  background: #0e1830;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-align: center;
}
.empty-title {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.empty-sub {
  color: var(--muted);
  margin: 0 0 12px;
}
.empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.inline {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inp {
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #0b1226;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}
.inp::placeholder {
  color: #6b7aa5;
  letter-spacing: 0;
}

/* Prevent sideways overflow globally */

/* ===== HLA: High-tech background (TPCZ-style, darker, phone-relevant) ===== */

/* Base photographic/abstract phones image (replace with your asset) */
.page-upload::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background: radial-gradient(
      1200px 700px at 20% 0%,
      rgba(6, 10, 18, 0.55),
      transparent 65%
    ),
    radial-gradient(
      1200px 700px at 80% 15%,
      rgba(8, 12, 20, 0.5),
      transparent 65%
    ),
    linear-gradient(
      180deg,
      rgba(8, 12, 20, 0.65),
      rgba(8, 12, 20, 0.35) 40%,
      rgba(8, 12, 20, 0.65)
    ),
    url("/static/ui/bg-upload.jpeg") center/cover no-repeat; /* <-- put your darker phones collage here */
  filter: saturate(1) contrast(1.03);
  pointer-events: none;
}

/* Lattice overlay (animated SVG grid with subtle glow) */
.fx-lattice {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'>\
    <defs>\
      <linearGradient id='g' x1='0' y1='0' x2='1' y2='1'>\
        <stop offset='0%' stop-color='%2340e3ff' stop-opacity='0.22'/>\
        <stop offset='100%' stop-color='%236aa2ff' stop-opacity='0.12'/>\
      </linearGradient>\
    </defs>\
    <rect width='200' height='200' fill='none'/>\
    <path d='M0 20 H200 M0 60 H200 M0 100 H200 M0 140 H200 M0 180 H200\
             M20 0 V200 M60 0 V200 M100 0 V200 M140 0 V200 M180 0 V200'\
          stroke='url(%23g)' stroke-width='1'/>\
  </svg>");
  background-size: 200px 200px;
  mix-blend-mode: screen;
  opacity: 0.65;
  animation: lattice-pan 26s linear infinite;
  mask-image: radial-gradient(
    1200px 700px at 50% 20%,
    #000 70%,
    transparent 100%
  );
}
@keyframes lattice-pan {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 800px 600px;
  }
}

/* Phone silhouettes layer (we draw onto a canvas from JS) */
.fx-phones {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.65;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 6px rgba(64, 227, 255, 0.25));
}

/* Upload CTA emphasis */
#drop.fx-tilt {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#drop.fx-tilt:hover,
#drop.fx-tilt:focus-within {
  transform: perspective(600px) rotateX(2deg);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
}

/* Mobile safety: keep everything performant */
@media (max-width: 640px) {
  .fx-lattice {
    opacity: 0.55;
  }
}

.viewer-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  margin-bottom: 10px;
}

/* Button tweaks for better spacing on this header bar */
.viewer-actions .btn {
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  background: #24304f;
  color: #e6eefc;
  transition: all 0.25s ease;
}
.viewer-actions .btn:hover {
  background: linear-gradient(90deg, #5ac8fa, #4d9fff);
  color: #fff;
}
.viewer-actions .btn.primary {
  background: linear-gradient(135deg, var(--pri), var(--pri-2));
  color: #0c1226;
}
.viewer-actions .btn.primary:hover {
  box-shadow: 0 0 14px rgba(90, 200, 250, 0.4);
}
@media (max-width: 640px) {
  .viewer-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-top: 6px;
  }
  .viewer-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* Gray-out "Create Private Report" when disabled */
#start:disabled {
  background: #1a2335 !important; /* dark gray */
  color: #7d8aa9 !important; /* muted text */
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.7;
  transform: none;
}

/* Gray-out "Open" button when disabled */
#openForm .btn:disabled {
  background: #1a2335 !important;
  color: #7d8aa9 !important;
  opacity: 0.7;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* Saved-codes list rows (only main row actions) */
@media (max-width: 640px) {
  .list {
    margin: 12px auto;
    padding: 0 4px;
  }

  .list .row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* Only the primary Open/Remove actions row */
  .list .row .row-actions {
    display: flex;
    gap: 8px;
  }

  .list .row .row-actions .btn {
    flex: 1 1 auto;
  }
}

/* Fix EMPTY card layout on mobile */
@media (max-width: 640px) {
  .empty {
    max-width: 100% !important; /* prevent card from being wider than screen */
    width: 100% !important; /* full width inside panel */
    padding: 16px !important; /* safe mobile padding */
    box-sizing: border-box !important;
    margin: 12px 0 !important; /* space above & below */
  }

  .empty-actions {
    flex-direction: column !important;
  }

  .empty-actions .btn,
  .inline .inp,
  .inline .btn {
    width: 100% !important; /* make input + open button full width */
  }
}

.drop:hover {
  /* background: linear-gradient(90deg, #5ac8fa, #4d9fff); */
  box-shadow: 0 0 14px rgba(90, 200, 250, 0.35);
  transform: translateY(-2px);
  color: #fff;
}

.result hr {
  opacity: 0.4;
}

@media (max-width: 640px) {
  /* Only this row stays in one line on mobile */
  .actions.actions-report {
    flex-direction: row; /* override column */
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  /* Make the button shorter only here */
  .actions.actions-report #start.btn {
    width: auto;
    min-width: 0;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  .actions.actions-report .icon {
    font-size: 22px; /* optional: slightly smaller on mobile */
  }
}
