/* ============================================================================
   src · snofl
   ----------------------------------------------------------------------------
   src - the page a snofl page links to when it carries hashtags: it searches
   the relays for notes using those tags. It shipped with a 2010-era sheet - flat
   black, 1rem viewport-scaled root, orange counters, 200px avatars, controls
   scattered over three rows - so this is the maker's visual language applied
   here: #141414 ground, #1d1d1d cards, one green accent, 17px type, 12-16px
   radii, and a search bar that stays put.

   One structural rule is load-bearing: .container stays the scrolling element
   (100dvh + overflow-y), because scrollToTop() calls container.scrollTo(),
   handleScroll() listens on it for the scroll-to-top button, and the sticky
   search bar only sticks inside it. Moving the scroll to the window would
   take all three with it.
   ========================================================================== */

:root {
    --ground: #141414;
    --card: #1d1d1d;
    --card-hover: #232323;
    --edge: #2e2e2e;
    --edge-strong: #3a3a3a;
    --ink: #f1f1f1;
    --ink-dim: #a9a9a9;
    --ink-faint: #7d7d7d;
    --accent: #4caf50;
    --accent-dim: #3d8b40;
    --accent-ink: #0d1f0e;
    --danger: #ff4d4d;
    --radius-lg: 16px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 26px rgba(0, 0, 0, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--ground);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- the scrolling column */

.container {
    width: min(760px, 100%);
    height: 100dvh;
    margin: 0 auto;
    padding: 0 16px 96px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #3a3a3a transparent;
}

.container::-webkit-scrollbar {
    width: 10px;
}

.container::-webkit-scrollbar-thumb {
    background: #333333;
    border: 3px solid var(--ground);
    border-radius: 999px;
}

/* ---------------------------------------------------------------- masthead */

.title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 22px 2px 14px;
    font-size: 23px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.title::before {
    content: "snofl · src";
    flex-basis: 100%;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ---------------------------------------------------------------- search bar */

.search-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    margin: 0 -16px 14px;
    padding: 12px 16px;
    background: rgba(20, 20, 20, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--edge);
}

.search-bar input,
#keywordSearch {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--edge-strong);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

#keywordSearch::placeholder {
    color: #bcbcbc;
    opacity: 1;
}

#keywordSearch:focus {
    background: #202020;
    border-color: var(--accent);
}

.search-bar button {
    height: 44px;
    min-width: 44px;
    padding: 0 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--edge-strong);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.search-bar button:hover {
    background: var(--card-hover);
    border-color: var(--ink-faint);
}

#searchButton {
    color: var(--accent);
    border-color: var(--accent);
}

#searchButton:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

#sortButton {
    font-size: 14px;
    white-space: nowrap;
}

/* ---------------------------------------------------------------- filters */

.filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 12px;
    padding: 0 2px;
    font-size: 14px;
    color: var(--ink-dim);
}

.filters label {
    font-size: 14px;
    color: var(--ink-dim);
}

.filters button,
.filter-toggle-btn {
    height: 34px;
    min-width: 42px;
    padding: 0 12px;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--edge-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.filters button:hover,
.filter-toggle-btn:hover {
    background: var(--card-hover);
    border-color: var(--ink-faint);
}

.filter-toggle-btn.toggled {
    color: var(--accent);
    border-color: var(--accent);
}

/* the magnet: OR by default, green once every keyword is required */
#magnetButton.active,
.magnetButton.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

/* ---------------------------------------------------------------- counters */

/* the script sets display:flex / none on this element, so the default here is only a resting state */
#counters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--ink-dim);
    background: var(--card);
    border: 1px solid var(--edge);
    border-radius: var(--radius-sm);
}

#matchesCounter {
    font-size: 13px;
    color: var(--ink-dim);
}

/* ---------------------------------------------------------------- a note */

#notes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.note {
    position: relative;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--edge);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: border-color 0.15s ease;
}

.note:hover {
    border-color: var(--edge-strong);
}

