:root {
  color-scheme: dark;
  --bg: #08131c;
  --panel: rgba(13, 31, 43, .9);
  --line: rgba(126, 202, 232, .18);
  --text: #e7f5fa;
  --muted: #8da8b6;
  --cyan: #62e1f4;
  --cyan-soft: rgba(98, 225, 244, .12);
  --green: #8de2b0;
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 80% -10%, #123c4a 0, transparent 36%), var(--bg); color: var(--text); }
.shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 58px 0 34px; }
.hero { max-width: 750px; margin-bottom: 28px; }
.eyebrow, .section-kicker { margin: 0 0 7px; color: var(--cyan); font-size: 12px; letter-spacing: .13em; font-weight: 700; }
h1 { margin: 0; font-size: clamp(34px, 6vw, 56px); letter-spacing: -.04em; }
h2 { margin: 0; font-size: 21px; }
.subtitle, .muted { color: var(--muted); line-height: 1.7; }
.subtitle { font-size: 17px; margin: 12px 0 0; }
.workflow { display: flex; align-items: center; gap: 12px; color: #b3d4df; font-size: 13px; margin: 0 0 16px; }
.workflow i { display: block; width: 34px; height: 1px; background: var(--line); }
.panel { background: linear-gradient(135deg, rgba(20, 47, 62, .94), var(--panel)); border: 1px solid var(--line); border-radius: 14px; padding: 23px; margin: 14px 0; box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 17px; }
.privacy-badge, .hash-badge, .hint { color: var(--muted); font-size: 12px; white-space: nowrap; }
.privacy-badge { color: var(--green); border: 1px solid rgba(141, 226, 176, .3); padding: 6px 9px; border-radius: 999px; }
.hash-badge { max-width: 48%; overflow: hidden; text-overflow: ellipsis; padding-top: 5px; }
.drop-zone { min-height: 150px; border: 1px dashed rgba(98,225,244,.48); border-radius: 10px; background: var(--cyan-soft); display: grid; place-content: center; text-align: center; padding: 24px; cursor: pointer; transition: .18s ease; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--cyan); background: rgba(98,225,244,.18); transform: translateY(-1px); }
.drop-zone strong { font-size: 17px; }
.drop-zone span { color: var(--muted); font-size: 13px; margin-top: 8px; }
.folder-picker { display: inline-flex; margin-top: 12px; color: #c8e7ee; background: transparent; border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; cursor: pointer; font-size: 13px; }
.folder-picker:hover { border-color: var(--cyan); color: var(--cyan); }
.status { min-height: 20px; margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.status.error { color: #ffaaa3; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { color: #b8d3dc; font-size: 13px; display: grid; gap: 7px; }
input { width: 100%; padding: 11px 12px; background: rgba(4,14,21,.62); border: 1px solid var(--line); border-radius: 7px; color: var(--text); outline: none; }
input:focus { border-color: var(--cyan); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { padding: 15px 12px; border-right: 1px solid var(--line); }
.metric:last-child { border: 0; }
.metric strong { display: block; font-size: 23px; color: var(--cyan); }
.metric span { color: var(--muted); font-size: 12px; }
.action-row { display: flex; gap: 10px; margin-top: 18px; }
.button { cursor: pointer; border-radius: 7px; padding: 10px 14px; font: inherit; font-size: 14px; transition: .18s ease; }
.primary { background: var(--cyan); color: #062028; border: 1px solid var(--cyan); font-weight: 700; }
.secondary { color: #c8e7ee; background: transparent; border: 1px solid var(--line); }
.button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 730px; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); background: rgba(0,0,0,.13); font-weight: 600; }
td { color: #d4e7ec; }
tr:last-child td { border-bottom: 0; }
td.path { color: #a9c8d2; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.confidence { color: var(--green); }
.confidence.medium { color: #ffdd96; }
.diagnostics { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.75; font-size: 13px; }
.empty { color: var(--muted); margin: 14px 0 0; }
.hidden { display: none; }
footer { text-align: center; color: #66818f; font-size: 12px; padding: 20px; }
@media (max-width: 680px) { .shell { width: min(100% - 20px, 1080px); padding-top: 32px; } .panel { padding: 17px; } .form-grid, .metrics { grid-template-columns: 1fr; } .metric { border-right: 0; border-bottom: 1px solid var(--line); } .metric:last-child { border-bottom: 0; } .workflow i { width: 14px; } .hash-badge { max-width: 58%; } }
