/* JarScan "classic" skin: plain, flat, utilitarian, in the spirit of VirusTotal's layout (dark top bar, centered search,
   gauge + detection table). Loaded after theme.css and overrides its tokens. No textures, no hard shadows, no display fonts. */
:root, [data-theme="light"] {
  --font-display: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-pixel: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --ls-display: 0; --ls-pixel: .04em;
  --r-1: 2px; --r-2: 3px; --r-3: 4px;
  --container: 76rem;

  --bg: #ffffff; --bg-sunk: #f4f5fa; --surface: #ffffff; --surface-2: #f4f5fa; --surface-3: #e9ebf3;
  --ink: #0b1437; --text: #1c2038; --text-muted: #565b77; --text-faint: #6a6f8a;
  --border: #dfe2ee; --border-strong: #c4c9dc; --grid-line: transparent; --noise-opacity: 0;
  --accent: #394eff; --accent-hover: #2538d9; --accent-ink: #fff; --accent-soft: #e8ebff; --accent-text: #2a3fe6;
  --lamp: #394eff; --focus: #394eff;
  --v-clean-fg: #0a7a3f; --v-clean-bg: #e5f5ec; --v-clean-line: #12a150;
  --v-suspicious-fg: #8a5a00; --v-suspicious-bg: #fff3d6; --v-suspicious-line: #f0a000;
  --v-malicious-fg: #b3161c; --v-malicious-bg: #fde8e8; --v-malicious-line: #e0262d;
  --v-inconclusive-fg: #4a5068; --v-inconclusive-bg: #eceef5; --v-inconclusive-line: #8a90a8;
  --shadow-1: none; --shadow-2: none; --shadow-3: none; --shadow-soft: 0 2px 10px rgba(11,20,55,.12);
  --nav-bg: #0b1437; --nav-text: #c9cff0;
}
[data-theme="dark"] {
  --bg: #11152b; --bg-sunk: #0b0e20; --surface: #171c36; --surface-2: #1d2342; --surface-3: #262d52;
  --ink: #eef0fb; --text: #e4e7f6; --text-muted: #a3a9c9; --text-faint: #8d93b4;
  --border: #2a3158; --border-strong: #3b4373;
  --accent: #6c7dff; --accent-hover: #8996ff; --accent-ink: #0b0f26; --accent-soft: #232a5c; --accent-text: #8f9cff; --lamp: #6c7dff; --focus: #8f9cff;
  --shadow-2: none; --shadow-3: none; --nav-bg: #080b1c;
}
html, body { font-family: var(--font-body); }
body { background: var(--bg); font-size: 15px; line-height: 1.55; }
.textured::before, .textured::after { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-body); letter-spacing: 0; font-weight: 500; color: var(--ink); }
.eyebrow::before { display: none; }
.eyebrow, .label { font-weight: 500; color: var(--text-muted); text-transform: uppercase; font-size: .72rem; }

/* buttons: flat blue */
.btn { border-radius: 3px; box-shadow: none !important; transform: none !important; font-weight: 500; text-transform: none; letter-spacing: 0; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.btn:hover { background: var(--surface-2); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--accent-text); }
.btn--ghost:hover { background: var(--accent-soft); }
.input, .textarea, .select { border-radius: 3px; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: none; }
.card, .card--strong { border-radius: 4px; box-shadow: none; border: 1px solid var(--border); background: var(--surface); }
.card__title { font-weight: 500; font-size: 1rem; }
.callout { border-radius: 4px; box-shadow: none; }
.badge { border-radius: 3px; font-family: var(--font-body); font-weight: 500; text-transform: none; letter-spacing: 0; }