/* the corner controls: hide, ban, copy */
.note > button {
    position: absolute;
    top: 12px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    background: #232323;
    border: 1px solid var(--edge);
    border-radius: var(--radius-sm);
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.note:hover > button,
.note > button:focus-visible {
    opacity: 1;
}

.note > button:hover {
    background: #2a2a2a;
    border-color: var(--ink-faint);
}

/* These icons are 512x512 PNGs shown at 15px, so this rule is the only thing between a note and a
   full-scale eye. It used to need the <img> to be a *direct* child of the button - a nesting change, a
   different template or a stylesheet a phone had cached would drop it and paint a 512px icon. The rule no
   longer cares how deep the image sits, and the max-* pair holds the size even if a width is set elsewhere.
   The <img> also carries width/height attributes, so the size survives a stylesheet that never arrives. */
.note button img,
.note > button img,
.hide-eye-button img {
    width: 15px;
    height: 15px;
    max-width: 15px;
    max-height: 15px;
    object-fit: contain;
    filter: invert(1) opacity(0.78);
}

.note > .hide-eye-button {
    right: 50px;
}

.note > .ban-profile-button {
    right: 88px;
}

.note > .copy-button {
    right: 12px;
}

/* ---------------------------------------------------------------- note header */

.note-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding-right: 96px;
}

.note-header img,
.profile-img {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    margin: 0;
    object-fit: cover;
    background: #262626;
    border: 1px solid var(--edge);
    border-radius: 50%;
    cursor: pointer;
}

.profile-img:hover {
    opacity: 0.85;
}

.note-header > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.note-header > div > span {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nip05 {
    margin: 0;
    font-size: 12.5px;
    color: var(--ink-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------------------------------------------------------- note body */

.note-content {
    position: relative;
    margin-top: 4px;
    font-size: 16px;
    line-height: 1.6;
    color: #e8e8e8;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.note-content.truncated,
.truncated {
    max-height: 11.5em;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
    transition: max-height 0.25s ease;
}

.note-content:not(.truncated) {
    max-height: none;
    mask-image: none;
    -webkit-mask-image: none;
}

/* the expand affordance lives inside the clipped block, so it has to be positioned to stay visible */
.expand-note {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid var(--edge-strong);
    border-radius: 999px;
    cursor: pointer;
}

.expand-note:hover {
    border-color: var(--accent);
}

.note-image,
.note-content img {
    display: block;
    max-width: min(100%, 420px);
    max-height: 420px;
    min-height: 96px;
    height: auto;
    margin: 10px 0;
    /* a lazily loaded picture has no size until it arrives, and collapsed to 2x2 without this */
    background: #262626;
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    cursor: zoom-in;
}

.note-image:not([src]),
.note-image[src=""] {
    min-height: 0;
}

/* keyword and hashtag highlighting, done in the note text by the page */
.hashtag {
    font-weight: 600;
    color: var(--accent);
}

/* Two kinds of match, two colours, and they have to stay tellable apart at a glance: a hashtag is the tag this
   page is about (green, the site's accent), a plain word match is a keyword found in the text (purple, the
   original sheet's magenta brought onto the dark ground). A pale lilac read as neither. */
.highlight {
    padding: 0 2px;
    font-weight: 600;
    color: #c264ff;
    background: rgba(155, 71, 255, 0.16);
    border-radius: 3px;
}

.inactive {
    color: var(--ink-faint);
    font-style: italic;
    text-decoration: line-through;
}

/* ---------------------------------------------------------------- note footer */

.note-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--edge);
}

.note-icons {
    display: flex;
    gap: 14px;
    font-size: 15px;
}

.icon {
    cursor: pointer;
    opacity: 0.8;
}

.icon:hover {
    opacity: 1;
}

.note-timestamp {
    font-size: 13px;
    color: var(--ink-faint);
    text-align: right;
}

/* ---------------------------------------------------------------- a hidden note */

.note.hidden {
    background: #181818;
    border-style: dashed;
}

.note.hidden .note-header,
.note.hidden .note-content,
.note.hidden .note-footer {
    display: none;
}

.collapsed-note {
    display: none;
    padding: 8px 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
    text-align: center;
    color: var(--ink-faint);
    cursor: pointer;
}

.note.hidden .collapsed-note {
    display: block;
}

/* ---------------------------------------------------------------- empty state */

.no-notes {
    padding: 44px 24px;
    font-size: 15px;
    font-style: normal;
    text-align: center;
    color: var(--ink-dim);
    background: var(--card);
    border: 1px dashed var(--edge-strong);
    border-radius: var(--radius-lg);
}

/* ---------------------------------------------------------------- pagination */

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 22px 0 8px;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--edge);
    border-radius: var(--radius);
}

