:root {
  color-scheme: dark;
  --bg: #080b09;
  --text: #c5d0c7;
  --dim: #84958a;
  --green: #96f3ad;
  --yellow: #efdf98;
  --line: #273b2d;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.65; }
a { color: var(--green); }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
.session-bar { padding: 14px 28px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.session-bar a { text-decoration: none; color: #f0f6f1; font-weight: 700; font-size: 18px; }
.session-bar a span { color: var(--green); }
.session-bar small { color: var(--dim); font-size: 12px; font-weight: 400; }
#session-status { color: var(--dim); font-size: 10px; letter-spacing: .07em; }
#terminal { max-width: 1080px; margin: 0 auto; padding: 44px 36px 110px; }
.meta { color: var(--dim); font-size: 11px; letter-spacing: .05em; }
.word-art { font-size: 16px; color: var(--green); line-height: 1.3; margin: 30px 0; }
.boot-line { color: var(--dim); margin: 5px 0; font-size: 12px; }
.boot-line span { color: var(--green); margin-right: 10px; }
h1 { color: #edf7ee; font-size: clamp(28px, 4.4vw, 52px); line-height: 1.2; font-weight: 400; letter-spacing: -.05em; margin: 36px 0 20px; }
.cursor { color: var(--green); animation: blink 1s steps(1) infinite; }
.intro { color: var(--dim); line-height: 1.8; margin-bottom: 38px; }
#scan-form { max-width: 650px; }
.prompt { color: var(--green); }
.input-line { display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #4a7956; padding: 10px 0; }
.input-line > span { color: var(--green); }
input { background: transparent; border: 0; color: #f1faf3; width: 100%; min-width: 0; font-size: 21px; padding: 8px 0; border-radius: 0; }
input::placeholder { color: #697e6f; }
.input-line button { background: var(--green); color: var(--bg); border: 0; min-width: 46px; min-height: 44px; font-size: 23px; }
.text-button { color: var(--green); background: transparent; border: 0; padding: 10px 0; text-align: left; }
.text-button:hover { color: #fff; }
.text-button span { color: var(--dim); }
.command { overflow-wrap: anywhere; margin: 0 0 20px; }
.command strong { color: #fff; font-weight: 400; }
.session-intro { margin-bottom: 28px; }
.notice { color: var(--yellow); border-left: 2px solid var(--yellow); padding-left: 12px; }
.log { display: grid; grid-template-columns: 52px 16px minmax(0,1fr); gap: 10px; margin: 0; padding: 3px 0; font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }
.log time, .result-time { color: #718377; font-size: 10px; }
.log .symbol { color: #6cad7b; }
.log.warning { color: var(--yellow); }
.result { border: 0; margin: 1px 0; }
.result summary { list-style: none; display: grid; grid-template-columns: 52px 16px minmax(0,1fr) auto; gap: 10px; padding: 8px 0; cursor: pointer; align-items: baseline; }
.result summary::-webkit-details-marker { display: none; }
.result summary:hover { background: #111e15; }
.result .symbol { color: var(--green); }
.result-title { color: #e1efe4; overflow-wrap: anywhere; }
.result-tag { color: var(--dim); font-size: 10px; white-space: nowrap; }
.result-tag::after { content: ' +'; color: var(--green); }
.result[open] .result-tag::after { content: ' −'; }
.result.candidate .symbol { color: var(--yellow); }
.result-detail { margin: 0 0 18px 78px; border-left: 1px solid #44674d; padding: 5px 0 8px 20px; color: #a6b8ab; max-width: 780px; font-size: 13px; overflow-wrap: anywhere; }
.result-detail p { margin: 0 0 10px; }
.result-detail .evidence-status { color: var(--yellow); font-size: 11px; }
.result-detail a { text-underline-offset: 4px; }
.result-detail img { width: 76px; height: 76px; object-fit: cover; margin: 5px 15px 10px 0; }
.result.revelation { margin: 26px 0; border-top: 1px dashed #47614d; border-bottom: 1px dashed #47614d; }
.revelation summary { padding: 18px 0; }
.revelation .result-title { color: var(--green); font-size: clamp(22px, 3vw, 34px); line-height: 1.25; letter-spacing: -.04em; }
.revelation.candidate .result-title { color: var(--yellow); }
.revelation .result-tag { align-self: center; }
.working { color: var(--dim); font-size: 12px; padding: 20px 0; }
.spinner { display: inline-block; animation: spin 2s linear infinite; color: var(--green); margin-right: 10px; }
.end-rule { color: #52745b; white-space: nowrap; overflow: hidden; margin-top: 35px; font-size: 12px; }
#end-title { color: #e1efe4; font-weight: 400; font-size: 26px; line-height: 1.3; }
#end-description { color: var(--dim); max-width: 760px; }
.session-actions { display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: 12px; }
.next-command { margin-top: 45px; border-top: 1px solid var(--line); padding-top: 25px; }
.next-command h2 { font-weight: 400; color: #eef7ef; font-size: clamp(23px, 3vw, 32px); line-height: 1.4; }
.next-command > p:not(.prompt) { color: var(--dim); }
.next-command #download-link { display: inline-flex; gap: 28px; padding: 14px 20px; margin-top: 12px; background: var(--green); color: #09140c; border: 0; text-decoration: none; font-weight: 700; font-size: 12px; }
.status-line { position: fixed; bottom: 0; left: 0; right: 0; background: #142019; border-top: 1px solid #35573e; display: flex; align-items: center; gap: 24px; padding: 10px 25px max(10px, env(safe-area-inset-bottom)); color: #afd1b7; font-size: 11px; z-index: 5; }
#status-text { margin-right: auto; }
#cancel { border: 0; background: transparent; color: var(--yellow); padding: 4px; font-size: 11px; }
#follow { position: fixed; bottom: 65px; left: 50%; transform: translateX(-50%); z-index: 6; white-space: nowrap; background: var(--green); color: #0b180f; border: 0; padding: 10px 16px; font-size: 12px; }
#error { color: var(--yellow); padding: 16px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  body { font-size: 13px; }
  .session-bar { padding: 12px 16px; }
  .session-bar small { font-size: 10px; }
  #session-status { font-size: 8px; }
  #terminal { padding: 25px 16px 100px; }
  .word-art { font-size: 13px; }
  .intro br { display: none; }
  h1 { margin-top: 30px; }
  input { font-size: 18px; }
  .log { grid-template-columns: 34px 10px minmax(0,1fr); gap: 7px; font-size: 11px; }
  .log time, .result-time { font-size: 9px; }
  .result summary { grid-template-columns: 34px 10px minmax(0,1fr); gap: 7px; padding: 10px 0; }
  .result-tag { grid-column: 3; font-size: 9px; }
  .result-detail { margin-left: 51px; padding-left: 12px; font-size: 12px; }
  .revelation summary { padding: 18px 0; }
  .revelation .result-title { font-size: 23px; }
  .status-line { gap: 12px; padding-left: 14px; padding-right: 14px; font-size: 9px; }
  .next-command #download-link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }

#store-options { margin-top: 18px; font-size: 12px; color: var(--dim); }
#store-options summary { cursor: pointer; padding: 8px 0; }
.store-links { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 12px 0; }
.store-links a { padding: 8px 0; text-underline-offset: 4px; }

/* Syntax belongs to the activity log; evidence remains readable Spanish. */
.python-code { font: inherit; color: #b7c9d8; overflow-wrap: anywhere; }
.py-keyword { color: #c5a4ef; }
.py-string { color: #bbd99b; }
.py-number { color: #efc18e; }
.py-function { color: #8bcfe4; }
.summary-command { color: #b7c9d8; margin-top: 30px; }
#summary-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 20px 0 30px; }
.summary-number { display: flex; flex-direction: column; align-items: flex-start; background: transparent; color: var(--green); border: 0; border-top: 1px solid var(--line); padding: 22px 0; text-align: left; min-width: 0; }
.summary-number strong { font-size: clamp(60px, 8vw, 96px); font-weight: 400; letter-spacing: -.07em; line-height: 1; }
.summary-number > span { color: #e0eee3; font-size: 12px; letter-spacing: .06em; margin-top: 13px; }
.summary-number small { color: var(--dim); font-size: 11px; margin-top: 6px; }
.summary-number em { color: var(--green); font-size: 10px; font-style: normal; margin-top: 18px; }
.summary-number.pending strong { color: var(--yellow); }
.summary-number:hover:not(:disabled) { background: #111c14; }
.summary-number:disabled { cursor: default; }
.summary-number:disabled strong, .summary-number:disabled em { color: var(--dim); }
.result { scroll-margin-top: 30px; }
.result.located { outline: 1px solid #96f3ad70; outline-offset: 8px; animation: locate 2s ease-out; }
@keyframes locate { from { background: #284831; } to { background: transparent; } }
@media (max-width: 600px) {
  #summary-numbers { gap: 0 18px; }
  .summary-number strong { font-size: clamp(48px, 16vw, 72px); }
  .summary-number > span { font-size: 10px; overflow-wrap: anywhere; }
  .summary-number small { font-size: 10px; }
  .summary-number em { font-size: 9px; }
}

/* One live activity line, driven by real progress events. */
.working { position: relative; padding-bottom: 24px; }
.working::after { content: ''; position: absolute; bottom: 8px; left: 0; width: var(--scan-progress, 0%); max-width: 100%; height: 1px; background: var(--green); transition: width .35s ease; }
#end-session { scroll-margin-top: 24px; }

.breach-heading { font-size: 11px; font-weight: 400; color: var(--green); margin: 24px 0 14px; }
.breach-list .breach-entry { border-top: 1px solid var(--line); margin: 12px 0; }
.breach-entry .result-title { font-size: 17px; letter-spacing: 0; color: #e1efe4; }
.breach-data { padding-left: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 24px; margin: 12px 0; }
.breach-list .result-detail { max-width: none; }
@media (max-width: 600px) {
  .breach-list .result-time { display: none; }
  .breach-list summary { grid-template-columns: 10px minmax(0, 1fr); }
  .breach-list .result-tag { grid-column: 2; }
  .breach-list .result-detail { margin-left: 17px; }
  .breach-data { grid-template-columns: 1fr; }
}
