*,
*::before,
*::after {
    box-sizing: border-box;
}

.hide {
    /* !important so the utility beats ID-selector rules like `#nav { display: flex }`. */
    display: none !important;
}

/* ── IndexedDB unavailable warning banner ───────────────────────── */
#idb-warning {
    background: #feedb6;
    color: #a6093d;
    border-bottom: 1px solid #fdd757;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* ── Palette (light green EMBL tinted) ───────────────────────────── */
:root {
    --bg: #edf4e4;
    --bg-header: #d0debb;
    --bg-nav: #e4efd6;
    --bg-alt: #e8f3da; /* alternating row tint */
    --border: #acda8b;
    --text: #373a36;
    --text-dim: #54585a;
    --link: #2a57a3;
    --link-dir: #2a57a3;
    --accent: #2a57a3; /* active nav tab bg */
    --accent-soft: #cddeb4; /* filled-in state on quiet controls */
    --accent-fg: #ffffff;
    --accent-fg: #ffffff;
    --tab-border: #0a5032;
    --mono: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
    --prose-width: 45rem;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: var(--link);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ── Page header ─────────────────────────────────────────────── */
#header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
}

#header-top {
    display: flex;
    gap: 0.75rem;
}

#header-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text);
}

#site-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: bold;
    max-width: 100%;
}

#site-brand svg {
    display: block;
    flex-shrink: 0;
    height: 32px;
    width: auto;
}

#header-sub {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

#repo-path {
    font-size: 1.35rem;
    font-weight: normal;
    color: var(--text);
    margin: 0;
}

#repo-path-name > a {
    color: var(--text);
}

#repo-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ── Nav tabs ────────────────────────────────────────────────── */
#nav {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    display: flex;
    padding: 0 1rem;
}

#nav a {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    text-decoration: none;
}
#nav a:hover {
    color: var(--text);
}
#nav a.active {
    color: var(--accent-fg);
    border-bottom-color: var(--accent);
    background: var(--accent);
}

/* ── Main content area ───────────────────────────────────────── */
#content {
    padding: 1rem;
}

/* ── File/tree table ─────────────────────────────────────────── */
.tree-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tree-table th {
    text-align: left;
    padding: 0.3rem 0.6rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    font-weight: bold;
}

.tree-table td {
    padding: 0.2rem 0.6rem;
    font-family: var(--mono);
    white-space: nowrap;
}

.tree-table tr:nth-child(even) td {
    background: var(--bg-alt);
}

.tree-table td.mode {
    color: var(--text-dim);
    min-width: 10em;
}
.tree-table td.name {
    min-width: 16em;
}
.tree-table td.name a {
    color: var(--link-dir);
    font-weight: bold;
}
.tree-table td.name a.file {
    color: var(--text);
    font-weight: normal;
}
/* A submodule's name isn't a link (there is no page for it), so give it the
   directory weight without the link colour, and dim the commit it pins. */
.tree-table td.name .submodule {
    font-weight: bold;
}
.tree-table td.name .submodule-commit,
.tree-table td.name .symlink-arrow,
.tree-table td.name .symlink-target {
    color: var(--text-dim);
    font-weight: normal;
}
.tree-table td.size {
    text-align: right;
    color: var(--text-dim);
    padding-right: 1.2rem;
}
.tree-table td.desc {
    color: var(--text-dim);
    font-family: sans-serif;
    white-space: normal;
}

/* ── Spinner ─────────────────────────────────────────────────── */
.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 0.4em;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Animated loading ellipsis ───────────────────────────────── */
.loading-dots {
    color: var(--text-dim);
}
.loading-dots::after {
    content: ".";
    animation: loading-dots 1.4s steps(1, end) infinite;
}
@keyframes loading-dots {
    0% {
        content: ".";
    }
    33% {
        content: "..";
    }
    66% {
        content: "...";
    }
}

/* ── Error/status messages ───────────────────────────────────── */
.msg {
    padding: 0.5rem 0;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.msg.error {
    color: #a6093d;
}

code {
    font-family: var(--mono);
    background: #d0debb;
    padding: 0.1em 0.35em;
    border-radius: 2px;
}

/* ── Fetch stats bar ────────────────────────────────────────────── */
#fetch-stats {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 0.2rem 1rem;
    font-size: 0.8rem;
    font-family: var(--mono);
    color: var(--text-dim);
    min-height: 1.4rem; /* reserve space so the layout doesn't jump */
}

