div#edami {
  color-scheme: light dark;

  --bg:            light-dark(#ffffff, #1b1b1b);
  --fg:            light-dark(#333333, #d6d6d6);
  --muted:         light-dark(#6c6c6c, #9a9a9a);
  --faint:         light-dark(#717171, #8a8a8a);
  --footer-fg:     light-dark(#767676, #838383);
  --link:          light-dark(#0053b3, #6ea8fe);

  --border:        light-dark(#cccccc, #3a3a3a);
  --border-mid:    light-dark(#aaaaaa, #4a4a4a);
  --border-strong: light-dark(#666666, #6a6a6a);

  --surface:       light-dark(#eeeeee, #2a2a2a);
  --surface-2:     light-dark(#f7f7f7, #232323);
  --row-hover:     light-dark(#ebebeb, #303030);
  --tab-active-bg: light-dark(#cccccc, #3a3a3a);

  --add:           light-dark(#007000, #6cc26c);
  --del:           light-dark(#c00000, #e07070);
  --upd:           light-dark(#0000cc, #6ea8fe);
  --hunk:          light-dark(#000099, #7aa2f7);
  --accent:        light-dark(#cc0000, #ff6b6b);
  --line-hl:       light-dark(rgba(212, 167, 44, 0.18), rgba(224, 192, 80, 0.14));

  --notes-bg:      light-dark(#ffffdd, #33331a);
  --notes-border:  light-dark(#eeee99, #55551f);

  --ss-add-bg:     light-dark(#ccffcc, #24402a);
  --ss-add-bg2:    light-dark(#aaccaa, #2e4a33);
  --ss-del-bg:     light-dark(#ffcccc, #402424);
  --ss-del-bg2:    light-dark(#ccaaaa, #4a2e2e);
  --ss-chg-bg:     light-dark(#ffffcc, #40401f);
  --ss-chg-bg2:    light-dark(#ccccaa, #4a4a2e);
  --ss-lineno-bg:  light-dark(#eeeeee, #2a2a2a);
  --ss-hunk-bg:    light-dark(#ccccff, #2a2a45);
  --graph-add:     light-dark(#55cc55, #4a8f4a);
  --graph-rem:     light-dark(#cc5555, #8f4a4a);

  --age-mins:      light-dark(#008000, #5cb85c);
  --age-hours:     light-dark(#008000, #5cb85c);
  --age-days:      light-dark(#004400, #7cba7c);
  --age-weeks:     light-dark(#444444, #a0a0a0);
  --age-months:    light-dark(#5a5a5a, #959595);
  --age-years:     light-dark(#717171, #8a8a8a);

  --deco-fg:       light-dark(#000000, #f0f0f0);
  --branch-bg:     light-dark(#88ff88, #1c5c2c);
  --branch-bd:     light-dark(#007700, #2f8f3f);
  --tag-bg:        light-dark(#ffff88, #5c5c1c);
  --tag-bd:        light-dark(#777700, #8f8f2f);
  --tag-ann-bg:    light-dark(#ffcc88, #6c4a1c);
  --tag-ann-bd:    light-dark(#777700, #8f6f2f);
  --remote-bg:     light-dark(#ccccff, #2c2c6c);
  --remote-bd:     light-dark(#000077, #4a4a9f);
  --head-bg:       light-dark(#ff8888, #6c1c1c);
  --head-bd:       light-dark(#770000, #9f3f3f);

  --col1:          light-dark(#aa0000, #ff6b6b);
  --col2:          light-dark(#00aa00, #6cc26c);
  --col3:          light-dark(#aaaa00, #cccc60);
  --col4:          light-dark(#0000aa, #6ea8fe);
  --col5:          light-dark(#aa00aa, #d06cd0);
  --col6:          light-dark(#00aaaa, #6cd0d0);

  --hl-comment:    light-dark(#6a737d, #8b949e);
  --hl-keyword:    light-dark(#cf222e, #ff7b72);
  --hl-string:     light-dark(#0a7d24, #7ee787);
  --hl-number:     light-dark(#0550ae, #79c0ff);
  --hl-type:       light-dark(#953800, #ffa657);
  --hl-func:       light-dark(#6639ba, #d2a8ff);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", "DejaVu Sans Mono", monospace;

  --gutter: 1.25rem;
  --control-h: 2em;

  --radius: 0;
  --radius-s: 0;
  --radius-xs: 0;

  padding: 0;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color: var(--fg);
  background: var(--bg);
}

html.edami-standalone {
  color-scheme: light dark;
  background: light-dark(#ffffff, #1b1b1b);
}

html.edami-standalone,
html.edami-standalone body {
  margin: 0;
}

div#edami * {
  box-sizing: border-box;
}

div#edami a {
  color: var(--link);
  text-decoration: none;
}

div#edami a:hover {
  text-decoration: underline;
}

div#edami .markdown a,
div#edami .truncated a,
div#edami div.blob-header a,
div#edami div.commit-msg a,
div#edami div.notes a,
div#edami table.log th a {
  text-decoration: underline;
}

div#edami img,
div#edami video {
  border: none;
  max-width: 100%;
}

div#edami table {
  border-collapse: collapse;
}

div#edami code,
div#edami kbd,
div#edami pre,
div#edami samp {
  font-family: var(--font-mono);
}

div#edami select,
div#edami input {
  font-family: inherit;
  font-size: inherit;
  height: var(--control-h);
  color: var(--fg);
  background-color: var(--surface);
  border: solid 1px var(--border-strong);
  border-radius: var(--radius);
  padding: 0 0.5em;
  line-height: 1.3;
  vertical-align: middle;
}

div#edami input[type="search"],
div#edami input[type="text"],
div#edami input[type="password"] {
  background-color: var(--bg);
}

div#edami select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 1.7em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55em center;
  cursor: pointer;
}

div#edami input[type="submit"] {
  cursor: pointer;
}

div#edami select:hover,
div#edami input[type="submit"]:hover {
  border-color: var(--fg);
}

div#edami a:focus-visible,
div#edami select:focus-visible,
div#edami input:focus-visible,
div#edami table.bin-blob:focus-visible,
div#edami table.stats:focus-visible {
  outline: solid 2px var(--link);
  outline-offset: 1px;
}

div#edami #header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "logo heading switch"
    "logo desc    owner";
  align-items: center;
  column-gap: 10px;
  width: 100%;
  padding: 0.85rem var(--gutter) 0.55rem;
  margin-bottom: 0;
}

div#edami #header .logo {
  grid-area: logo;
  align-self: start;
  min-width: 96px;
  min-height: 64px;
}

div#edami #header .logo img {
  display: block;
  max-width: 96px;
}

div#edami #header h1.main {
  grid-area: heading;
  margin: 0 -3px;
  padding: 0 3px;
  font-size: 2.5em;
  font-weight: normal;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

div#edami #header h1.main a {
  color: var(--fg);
}

div#edami #header .branch-switch {
  grid-area: switch;
  justify-self: end;
  align-self: center;
}

div#edami #header .branch-switch select {
  max-width: 40vw;
}

div#edami #header .sub {
  grid-area: desc;
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

div#edami #header::before {
  content: "";
  grid-column: 2 / -1;
  grid-row: 2;
  align-self: start;
  height: 0;
  border-top: solid 1px var(--border);
}

div#edami #header .owner {
  grid-area: owner;
  justify-self: end;
  text-align: right;
}

div#edami .tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.15em 0.75em;
  border-bottom: solid 2px var(--border);
  padding: 0 var(--gutter);
  margin-top: 0.5rem;
}

div#edami .tabs ul {
  display: flex;
  align-items: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.15em;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

div#edami .tabs ul::-webkit-scrollbar {
  display: none;
}

div#edami .tabs ul.fade-start {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 1.5em);
  mask-image: linear-gradient(to right, transparent, #000 1.5em);
}

div#edami .tabs ul.fade-end {
  -webkit-mask-image: linear-gradient(to left, transparent, #000 1.5em);
  mask-image: linear-gradient(to left, transparent, #000 1.5em);
}

div#edami .tabs ul.fade-start.fade-end {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 1.5em,
    #000 calc(100% - 1.5em), transparent);
  mask-image: linear-gradient(to right, transparent, #000 1.5em,
    #000 calc(100% - 1.5em), transparent);
}

div#edami .tabs li {
  flex: none;
  margin: 0;
}

div#edami .tabs a {
  display: inline-block;
  padding: 0.3em 0.7em;
  color: var(--muted);
  border-radius: var(--radius) var(--radius) 0 0;
}

div#edami .tabs a:focus-visible {
  outline-offset: -2px;
}

div#edami .tabs a:hover {
  color: var(--fg);
  background-color: var(--surface);
  text-decoration: none;
}

div#edami .tabs a.active {
  color: var(--fg);
  background-color: var(--tab-active-bg);
}

div#edami .tabs .search {
  padding-bottom: 2px;
  white-space: nowrap;
}

div#edami input.txt {
  max-width: 12em;
}

div#edami .path {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0.45rem var(--gutter);
  color: var(--fg);
  background-color: var(--surface);
  overflow-wrap: anywhere;
}

div#edami .path .rev {
  margin-left: auto;
}

div#edami .content {
  margin: 0;
  padding: 1.25rem var(--gutter);
  border-bottom: solid 2px var(--border);
  overflow-x: auto;
}

div#edami .footer {
  padding: 0.85rem var(--gutter);
  text-align: center;
  font-size: 0.85em;
  color: var(--footer-fg);
}

div#edami .footer a {
  color: var(--footer-fg);
  text-decoration: underline;
}

div#edami div.error {
  color: var(--accent);
  font-weight: bold;
  margin: 1em 0;
}

div#edami .oid {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

div#edami span.snapshot {
  white-space: nowrap;
}

div#edami .left {
  text-align: left;
}

div#edami .right {
  text-align: right;
}

div#edami a.button {
  font-size: 0.9em;
  padding: 0 0.5em;
}

div#edami nav.pager ul {
  list-style-type: none;
  text-align: center;
  margin: 1em 0 0;
  padding: 0;
}

div#edami nav.pager li {
  display: inline-block;
  margin: 0.25em 0.5em;
}

div#edami nav.pager a {
  color: var(--muted);
}

div#edami nav.pager .current {
  font-weight: bold;
}

div#edami time.age-mins,
div#edami time.age-hours,
div#edami time.age-days,
div#edami time.age-weeks,
div#edami time.age-months,
div#edami time.age-years,
div#edami table.list time {
  white-space: nowrap;
}

div#edami time.age-mins {
  font-weight: bold;
  color: var(--age-mins);
}

div#edami time.age-hours {
  color: var(--age-hours);
}

div#edami time.age-days {
  color: var(--age-days);
}

div#edami time.age-weeks {
  color: var(--age-weeks);
}

div#edami time.age-months {
  color: var(--age-months);
}

div#edami time.age-years {
  color: var(--age-years);
}

div#edami span.decoration {
  word-spacing: 0.23em;
}

div#edami a.branch-deco,
div#edami a.tag-deco,
div#edami a.tag-annotated-deco,
div#edami a.remote-deco,
div#edami a.deco {
  white-space: nowrap;
  color: var(--deco-fg);
  margin: 0 0.5em 0 0;
  padding: 0 0.25em;
  border: solid 1px;
  border-radius: var(--radius-xs);
}

div#edami a.branch-deco {
  background-color: var(--branch-bg);
  border-color: var(--branch-bd);
}

div#edami a.tag-deco {
  background-color: var(--tag-bg);
  border-color: var(--tag-bd);
}

div#edami a.tag-annotated-deco {
  background-color: var(--tag-ann-bg);
  border-color: var(--tag-ann-bd);
}

div#edami a.remote-deco {
  background-color: var(--remote-bg);
  border-color: var(--remote-bd);
}

div#edami a.deco {
  background-color: var(--head-bg);
  border-color: var(--head-bd);
}

div#edami div.commit-subject a.branch-deco,
div#edami div.commit-subject a.tag-deco,
div#edami div.commit-subject a.tag-annotated-deco,
div#edami div.commit-subject a.remote-deco,
div#edami div.commit-subject a.deco {
  font-size: 0.8em;
}

div#edami div.commit-subject span.decoration {
  word-spacing: 0.55em;
}