/* top bar */
.nav { background: var(--nav-bg); backdrop-filter: none; border-bottom: 0; position: sticky; }
.nav__inner { min-height: 3.25rem; gap: 1.25rem; }
.nav .brand { color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: 0; }
.nav .brand b { color: #fff; font-weight: 300; }
.nav__links a { color: var(--nav-text); font-weight: 400; border-radius: 0; padding: .5rem .75rem; }
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__links a[aria-current="page"] { color: #fff; box-shadow: none; background: rgba(255,255,255,.1); }
.nav__search { flex: 1; max-width: 34rem; margin-inline: auto 0; }
.nav__search input { width: 100%; height: 2.1rem; border: 0; border-radius: 3px; padding: 0 .75rem 0 2rem; background: rgba(255,255,255,.12) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9cff0' stroke-width='2'><path d='M10.5 3a7.5 7.5 0 100 15 7.5 7.5 0 000-15zM16 16l5 5'/></svg>") no-repeat .55rem center / 1rem; color: #fff; font: inherit; font-size: .9rem; }
.nav__search input::placeholder { color: #a9b0d8; }
.nav__search input:focus { outline: 2px solid #8f9cff; background-color: rgba(255,255,255,.18); }
.nav__links { margin-inline-start: 0; }
.theme-toggle { color: var(--nav-text); border-color: transparent; background: transparent; box-shadow: none; }
.theme-toggle:hover { background: rgba(255,255,255,.1); }
@media (max-width: 52rem) { .nav__search { display: none; } .nav__links { background: var(--nav-bg); } }

/* footer */
.footer { background: var(--surface-2); border-top: 1px solid var(--border); margin-top: 3rem; padding-block: 1.75rem; }
.footer .brand { color: var(--ink); } .footer .brand b { color: var(--ink); }
.footer__links a { color: var(--text-muted); }
.footer__links a:hover { color: var(--accent-text); }

/* home */
.vt-home { text-align: center; padding: 4.5rem 0 1.5rem; }
.vt-home__logo { font-size: 3.25rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; margin: 0; }
.vt-home__logo b { font-weight: 300; }
.vt-home__tag { color: var(--text-muted); max-width: 40rem; margin: .75rem auto 2rem; font-size: 1.05rem; }
.vt-box { max-width: 44rem; margin: 0 auto; text-align: left; }
.vt-tabs { display: flex; justify-content: center; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 1.75rem; }
.vt-tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: .7rem 1.6rem; font: inherit; font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); cursor: pointer; margin-bottom: -1px; }
.vt-tab:hover { color: var(--accent-text); }
.vt-tab[aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); }
.vt-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.vt-panel { text-align: center; }
.vt-file { position: relative; display: inline-block; }
.vt-file input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.vt-file .btn { pointer-events: none; padding: .75rem 2.6rem; font-size: 1rem; }
.vt-drop { border: 1px dashed var(--border-strong); border-radius: 4px; padding: 2.25rem 1rem; background: var(--surface-2); }
.vt-drop.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.vt-drop__name { margin-top: .75rem; font-family: var(--font-mono); font-size: .85rem; color: var(--text); min-height: 1.2em; }
.vt-line { display: flex; gap: .5rem; }
.vt-line .input { flex: 1; height: 2.9rem; font-size: 1rem; }
.vt-line .btn { height: 2.9rem; padding-inline: 1.6rem; }
.vt-fine { color: var(--text-muted); font-size: .8rem; max-width: 44rem; margin: 1.5rem auto 0; text-align: center; }
.vt-fine a { color: var(--accent-text); }
.vt-opt { margin-top: 1rem; text-align: center; }
.vt-stats { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; margin: 2.5rem 0 0; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.vt-stat { text-align: center; } .vt-stat b { display: block; font-size: 1.6rem; font-weight: 400; color: var(--ink); } .vt-stat span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.vt-stat--bad b { color: var(--v-malicious-fg); }

/* tables */
.hash-table { font-size: .9rem; }
.hash-table thead th { background: var(--surface-2); font-weight: 500; text-transform: none; letter-spacing: 0; font-family: var(--font-body); color: var(--text-muted); font-size: .8rem; border-bottom: 1px solid var(--border); }
.hash-table td, .hash-table th { border-color: var(--border); }
.table-wrap { border: 1px solid var(--border); border-radius: 4px; box-shadow: none; }

/* report head: gauge + summary */
.rep-head { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.75rem; align-items: start; padding: 1.25rem 0 .5rem; }
.gauge { position: relative; width: 9rem; height: 9rem; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 9; }
.gauge .gauge__bg { stroke: var(--surface-3); }
.gauge .gauge__fg { stroke: var(--g); stroke-linecap: butt; }
.gauge__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge__num b { font-size: 2.6rem; font-weight: 400; line-height: 1; color: var(--g); } .gauge__num small { font-size: .85rem; color: var(--text-muted); margin-top: .25rem; }
.gauge__cap { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-top: .35rem; }
.rep-banner { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 3px; background: var(--vb); color: var(--vf); border-left: 4px solid var(--vl); font-size: 1.02rem; }
.rep-banner .icon { width: 1.3em; height: 1.3em; flex: none; }
.rep-file { margin-top: .9rem; display: grid; gap: .25rem; }
.rep-file h1 { font-size: 1.35rem; margin: 0; word-break: break-all; font-weight: 500; }
.rep-file .mono { color: var(--text-muted); font-size: .8rem; word-break: break-all; }
.rep-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.6rem; font-size: .85rem; color: var(--text-muted); margin-top: .35rem; }
.rep-meta b { color: var(--text); font-weight: 500; }
.rep-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.rep-tag { font-size: .75rem; padding: .15rem .55rem; border-radius: 3px; background: var(--surface-3); color: var(--text-muted); }
[data-verdict="clean"] { --g: var(--v-clean-line); --vb: var(--v-clean-bg); --vf: var(--v-clean-fg); --vl: var(--v-clean-line); }
[data-verdict="suspicious"] { --g: var(--v-suspicious-line); --vb: var(--v-suspicious-bg); --vf: var(--v-suspicious-fg); --vl: var(--v-suspicious-line); }
[data-verdict="malicious"] { --g: var(--v-malicious-line); --vb: var(--v-malicious-bg); --vf: var(--v-malicious-fg); --vl: var(--v-malicious-line); }
[data-verdict="inconclusive"] { --g: var(--v-inconclusive-line); --vb: var(--v-inconclusive-bg); --vf: var(--v-inconclusive-fg); --vl: var(--v-inconclusive-line); }
@media (max-width: 40rem) { .rep-head { grid-template-columns: 1fr; justify-items: center; } .rep-head > div:last-child { width: 100%; } }

/* tabs: underline style */
.tablist { border-bottom: 1px solid var(--border); background: none; gap: 0; margin-top: 1.25rem; overflow-x: auto; }
.tab { font-family: var(--font-body); font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; border-radius: 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-muted); box-shadow: none; padding: .8rem 1.1rem; white-space: nowrap; margin-bottom: -1px; }
.tab:hover { color: var(--accent-text); background: none; }
.tab[aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); background: none; box-shadow: none; }
.tab__count { background: var(--surface-3); color: var(--text-muted); border-radius: 8px; padding: 0 .4rem; font-size: .7rem; margin-left: .25rem; }
.tabpanel { padding-top: 1.25rem; }

