* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px 16px 64px;
  background: #ffffff;
  color: #222222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.page {
  max-width: 720px;
  margin: 0 auto;
}

header h1 {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
}

header h1 .in-browser {
  font-size: 15px;
  font-weight: normal;
  letter-spacing: normal;
  color: #555555;
}

header .lede {
  margin: 0 0 20px;
  color: #444444;
}

/* Tabs */

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #cccccc;
  margin-bottom: 16px;
}

.tab {
  font: inherit;
  font-size: 14px;
  padding: 8px 16px;
  background: #eeeeee;
  border: 1px solid #cccccc;
  border-bottom: 3px solid #cccccc;
  border-radius: 3px 3px 0 0;
  cursor: pointer;
  color: #555555;
  position: relative;
  top: 1px;
}

.tab[aria-selected="true"] {
  background: #ffffff;
  border-bottom: 3px solid #3c6ea5;
  color: #111111;
  font-weight: bold;
}

.tab-panel[hidden] { display: none; }

/* Boxes */

.box {
  border: 1px solid #cccccc;
  background: #f7f7f7;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
}

.box.nested {
  background: #efefef;
  margin-top: 14px;
  margin-bottom: 0;
}

.box-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.box-title .hint {
  font-weight: normal;
}

details.box summary {
  font-weight: bold;
  cursor: pointer;
  list-style: revert;
}

details.box[open] summary {
  margin-bottom: 10px;
}

details.box summary .hint {
  font-weight: normal;
}

.hint {
  color: #666666;
  font-weight: normal;
  font-size: 13px;
}

/* Form fields */

.field-group {
  border: none;
  padding: 0;
  margin: 0 0 14px;
}

.field-group legend {
  font-weight: bold;
  padding: 0;
  margin-bottom: 6px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}

.field label .hint {
  font-weight: normal;
  display: block;
  margin-top: 2px;
}

.radio-inline, .checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
  margin-right: 18px;
  white-space: nowrap;
}

input[type="file"] {
  font: inherit;
  display: block;
}

input[type="text"] {
  font: inherit;
  padding: 4px 6px;
  border: 1px solid #999999;
  border-radius: 2px;
}

select {
  font: inherit;
  padding: 3px 4px;
  border: 1px solid #999999;
  border-radius: 2px;
  background: #ffffff;
}

.opt-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.opt-row label {
  font-weight: normal;
  margin: 0;
}

/* Tooltip */

.tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #999999;
  background: #ffffff;
  color: #555555;
  font-size: 11px;
  line-height: 1;
  padding: 0;
  cursor: help;
  position: relative;
}

.tip-text {
  display: none;
  position: absolute;
  left: 20px;
  top: -6px;
  z-index: 5;
  width: 240px;
  background: #ffffe8;
  border: 1px solid #999999;
  color: #222222;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 3px;
  text-align: left;
}

.tip:hover .tip-text,
.tip:focus .tip-text {
  display: block;
}

/* Buttons */

.primary-button {
  font: inherit;
  font-size: 15px;
  padding: 10px 20px;
  background: #3c6ea5;
  color: #ffffff;
  border: 1px solid #2f5885;
  border-radius: 3px;
  cursor: pointer;
  display: block;
  width: 100%;
  margin-top: 4px;
}

.primary-button:hover { background: #345f8f; }
.primary-button:disabled {
  background: #a9a9a9;
  border-color: #999999;
  cursor: not-allowed;
}

button:not(.primary-button):not(.tip) {
  font: inherit;
  padding: 6px 14px;
  background: #eeeeee;
  border: 1px solid #999999;
  border-radius: 3px;
  cursor: pointer;
}

button:not(.primary-button):not(.tip):hover { background: #e2e2e2; }

/* Status / progress / result */

.status {
  margin-top: 12px;
  color: #333333;
  font-size: 14px;
  min-height: 1.4em;
}

.result {
  margin-top: 14px;
  padding: 12px;
  background: #eef4ea;
  border: 1px solid #b9d3ac;
  border-radius: 3px;
  font-size: 14px;
}

.result.verdict-unsure {
  background: #fdf6df;
  border-color: #e0c96a;
}

.result.verdict-nothing, .result.error {
  background: #fbe9e7;
  border-color: #e0a89e;
}

.result dl {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 3px 10px;
  font-size: 13px;
}

.result dt { color: #555555; }
.result dd { margin: 0; }

.result .downloads {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.note {
  font-size: 13px;
  color: #555555;
  margin: 10px 0 0;
}

.plain-list {
  margin: 0;
  padding-left: 20px;
}

.plain-list li { margin-bottom: 4px; }

.plain-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  margin-top: 4px;
}

.plain-table th, .plain-table td {
  border: 1px solid #dddddd;
  padding: 5px 8px;
  text-align: left;
  vertical-align: top;
}

.plain-table th {
  background: #eeeeee;
}

code {
  background: #eeeeee;
  border: 1px solid #dddddd;
  border-radius: 2px;
  padding: 1px 4px;
  font-size: 0.9em;
}

footer {
  color: #666666;
  font-size: 13px;
  margin-top: 24px;
  border-top: 1px solid #dddddd;
  padding-top: 14px;
}

footer a { color: #3c6ea5; }

a { color: #3c6ea5; }