.pagination-controls button {
    height: 38px;
    padding: 0 16px;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    background: #262626;
    border: 1px solid var(--edge-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.pagination-controls button:hover:not(:disabled) {
    color: var(--accent);
    border-color: var(--accent);
}

.pagination-controls button:disabled {
    color: #6a6a6a;
    background: #1b1b1b;
    border-color: #262626;
    cursor: not-allowed;
}

.page-info {
    margin: 0 12px;
    font-size: 14px;
    color: var(--ink-dim);
}

.new-notes-button {
    display: none;
    margin: 0 auto 14px;
    padding: 9px 18px;
    font: inherit;
    font-size: 14px;
    color: var(--accent-ink);
    background: var(--accent);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.new-notes-button:hover {
    background: var(--accent-dim);
}

.apply-btn {
    height: 40px;
    padding: 0 18px;
    font: inherit;
    font-size: 15px;
    color: var(--accent-ink);
    background: var(--accent);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
}

.apply-btn:hover {
    background: var(--accent-dim);
}

/* ---------------------------------------------------------------- scroll to top */

.scroll-top-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 25;
    display: none;
    place-items: center;
    width: 46px;
    height: 46px;
    font-size: 15px;
    color: var(--accent);
    background: #1c1c1c;
    border: 1px solid var(--edge-strong);
    border-radius: 50%;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.scroll-top-btn:hover {
    background: #222222;
    border-color: var(--accent);
}

/* ---------------------------------------------------------------- fullscreen image */

.fullscreen {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    cursor: zoom-out;
}

.fullscreen.active {
    display: grid;
}

.fullscreen img {
    max-width: 96vw;
    max-height: 92vh;
    border-radius: var(--radius);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
}

/* ---------------------------------------------------------------- the time-range dialog */

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    place-items: center;
    padding: 24px;
    overflow: auto;
    background: rgba(0, 0, 0, 0.78);
}

.modal[style*="block"],
.modal[style*="flex"],
.modal.active {
    display: grid;
}

.modal-content {
    position: relative;
    width: min(420px, 100%);
    margin: 0;
    padding: 22px;
    text-align: left;
    color: var(--ink);
    background: #121212;
    border: 1px solid #262626;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.modal-content h4 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 650;
    color: var(--ink);
}

.modal-content p {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--ink-dim);
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 12px;
    float: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    font-size: 19px;
    line-height: 1;
    color: var(--danger);
    background: transparent;
    border: 1px solid var(--edge-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.modal-content .close:hover {
    color: #140000;
    background: var(--danger);
    border-color: var(--danger);
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    margin: 10px 0 4px;
    background: var(--edge-strong);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--ink-faint);
}

/* ---------------------------------------------------------------- keyword chips, if the page shows them */

.keyword {
    margin: 0 5px;
    cursor: pointer;
    border-bottom: 1px dashed transparent;
}

.keyword.active {
    color: var(--accent);
}

.keyword.toggled {
    color: var(--ink-faint);
    font-style: italic;
}

/* ---------------------------------------------------------------- phones */

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 12px 90px;
    }

    .search-bar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "time input search"
            "sort sort sort";
        gap: 8px;
        margin: 0 -12px 12px;
        padding: 10px 12px;
    }

    #timeFilterButton {
        grid-area: time;
    }

    #keywordSearch {
        grid-area: input;
    }

    #searchButton {
        grid-area: search;
    }

    #sortButton {
        grid-area: sort;
        width: 100%;
    }

    .note {
        padding: 14px;
        border-radius: 14px;
    }

    /* no hover on a phone: the note controls are always reachable there */
    .note > button {
        width: 34px;
        height: 34px;
        opacity: 1;
    }

    .note-header {
        padding-right: 0;
        margin-bottom: 12px;
    }

    .note > .hide-eye-button {
        top: 10px;
        right: 50px;
    }

    .note > .copy-button {
        top: 10px;
        right: 10px;
    }

    .note-icons {
        gap: 10px;
    }

    .note-footer {
        flex-wrap: wrap;
    }
}

/* one sentence saying what this page is, under the tag chips */
.src-lede {
    margin: -6px 2px 14px;
    font-size: 14px;
    color: var(--ink-dim);
}

.src-lede a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(76, 175, 80, 0.35);
}

.src-lede a:hover {
    border-bottom-color: var(--accent);
}

