:root {
  color-scheme: light;
  --bg: #f8f9f6;
  --surface: #fff;
  --ink: #202e2a;
  --muted: #63716a;
  --line: #dce3dc;
  --soft: #eff3ed;
  --accent: #215b47;
  --accent-ink: #fff;
  --good: #e5f1e8;
  --good-ink: #225236;
  --bad: #f8e4df;
  --bad-ink: #8c3021;
  --warn: #f8efda;
  --warn-ink: #765512;
  --code: #f7f9f5;
}
h1 {
  white-space: pre-line;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141c19;
  --surface: #1c2621;
  --ink: #e3ebe2;
  --muted: #a8b8ac;
  --line: #35483c;
  --soft: #27382e;
  --accent: #a7d6b4;
  --accent-ink: #172b1e;
  --good: #264633;
  --good-ink: #bbdfc6;
  --bad: #4d2d28;
  --bad-ink: #f7c0b5;
  --warn: #493f26;
  --warn-ink: #ecdba7;
  --code: #16201a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 12px;
}
button {
  cursor: pointer;
  font-weight: 600;
}
button:hover:not(:disabled) {
  background: var(--soft);
}
button:disabled,
select:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
header {
  max-width: 1280px;
  margin: auto;
  padding: 23px 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  font-size: 22px;
  letter-spacing: -0.6px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font:
    italic 30px/1 Georgia,
    serif;
}
.brand-divider {
  font-weight: 300;
  color: var(--line);
  margin: 0 5px;
}
.brand-sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.preferences {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
}
.docs-link {
  margin-left: 12px;
  text-decoration: none;
}
main {
  max-width: 1120px;
  padding: 0 30px;
  margin: auto;
}
.intro {
  padding: 58px 0 32px;
  max-width: 760px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.7px;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -2.8px;
  margin: 19px 0 18px;
}
h2 {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.7px;
  line-height: 1.3;
  margin: 0 0 7px;
}
h3 {
  font-size: 17px;
  margin: 24px 0 12px;
}
p {
  margin: 0;
}
.intro > p {
  max-width: 620px;
  font-size: 16px;
  color: var(--muted);
}
.runtime-line {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  font:
    12px/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: var(--muted);
}
#retry {
  padding: 3px 8px;
}
.workspace {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 6px 24px #17281905;
}
.tabs {
  display: flex;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.tab {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  flex: 1;
  text-align: left;
  font-size: 15px;
  padding: 17px 21px;
  white-space: nowrap;
}
.tab.active {
  background: var(--surface);
  box-shadow: inset 0 3px var(--accent);
}
.tab-number {
  font:
    11px ui-monospace,
    monospace;
  color: var(--muted);
  margin-right: 10px;
}
.tab-detail {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 29px;
  margin-top: 3px;
}
.method-panel {
  padding: 28px 30px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 25px;
}
.panel-heading p {
  color: var(--muted);
  font-size: 13px;
}
.pill {
  font:
    10px ui-monospace,
    monospace;
  white-space: nowrap;
  color: var(--accent);
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 5px;
}
.case-bar {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 23px;
  font-size: 12px;
}
.case-bar label {
  white-space: nowrap;
  font-weight: 650;
}
.case-bar select {
  flex: 1;
  min-width: 0;
  max-width: 540px;
}
.case-bar a {
  margin-left: auto;
  white-space: nowrap;
  font-size: 11px;
}
.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 650;
}
.editor-heading button {
  font-size: 11px;
  padding: 5px 10px;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.editor-heading + .hint {
  margin-bottom: 10px;
}
textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 285px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--code);
  font:
    12px/1.65 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  padding: 16px;
  tab-size: 2;
  white-space: pre;
  overflow: auto;
}
#ach-help {
  margin: 7px 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 19px 0 4px;
}
.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-size: 12px;
  padding: 11px 17px;
}
.primary:hover:not(:disabled) {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.results:not(:empty) {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 4px;
}
.summary-card {
  padding: 18px 20px;
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  margin-top: 20px;
}
.summary-card .overline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.summary-card strong {
  display: block;
  font-size: 17px;
  margin: 4px 0;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.table-scroll {
  overflow: auto;
  max-height: 520px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th,
td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--soft);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
}
tr:last-child td {
  border-bottom: 0;
}
.matrix td:not(:first-child) {
  text-align: center;
  font-weight: 650;
  min-width: 65px;
}
.matrix td:first-child {
  min-width: 230px;
  max-width: 400px;
}
.matrix th {
  white-space: nowrap;
}
.consistent {
  background: var(--good);
  color: var(--good-ink);
}
.inconsistent {
  background: var(--bad);
  color: var(--bad-ink);
}
.neutral {
  background: var(--code);
  color: var(--muted);
}
.changed,
.warning {
  background: var(--warn);
  color: var(--warn-ink);
}
.warning {
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 12px;
  margin: 9px 0;
}
.error {
  background: var(--bad);
  color: var(--bad-ink);
  border: 1px solid currentColor;
  border-radius: 7px;
  padding: 13px;
  margin-top: 18px;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 240px;
  overflow: auto;
}
.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.principle {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.principle h3 {
  margin: 6px 0 10px;
}
.principle p {
  font-size: 13px;
  color: var(--muted);
}
.principle .example {
  color: var(--ink);
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.parameter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.parameter-grid label {
  font-size: 12px;
  font-weight: 650;
  display: block;
  margin-bottom: 7px;
}
.parameter-grid select {
  width: 100%;
  font-size: 13px;
}
.parameter-grid .hint {
  margin-top: 7px;
}
details {
  margin: 18px 0;
  font-size: 12px;
}
summary {
  cursor: pointer;
  font-weight: 650;
  margin-bottom: 10px;
}
.target-details label {
  display: block;
  font-weight: 650;
  margin: 10px 0 5px;
}
#target-input {
  min-height: 160px;
}
#redteam-input {
  min-height: 260px;
}
#cli-output {
  min-height: 170px;
  margin-top: 9px;
}
.privacy-note {
  display: flex;
  gap: 17px;
  max-width: 760px;
  margin: 30px auto 37px;
  color: var(--muted);
  font-size: 12px;
}
.privacy-note strong {
  color: var(--ink);
  font-size: 12px;
}
.privacy-note p {
  margin-top: 4px;
}
.privacy-icon {
  font-size: 24px;
  line-height: 1.2;
  color: var(--accent);
}
footer {
  max-width: 1200px;
  margin: auto;
  padding: 22px 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}
