:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #182b32;
  background: #f3f5f4;
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
.file-button {
  font: inherit;
  cursor: pointer;
  border: 1px solid #cbd5d3;
  background: white;
  color: #243a40;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 550;
}
button:hover,
.file-button:hover {
  background: #edf5f1;
  border-color: #688c80;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
.file-button:focus-visible {
  outline: 3px solid #177a67;
  outline-offset: 3px;
}
header {
  height: 68px;
  border-bottom: 1px solid #dbe2df;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #29423e;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}
.brand strong {
  font-size: 13px;
  font-weight: 500;
}
.logo {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  background: #174f43;
  color: white;
  border-radius: 7px;
  font-size: 13px;
}
.slash {
  color: #b1bfba;
  margin: 0 8px;
}
.private {
  font-size: 12px;
  color: #526b61;
  display: flex;
  align-items: center;
  gap: 7px;
}
.private i {
  width: 6px;
  height: 6px;
  background: #3c8b6f;
  border-radius: 50%;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 29px 32px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 23px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: #668076;
  margin: 0 0 9px;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.9px;
  margin: 0 0 8px;
  font-weight: 650;
}
h1 span {
  color: #236d58;
}
.heading p:not(.eyebrow) {
  margin: 0;
  color: #62716e;
  font-size: 13px;
}
.version {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  background: #e7eeeb;
  border: 1px solid #d6e1db;
  white-space: nowrap;
  padding: 7px 9px;
  border-radius: 5px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 20px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid #d7e0db;
  border-radius: 10px;
  box-shadow: 0 3px 10px #203f2f04;
  min-width: 0;
  overflow: hidden;
}
.panel-heading {
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #e2e8e4;
}
h2 {
  font-size: 14px;
  margin: 0;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 9px;
}
.step {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #567368;
  background: #eef3ef;
  border: 1px solid #dce6df;
  border-radius: 5px;
  padding: 3px 7px;
}
.file-button {
  font-size: 14px;
  padding: 6px 10px;
  position: relative;
}
.file-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 3px solid #177a67;
  outline-offset: 3px;
}
.editor-meta {
  display: flex;
  justify-content: space-between;
  padding: 13px 17px 10px;
  color: #81908b;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.editor-meta label {
  font-weight: 650;
  color: #587267;
}
textarea {
  display: block;
  width: 100%;
  height: 300px;
  resize: vertical;
  border: 0;
  padding: 0 18px 18px;
  font:
    12px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  outline: none;
  color: #244b40;
  background: #fff;
  tab-size: 2;
}
textarea:focus {
  box-shadow: inset 3px 0 #378b70;
}
textarea::placeholder {
  color: #87988f;
}
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 17px 9px;
  font-size: 11px;
  color: #7a8882;
  border-bottom: 1px solid #e8ede9;
}
.text-button {
  border: 0;
  background: none;
  padding: 6px;
  color: #557668;
}
.input-actions {
  display: flex;
  gap: 8px;
  padding: 16px 16px 7px;
  flex-wrap: wrap;
}
.primary {
  background: #175c49;
  color: white;
  border-color: #175c49;
  flex: 1;
}
.primary:hover {
  background: #114835;
  color: white;
}
.primary span {
  padding-left: 20px;
}
.small {
  font-size: 11px;
  line-height: 1.6;
  color: #73817a;
  padding: 0 17px;
  margin: 3px 0 14px;
}
.privacy-note {
  font-size: 12px;
  line-height: 1.6;
  color: #547263;
  background: #f4f8f5;
  border-top: 1px solid #e5ece6;
  margin: 0;
  padding: 13px 17px;
}
.privacy-note span {
  font-size: 19px;
  vertical-align: middle;
  margin-right: 7px;
}
.badge {
  font-size: 11px;
  padding: 5px 8px;
  background: #f0f3f1;
  border: 1px solid #dfe6e0;
  border-radius: 5px;
  color: #6a7c73;
  white-space: nowrap;
}
.report-tools {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 12px 17px;
  border-bottom: 1px solid #edf0ed;
  font-size: 11px;
  color: #718279;
}
.report-tools button {
  padding: 7px 9px;
}
.report-tools > div {
  display: flex;
  gap: 6px;
}
.empty {
  min-height: 351px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 28px 12px;
}
.empty-icon {
  font-size: 36px;
  color: #6d8b7b;
  background: #f0f5f0;
  width: 62px;
  height: 62px;
  border: 1px dashed #c6d9ca;
  border-radius: 17px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
}
.empty h3 {
  font-size: 16px;
  font-weight: 550;
  margin: 0 0 10px;
}
.empty p {
  font-size: 12px;
  line-height: 1.8;
  color: #7b8981;
  margin: 0;
}
.empty-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 23px;
}
.empty-tags span {
  font-size: 10px;
  color: #6e8175;
  border: 1px solid #e0e8e1;
  border-radius: 4px;
  padding: 5px 7px;
}
.export-note {
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
  padding: 12px 17px;
  border-top: 1px solid #e6ebe6;
  color: #7c8279;
  background: #fcfcf9;
}
#live {
  font-size: 12px;
  margin: 0;
  padding: 0 17px;
  color: #4d6b5b;
}
#live:not(:empty) {
  padding-top: 12px;
  padding-bottom: 8px;
}
.result-summary {
  padding: 16px 18px;
  background: #fff9ef;
  border-bottom: 1px solid #eedfc5;
}
.result-summary h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.result-summary p {
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
  color: #78684c;
}
.finding {
  padding: 16px 18px;
  border-bottom: 1px solid #e5eae6;
}
.finding-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}
.finding h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.risk {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #fff1d9;
  color: #8e5813;
  white-space: nowrap;
}
.risk.medium {
  background: #edf1fd;
  color: #56659a;
}
.finding code,
.unassessed code {
  display: block;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font:
    12px/1.6 ui-monospace,
    monospace;
  background: #f5f7f5;
  border: 1px solid #e6ebe5;
  border-radius: 4px;
  padding: 6px 8px;
  color: #51695b;
}
.finding p {
  font-size: 12px;
  line-height: 1.7;
  color: #586b60;
  margin: 9px 0;
}
.finding a {
  font-size: 12px;
}
.unassessed {
  padding: 16px 18px;
  background: #f7f8fb;
}
.unassessed h3 {
  font-size: 14px;
}
.unassessed p {
  font-size: 12px;
  line-height: 1.6;
}
.coverage {
  margin-top: 20px;
}
.coverage-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  gap: 12px;
}
.coverage-title span {
  font-size: 11px;
  color: #839087;
}
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 18px 14px;
  gap: 22px;
}
.coverage h3 {
  font-size: 12px;
  margin: 2px 0 7px;
  color: #385847;
}
.coverage p {
  font-size: 12px;
  line-height: 1.7;
  color: #718075;
  margin: 0;
}
.coverage code {
  font-size: 11px;
  color: #426d55;
  overflow-wrap: anywhere;
}
details {
  border-top: 1px solid #e5eae5;
  padding: 13px 18px;
  font-size: 12px;
  color: #687d6d;
  line-height: 1.7;
}
summary {
  cursor: pointer;
  color: #496953;
}
details li {
  margin: 5px 0;
}
footer {
  font-size: 11px;
  line-height: 1.7;
  color: #7a887d;
  margin: 18px 0 0;
}
footer p {
  margin: 4px 0;
}
a {
  color: #286f53;
  text-underline-offset: 3px;
}
#sample-confirm {
  background: #fff7e5;
  padding: 12px 17px;
  font-size: 12px;
}
#sample-confirm p {
  margin-top: 0;
}
@media (min-width: 900px) {
  #report {
    max-height: 650px;
    overflow: auto;
  }
}
@media (max-width: 800px) {
  header {
    padding: 0 18px;
    height: 60px;
  }
  .private {
    font-size: 10px;
  }
  .private i {
    display: none;
  }
  .brand strong,
  .slash {
    display: none;
  }
  main {
    padding: 24px 16px;
  }
  .heading {
    align-items: start;
  }
  .heading h1 {
    font-size: 24px;
    line-height: 1.25;
    max-width: 270px;
  }
  .heading p:not(.eyebrow) {
    line-height: 1.6;
  }
  .version {
    display: none;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .coverage-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .coverage-title {
    align-items: start;
  }
  .coverage-title span {
    max-width: 105px;
    text-align: right;
  }
  textarea {
    height: 280px;
  }
  .empty {
    min-height: 280px;
  }
  .report-tools {
    padding: 12px;
  }
  .panel-heading {
    padding: 14px;
  }
  .input-actions {
    padding: 14px 12px 7px;
  }
  .input-actions button {
    padding: 10px;
  }
  .private {
    max-width: 135px;
    text-align: right;
  }
  h1 span {
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s;
  }
}

@media (max-width: 800px) {
  .primary span {
    display: none;
  }
  .input-actions button {
    white-space: nowrap;
  }
  .report-tools > span {
    min-width: 85px;
  }
}

#format {
  font:
    12px ui-sans-serif,
    system-ui;
  color: #456654;
  border: 1px solid #d9e3db;
  border-radius: 4px;
  background: #f6f8f6;
  padding: 3px;
  max-width: 160px;
  margin-top: -4px;
}
#format:focus-visible {
  outline: 3px solid #177a67;
  outline-offset: 2px;
}
.editor-meta {
  gap: 8px;
  align-items: center;
}
.editor-meta #size {
  white-space: nowrap;
  letter-spacing: 0;
}