/* ── Path breadcrumb bar ─────────────────────────────────────────── */
#path-bar {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 0.3rem 1rem;
    font-size: 0.875rem;
    font-family: var(--mono);
}
#path-bar a {
    color: var(--link);
}

/* ── Blob info line ──────────────────────────────────────────── */
.blob-info {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-family: var(--mono);
}

.blob-download,
.blob-alt-view {
    color: var(--link);
}

/* ── Blob image ──────────────────────────────────────────────── */
.blob-image {
    /* Never wider than the content column; scale the height with it so the
       aspect ratio holds. Small images keep their natural size. */
    max-width: 100%;
    height: auto;
    /* A backdrop so a transparent PNG doesn't dissolve into the page, and a
       border so the image's own edges are distinguishable from it. */
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

/* ── Blob / source table ─────────────────────────────────────── */
.blob-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    font-family: var(--mono);
}

.blob-table td {
    padding: 0 0.5rem;
    vertical-align: top;
    white-space: pre;
    line-height: 1.5;
}

.blob-table td.lno {
    text-align: right;
    color: var(--text-dim);
    border-right: 1px solid var(--border);
    user-select: none;
    min-width: 3em;
}

.blob-table td.lno a {
    color: var(--text-dim);
    text-decoration: none;
}
.blob-table td.lno a:hover {
    color: var(--link);
}

/* The selected lines, from the URL's #n<A>[-n<B>] anchor. A class rather than
   :target because the anchor is a suffix inside the routing fragment, so no
   element's id ever equals location.hash and :target never matches. */
.blob-table tr.hl td,
.blob-table tr.hl td.lno a {
    background: var(--bg-alt);
    color: var(--link);
}

.blob-table td.code {
    padding-left: 1em;
    width: 100%;
}

/* ── Blame ───────────────────────────────────────────────────── */
/* The same table as the blob view, with a gutter column in front of the line
   numbers: one cell per run of lines, spanning them with `rowspan`. */
.blame-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    font-family: var(--mono);
}

.blame-table td {
    padding: 0 0.5rem;
    vertical-align: top;
    white-space: pre;
    line-height: 1.5;
}

.blame-table td.hashes {
    border-right: 1px solid var(--border);
    white-space: nowrap;
    user-select: none;
}

.blame-table td.hashes a.oid {
    color: var(--link);
    text-decoration: none;
}
.blame-table td.hashes a.blame-prev {
    color: var(--text-dim);
    text-decoration: none;
}
.blame-table td.hashes a:hover {
    text-decoration: underline;
}

.blame-table td.lno {
    text-align: right;
    color: var(--text-dim);
    border-right: 1px solid var(--border);
    user-select: none;
    min-width: 3em;
}

.blame-table td.lno a {
    color: var(--text-dim);
    text-decoration: none;
}
.blame-table td.lno a:hover {
    color: var(--link);
}

.blame-table td.code {
    padding-left: 1em;
    width: 100%;
}

/* cgit shades alternate runs so a run's extent is visible without reading the
   hashes; here the shading is on the rows of every other run rather than on a
   column of bars of its own. */
.blame-table tr.alt td {
    background: var(--bg-alt);
}

/* The selected lines */
.blame-table tr.hl td,
.blame-table tr.hl td.lno a {
    background: var(--accent-soft);
    color: var(--link);
}

/* While the walk is still running. */
.blame-pending {
    color: var(--text-dim);
}

/* The per-file blame link, in the tree listing and beside a blob's own info,
   and the per-entry log link beside it in the listing. */
.blame-link,
.log-link {
    color: var(--link);
    font-size: 0.85rem;
}
.tree-table td.links {
    text-align: right;
    white-space: nowrap;
    /* Matches the links, so the separator between them doesn't tower. */
    font-size: 0.85rem;
}

/* ── Summary page ────────────────────────────────────────────── */
.summary-heading {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text);
    margin: 1.25rem 0 0.25rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--border);
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.summary-table th {
    text-align: left;
    padding: 0.25rem 0.6rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    font-weight: bold;
}

.summary-table td {
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
}