div#edami table.list {
  width: 100%;
  border: none;
}

div#edami table.list tr {
  background: var(--bg);
}

div#edami table.list tr:nth-child(even) {
  background: var(--surface-2);
}

div#edami table.list tr.nohover {
  background: var(--bg);
}

@media (hover: hover) {
  div#edami table.list tr:hover {
    background: var(--row-hover);
  }

  div#edami table.list tr.nohover:hover,
  div#edami table.list tr.nohover-highlight:hover:nth-child(odd) {
    background: var(--bg);
  }

  div#edami table.list tr.nohover-highlight:hover:nth-child(even) {
    background: var(--surface-2);
  }
}

div#edami table.list th {
  font-weight: bold;
  padding: 0.35em 0.6em 0.3em;
  vertical-align: baseline;
}

div#edami table.list tbody + tbody > tr:first-child > th {
  padding-top: calc(1lh + 0.95em);
}

div#edami table.list td {
  border: none;
  padding: 0.3em 0.6em;
}

div#edami table.list td.col-author,
div#edami table.list td.col-count,
div#edami table.list td.col-links {
  white-space: nowrap;
}

div#edami table.list td.clone-url {
  overflow-wrap: anywhere;
}

div#edami table.list td.commitgraph {
  font-family: var(--font-mono);
  white-space: pre;
}