/* the control icons are inline SVG: this page loads no icon font, and an emoji label becomes an empty box on
   any machine without an emoji font (a bare Linux desktop, this project's own server). */
.search-bar button svg,
.filters button svg,
.scroll-top-btn svg {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
    fill: currentColor;
}

.filters button svg {
    width: 15px;
    height: 15px;
    vertical-align: -2px;
}

/* a link inside a note: readable, and not part of the highlight colours */
.note-content a {
    color: #7fc8ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(127, 200, 255, 0.35);
    overflow-wrap: anywhere;
}

.note-content a:hover {
    border-bottom-color: #7fc8ff;
}

/* the shared footer, in this page's own sheet: src loads none of the site's other CSS, so it carries the same
   metrics the rest of the site uses (12px, 400 weight, wide tracking) instead of inheriting them */
.src-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 26px 0 0;
    padding: 14px 2px 4px;
    border-top: 1px solid var(--edge);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--ink-faint);
}

.src-footer a {
    color: var(--ink-dim);
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 6px;
}

.src-footer a:hover {
    color: var(--accent);
    background: #1d1d1d;
}

/* ---------------------------------------------------------------- the identity badge
   Top right, smaller than the custom pages' avatar, but the same idea: this browser's npub and name, and a
   click to change it. It sits outside the scrolling column so it stays put as the notes scroll. */

.src-id {
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 42vw;
    padding: 4px 9px 4px 4px;
    background: rgba(24, 24, 24, 0.9);
    border: 1px solid var(--edge-strong);
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.src-id:hover,
.src-id:focus-visible {
    background: #232323;
    border-color: var(--accent);
    outline: none;
}

/* The ring is the ID's age. hsl() runs red -> orange -> yellow -> green across 0-120deg of hue, so one
   number (`--ring-hue`) carries the colour: red in the first hours, green once a replacement is allowed.
   The bright arc is the fraction of the 24 hours elapsed; the remainder is the same hue held dark, so a
   brand-new ID still reads as a red ring rather than as no ring at all. */
.src-avatar-ring {
    position: relative;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(
        hsl(var(--ring-hue, 0) 82% 52%) var(--ring-progress, 4%),
        hsl(var(--ring-hue, 0) 34% 17%) 0
    );
}

.src-avatar-ring img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #262626;
    object-fit: cover;
    display: block;
}

/* a locked ID pulses very slightly, so the ring reads as a countdown rather than decoration */
.src-avatar-ring.is-locked {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.src-id span {
    font-size: 12px;
    font-weight: 550;
    letter-spacing: 0.01em;
    color: var(--ink-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.src-id:hover span {
    color: var(--ink);
}

.src-id.is-empty .src-avatar-ring {
    display: none;
}

.src-id.is-empty {
    padding: 6px 12px;
    font-size: 12px;
    color: var(--accent);
    border-color: var(--accent);
}

.src-id.is-empty span {
    color: var(--accent);
}

/* ---------------------------------------------------------------- votes on a search result */

.note-votes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.note-votes .vote {
    /* the number sits inside the arrow's own button, so tapping a count votes the same way the arrow does */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 46px;
    height: 30px;
    padding: 0 8px;
    color: var(--ink-dim);
    background: #232323;
    border: 1px solid var(--edge);
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.note-votes .vote svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.note-votes .vote:hover:not(:disabled) {
    color: var(--ink);
    border-color: var(--edge-strong);
    background: #2a2a2a;
}

.note-votes .vote-up.is-mine {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(76, 175, 80, 0.16);
}

.note-votes .vote-down.is-mine {
    color: var(--danger);
    border-color: var(--danger);
    background: rgba(255, 77, 77, 0.14);
}

.note-votes .vote:disabled {
    opacity: 0.5;
    cursor: progress;
}

.vote-count {
    min-width: 9px;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: var(--ink-faint);
}

.note-votes .vote-up.is-mine .vote-count-up {
    color: var(--accent);
}

.note-votes .vote-down.is-mine .vote-count-down {
    color: var(--danger);
}

@media (max-width: 640px) {
    .src-id {
        top: 8px;
        right: 8px;
        max-width: 52vw;
    }

    .src-avatar-ring {
        width: 24px;
        height: 24px;
    }

    .src-avatar-ring img {
        width: 20px;
        height: 20px;
    }
}