.summary-table tr:nth-child(even) td {
    background: var(--bg-alt);
}

.summary-table td.name {
    font-family: var(--mono);
    min-width: 8em;
}

/* ── Repository index ─────────────────────────────────────────── */
/* Section header rows (the shared path prefix), cgit-style. */
.repo-listing tr.repo-section td {
    font-style: italic;
    color: var(--text-dim);
}
/* Indent repositories beneath their section header. */
.repo-listing td.name {
    padding-left: 1.5rem;
}

.summary-table td.msg {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0; /* trick to make text-overflow work in table cells */
}

.summary-table td.author {
    color: var(--text-dim);
    min-width: 10em;
}

.summary-table td.age {
    color: var(--link);
    font-family: var(--mono);
    white-space: nowrap;
    min-width: 7em;
}

.ref-label {
    display: inline-block;
    font-size: 0.75rem;
    font-family: var(--mono);
    padding: 0.05em 0.4em;
    border-radius: 2px;
    margin-left: 0.3em;
    background: var(--accent);
    color: var(--accent-fg);
    vertical-align: middle;
}

/* cgit-style log decorations: branches green, tags yellow */
.ref-label.branch {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.ref-label.tag {
    background: #feedb6;
    color: #a6093d;
    border: 1px solid #fdd757;
}

a.ref-label:hover {
    text-decoration: none;
    filter: brightness(0.95);
}

.clone-url {
    font-family: var(--mono);
    font-size: 0.875rem;
    padding: 0.3rem 0;
    color: var(--text);
    user-select: all;
}

/* ── Expanded log (?showmsg=1) ───────────────────────────────── */
/* Each commit owns two rows here, so the even/odd striping is replaced by
   shading the subject row of every commit, cgit-style. */
.summary-table.log-expanded tr:nth-child(even) td {
    background: none;
}

.summary-table.log-expanded tr.logheader td {
    background: var(--bg-alt);
}

.summary-table.log-expanded tr.logheader:not(:first-child) td {
    border-top: 1px solid var(--border);
}

.summary-table td.logmsg {
    font-family: var(--mono);
    /* The body is pre-formatted text, but a long line should wrap rather than
       widen the whole table. */
    white-space: pre-wrap;
    padding: 0.3rem 0.6rem 0.6rem;
    color: var(--text-dim);
}

/* With the body visible, a subject cut off by an ellipsis is the odd one out,
   so it line-wraps here instead — as cgit's own expanded log does. */
.summary-table.log-expanded td.msg {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
}

/* ── Log pagination ──────────────────────────────────────────── */
.log-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.6rem 0;
    font-size: 0.875rem;
}

/* ── Diffstat ────────────────────────────────────────────────── */
.diffstat {
    margin: 1rem 0;
    /* Full width, so it starts below the commit view's floated options panel
       rather than being squeezed beside it. */
    clear: right;
}

.diffstat-summary {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin: 0 0 0.4rem;
}

.diffstat-table {
    border-collapse: collapse;
    font-size: 0.85rem;
    font-family: var(--mono);
    width: 100%;
}

.diffstat-table td {
    padding: 0.1rem 0.4rem 0.1rem 0;
    vertical-align: middle;
    white-space: nowrap;
}