div#edami table.list td.commitgraph .column1 {
  color: var(--col1);
}

div#edami table.list td.commitgraph .column2 {
  color: var(--col2);
}

div#edami table.list td.commitgraph .column3 {
  color: var(--col3);
}

div#edami table.list td.commitgraph .column4 {
  color: var(--col4);
}

div#edami table.list td.commitgraph .column5 {
  color: var(--col5);
}

div#edami table.list td.commitgraph .column6 {
  color: var(--col6);
}

div#edami table.list td.logsubject {
  font-weight: bold;
}

div#edami table.list td.logmsg {
  font-family: var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 0 0.5em;
}

div#edami table.list td a {
  color: var(--fg);
}

div#edami table.list td a.ls-dir {
  font-weight: bold;
  color: var(--link);
}

div#edami table.list td a:hover {
  color: var(--link);
}

div#edami table.list td.reposection {
  font-style: italic;
  color: var(--faint);
}

div#edami table.list td.sublevel-repo {
  padding-left: 1.5em;
}

div#edami a.ls-blob,
div#edami a.ls-dir,
div#edami .ls-mod {
  font-family: var(--font-mono);
}

div#edami table.list td .ls-mod {
  font-style: italic;
}

div#edami table.list td a.ls-mod {
  color: var(--link);
}