footer > span:first-child {
  font-weight: 750;
  letter-spacing: 1px;
}
footer a {
  text-decoration: none;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  padding: 10px;
  background: var(--surface);
  z-index: 10;
}
[hidden] {
  display: none !important;
}
code {
  font:
    11px ui-monospace,
    monospace;
}
.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 9px 0;
}
.legend span {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
}
.stale {
  opacity: 0.55;
}
.result-note {
  color: var(--muted);
  font-size: 12px;
  margin: 9px 0;
}
ul {
  padding-left: 20px;
}
li {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  header {
    padding: 16px 19px;
    gap: 10px;
  }
  .brand {
    font-size: 19px;
    gap: 7px;
  }
  .brand-sub,
  .brand-divider,
  .docs-link {
    display: none;
  }
  .preferences {
    gap: 6px;
  }
  .preferences select,
  .preferences button {
    padding: 7px;
    font-size: 11px;
  }
  main {
    padding: 0 15px;
  }
  .intro {
    padding: 34px 5px 25px;
  }
  h1 {
    letter-spacing: -1.7px;
  }
  .intro > p {
    font-size: 14px;
  }
  .tab {
    padding: 13px 11px;
    font-size: 13px;
  }
  .tab-detail {
    display: none;
  }
  .tab-number {
    margin-right: 5px;
    font-size: 9px;
  }
  .method-panel {
    padding: 22px 16px;
  }
  .panel-heading {
    gap: 7px;
  }
  .panel-heading .pill {
    display: none;
  }
  h2 {
    font-size: 21px;
  }
  .case-bar {
    flex-wrap: wrap;
    padding: 10px;
    gap: 7px;
  }
  .case-bar select {
    flex-basis: 100%;
    order: 3;
    max-width: none;
    width: 100%;
  }
  .case-bar a {
    font-size: 10px;
  }
  .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .parameter-grid,
  .result-grid,
  .principles {
    grid-template-columns: 1fr;
  }
  .editor-heading button {
    max-width: 155px;
  }
  textarea {
    font-size: 11px;
    padding: 10px;
    min-height: 250px;
  }
  .privacy-note {
    margin: 25px 8px;
    font-size: 11px;
  }
  footer {
    margin: 0 20px;
    flex-wrap: wrap;
    font-size: 9px;
  }
  footer > span:nth-child(2) {
    display: none;
  }
  .matrix td:first-child {
    min-width: 180px;
  }
  .runtime-line {
    font-size: 10px;
  }
  .summary-card {
    padding: 14px;
  }
  .summary-card strong {
    font-size: 15px;
  }
}