/* detection rows */
.det { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.det__head, .det__row > summary { display: grid; grid-template-columns: 1fr 12rem; gap: 1rem; align-items: center; padding: .65rem 1rem; }
.det__head { background: var(--surface-2); color: var(--text-muted); font-size: .8rem; border-bottom: 1px solid var(--border); }
.det__row { border-bottom: 1px solid var(--border); } .det__row:last-child { border-bottom: 0; }
.det__row > summary { cursor: pointer; list-style: none; } .det__row > summary::-webkit-details-marker { display: none; }
.det__row > summary:hover { background: var(--surface-2); }
.det__name { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.det__name .icon { width: 1.15rem; height: 1.15rem; flex: none; color: var(--sc); }
.det__id { font-family: var(--font-mono); font-size: .75rem; color: var(--text-faint); }
.det__res { color: var(--sc); font-weight: 500; font-size: .9rem; display: flex; gap: .5rem; align-items: center; }
.det__body { padding: .25rem 1rem 1rem 2.8rem; color: var(--text-muted); font-size: .9rem; }
.det__body p { margin: .35rem 0; }
.det__ev { font-family: var(--font-mono); font-size: .78rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 3px; padding: .35rem .6rem; margin: .3rem 0; word-break: break-all; color: var(--text); }
.det__row[data-severity="info"], .det__row[data-severity="low"] { --sc: var(--v-clean-fg); }
.det__row[data-severity="medium"] { --sc: var(--v-suspicious-fg); }
.det__row[data-severity="high"], .det__row[data-severity="critical"] { --sc: var(--v-malicious-fg); }
.det__empty { padding: 1.4rem 1rem; color: var(--v-clean-fg); display: flex; gap: .6rem; align-items: center; }
@media (max-width: 40rem) { .det__head, .det__row > summary { grid-template-columns: 1fr; gap: .25rem; } .det__head span:last-child { display: none; } }

/* progress page + misc simplification */
.risk-meter, .verdict-card { box-shadow: none; }
.page-title { font-weight: 500; }
.prose h2 { font-size: 1.25rem; margin-top: 2rem; } .prose h3 { font-size: 1.05rem; }
.section { padding-block: 2rem; } .section--tight { padding-block: 1rem; }
.reveal-on-scroll { opacity: 1 !important; transform: none !important; }

.brand { gap: 0 !important; }
.vt-drop__name { font-family: var(--font-body); }

.vt-go { padding: .7rem 2.2rem; font-size: 1rem; }
.vt-priv { margin-top: .9rem; }
.vt-err { margin-top: 1rem; text-align: center; }
.vt-h2 { font-size: 1.1rem; margin: 0; }
.page-title { font-size: 1.9rem; line-height: 1.2; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.3rem; }
.steps > li { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; padding: 1rem 0; box-shadow: none; grid-template-columns: 2rem 1fr; gap: .75rem; }
.steps > li::before { background: none; color: var(--text-faint); font: 400 .95rem/1.5 var(--font-body); text-align: left; height: auto; }
.hero, .scan-panel { box-shadow: none; }
.hash-table a { color: var(--accent-text); text-decoration: none; } .hash-table a:hover { text-decoration: underline; }
.hash-table a.mono { font-family: var(--font-body); }