div#edami .ls-mod-hash {
  color: var(--muted);
  font-family: var(--font-mono);
}

div#edami td.ls-size {
  text-align: right;
  font-family: var(--font-mono);
  width: 10em;
}

div#edami td.ls-mode {
  font-family: var(--font-mono);
  width: 10em;
}

div#edami td.ls-links {
  white-space: nowrap;
}

div#edami span.insertions {
  color: var(--add);
}

div#edami span.deletions {
  color: var(--del);
}

div#edami div#about {
  vertical-align: top;
  margin-bottom: 1em;
}

div#edami div#about pre {
  overflow-x: auto;
}

div#edami pre.plaintext {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
  margin: 0;
}

div#edami .markdown {
  line-height: 1.6;
  overflow-wrap: break-word;
}

div#edami .markdown > :first-child {
  margin-top: 0;
}

div#edami .markdown > :last-child {
  margin-bottom: 0;
}

div#edami .markdown h1,
div#edami .markdown h2,
div#edami .markdown h3,
div#edami .markdown h4,
div#edami .markdown h5,
div#edami .markdown h6 {
  margin: 1.2em 0 0.5em;
  font-weight: bold;
  line-height: 1.25;
}

div#edami .markdown h1 {
  font-size: 1.6em;
}

div#edami .markdown h2 {
  font-size: 1.35em;
  border-bottom: solid 1px var(--border);
  padding-bottom: 0.2em;
}

