/* BossFromMars Clearance — layered on top of the original stylesheet.
   Only adds the scanner console and hides the hiring-only widgets.
   Nothing here overrides the 3D, the HUD or the scene layout. */

/* Hiring UI stays in the DOM (the original script needs the ids) but is
   not shown. Deleting these throws before initGL() runs, which kills the 3D. */
.chat-fab,
#chatPanel,
#signinBtn,
#userChip,
#dash,
#authModal,
#postRoleForm,
.clearance-parked { display: none !important; }

/* --- scanner console --------------------------------------------- */
.scan-sr { position: absolute; left: -9999px; }

.scan-entry {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
  max-width: 620px;
}
.scan-entry input {
  flex: 1 1 300px;
  min-width: 0;
  background: rgba(10, 8, 14, .78);
  border: 1px solid rgba(232, 100, 60, .3);
  border-radius: 2px;
  color: var(--bone);
  padding: 15px 16px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 15px;
}
.scan-entry input::placeholder { color: #6d655f; }
.scan-entry input:focus {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-color: var(--amber);
}
.scan-entry .btn[disabled] { opacity: .45; cursor: not-allowed; }

.scan-hint {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  color: #6d655f;
  letter-spacing: .08em;
  margin: 12px 0 0;
}

.scan-log {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  color: var(--tele);
  margin-top: 22px;
  max-width: 620px;
}
.scan-log div { opacity: 0; animation: scanLineIn .3s ease forwards; }
.scan-log b { color: var(--amber); font-weight: 400; }
@keyframes scanLineIn { to { opacity: 1; } }

/* --- report ------------------------------------------------------- */
.scan-report { display: none; margin-top: 24px; max-width: 720px; }
.scan-report.on { display: block; }












.grp { margin-top: 24px; }
.grp h4 {
  font-family: "Space Mono", monospace;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone-dim); margin: 0 0 8px;
  padding-bottom: 6px; border-bottom: 1px solid rgba(237, 230, 221, .14);
}
.check {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid rgba(237, 230, 221, .06);
}
.check .badge {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; margin-top: 2px; color: #10070a;
}
.badge.pass { background: #4fb783; }
.badge.warn { background: #f2b705; }
.badge.fail { background: #e8563c; }
.badge.info { background: #41474f; color: var(--bone); }
.check .label { font-weight: 600; font-size: 15px; }
.check .detail { color: var(--bone-dim); font-size: 14px; }
.check .fix {
  margin-top: 6px;
  font-family: "Space Mono", monospace; font-size: 12px;
  color: var(--amber); background: rgba(242, 183, 5, .07);
  border-left: 2px solid var(--amber);
  padding: 8px 10px; word-break: break-word;
}

.issue {
  margin-top: 28px;
  background: rgba(20, 16, 22, .55);
  border: 1px solid rgba(232, 100, 60, .22);
  border-radius: 3px; padding: 24px; backdrop-filter: blur(10px);
}
.issue h3 { font-family: "Space Grotesk", sans-serif; font-size: 20px; margin: 0 0 8px; }
.issue p { color: var(--bone-dim); font-size: 14px; margin: 0 0 16px; }
.serial {
  font-family: "Space Mono", monospace; font-size: 20px;
  color: var(--amber); letter-spacing: .08em; margin: 4px 0 16px;
}
.issue-row { display: flex; gap: 10px; flex-wrap: wrap; }
.embed {
  margin-top: 18px; background: rgba(8, 6, 12, .78);
  border: 1px solid rgba(237, 230, 221, .14);
  padding: 12px; border-radius: 2px;
  font-family: "Space Mono", monospace; font-size: 11px;
  color: var(--tele); white-space: pre-wrap; word-break: break-all;
}
.scan-err {
  border-left: 2px solid #e8563c;
  background: rgba(232, 86, 60, .08);
  padding: 12px 14px; font-size: 14px; margin-top: 18px;
}

/* --- score bands (sector 05) -------------------------------------- */
.bands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 14px; margin: 24px 0;
}
.band {
  border: 1px solid rgba(237, 230, 221, .14);
  border-radius: 2px; padding: 14px 10px; text-align: center;
  background: rgba(8, 6, 12, .45);
}
.band b {
  display: block; font-family: "Space Grotesk", sans-serif;
  font-size: 26px; line-height: 1;
}
.band span {
  font-family: "Space Mono", monospace;
  font-size: 10px; color: var(--bone-dim); letter-spacing: .1em;
}

@media (max-width: 620px) {
  .scan-entry input { flex: 1 1 100%; }
}

/* --- hero fits the original type scale, and grows for the report --- */
.scene.hero { min-height: 100vh; height: auto; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); margin-bottom: 22px; }
@media (max-width: 900px) { .hero .wrap { max-width: 100%; } }

/* Once a report is on screen the hero gives back the space it was
   reserving for the planet — the report panels are opaque anyway. */
body.has-report .hero .wrap { padding-right: 26px; }
body.has-report .scan-report { max-width: 820px; }
body.has-report .mars-orbital-ui { opacity: .25; transition: opacity .6s ease; }

/* --- URL / File tabs ---------------------------------------------- */
.scan-tabs { display: flex; gap: 4px; margin: 30px 0 14px; }
.scan-tab {
  background: transparent; border: 1px solid rgba(237,230,221,.14);
  border-bottom: none; color: var(--bone-dim);
  font-family: "Space Mono", monospace; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 10px 18px; cursor: pointer; border-radius: 2px 2px 0 0;
}
.scan-tab:hover { color: var(--bone); }
.scan-tab.on {
  color: #12070a; background: var(--amber); border-color: var(--amber);
}
.scan-tab:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* --- drop zone ----------------------------------------------------- */
.drop {
  position: relative; max-width: 620px;
  border: 1px dashed rgba(232,100,60,.4); border-radius: 3px;
  background: rgba(10,8,14,.6); padding: 30px 22px;
  text-align: center; cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.drop:hover, .drop.hot { border-color: var(--amber); background: rgba(242,183,5,.06); }
.drop-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--bone-dim); }
.drop-inner svg { color: var(--rust); }
.drop-inner b { color: var(--bone); font-family: "Space Grotesk", sans-serif; font-size: 17px; }
.drop-inner span { font-size: 13px; }
.drop-inner u { color: var(--rust); text-decoration-color: rgba(232,100,60,.5); }
.drop.has-file .drop-inner { display: none; }
.drop-picked { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.drop-picked .fname {
  font-family: "Space Mono", monospace; font-size: 13px;
  color: var(--bone); word-break: break-all; max-width: 340px; text-align: left;
}
.drop-picked .fsize { font-family: "Space Mono", monospace; font-size: 11px; color: var(--bone-dim); }

/* --- file identity block in the report ----------------------------- */










/* ================================================================
   Verdict panel — score ring, meter, tally
   ================================================================ */
.verdict {
  display: flex; gap: 30px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(150deg, rgba(24,18,26,.72), rgba(14,10,18,.62));
  border: 1px solid rgba(232,100,60,.22);
  border-left: 3px solid var(--rust);
  border-radius: 4px; padding: 26px 28px; backdrop-filter: blur(12px);
}
.verdict.v-good { border-left-color: #4fb783; }
.verdict.v-fair { border-left-color: #f2b705; }
.verdict.v-poor { border-left-color: #e8863c; }
.verdict.v-bad  { border-left-color: #e8563c; }

.score { position: relative; width: 120px; height: 120px; flex: 0 0 auto; }
.score svg { transform: rotate(-90deg); display: block; }
.score .track { fill: none; stroke: rgba(237,230,221,.10); stroke-width: 8; }
.score .arc {
  fill: none; stroke-width: 8; stroke-linecap: round;
  transition: stroke-dashoffset 1.1s cubic-bezier(.2,.7,.2,1);
}
.score-val {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; line-height: 1;
}
.score-val .grade {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 34px; letter-spacing: -.02em; white-space: nowrap;
}
.score-val .outof {
  font-family: "Space Mono", monospace; font-size: 12px;
  color: var(--bone); white-space: nowrap;
}
.score-val .outof i { font-style: normal; color: var(--bone-dim); font-size: 10px; }

.verdict-body { flex: 1 1 280px; min-width: 0; }
.verdict-word {
  font-family: "Space Mono", monospace; font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 8px;
}
.verdict-body h3 {
  font-family: "Space Grotesk", sans-serif; font-size: 22px;
  margin: 0 0 8px; line-height: 1.2; word-break: break-word; color: var(--bone);
}
.verdict-body p { margin: 0; color: var(--bone-dim); font-size: 14px; max-width: 54ch; }

.meter {
  display: flex; gap: 3px; height: 6px; margin: 16px 0 10px;
  border-radius: 3px; overflow: hidden; background: rgba(237,230,221,.07);
}
.meter .seg { display: block; border-radius: 2px; }
.meter .s-pass { background: #4fb783; }
.meter .s-warn { background: #f2b705; }
.meter .s-fail { background: #e8563c; }

.tally {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: "Space Mono", monospace; font-size: 11px; color: var(--bone-dim);
}
.tally i {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; margin-right: 7px;
}
.tally .d-pass { background: #4fb783; }
.tally .d-warn { background: #f2b705; }
.tally .d-fail { background: #e8563c; }

/* ================================================================
   File identity
   ================================================================ */
.fileid {
  margin-top: 16px; background: rgba(8,6,12,.6);
  border: 1px solid rgba(237,230,221,.12); border-radius: 4px; padding: 20px 22px;
}
.fileid-head, .secs-head {
  font-family: "Space Mono", monospace; font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rust); margin-bottom: 14px;
}
.secs-head b { color: var(--bone-dim); font-weight: 400; }
.fileid dl { display: grid; grid-template-columns: 92px 1fr; gap: 9px 18px; margin: 0; }
.fileid dt {
  font-family: "Space Mono", monospace; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--bone-dim); align-self: center;
}
.fileid dd {
  margin: 0; font-family: "Space Mono", monospace;
  font-size: 12.5px; color: var(--bone); word-break: break-word;
}
.fileid dd.hash { font-size: 11px; color: var(--bone-dim); word-break: break-all; }
.fileid em { font-style: normal; }
.fileid .flagtxt { color: var(--amber); }
.fileid .oktxt { color: #4fb783; }

.secs { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(237,230,221,.1); }
.sec-wrap { display: flex; gap: 7px; flex-wrap: wrap; }
.sec-wrap[hidden] { display: none; }
.sec-wrap + .sec-wrap { margin-top: 7px; }
.sec {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: "Space Mono", monospace; font-size: 10.5px;
  border: 1px solid rgba(237,230,221,.14); border-radius: 2px;
  padding: 6px 10px; color: var(--bone-dim); background: rgba(237,230,221,.02);
}
.sec b { color: var(--bone); font-weight: 400; }
.sec em, .sec u { font-style: normal; text-decoration: none; font-size: 10px; }
.sec.hot { border-color: rgba(242,183,5,.55); background: rgba(242,183,5,.07); }
.sec.hot b, .sec.hot u { color: var(--amber); }
button.sec { cursor: pointer; color: var(--rust); border-style: dashed; }
button.sec:hover { border-color: var(--rust); }

.fileget {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(237,230,221,.1);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.fileget-note {
  font-family: "Space Mono", monospace; font-size: 10.5px;
  color: var(--bone-dim); letter-spacing: .04em;
}

@media (max-width: 560px) {
  .verdict { gap: 20px; padding: 22px; }
  .fileid dl { grid-template-columns: 1fr; gap: 3px 0; }
  .fileid dt { margin-top: 8px; }
}
