:root {
  --orange: #f52311;
  --ink: #0d0a0a;
  --ink-soft: #57514d;
  --hint: #8a847f;
  --border: #e8e3e2;
  --ok: #15803d;
  --ok-bg: #ecfdf3;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --crit: #b91c1c;
  --crit-bg: #fef2f2;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; display: flex; flex-direction: column;
  font-family: Inter, "Segoe UI", -apple-system, Arial, sans-serif;
  font-size: 13px; color: var(--ink); background: #fff;
}

.head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
}
.mark { font-family: Montserrat, "Segoe UI", Arial, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.mark .o { color: var(--orange); }
.head-sub { font-size: 11px; color: var(--hint); }

.status { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.status:empty { display: none; }
.chip {
  font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}
.chip.ok { color: var(--ok); background: var(--ok-bg); }
.chip.warn { color: var(--warn); background: var(--warn-bg); }
.chip.crit { color: var(--crit); background: var(--crit-bg); }

.findings { flex: 1; overflow-y: auto; }
.empty { padding: 24px 16px; color: var(--hint); text-align: center; }

.finding { padding: 12px 16px; border-bottom: 1px solid #f1efed; }
.finding .fname { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; margin-bottom: 7px; }
.docicon {
  width: 20px; height: 24px; border-radius: 3px; background: #2b579a; color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700;
}
.docicon.pdf { background: #c22f2f; }
.docicon.xls { background: #1d6f42; }
.docicon.other { background: #8a847f; }
.finding ul { margin: 0; padding: 0; list-style: none; }
.finding li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; font-size: 12px; color: var(--ink-soft); }
.finding li code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10.5px; color: var(--hint); white-space: nowrap; }
.finding .fstate { font-size: 11.5px; margin-top: 5px; }
.finding .fstate.ok { color: var(--ok); font-weight: 600; }
.finding .fstate.warn { color: var(--warn); }

.opts { padding: 12px 16px; border-top: 1px solid var(--border); display: grid; gap: 11px; }
.opts-title { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hint); font-weight: 600; }
.opt { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; cursor: pointer; }
.olabel { display: block; font-size: 12.5px; font-weight: 600; }
.ohint { display: block; font-size: 11px; color: var(--hint); margin-top: 1px; }

input.switch {
  appearance: none; -webkit-appearance: none;
  width: 34px; height: 20px; border-radius: 999px; background: #cfcac6;
  position: relative; flex: none; margin: 1px 0 0; cursor: pointer; transition: background 0.15s;
}
input.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.25); transition: left 0.15s;
}
input.switch:checked { background: var(--orange); }
input.switch:checked::after { left: 16px; }
input.switch:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.cta { padding: 13px 16px 10px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.btn-primary {
  background: var(--orange); color: #fff; border: none; border-radius: 10px;
  padding: 10px 16px; font-weight: 600; font-size: 13px; font-family: inherit; cursor: pointer;
}
.btn-primary:disabled { opacity: 0.45; cursor: default; }
.btn-ghost {
  background: #fff; border: 1px solid #ddd9d6; border-radius: 10px; color: var(--ink-soft);
  padding: 10px 16px; font-size: 13px; font-family: inherit; cursor: pointer;
}
button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.foot { font-size: 10.5px; color: var(--hint); text-align: center; padding-top: 2px; }
.foot a { color: var(--hint); }