div#edami .markdown h3 {
  font-size: 1.15em;
}

div#edami .markdown h4 {
  font-size: 1em;
}

div#edami .markdown h5,
div#edami .markdown h6 {
  font-size: 0.9em;
  color: var(--muted);
}

div#edami .markdown p {
  margin: 0.7em 0;
}

div#edami .markdown a {
  color: var(--link);
}

div#edami .markdown ul,
div#edami .markdown ol {
  margin: 0.7em 0;
  padding-left: 2em;
}

div#edami .markdown li {
  margin: 0.2em 0;
}

div#edami .markdown blockquote {
  margin: 0.7em 0;
  padding: 0.1em 1em;
  color: var(--muted);
  border-left: solid 3px var(--border-mid);
}

div#edami .markdown hr {
  border: none;
  border-top: solid 1px var(--border);
  margin: 1.2em 0;
}

div#edami .markdown code {
  background: var(--surface-2);
  border: solid 1px var(--border-mid);
  border-radius: var(--radius-s);
  padding: 0.1em 0.35em;
  font-size: 0.95em;
}

div#edami .markdown pre {
  background: var(--surface-2);
  border: solid 1px var(--border-mid);
  border-radius: var(--radius);
  padding: 0.7em 0.9em;
  overflow-x: auto;
}

div#edami .markdown pre code {
  background: none;
  border: none;
  padding: 0;
}

div#edami .markdown table {
  margin: 0.7em 0;
}

div#edami .markdown th,
div#edami .markdown td {
  border: solid 1px var(--border-mid);
  padding: 0.35em 0.7em;
}

div#edami .markdown th {
  background: var(--surface-2);
}

div#edami table.blob {
  position: relative;
  margin-top: 0.5em;
  border-top: solid 1px var(--border-mid);
  display: block;
  min-width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

div#edami div.blob-header {
  overflow-wrap: anywhere;
}

div#edami table.blob td.lines {
  padding: 0 0 0 0.5em;
  vertical-align: top;
  color: var(--fg);
}

div#edami table.blob td.linenumbers {
  padding: 0 0.5em;
  vertical-align: top;
  text-align: right;
  border-right: solid 1px var(--border-mid);
}

div#edami table.blob pre {
  padding: 0;
  margin: 0;
}

div#edami table.blob code {
  font: inherit;
}

div#edami span.escape {
  color: var(--muted);
  outline: 1px dashed var(--border-mid);
  outline-offset: -1px;
}

div#edami table.blob td.linenumbers a,
div#edami table.ssdiff td.lineno a {
  color: var(--muted);
  text-align: right;
  text-decoration: none;
}

div#edami table.blob td.linenumbers a:hover,
div#edami table.ssdiff td.lineno a:hover {
  color: var(--fg);
}

div#edami table.blob td.linenumbers a {
  scroll-margin-top: calc(50vh - 1em);
}

div#edami table.blob td.linenumbers a:target {
  background: var(--line-hl);
  color: var(--fg);
}

div#edami div.line-hl {
  position: absolute;
  left: 0;
  background: var(--line-hl);
  pointer-events: none;
}

div#edami .hl-comment {
  color: var(--hl-comment);
  font-style: italic;
}

div#edami .hl-keyword {
  color: var(--hl-keyword);
}