.diffstat-name {
    max-width: 30em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.diffstat-count {
    text-align: right;
    color: var(--text-dim);
    min-width: 3em;
}

.diffstat-bar-cell {
    width: 10rem;
    padding-right: 0.5rem !important;
}

.diffstat-bar {
    display: flex;
    height: 0.7rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.bar-add {
    background: #16a34a;
    display: block;
}

.bar-del {
    background: #dc2626;
    display: block;
}

/* Diffstat bar widths, 0-40% (the diff scales the longest file to 40%). The
   width is data-driven but the CSP (style-src 'self') forbids inline styles,
   so commit.rs picks one of these classes instead of setting `style` inline. */
.bar-w-0  { width: 0%; }  .bar-w-1  { width: 1%; }  .bar-w-2  { width: 2%; }
.bar-w-3  { width: 3%; }  .bar-w-4  { width: 4%; }  .bar-w-5  { width: 5%; }
.bar-w-6  { width: 6%; }  .bar-w-7  { width: 7%; }  .bar-w-8  { width: 8%; }
.bar-w-9  { width: 9%; }  .bar-w-10 { width: 10%; } .bar-w-11 { width: 11%; }
.bar-w-12 { width: 12%; } .bar-w-13 { width: 13%; } .bar-w-14 { width: 14%; }
.bar-w-15 { width: 15%; } .bar-w-16 { width: 16%; } .bar-w-17 { width: 17%; }
.bar-w-18 { width: 18%; } .bar-w-19 { width: 19%; } .bar-w-20 { width: 20%; }
.bar-w-21 { width: 21%; } .bar-w-22 { width: 22%; } .bar-w-23 { width: 23%; }
.bar-w-24 { width: 24%; } .bar-w-25 { width: 25%; } .bar-w-26 { width: 26%; }
.bar-w-27 { width: 27%; } .bar-w-28 { width: 28%; } .bar-w-29 { width: 29%; }
.bar-w-30 { width: 30%; } .bar-w-31 { width: 31%; } .bar-w-32 { width: 32%; }
.bar-w-33 { width: 33%; } .bar-w-34 { width: 34%; } .bar-w-35 { width: 35%; }
.bar-w-36 { width: 36%; } .bar-w-37 { width: 37%; } .bar-w-38 { width: 38%; }
.bar-w-39 { width: 39%; } .bar-w-40 { width: 40%; }

.diffstat-pm {
    font-size: 0.8rem;
}

.add-count { color: #16a34a; margin-right: 0.3em; }
.del-count { color: #dc2626; }

/* ── Diff ─────────────────────────────────────────────────────── */
.diff-pre {
    margin: 0;
    padding: 0;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-x: auto;
}

.diff-pre span {
    display: block;
    padding: 0 0.5rem;
    white-space: pre;
}

.diff-add  { background: #f0fdf4; color: #15803d; }
.diff-del  { background: #fef2f2; color: #b91c1c; }
.diff-hunk { background: var(--bg-nav); color: var(--text-dim); }

/* ── Side-by-side diff ───────────────────────────────────────── */
/* Two equal columns, each scrolling nothing of its own: the table takes the
   page's horizontal scroll so the two halves always stay aligned. */
.diff-ss {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.45;
}

.diff-ss td {
    width: 50%;
    padding: 0 0.5rem;
    vertical-align: top;
    /* Long lines wrap rather than widening a fixed column, which would push
       the other half off the page. */
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    border-left: 1px solid var(--border);
}

.diff-ss td:first-child {
    border-left: 0;
}

.diff-ss-span {
    border-left: 0 !important;
}

/* The side that has no line opposite the other's. Hatched rather than blank so
   an uneven replacement reads as "nothing here", not "end of file". */
.diff-ss-none {
    background: repeating-linear-gradient(
        45deg,
        var(--bg-alt) 0 6px,
        transparent 6px 12px
    );
}

/* ── Diff options panel ──────────────────────────────────────── */

.diff-opts {
    float: right;
    margin: 0 0 0.75rem 1rem;
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.55rem 0.65rem;
    display: grid;
    gap: 0.4rem;
    min-width: 17rem;
    font-size: 0.85rem;
}

.diff-opts-title {
    font-weight: 600;
    color: var(--text-dim);
}

.diff-opts-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.diff-opts-label {
    color: var(--text-dim);
}

.diff-opts-reset {
    border-top: 1px solid var(--border);
    padding-top: 0.45rem;
    text-align: right;
}

.diff-opts-dim {
    color: var(--text-dim);
}

/* A row of segments sharing one border, each a link that takes the accent
   colour when it is the setting in force. */
.seg {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    background: var(--bg);
}

.seg-btn,
.seg-num {
    padding: 0.1rem 0.5rem;
    line-height: 1.6;
    border-left: 1px solid var(--border);
    white-space: nowrap;
}

.seg > :first-child {
    border-left: 0;
}

.seg-btn {
    color: var(--link);
    text-decoration: none;
}

.seg-btn:hover {
    background: var(--bg-alt);
}

.seg-btn.on {
    background: var(--accent-soft);
    color: var(--text);
    font-weight: 600;
}

.seg-btn.on:hover {
    background: var(--accent-soft);
}

/* A setting that would change nothing: the end of the context ladder, or a
   layout choice while the diff is hidden. */
.seg-btn.off {
    color: var(--text-dim);
    opacity: 0.55;
    cursor: not-allowed;
}

.seg-btn.off:hover {
    background: none;
}

.seg-num {
    min-width: 2.2em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ── About page ──────────────────────────────────────────────── */
.about {
    max-width: var(--prose-width);
}

/* ── Inline action button (looks like a link) ────────────────── */
.clear-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--link);
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}
.clear-btn:hover {
    text-decoration: underline;
}

/* ── Tag detail page ─────────────────────────────────────────── */
.tag-table {
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.tag-table td {
    padding: 0.15rem 0.75rem 0.15rem 0;
    vertical-align: top;
}

.tag-table td.label {
    color: var(--text-dim);
    white-space: nowrap;
    min-width: 9em;
    font-weight: bold;
}

.tag-table td.mono {
    font-family: var(--mono);
}

.tag-message {
    font-family: var(--mono);
    font-size: 0.85rem;
    /* The commit view floats its diff-options panel to the top right, and this
       block has a background of its own, so it starts below rather than sliding
       under it. The header table above is about the panel's height, so in
       practice this clears nothing. */
    clear: right;
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.75rem 1rem;
    margin: 0;
    overflow-x: auto;
    white-space: pre;
    color: var(--text);
    line-height: 1.5;
}

/* ── Notes ───────────────────────────────────────────────────── */
.notes-header {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-dim);
    padding: 1.5rem 0 0.35rem;
}

.notes {
    font-family: var(--mono);
    font-size: 0.85rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.75rem 1rem;
    margin: 0;
    overflow-x: auto;
    white-space: pre;
    color: var(--text);
    line-height: 1.5;
}

/* ── Readme ──────────────────────────────────────────────────── */
/* Plain text, so hard-wrapped prose keeps its line breaks, but long
   lines wrap rather than forcing the page to scroll sideways. */
.readme {
    font-family: var(--mono);
    font-size: 0.85rem;
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    color: var(--text);
    line-height: 1.5;
}

/* The sandboxed frame holding rendered markdown — the README, or a `.md` blob
   viewed with `?render=1`. Its height attribute is set from the measured
   content, so it never scrolls internally. */
.markdown-frame {
    display: block;
    width: 100%;
    border: 0;
    overflow: hidden;
}

/* The rendered markdown inside the frame is styled by `markdown.css`, which
   the frame links instead of this file. */

/* ── Snapshots ───────────────────────────────────────────────── */
/* The archive link on tag rows (summary and refs/*) and on the tag page. */
.snapshot-link {
    color: var(--link);
}

.summary-table td.snapshot {
    font-family: var(--mono);
    white-space: nowrap;
}

/* The snapshot page itself: what was built, above the fallback link. The
   about page's import says the same kind of thing in the same voice, so it
   reads off the same rule. */
.snapshot-info,
.import-status {
    font-size: 0.85rem;
    font-family: var(--mono);
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.snapshot-download {
    color: var(--link);
}

/* The bar shown while the archive is still being fetched, and the one an
   import of a bundle fills. The snapshot's total climbs as the tree is walked,
   so it can jump backwards — it reports the work found so far, not a countdown
   to a known end; an import's is fixed, since a pack says how many objects it
   holds.

   `appearance: none` is what lets the two pseudo-elements below take over the
   fill colour; without it the browser's own bar shows through. Each engine
   names its own, and neither understands the other's, so both are set. */
.snapshot-progress,
.import-progress {
    display: block;
    width: 100%;
    max-width: 36rem;
    height: 0.75rem;
    appearance: none;
    border: 1px solid var(--border);
    background: var(--bg-alt);
}

.snapshot-progress::-webkit-progress-bar,
.import-progress::-webkit-progress-bar {
    background: var(--bg-alt);
}

.snapshot-progress::-webkit-progress-value,
.import-progress::-webkit-progress-value {
    background: var(--accent);
}

.snapshot-progress::-moz-progress-bar,
.import-progress::-moz-progress-bar {
    background: var(--accent);
}

/* The file picker on the about page. Browsers style the button inside it
   themselves and there is no getting at it without vendor pseudo-elements, so
   this only settles the text around it. */
.import-input {
    font-family: inherit;
    font-size: 0.875rem;
    color: var(--text);
}
