:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #202d29;
  background: #f5f6f2;
  font-size: 16px;
  --green: #225942;
  --line: #d9dfd7;
  --pale: #e5ede5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  border-bottom: 1px solid var(--line);
  background: #fafbf8;
}
.frame {
  max-width: 1120px;
  margin: auto;
  padding: 0 32px;
}
.mast,
.title,
.dialog-head,
.actions,
.row,
.row-end,
nav,
#pager {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mast {
  height: 64px;
  color: #52605a;
}
.brand {
  font:
    700 26px/1 Georgia,
    serif;
  color: var(--green);
  letter-spacing: -1px;
}
.mast .quiet {
  margin-left: auto;
}
.title {
  margin: 42px 0 24px;
  justify-content: space-between;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(36px, 6vw, 56px);
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 17px;
}
button,
input,
select,
textarea {
  font: inherit;
  border: 1px solid #aebbb1;
  color: inherit;
  border-radius: 7px;
  background: #fff;
}
button {
  padding: 9px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
}
button:hover:not(:disabled) {
  border-color: var(--green);
  background: #edf3ed;
}
button:focus-visible,
:is(input, select, textarea):focus-visible {
  outline: 3px solid #5a9475;
  outline-offset: 2px;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.primary:hover {
  background: #193e2e;
}
.quiet {
  background: transparent;
  border-color: transparent;
}
.primary:disabled,
button:disabled {
  opacity: 0.55;
  cursor: default;
}
#metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
#metrics > div {
  padding: 17px 22px;
}
#metrics > div + div {
  border-left: 1px solid var(--line);
}
.num {
  display: block;
  font:
    500 34px/1.15 Georgia,
    serif;
  color: var(--green);
}
.caption,
.hint,
.sub,
.eyebrow {
  font-size: 13px;
  color: #536159;
  line-height: 1.5;
}
nav {
  margin-top: 30px;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}
nav button {
  padding: 12px 0;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}
nav button[aria-pressed="true"] {
  border-color: var(--green);
  color: var(--green);
}
#tools,
.grid {
  display: grid;
  gap: 12px;
}
#tools {
  grid-template-columns: 2fr 1fr 1fr;
  margin: 16px 0;
}
.grid {
  grid-template-columns: 1fr 1fr;
}
label {
  display: grid;
  gap: 5px;
  color: #40534a;
  font-size: 13px;
  font-weight: 600;
}
input,
select,
textarea {
  min-width: 0;
  width: 100%;
  padding: 9px;
  font-size: 15px;
  font-weight: 400;
}
#message {
  margin-top: 14px;
  font-size: 14px;
}
#results {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.row {
  justify-content: space-between;
  padding: 14px 18px;
}
.row + .row {
  border-top: 1px solid var(--line);
}
.row-main {
  min-width: 0;
}
.row-main strong,
.type strong {
  overflow-wrap: anywhere;
}
.sub {
  margin-top: 3px;
}
.row-end {
  flex-shrink: 0;
}
.tag {
  font-size: 12px;
  color: #28563e;
  background: var(--pale);
  border-radius: 4px;
  padding: 3px 6px;
  display: inline-block;
}
.warn {
  background: #fcf0d7;
  color: #694918;
}
.empty {
  padding: 24px;
}
#pager {
  justify-content: center;
  margin: 16px 0 46px;
}
.login {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 420px;
  margin: 10vh auto;
  padding: 32px;
}
.login h1 {
  font-size: 36px;
  margin: 20px 0;
}
.login form {
  display: grid;
  gap: 15px;
}
dialog {
  width: min(680px, calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  max-height: 88vh;
  color: inherit;
}
dialog::backdrop {
  background: #12261cc2;
}
.dialog-head {
  justify-content: space-between;
  margin-bottom: 18px;
}
fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}
fieldset h3,
.end {
  margin-top: 20px;
}
.hint {
  margin: 6px 0 12px;
}
.actions {
  flex-wrap: wrap;
}
.branch,
.type {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0;
  background: #f8faf6;
}
.branch label,
.branch button {
  margin-top: 7px;
}
.type ul {
  padding-left: 18px;
  overflow-wrap: anywhere;
}
.type button {
  margin: 5px 5px 0 0;
}
#branchNames {
  margin-top: 10px;
}
[role="alert"] {
  color: #8b3426;
  margin: 10px 0;
}
#revoke {
  color: #88382b;
}
[hidden] {
  display: none !important;
}
@media (max-width: 680px) {
  .frame {
    padding: 0 14px;
  }
  .title {
    margin: 24px 0 16px;
    align-items: flex-start;
  }
  .title button {
    max-width: 118px;
  }
  #metrics > div {
    padding: 12px 8px;
  }
  .num {
    font-size: 26px;
  }
  .mast > span {
    display: none;
  }
  #tools {
    grid-template-columns: 1fr 1fr;
  }
  #tools > label:first-child {
    grid-column: 1/-1;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .row {
    align-items: flex-start;
    padding: 12px;
    flex-wrap: wrap;
  }
  .row-end {
    flex-wrap: wrap;
    margin-left: auto;
  }
  .login {
    margin: 6vh 12px;
  }
  .dialog-head {
    align-items: flex-start;
  }
  #metrics .caption {
    font-size: 12px;
  }
  nav {
    gap: 15px;
  }
}