div#edami .hl-string {
  color: var(--hl-string);
}

div#edami .hl-number {
  color: var(--hl-number);
}

div#edami .hl-type {
  color: var(--hl-type);
}

div#edami .hl-func {
  color: var(--hl-func);
}

div#edami table.blame td.hashes,
div#edami table.blame td.lines,
div#edami table.blame td.linenumbers {
  padding: 0;
}

div#edami table.blame td.hashes div.alt,
div#edami table.blame td.lines div.alt {
  padding: 0 0.5em;
}

div#edami table.blame td.linenumbers div.alt {
  padding: 0 0.5em 0 0;
}

div#edami table.blame div.alt:nth-child(even) {
  background: var(--surface);
}

div#edami table.blame div.alt:nth-child(odd) {
  background: var(--bg);
}

div#edami table.blame td.lines > div {
  position: relative;
}

div#edami table.blame td.lines > div > pre {
  padding: 0 0 0 0.5em;
  position: absolute;
  top: 0;
}

div#edami table.blame .oid {
  font-size: 1em;
}

div#edami table.bin-blob,
div#edami table.stats {
  border: solid 1px var(--border-mid);
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}

div#edami table.bin-blob {
  margin-top: 0.5em;
}

div#edami table.bin-blob th {
  font-family: var(--font-mono);
  white-space: pre;
  border: solid 1px var(--border-mid);
  padding: 0.5em 1em;
}

div#edami table.bin-blob td {
  font-family: var(--font-mono);
  white-space: pre;
  border-left: solid 1px var(--border-mid);
  padding: 0 1em;
}

div#edami table.commit-info {
  margin-top: 1.5em;
}

div#edami table.commit-info th {
  text-align: left;
  font-weight: normal;
  padding: 0.1em 1em 0.1em 0.1em;
  vertical-align: top;
}

div#edami table.commit-info td {
  font-weight: normal;
  padding: 0.1em 1em 0.1em 0.1em;
}

div#edami table.commit-info div.spanning {
  width: 0;
  white-space: nowrap;
}

div#edami div.commit-subject {
  font-weight: bold;
  font-size: 1.25em;
  margin: 1.5em 0 0.5em;
  padding: 0;
  overflow-wrap: anywhere;
}

div#edami div.commit-msg,
div#edami div.notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
}

div#edami div.commit-msg span.trailer-key {
  color: var(--muted);
}

div#edami div.notes-header,
div#edami div.diffstat-header {
  font-weight: bold;
  padding-top: 1.5em;
}

div#edami div.notes {
  border: solid 1px var(--notes-border);
  background-color: var(--notes-bg);
  padding: 0.3em 2em 0.3em 1em;
  float: left;
}

div#edami div.notes-footer {
  clear: left;
}

div#edami div.edami-panel {
  float: right;
  margin: 1.5em 0 1em 1em;
  border: solid 1px var(--border-mid);
}

div#edami div.edami-panel strong {
  display: block;
  padding: 0.35em 0.6em;
  background-color: var(--surface);
  border-bottom: solid 1px var(--border-mid);
}

div#edami div.edami-panel .fields {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  gap: 0.5em 0.9em;
  padding: 0.6em;
}

div#edami div.edami-panel select,
div#edami div.edami-panel input[type="submit"] {
  width: 100%;
}

div#edami div.edami-panel input[type="submit"] {
  grid-column: 2;
}

div#edami table.diffstat {
  border: solid 1px var(--border-mid);
  border-collapse: separate;
  border-spacing: 0;
  padding: 0.3em 0.5em;
  background-color: var(--surface);
  max-width: 100%;
}

div#edami table.diffstat td {
  padding: 0.2em 0.2em 0.1em 0.1em;
  border: none;
}

div#edami table.diffstat td.mode {
  white-space: nowrap;
}

div#edami table.diffstat td span.modechange {
  padding-left: 1em;
  color: var(--del);
}

div#edami table.diffstat td.add a {
  color: var(--add);
}

div#edami table.diffstat td.del a {
  color: var(--del);
}

div#edami table.diffstat td.upd a {
  color: var(--upd);
}

div#edami table.diffstat td.graph {
  width: 500px;
  max-width: 40vw;
  vertical-align: middle;
}

div#edami table.diffstat td.graph svg {
  display: block;
  width: 100%;
  height: 7pt;
}

div#edami table.diffstat td.graph rect.add {
  fill: var(--graph-add);
}

div#edami table.diffstat td.graph rect.rem {
  fill: var(--graph-rem);
}

div#edami div.diffstat-summary {
  color: var(--faint);
  padding-top: 0.5em;
}

div#edami div.diff-scroll {
  clear: right;
  overflow-x: auto;
}

div#edami table.diff {
  width: 100%;
}

div#edami table.diff td {
  font-family: var(--font-mono);
  white-space: pre;
}

div#edami table.diff td div.head {
  font-weight: bold;
  margin-top: 1em;
  color: var(--fg);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

div#edami table.diff td div.hunk {
  color: var(--hunk);
}

div#edami table.diff td div.add {
  color: var(--add);
}

div#edami table.diff td div.del {
  color: var(--del);
}

div#edami div.truncated,
div#edami table.ssdiff td.truncated {
  color: var(--muted);
  font-family: var(--font-sans);
  white-space: normal;
  padding: 0.4em 0;
}

div#edami table.ssdiff {
  width: 100%;
}

div#edami table.ssdiff td {
  font-size: 0.85em;
  font-family: var(--font-mono);
  white-space: pre;
  padding: 1px 4px;
  border-left: solid 1px var(--border-mid);
  border-right: solid 1px var(--border-mid);
}

div#edami table.ssdiff td.add {
  color: var(--fg);
  background: var(--ss-add-bg);
  min-width: 50%;
}

div#edami table.ssdiff td.add-dark {
  color: var(--fg);
  background: var(--ss-add-bg2);
  min-width: 50%;
}

div#edami table.ssdiff span.add {
  background: var(--ss-add-bg);
  font-weight: bold;
}

div#edami table.ssdiff td.del {
  color: var(--fg);
  background: var(--ss-del-bg);
  min-width: 50%;
}

div#edami table.ssdiff td.del-dark {
  color: var(--fg);
  background: var(--ss-del-bg2);
  min-width: 50%;
}

div#edami table.ssdiff span.del {
  background: var(--ss-del-bg);
  font-weight: bold;
}

div#edami table.ssdiff td.changed {
  color: var(--fg);
  background: var(--ss-chg-bg);
  min-width: 50%;
}

div#edami table.ssdiff td.changed-dark {
  color: var(--fg);
  background: var(--ss-chg-bg2);
  min-width: 50%;
}

div#edami table.ssdiff td.lineno {
  color: var(--fg);
  background: var(--ss-lineno-bg);
  text-align: right;
  width: 3em;
  min-width: 3em;
}

div#edami table.ssdiff td.hunk,
div#edami table.ssdiff td.head {
  border-top: solid 1px var(--border-mid);
  border-bottom: solid 1px var(--border-mid);
}

div#edami table.ssdiff td.hunk {
  color: var(--fg);
  background: var(--ss-hunk-bg);
}

div#edami table.ssdiff td.head div.head {
  font-weight: bold;
  color: var(--fg);
}

div#edami table.ssdiff td.foot {
  border: none;
  border-top: solid 1px var(--border-mid);
}

div#edami table.ssdiff td.space {
  border: none;
  height: 3em;
}

div#edami table.stats th {
  text-align: left;
  padding: 1px 0.5em;
  background-color: var(--surface);
  border: solid 1px var(--border-mid);
}

div#edami table.stats td {
  text-align: right;
  padding: 1px 0.5em;
  border: solid 1px var(--border-mid);
}

div#edami table.stats td.total {
  font-weight: bold;
  text-align: left;
}

div#edami table.stats td.sum {
  color: var(--accent);
  font-weight: bold;
}

div#edami table.stats td.left {
  text-align: left;
}

div#edami p.login-error {
  color: var(--accent);
  font-weight: bold;
}

div#edami form.login table {
  border-collapse: separate;
  border-spacing: 0 0.5em;
}

div#edami form.login td:first-child {
  padding-right: 0.75em;
}

div#edami form.login input[type="text"],
div#edami form.login input[type="password"] {
  width: 16em;
  max-width: 100%;
}

@media (max-width: 900px) {
  div#edami #header .branch-switch,
  div#edami table.list th.col-author,
  div#edami table.list td.col-author {
    display: none;
  }

  div#edami table.commit-info,
  div#edami table.commit-info tbody {
    display: block;
  }

  div#edami table.commit-info tr {
    display: grid;
    grid-template-columns: 8.5em minmax(0, 1fr);
  }

  div#edami table.commit-info td {
    grid-column: 2;
  }

  div#edami table.commit-info td.right {
    text-align: left;
  }

  div#edami table.commit-info div.spanning {
    width: auto;
    white-space: normal;
  }
}

@media (max-width: 820px) {
  div#edami .tabs .search {
    display: none;
  }
}

@media (max-width: 640px) {
  div#edami #header .owner,
  div#edami .col-desc,
  div#edami .col-owner,
  div#edami .col-links,
  div#edami table.log th.col-count,
  div#edami table.log td.col-count,
  div#edami th.ls-mode,
  div#edami td.ls-mode,
  div#edami th.ls-links,
  div#edami td.ls-links,
  div#edami div.edami-panel,
  div#edami table.diffstat td.mode {
    display: none;
  }

  div#edami #header {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo heading"
      "desc desc";
    row-gap: 6px;
  }

  div#edami #header::before {
    grid-column: 1 / -1;
  }

  div#edami #header h1.main {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  div#edami .tabs a {
    padding: 0.3em 0.4em;
  }

  div#edami span.snapshot {
    white-space: normal;
  }

  div#edami a.branch-deco,
  div#edami a.tag-deco,
  div#edami a.tag-annotated-deco,
  div#edami a.remote-deco,
  div#edami a.deco {
    display: inline-block;
    max-width: 100%;
    line-height: normal;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  div#edami table.list td {
    overflow-wrap: anywhere;
  }

  div#edami td.ls-size {
    width: auto;
  }

  div#edami table.repolist th.col-name,
  div#edami table.repolist td.col-name {
    width: 100%;
    overflow-wrap: anywhere;
  }

  div#edami table.repolist th.col-idle,
  div#edami table.repolist td.col-idle {
    width: 1%;
    white-space: nowrap;
    text-align: right;
  }

  div#edami div.notes {
    float: none;
    margin-left: 0;
  }

  div#edami table.commit-info td,
  div#edami table.diffstat td.add,
  div#edami table.diffstat td.del,
  div#edami table.diffstat td.upd {
    overflow-wrap: anywhere;
  }
}

@media (forced-colors: active) {
  div#edami .tabs a.active {
    forced-color-adjust: none;
    color: HighlightText;
    background-color: Highlight;
  }

  div#edami div.line-hl {
    outline: solid 2px Highlight;
    outline-offset: -2px;
  }

  div#edami table.ssdiff td.add,
  div#edami table.ssdiff td.del,
  div#edami table.ssdiff td.changed {
    border-left-width: 4px;
  }
}

@media (prefers-color-scheme: dark) {
  div#edami #header .logo img {
    filter: brightness(1.5);
  }
}

@media (prefers-reduced-motion: no-preference) {
  div#edami a,
  div#edami table.list tr,
  div#edami input,
  div#edami select,
  div#edami button {
    transition: color 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
  }

  div#edami div.line-hl {
    animation: edami-fade-in 0.16s ease-out;
  }

  @keyframes edami-fade-in {
    from {
      opacity: 0;
    }
  }
}
