:root {
    --sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Nimbus Sans L", Roboto, Noto, "Segoe UI", Arial, Helvetica, "Helvetica Neue", sans-serif;
    --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
}

:root:not(.force-dark) {
    --bg: #fff;
    --accent-bg: #f5f7ff;
    --text: #212121;
    --text-light: #585858;
    --border: #5b658a;
    --accent: #0d47a1;
    --code: #d81b60;
    --preformatted: #444;
    --marked: #ffdd33;
    --disabled: #efefef
}

:root.force-dark {
    --bg: #212121;
    --accent-bg: #2b2b2b;
    --text: #dcdcdc;
    --text-light: #ababab;
    --border: #666;
    --accent: #ffb300;
    --code: #f06292;
    --preformatted: #ccc;
    --disabled: #111
}

@media (prefers-color-scheme: dark) {
    :root:not(.force-light) {
        --bg: #212121;
        --accent-bg: #2b2b2b;
        --text: #dcdcdc;
        --text-light: #ababab;
        --border: #666;
        --accent: #ffb300;
        --code: #f06292;
        --preformatted: #ccc;
        --disabled: #111
    }

    img, video {
        opacity: .8
    }
}

html {
    font-family: var(--sans-font);
    scroll-behavior: smooth
}

body {
    color: var(--text);
    background: var(--bg);
    font-size: 1.15rem;
    line-height: 1.5;
    display: grid;
    grid-template-columns:1fr min(45rem, 90%) 1fr;
    margin: 0
}

body > * {
    grid-column: 2
}

body > header {
    background: var(--accent-bg);
    border-bottom: 1px solid var(--border);
    text-align: center;
    padding: 0 .5rem 2rem .5rem;
    grid-column: 1/-1;
    box-sizing: border-box
}

body > header h1 {
    max-width: 1200px;
    margin: 1rem auto
}

body > header p {
    max-width: 40rem;
    margin: 1rem auto
}

main {
    padding-top: 1.5rem
}

body > footer {
    margin-top: 4rem;
    padding: 2rem 1rem 1.5rem 1rem;
    color: var(--text-light);
    font-size: .9rem;
    text-align: center;
    border-top: 1px solid var(--border)
}

h1 {
    font-size: 3rem
}

h2 {
    font-size: 2.6rem;
    margin-top: 3rem
}

h3 {
    font-size: 2rem;
    margin-top: 3rem
}

h4 {
    font-size: 1.44rem
}

h5 {
    font-size: 1.15rem
}

h6 {
    font-size: .96rem
}

h1, h2, h3 {
    line-height: 1.1
}

@media only screen and (max-width: 720px) {
    h1 {
        font-size: 2.5rem
    }

    h2 {
        font-size: 2.1rem
    }

    h3 {
        font-size: 1.75rem
    }

    h4 {
        font-size: 1.25rem
    }
}

a, a:visited {
    color: var(--accent)
}

a:hover {
    text-decoration: none
}

[role=button], button, input[type=button], input[type=reset], input[type=submit] {
    border: none;
    border-radius: 5px;
    background: var(--accent);
    font-size: 1rem;
    color: var(--bg);
    padding: .7rem .9rem;
    margin: .5rem 0
}

[role=button][aria-disabled=true], button[disabled], input[type=button][disabled], input[type=checkbox][disabled], input[type=radio][disabled], input[type=reset][disabled], input[type=submit][disabled], select[disabled] {
    opacity: .5;
    cursor: not-allowed
}

input:disabled, select:disabled, textarea:disabled {
    cursor: not-allowed;
    background-color: var(--disabled)
}

input[type=range] {
    padding: 0
}

abbr {
    cursor: help
}

[role=button]:focus, [role=button]:not([aria-disabled=true]):hover, button:enabled:hover, button:focus, input[type=button]:enabled:hover, input[type=button]:focus, input[type=reset]:enabled:hover, input[type=reset]:focus, input[type=submit]:enabled:hover, input[type=submit]:focus {
    filter: brightness(1.4);
    cursor: pointer
}

nav {
    font-size: 1rem;
    line-height: 2;
    padding: 1rem 0 0 0
}

nav ol, nav ul {
    align-content: space-around;
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0
}

nav ol li, nav ul li {
    display: inline-block
}

nav a, nav a:visited {
    margin: 0 1rem 1rem 0;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    display: inline-block;
    padding: .1rem 1rem;
    text-decoration: none
}

nav a:hover {
    color: var(--accent);
    border-color: var(--accent)
}

nav a:last-child {
    margin-right: 0
}

@media only screen and (max-width: 720px) {
    nav a {
        border: none;
        padding: 0;
        color: var(--accent);
        text-decoration: underline;
        line-height: 1
    }
}

details {
    background: var(--accent-bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    margin-bottom: 1rem
}

summary {
    cursor: pointer;
    font-weight: 700;
    padding: .6rem 1rem
}

details[open] {
    padding: .6rem 1rem .75rem 1rem
}

details[open] summary + * {
    margin-top: 0
}

details[open] summary {
    margin-bottom: .5rem;
    padding: 0
}

details[open] > :last-child {
    margin-bottom: 0
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0
}

td, th {
    border: 1px solid var(--border);
    text-align: left;
    padding: .5rem
}

th {
    background: var(--accent-bg);
    font-weight: 700
}

tr:nth-child(even) {
    background: var(--accent-bg)
}

table caption {
    font-weight: 700;
    margin-bottom: .5rem
}

input, select, textarea {
    font-size: inherit;
    font-family: inherit;
    padding: .5rem;
    margin-bottom: .5rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    box-shadow: none;
    box-sizing: border-box;
    width: 60%;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none
}

select {
    background-image: linear-gradient(45deg, transparent 49%, var(--text) 51%), linear-gradient(135deg, var(--text) 51%, transparent 49%);
    background-position: calc(100% - 20px), calc(100% - 15px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat
}

select[multiple] {
    background-image: none !important
}

input[type=checkbox], input[type=radio] {
    vertical-align: bottom;
    position: relative
}

input[type=radio] {
    border-radius: 100%
}

input[type=checkbox]:checked, input[type=radio]:checked {
    background: var(--accent)
}

input[type=checkbox]:checked::after {
    content: " ";
    width: .1em;
    height: .25em;
    border-radius: 0;
    position: absolute;
    top: .05em;
    left: .18em;
    background: 0 0;
    border-right: solid var(--bg) .08em;
    border-bottom: solid var(--bg) .08em;
    font-size: 1.8em;
    transform: rotate(45deg)
}

input[type=radio]:checked::after {
    content: " ";
    width: .25em;
    height: .25em;
    border-radius: 100%;
    position: absolute;
    top: .125em;
    background: var(--bg);
    left: .125em;
    font-size: 32px
}

textarea {
    width: 80%
}

@media only screen and (max-width: 720px) {
    input, select, textarea {
        width: 100%
    }
}

input[type=checkbox], input[type=radio] {
    width: auto
}

input[type=file] {
    border: 0
}

hr {
    color: var(--border);
    border-top: 1px;
    margin: 1rem auto
}

mark {
    padding: 2px 5px;
    border-radius: 4px;
    background: var(--marked)
}

main img, main video {
    max-width: 100%;
    height: auto;
    border-radius: 5px
}

figure {
    margin: 0;
    text-align: center
}

figcaption {
    font-size: .9rem;
    color: var(--text-light);
    margin-bottom: 1rem
}

blockquote {
    margin: 2rem 0 2rem 2rem;
    padding: .4rem .8rem;
    border-left: .35rem solid var(--accent);
    color: var(--text-light);
    font-style: italic
}

cite {
    font-size: .9rem;
    color: var(--text-light);
    font-style: normal
}

code, kbd, pre, pre span, samp {
    font-family: var(--mono-font);
    color: var(--code)
}

kbd {
    color: var(--preformatted);
    border: 1px solid var(--preformatted);
    border-bottom: 3px solid var(--preformatted);
    border-radius: 5px;
    padding: .1rem .4rem
}

pre {
    padding: 1rem 1.4rem;
    max-width: 100%;
    overflow: auto;
    color: var(--preformatted);
    background: var(--accent-bg);
    border: 1px solid var(--border);
    border-radius: 5px
}

pre code {
    color: var(--preformatted);
    background: 0 0;
    margin: 0;
    padding: 0
}
:root {
    --danger: #CC3525;
    --danger-text: #461510;
    --success: #30AA65;
}

.as-link {
    display: inline;
    color: var(--accent);
    cursor: pointer;
}

.as-link:hover {
    color: var(--text);
}

.client-configs {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 1.75rem;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.client-configs__wrapper {
    color: var(--text-light);
}

.client-configs__wrapper div > p:first-child {
    margin-top: 0;
}

.clickable {
    cursor: pointer;
}

button.secondary,
input[type=submit].secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

form .field.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

form .field.checkbox input[type=checkbox] {
    margin: 0;
    height: 100%;
}

input[type=checkbox]:checked::after {
    content: " ";
    width: .1em;
    height: .25em;
    border-radius: 0;
    position: absolute;
    top: calc(50% - 0.05rem);
    left: 50%;
    background: 0 0;
    border-right: solid var(--bg) .08em;
    border-bottom: solid var(--bg) .08em;
    font-size: 1.8em;
    transform: translate(-50%, -50%) rotate(45deg);
}

h1 > a {
    text-decoration: none;
    background: var(--accent);
    color: var(--bg);
    padding: 0 1rem;
}

h1 > a:hover,
h1 > a:visited {
    text-decoration: none;
    color: var(--bg);
}

h1 > a:hover {
    color: var(--bg) !important;
}

header h1 .show-desktop {
    display: inline;
}

header h1 .show-mobile {
    display: none;
}

body {
    font-size: 0.9rem;
}

main {
    padding-top: 1rem;
}

body > header {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    position: relative;
}


.mascot {
    opacity: 1;
}

html:not(.currently-perverted) .show-for-perverts {
    display: none;
}

html.currently-perverted .show-for-nonperverts {
    display: none;
}

html:not(.current-mascot-ki) .show-for-ki {
    display: none;
}

html:not(.current-mascot-warren) .show-for-warren {
    display: none;
}

html:not(.current-mascot-taylor) .show-for-taylor {
    display: none;
}

body > header h1 span {
    position: relative;

    .mascot__under-cover {
        position: absolute;
        z-index: 99999;
        opacity: 1;
        perspective: 100px;

        &.taylor {
            &.sfw {
                height: 72px;
                top: 41px;
                left: 32px;
                transform: rotate3d(1.5, 3.9, -0.6, 30deg);
            }

            &.nsfw {
                height: 72px;
                top: 34px;
                left: 32px;
                transform: rotate3d(0.5, 3.6, -0.2, 30deg);
            }
        }

        &.warren {
            &.sfw {
                height: 79px;
                top: 35px;
                left: 37px;
                transform: rotate3d(-0.3, 0.8, -0.1, 30deg);
            }

            &.nsfw {
                height: 79px;
                top: 37px;
                left: 60px;
                transform: rotate3d(1, 1.6, -0.2, 30deg);
            }
        }

        &.ki {
            &.sfw {
                height: 72px;
                top: 39px;
                left: 40px;
                transform: rotate3d(-1.3, 3.6, -0.5, 30deg);
            }

            &.nsfw {
                height: 97px;
                top: 53px;
                left: 16px;
                transform: rotate3d(-0.6, 2.5, -0.6, 30deg);
            }
        }
    }
}

body > header h1 span > .mascot {
    position: absolute;
    left: 50%;
    bottom: -50px;
    height: 190px;
    transform: translateX(calc(-50% - 149px));
    z-index: 0;

    clip-path: inset(0 0 33px 5px);
    transition: all 0.1s ease-out;
}

header .surrender-status {
    display: block;
    position: fixed;
    bottom: 0;
    left: 20px;
    max-width: 250px;
    z-index: 999999;
    background: var(--bg);
    border: 1px solid var(--border);
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 1rem;
    box-shadow: 0 0 14px 7px var(--accent-bg);

    .surrender-status__status {
        display: flex;
        gap: 1rem;
        align-items: center;
        text-align: left;
    }

    .surrender-status__circle {
        flex: 0 0 30px;
        height: 30px;
        width: 30px;
        border-radius: 100%;
        color: var(--text);
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;

        &.surrender-status__circle--active {
            color: var(--danger-text);
            background: var(--danger);
        }

        &.surrender-status__circle--pending {
            background: var(--marked);
            color: var(--marked);
            border: 1px solid var(--text);

            & > * {
                filter: brightness(0.3);
            }
        }

        &.surrender-status__circle--invalid {
            background: var(--success);
            color: var(--success);

            & > * {
                filter: brightness(0.3);
            }
        }
    }

    .accent-block__button {
        width: calc(100% + 2rem) !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        border-radius: 0;
        transform: translateY(1rem);
        padding: 0.5rem 0.2rem;
    }
}

@media screen and (max-width: 900px) {
    body > header h1 span > .mascot {
        left: 50%;
        bottom: -50px;
        height: 140px;
        transform: translateX(calc(-50% - 120px));
    }
}

@media screen and (max-width: 720px) and (min-width: 475px) {
    body > header h1 a {
        overflow: hidden;
    }

    body > header h1 span {
        position: relative;
        z-index: 1;
    }

    body > header h1 span > .mascot {
        height: 165px;
        transform: none;
        bottom: -80px;
        left: -61px;
        z-index: -1;
        opacity: 0.8;
    }
}

@media screen and (max-width: 475px) {
    body > header h1 {
        padding-left: 2rem !important;
    }

    body > header h1 span > .mascot {
        position: absolute;
        left: -70px;
        bottom: -50px;
        transform: none;
        height: 100px;
        clip-path: inset(0 0 38px 16px);
        z-index: -1;
    }
}

header .header__inner {
    position: relative;
    z-index: 99;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
}

header .header__age-warning {
    background: var(--bg);
    margin: -3px -8px 0 -8px;
    padding: 7px;
}

header .user-tools {
    flex: 1 1 320px;
}

header .user-tools .user-tools__nested {
    flex: 0 1 auto;
}

header .user-tools, header .user-tools .user-tools__nested {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

header .user-tools > a {
    white-space: nowrap;
}

header .user-tools > * + * {
    margin-left: 20px;
}

header h1 {
    display: flex;
    justify-content: flex-start;
    flex: 1 1 auto;
}

header a,
header a:hover,
header a:visited {
    text-decoration: none;
}

header a.username {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

header a.username,
header a:visited.username {
    color: var(--text);
}

header a:hover.username {
    color: var(--accent);
}

header a.pinged::after {
    content: '';
    display: inline-block;
    height: 0.5em;
    width: 0.5em;
    border-radius: 100%;
    background: var(--accent);
    margin-left: 0.25rem;
    transform: translateY(-0.5rem);
}

header a:hover {
    color: var(--text);
}

header a ion-icon {
    font-size: 1em;
}

header ion-icon.chat {
    color: var(--text);
}

header .notification-bell {
    color: var(--text);
    background: none;
    padding: 0;
    margin: 0 0 0 1rem;
}

header .notification-bell[data-has-notifs=true] {
    color: var(--accent);
}

@media screen and (max-width: 687px) {
    header h1 {
        justify-content: center;
    }
}

h2 {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: normal;
    margin-top: 2rem;
}

h2.one-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

h3:has(> small) {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--accent-bg);
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    font-weight: bold;

    & > small {
        flex: 1 1 auto;
        display: flex;
        justify-content: flex-end;
        font-size: 0.6em;
        color: var(--text);
        font-weight: normal;
    }
}

a span.beta-tag,
.as-link span.beta-tag,
h2 span.beta-tag,
h3 span.beta-tag {
    background: var(--danger);
    padding: 0.25em 0.4em 0.3em;
    color: #FFF;
    font-size: 0.7em;
    transform: translateY(-1.1em) translateX(0.4em);;
    display: inline-block;
    border-radius: 0.3rem;
}

h2 > .online {
    font-size: 1rem;
    transform: translateY(-0.9rem);
    display: inline-block;
}

h2 ion-icon {
    transform: translateY(0.05em);
    font-size: 0.8em;
}

h2 iconify-icon {
    font-size: 1em;
    height: 1em;
    width: 1em;
    transform: translateY(0.075em);
}

button iconify-icon {
    font-size: 1em;
    height: 1em;
    width: 1em;
    transform: translate(-0.05em, 0.075em) scale(1.3);
}

ion-icon.big {
    transform: translateY(0.15em);
    font-size: 1em;
}

h3 {
    font-size: 1.6rem;
    margin: 1.75rem 0 0.5rem;
    font-weight: normal;
}

h4 {
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 0.25rem;
}

h4 + p {
    margin: 0 auto 2rem auto;
    max-width: 320px;
    text-align: justify;
}

strong {
    color: var(--accent);
}

.page-break {
    margin-top: 12rem;
}

.half-page-break {
    margin-top: 5rem;
}

blockquote p img {
    vertical-align: bottom;
}

blockquote > .byline {
    text-align: right;
    padding-right: 3rem;
}

.flashes {
    display: flex;
    flex-direction: column;
}

.tight {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    margin-left: 0.5rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.flashes .flash {
    background: var(--accent-bg);
    padding: 0.5rem 1rem 0.6rem;
    border: 1px solid var(--border);
    border-top: 0;
}

.flashes .unbounded {
    border-top: 1px solid var(--border);
    margin: 0.5rem 0;
}

.flashes .flash--success {
    color: var(--success);
}

.flashes .flash--success::before {
    content: "✅"
}

.flashes .flash--danger {
    color: var(--danger);
}

.flashes .flash--danger::before {
    content: "🚫"
}

.flashes > turbo-frame {
    display: contents;
}

p {
    line-height: 1.5rem;
}

.task-tools {
    display: flex;
    justify-content: space-between;
    height: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.task-tools button ion-icon {
    transform: translateY(2px);
}

.task-tools.small {
    background: var(--border);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    margin-top: -16px;
    padding: 0 1rem;

    --accent-small-tools: var(--bg);
    --bg-small-tools: var(--accent);
    --text-small-tools: var(--bg);
}

.task-tools.small * {
    --accent: var(--accent-small-tools);
    --bg: var(--bg-small-tools);
    --text: var(--text-small-tools);
}

.task-tools.small button,
.task-tools.small input[type=submit] {
    font-size: 1em !important;
}

.task-tools .left {
    flex: 1 0 auto;
}

.task-tools .right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1 1 320px;
    gap: 1.5rem;

    & .button-like {
        border: none;
        padding: 0.1rem 0.5rem;
    }

    & > a > iconify-icon {
        font-size: 1.3rem;
        transform: translateY(3px);
    }
}

.task-tools span > ion-icon {
    transform: translateY(0.2em);
}

.task-tools + h2 {
    margin-top: calc(3.25rem - 2.5rem);
}

.task-tools button,
.task-tools input[type=submit] {
    padding: 4px 13px;
    width: auto;
}

.task-tools .notice-right {
    animation: bounce-right 2s infinite;
}

@keyframes bounce-right {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(8%);
    }
    60% {
        transform: translateX(4%);
    }
}

.mock-button {
    background: var(--accent);
    padding: 0px 8px;
    color: var(--bg);
    display: inline-block;
    border-radius: 4px;
}

.mock-link {
    padding: 0px 8px;
    color: var(--accent);
    display: inline-block;
    font-size: 1.1em;
}

.mock-online {
    display: inline-block;
    font-weight: bold;
    margin-left: 0.3rem;
    color: var(--success);
}

form.set-post-response div {
    display: flex;
    gap: 1rem;
}

.set-post-response__description {
    color: var(--text-light);
    padding: 1rem 0 0;
}

form.set-post-response input,
form.set-post-response select {
    height: 2.5rem;
}

form.set-post-response input {
    margin: 0;
}

form.set-post-response input[type=text] {
    flex: 1 1 90%;
}

form.set-post-response input[type=submit] {
    flex: 0 1 120px;
}

form.set-post-response select {
    flex: 0 1 auto;
    width: auto;
    padding-right: 45px;
}

form.set-post-id {
    max-width: 329px;
    margin: 1rem auto 0;
}

form.set-post-id input {
    width: 100%;
}

.masthead {
    width: 100%;
    height: 215px;
    display: flex;
    align-items: flex-end;
}

.masthead h3 {
    color: #FFF;
    margin: 1.5rem 2rem;
    padding: 0;
}

a.clean {
    text-decoration: none;
    color: inherit;
}

a > ion-icon,
.as-link > ion-icon {
    font-size: 1.3em;
    transform: translateY(0.175em);
}

a[download],
a[download]:hover,
a[download]:visited,
a.no-underline,
a.no-underline:hover,
a.no-underline:visited {
    text-decoration: none;
}

a[download] > ion-icon,
.no-underline > ion-icon {
    margin-right: 2px;
}

button.no-underline > ion-icon {
    transform: translateY(0.1rem);
}

button.no-underline {
    margin-left: 0.5rem;
    padding: 0.4rem 0.7rem;
}

.no-margin {
    margin: 0;
}

button.secondary {
    background: var(--text);
    color: var(--bg);
}

a[download]:hover,
a.no-underline:hover {
    color: var(--text);
}

.space-between + .space-between {
    margin-left: 10px;
}

.inline,
form.button_to {
    display: inline;
}

.friendship {
    display: flex;
    align-items: center;
    padding: 0.1rem 1.7rem;
}

.friendship--pending {
    color: var(--border);
}

[data-controller=user-reference] > .flair:empty {
    display: none;
}

[data-controller=user-reference] > .flair {
    font-size: 0.8em;
    background: var(--accent-bg);
    padding: 0.25ex 1ex;
    margin-left: 0.5ex;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.friendship--pending a[data-controller=user-reference] {
    color: var(--border);
}

.friendship__names {
    flex: 1 1 320px;
}

.friendship__names > ion-icon {
    transform: translateY(0.25em);
    font-size: 1.2em;
}

.friendship__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;

    & > * {
        word-break: keep-all;
    }
}

label ion-icon {
    font-size: 1.1rem;
    transform: translateY(0.1rem);
}

/* Breakpoints */

@media screen and (min-width: 590px) {
    header h1 a {
        margin-right: 1rem;
    }
}

@media screen and (max-width: 475px) {
    header h1 {
        font-size: 1.5rem;
        margin: 0.5rem auto !important;
    }

    header h1 > a {
        padding: 0 6px !important;
    }

    header .user-tools {
        font-size: 0.8rem;
    }

    header .user-tools ion-icon:not(.dont-hide) {
        display: none;
    }

    header .user-tools > * + * {
        margin-left: 11px !important;
    }

    header .header__inner {
        padding: 0 0.5rem;
    }

    .friendship {
        padding: 0.1rem 0;
    }

    .friendship__names {
        flex: 1 1 100px;
    }

    .link {
        grid-template-columns: 1fr auto !important;
    }
}

@media screen and (max-width: 600px) {
    header .user-tools > * + * {
        margin-left: 16px;
    }

    header .header__inner {
        display: flex;
        flex-wrap: wrap;
    }

    header h1 {
        flex: 0 1 auto;
    }

    header h1 a {
        padding: 0 9px;
    }

    header h1 .show-desktop {
        display: none;
    }

    header h1 .show-mobile {
        display: inline;
    }

    header .user-tools {
        flex: 1 1 auto;
        padding: 8px 0;
    }

    .task-tools .right {
        gap: 0.9rem;
    }

    .task-tools button {
        padding: 4px 8px;
    }

    form.set-post-response div {
        flex-wrap: wrap;
    }

    form.set-post-response input[type=text] {
        flex: 1 1 90%;
    }

    form.set-post-response input[type=submit] {
        flex: 1 1 100px;
    }
}

.small {
    font-size: 0.85em;
}

a.small {
    text-decoration: none;
}

a.small:hover {
    filter: brightness(1.1);
}

.tight-top {
    margin-top: 0 !important;
}

.accent-block {
    background: var(--accent-bg);
    padding: 55px 1.5rem 1.5rem;
    border-radius: 8px;
    margin-top: 2.25rem;
    display: block;
    position: relative;

    &.no-charm {
        padding-top: 1rem !important;
        padding-bottom: 0.25rem !important;

        & > h3,
        & > a > h3 {
            margin: 0;
        }
    }
}

.accent-block > .scare-charm {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 110px;
    mix-blend-mode: multiply;
    color: #c2c2c2;
    opacity: 0.75;
}

.big-charm {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 110px;
    opacity: 0.25;
    color: var(--accent);
    z-index: -1;
}

.accent-block--warning {
    background-image: linear-gradient(45deg, #ffb300 25%, #d0a536 25%, #d0a536 50%, #ffb300 50%, #ffb300 75%, #d0a536 75%, #d0a536 100%);
    background-size: 56.57px 56.57px;
    color: #212121;
    text-shadow: 0 0 2px #ffb300;
    font-weight: bold;
    --highlight: #f1cf7b;

    & h4 {
        margin-top: 1rem;
    }

    & ul li a:link, & ul li a:visited, & ul li a:hover {
        color: #212121;
        text-shadow: 0 1px 0 var(--highlight), 0 -1px 0 var(--highlight), 1px 0 0 var(--highlight), -1px 0 0 var(--highlight);
    }
}

.notification-actions {
    border-radius: 0 !important;
    margin-left: 0 !important;
    background: none;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    margin-top: 0.5rem !important;

    .accent-block__button {
        border-radius: 0 !important;
        transform: unset !important;


        &.accent-block__button--right {
            background: var(--accent-bg);
            color: var(--accent);

        }
    }
}

.accent-block .accent-block__button {
    width: calc(100% + 3rem) !important;
    margin: 0 -1.5rem 0 -1.5rem !important;
    transform: translateY(1.5rem);
    border-top-right-radius: 0;
    border-top-left-radius: 0;

    &.accent-block__button--left,
    &.accent-block__button--right {
        width: calc(50% + 0.5rem) !important;
    }

    &.accent-block__button--left {
        border-bottom-right-radius: 0;
    }

    &.accent-block__button--right {
        border-bottom-left-radius: 0;
        position: absolute;
        right: 1.5rem;
    }
}

@media screen and (max-width: 600px) {
    .accent-block .accent-block__button {
        &.accent-block__button--left,
        &.accent-block__button--right {
            width: calc(100% + 3rem) !important;
        }

        &.accent-block__button--left {
            border-bottom-right-radius: 0;
            border-bottom-left-radius: 0;
        }

        &.accent-block__button--right {
            border-bottom-left-radius: 5px;
            position: static;
        }
    }
}

.accent-block .accent-block__button--force-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
}

.accent-block--warning strong, .accent-block--warning .accent-block__charm {
    color: inherit;
}

.accent-block > p {
    margin: 0;
}

.accent-block.danger {
    border: 2px solid var(--danger);
    padding-bottom: calc(1.5rem - 2px);
}

.accent-block.danger > p {
}

.accent-block.danger .accent-block__charm {
    color: var(--danger);
}

.accent-block.danger button {
    background: var(--danger);
    color: #FFF;
    border: none;
}

.accent-block button.main-action {
    margin: 1rem 0 0;
}

.accent-block.spaced {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.accent-block.only_charm {
    padding: 1.8rem 1.5rem;
}

.accent-block:has(> .inline) {
    padding: 0.25rem 1.5rem;
}

.accent-block__charm {
    color: var(--border);
    display: flex;
    align-items: center;
    gap: 7px;
    position: absolute;
    top: 0;
    height: 55px;

    &.inline {
        position: initial;
        flex-wrap: wrap;
        gap: 0.5rem;
        min-height: 35px;
        height: initial;
        padding: 10px 0;
    }

    & .right-side {
        flex: 1 1 auto;
        display: flex;
        justify-content: flex-end;
    }
}

.accent-block__charm--accordion {
    color: var(--text-light);
}

.accent-block__charm--accordion > div > p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.accent-block__charm--accordion[aria-expanded=false] {
    padding-bottom: 0;
}

.accent-block__charm--accordion-header {
    cursor: pointer;
    width: calc(100% - 3rem); /* 3rem is a magic value, twice the parent element L+R padding */
}

.accent-block__charm--accordion-header:hover {
    color: var(--text);
}

.accent-block__charm--accordion[aria-expanded=true] .accent-block__charm--accordion-header__indicator {
    transform: rotate(180deg);
}

.accent-block__charm ion-icon {
    font-size: 1.2em;
}

.accent-block h2:first-of-type {
    margin-top: 0;
}

footer small a {
    text-decoration: none;
}

.modal {
    height: auto;
    opacity: 0;
    display: grid;
    color: var(--text);
    border-radius: 0.3rem;
    box-shadow: 0px 10px 30px 20px rgb(15, 15, 15);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--border);
    min-width: 320px;
    padding: 1rem;
    border: none;
    z-index: 9999;
    margin: 0;
    grid-template-rows: 24px 1fr;
    grid-template-areas: 'header'
                         'content';
    transition: opacity 0.3s;
    pointer-events: none;
}

.modal::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    background: var(--bg);
    z-index: -1;
    display: block;
    height: 100vh;
    width: 100vw;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}

.modal__header {
    text-align: right;
    grid-area: header;
}

.modal__close-button {
    display: inline-block;
    margin: 0;
    background: none;
    color: var(--text);
    font-size: 1.5rem;
    padding: 0;
    line-height: 1rem;
}

.modal[data-open=true] {
    opacity: 1;
    pointer-events: all;
}

.modal > h4 {
    margin-top: 0;
}

.modal > p {
    padding: 0px 0.5rem;
}

.modal > form > .inset {
    max-width: 320px;
    padding: 0px 0.5rem;
}

.modal__buttons {
    display: flex;
    justify-content: flex-end;
    background: var(--accent);
    margin: 0 -1rem -1rem;
    border-bottom-left-radius: 0.3rem;
    border-bottom-right-radius: 0.3rem;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.modal textarea.full-span {
    width: 100%;
}

.modal__buttons input[type=submit] {
    padding: 0.4rem 0.7rem !important;
}

.modal__buttons > a,
.button-like {
    border: none;
    border-radius: 5px;
    background: var(--bg);
    color: var(--text);
    padding: .5rem .9rem;
    margin: 0.2rem 0;
}

.center-button {
    text-align: center;
    max-width: 180px;
    margin: 1.5rem auto;
    display: block !important;

    &:hover {
        background: var(--accent-bg);
    }
}

.modal__buttons > a:hover {
    color: var(--text-light);
}

.button-like {
    display: inline-block;
    border: 1px solid var(--accent);
}

@media screen and (max-width: 475px) {
    .modal {
        background: var(--accent-bg);
        bottom: 0;
        top: initial;
        left: 0;
        box-sizing: border-box;
        width: 100%;
        transform: translate(0, 100%);
        transition: all 0.2s;
    }

    .modal[data-open=true] {
        opacity: 1;
        pointer-events: all;
        transform: translate(0, 0);
    }

    .modal::after {
        top: 0;
        left: 0;
        transform: translate(0, -100%);
    }
}

.subdued {
    color: var(--border);
}

a.subdued:link,
a.subdued:visited {
    color: var(--text-light);
}

.center {
    text-align: center;
}

.notifications__popover {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 320px;
    background: var(--accent);
    font-size: 0.9rem;
    text-align: left;
    z-index: 999999999;
    transform: translate(-0.5rem, 0.75rem);
}

.notifications__popover[data-open=true] {
    display: block;
}

.notifications__popover::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 0.7rem solid transparent;
    border-bottom: 0.7rem solid var(--accent);
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(0, -0.7rem);
}

.notifications__popover > form,
.notifications__list > form {
    display: flex;
    justify-content: center;
}

.notification {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--bg);
}

.notifications__popover .notification:hover {
    background: var(--accent-bg);

    time {
        color: var(--accent);
    }
}

.notifications__list .notification {
    border: 1px solid var(--border);
    border-radius: 0.3rem;
    padding: 0.8rem 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    text-decoration: none;
    background: var(--accent-bg);

    time {
        color: var(--accent);
    }
}

.notification p {
    margin: 0;
}

.notification time {
    display: block;
    color: var(--accent-bg);
    font-size: 0.8em;
    line-height: 1em;
    margin-bottom: 0.4em;
}

.notification > ion-icon {
    font-size: 1.1rem;
    min-width: 18px;
}

.notification > iconify-icon {
    font-size: 1.2rem;
}

.notification > p {
    line-height: 1.2rem;
}

.notifications ion-icon {
    display: block !important;
}

header .user-tools turbo-frame {
    display: block;
    position: relative;
    font-size: 1.1rem;
    height: 1.3rem;
    margin: 0 !important;
    width: 32px;
}

.notifications__empty {
    padding: 1rem;
    text-align: center;
    color: var(--bg);
    font-weight: bold;
    font-size: 1.1rem;
}

@media screen and (max-width: 475px) {
    .notifications__popover {
        width: 100vw;
        transform: none;
        left: 0;
        position: fixed;
        top: 0;
    }

    .notification-bell {
        margin: 0 0 0 0.2rem !important;
    }
}

turbo-cable-stream-source {
    display: none;
}

.text-charm {
    display: inline-flex;
    align-items: center;
    margin-left: 0.25em;
    text-decoration: none;
}

.text-charm__reporter {
    gap: 0.25rem;
    font-size: 1em;
    color: var(--text);
    align-items: center;
    transform: translateY(1px);

    & > ion-icon {
        transform: scale(0.9) translateY(1px);
    }
}

.text-charm__online {
    background: var(--success);
    border-radius: 100%;
    width: 0.5rem;
    height: 0.5rem;
}

.text-charm__medal {
    transform: translateY(0.2em);
    background: var(--accent-bg);
    padding: 0.175em 0.4em;
    border-radius: 0.4em;
    font-size: 1em;
    cursor: zoom-in;
    transition: transform 80ms cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.text-charm__medal:hover {
    transform: translateY(0.2em) scale(1.75);
}

.text-charm__medal > ion-icon {
    pointer-events: none;
}

.text-charm > small {
    font-size: 0.5em;
    text-decoration: none;
}

.text-charm__medal-driftwood {
    background: darkolivegreen;
    color: white;
}

.text-charm__medal-tin {
    background: dimgrey;
    color: white;
}

.text-charm__medal-bronze {
    background: saddlebrown;
    color: white;
}

.text-charm__medal-silver {
    background: silver;
    color: black;
}

.text-charm__medal-gold {
    background: goldenrod;
    color: black;
}

.text-charm__medal-platinum {
    background: lightsteelblue;
    color: black;
}

.text-charm__medal-uranium {
    background: greenyellow;
    color: black;
}

.text-charm__medal-ruby {
    background: indianred;
    color: white;
}

.text-charm__medal-jade {
    background: mediumspringgreen;
    color: black;
}

.text-charm__medal-regal-purple {
    background: rebeccapurple;
    color: white;
}

.text-charm__medal-green {
    background: green;
    color: white;
}

.text-charm__medal-cum {
    background: lightgoldenrodyellow;
    color: black;
    border: var(--border) 1px solid;
}

a[data-controller=user-reference] {
    overflow: visible !important;
}

ol {
    counter-reset: orderedlist;
    padding: 0;
}

ol > li {
    padding: 0.5em 1em;
    display: flex;
    gap: 1.5em;
}

ol > li::marker {
    content: "";
}

ol > li::before {
    content: "#" counter(orderedlist);
    counter-increment: orderedlist;
    display: inline-block;
    min-width: 3ch;
}

ol > li:nth-child(2n+1) {
    background: var(--accent-bg);
}

ol > li > * {
    flex: 1 1 100%;
}

ol > li > *:last-child {
    flex: auto;
    white-space: nowrap;
}

/* Sections are for document-like pages, like /help */
section {
    border: none;
    margin: 0;
    padding: 0;
}

section + section {
    padding-top: 1rem;
}

section ul {
    line-height: 1.6rem;
    list-style-type: square;
}

section ul.task-list {
    padding-left: 0;
    list-style-type: none;
}

section ul.task-list li + li {
    margin-top: 1rem;
}

section ul li {
    margin-bottom: 1.2rem;
}


section p ion-icon,
section li ion-icon {
    transform: translateY(1px);
    margin-left: 0.25em;
}

section img {
    display: block;
    margin-top: 1rem;
    border: 1px solid var(--preformatted);
    max-width: 420px;
    width: 100%;
}

section img.small {
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
}

section h4 {
    text-align: left;
    margin-top: 2.1rem;
    background: var(--border);
    color: var(--bg);
    display: inline-block;
    padding: 0.2rem 1rem;
    border-radius: 0.6rem;
    margin-bottom: 0.7rem;
    font-size: 1rem;
}

section h4 + p {
    margin: 0;
    max-width: initial;
}

section h4 + div {
    padding: 0.1rem 1.5rem;
    border-radius: 0.6rem;
    background: var(--accent-bg);
}

section li blockquote {
    margin-top: 1rem;
}

section h5 {
    margin-bottom: 0;
    font-size: 1em;
    color: var(--border);
    font-weight: normal;
    border-bottom: 1px solid currentColor;
}

section .then {
    display: block;
    color: var(--border);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 2.5rem 0 1rem;
}

.accordion__trigger {
    margin: 1.5rem auto 0;
    display: block;
    background: var(--bg);
    color: var(--text)
}

.accordion__trigger ion-icon {
    transform: translateY(2.5px);
}

.one-col {
    margin: 1rem 0;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media screen and (max-width: 760px) {
    .two-col {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.mod_tool__result {
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

.mod_tool__result--success::before {
    content: '';
    display: block;
    height: 2px;
    width: 100%;
    background: var(--success);
    margin-bottom: 1rem;
}

.mod_tool__result--fail::before {
    content: '';
    display: block;
    height: 2px;
    width: 100%;
    background: var(--danger);
    margin-bottom: 1rem;
}

.mod_tool__result--success ion-icon {
    color: var(--success);
}

.mod_tool__result--fail ion-icon {
    color: var(--danger);
}

.float-right {
    float: right;
}

.float-left {
    float: left;
}

.hang {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap: 1rem;
    font-size: 0.7rem;
}

.hang a, .hang > div {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0.25rem;
    text-decoration: none;
    cursor: pointer;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-top: none;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    padding: 0.2rem 0.35rem 0.25rem;
}

.mascot-picker {
    display: flex;
    gap: 0.5rem;
}

.mascot-picker button {
    display: flex;
    justify-content: center;
    align-content: center;
    margin: 0;
    font-size: 0.8rem;
    height: 23px;
    align-items: flex-start;
    gap: 0.25rem;
    text-decoration: none;
    border: 1px solid var(--accent);
    border-top: none;
    border-radius: 0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    padding: 0.2rem 0.35rem 0.25rem;
    background: none;
    color: var(--accent);
}

.mascot-picker button ion-icon {
    font-size: 1rem;
}

.mascot-picker em {
    display: flex;
    align-items: center;
}

pre code.hljs {
    background: transparent !important;
}

.accent-block > pre {
    padding: 0;
    border: 0;
    margin: 0;
}

.important {
    font-size: 1.5em;
    text-align: center;
    background: var(--accent);
    padding: 1rem;
    color: var(--bg) !important;
    text-shadow: none !important;

    strong {
        text-decoration: underline;
    }
}

.spacer {
    height: 30px;
}

.reports {
    & pre {
        overflow: scroll;
        width: auto;
        white-space: break-spaces;
        max-height: 300px;
    }
}

#report_button {
    display: inline-block;

    & form {
        display: inline-block;
    }

    & input[type=submit] {
        width: initial;
    }
}

.history, .history ul {
    list-style-type: none;
    padding: 0;
}

.history > li > .accent-block > ul > li {
    & h4 {
        margin-top: 0;
        font-size: 1.2rem;
    }

    & > ul {
        display: grid;
        grid-template-columns: repeat(3, max-content);
        justify-content: center;
        gap: 1ex 1rem;
        padding: 1.25rem 0 2rem 1rem;

        & > li {
            grid-column: 1 / -1;
        }
    }
}

.history__record {
    display: grid;
    grid-template-columns: subgrid;
    justify-items: center;
}

.split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.profile_selector {
    margin-top: 0 !important;
}

.profile_renamer {
    margin-bottom: 1.5rem !important;
}

.profile_selector,
.profile_renamer {
    position: relative;

    & > form {
        display: contents;

        & select,
        & input[type=submit],
        & input[type=text] {
            height: 42px;
        }

        & select {
            margin: 0;
            flex: 1 1 100%;
        }

        & input[type=submit],
        & input[type=text] {
            margin: 0;
        }

        & input[type=text] {
            flex: 1 1 auto;
        }

        & .secondary {
            background: var(--accent-bg);
            border-color: var(--accent);
            flex: 0 0 min-content;
        }
    }
}

main.full-width {
    grid-column: 1 / span 3;
    display: grid;
    grid-template-columns: subgrid;
}

.chyron {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--accent-bg);
    box-shadow: 0 0 15px rgba(43, 41, 37, 0.24);
    z-index: 999999;
    transform: translateY(100%);
    animation-name: chyronappear;
    animation-duration: 0.45s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
    animation-play-state: running;
}

.centred {
    text-align: center;
    margin: 1rem auto;
    display: block;
}

.WTN-logo {
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 1.5em;
    line-height: 23px;
    padding: 9px 9px 5px 9px;
    color: var(--bg);
    background: var(--accent);
}

@keyframes chyronappear {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 4;
    pointer-events: none;
    mix-blend-mode: hard-light;
    opacity: 0.3;
    object-fit: cover;
    height: 100dvh;
    width: 100dvw;
}

.master-row {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 1rem;
    margin: 0 -1rem;

    &:nth-child(odd) {
        background: var(--accent-bg);
    }
}

#new-user-links {
    margin-bottom: 1rem;
}

strong.search-heading {
    margin-top: 1.5rem;
    display: block;
    text-align: center;
}

.browse-links__subheading {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.browse-links__subheading h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
    background: var(--disabled);
    display: inline-block;
    border-radius: 4px;
}

.browse-links__subheading p {
    margin: 0;
    flex: 1 1 100px;
    color: var(--text-light);
    font-size: 0.75rem;
}

.woogle {
    text-align: center;
    font-size: 5rem;
}

.link-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    position: relative;
    min-height: 40px;
    justify-content: flex-end;
}

.link-search label {
    display: flex;
    gap: 0.5rem;
    cursor: pointer;
    align-items: center;
    margin: 0;
}

.link-search label input[type=checkbox] {
    margin: 0;
    transform: translateY(-0.1em);
}

.link-search input[type=text] {
    flex: 1 1 500px;
}

.link-search input[type=submit] {
    flex: 1 1 100px;
    padding: 0.5rem;
}

.link-search input[type=text],
.link-search input[type=submit] {
    margin: 0;
    height: 100%;
}

.link {
    display: grid;
    position: relative;
    grid-template-columns: 1fr 150px;
    grid-template-rows: auto auto 1fr auto;
    gap: 10px;
    padding: 10px 15px;
    border: 1px solid #66666639;
    margin-top: 1.5rem;
    border-radius: 8px;
    grid-template-areas: 'expires      presence'
                         'terms        theme'
                         'terms        abilities'
                         'terms        blacklist'
                         'friends-only friends-only';
    overflow: hidden;
    /* Extreme improvement to scrolling performance in firefox, minor improvement in chrome,
    caused by excessive, expensive re-rendering of filtered images combined with blending modes. 
    this style forces them into their own GPU surfaces, preventing the re-rendering at the cost of 
    blending accuracy */
    will-change: transform;
}

.text-light {
    margin-top: 0;
    color: var(--text-light);
}

/* browse page links list */
@media screen and (min-width: 1220px) {
    #links.browse-links,
    #new-user-links.browse-links {
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        padding: 0 1rem;
        box-sizing: border-box;
        gap: 1.5rem;
        column-count: 2;
    }

    #links.browse-links > *,
    #new-user-links.browse-links > * {
        page-break-inside: avoid;
        break-inside: avoid-column;
    }

    #links.browse-links > *:first-child .link,
    #new-user-links.browse-links > *:first-child .link {
        margin-top: 0;
    }
}

@media screen and (min-width: 1620px) {
    #links.browse-links,
    #new-user-links.browse-links {
        column-count: 3;
    }
}

@media screen and (max-width: 512px) {
    .link {
        grid-template-columns: auto auto !important;
        grid-template-areas:
                'expires      presence'
                'theme        abilities'
                'terms        terms'
                'blacklist    blacklist'
                'friends-only friends-only';
    }

    .link--theme,
    .link--abilities {
        display: flex !important;
        gap: 0.5rem;
        font-size: 0.8rem !important;
        font-weight: bold !important;
    }

    .link--abilities {
        justify-content: flex-end;
    }

    .link--abilities .mascot {
        transform: translateY(2px);
        padding-right: 3px;
    }

    .link--theme > strong,
    .link--abilities > strong {
        display: inline-flex !important;
    }

    .link--terms {
        min-height: 27ch !important;
    }

    .link--terms blockquote {
        padding-top: 0 !important;
    }
}

.link > .link--backdrop {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: -10;
    opacity: 0.3;
}

.link > .link--backdrop::before {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    mix-blend-mode: color;
    filter: brightness(0.2);
    z-index: 10;
}

.link > .link--backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.2) brightness(0.5);
}

@media screen and (prefers-color-scheme: light) {
    :root:not(.force-dark) .link > .link--backdrop::before {
        mix-blend-mode: color;
        filter: brightness(1);
    }

    :root:not(.force-dark) .link > .link--backdrop > img {
        filter: contrast(0.55) brightness(1.4);
    }
}

:root.force-light .link > .link--backdrop::before {
    mix-blend-mode: color;
    filter: brightness(1);
}

:root.force-light .link > .link--backdrop > img {
    filter: contrast(0.55) brightness(1.4);
}

.link em {
    color: var(--border);
}

.link em ion-icon {
    font-size: 1.2em;
    transform: translateY(0.2rem);
}

a:hover > .link {
    border-color: var(--accent);
}

.link::after {
    content: attr(data-feed-number);
    font-size: 7rem;
    font-weight: 1000;
    font-style: italic;
    display: block;
    position: absolute;
    bottom: -43px;
    left: -20px;
    color: var(--accent);
    z-index: -1;
    mix-blend-mode: color-dodge;
    opacity: 0.3;
    filter: contrast(150%) saturate(200%);
}

@media (prefers-color-scheme: light) {
    :root:not(.force-dark) .link::after {
        mix-blend-mode: darken;
        opacity: 0.2;
    }
}

:root.force-light .link::after {
    mix-blend-mode: darken;
    opacity: 0.2;
}

.link--presence {
    grid-area: presence;
    text-align: right;
}

strong.online {
    color: var(--success);
}

strong.online ion-icon {
    transform: translateY(2px);
    font-size: 1.1em;
}

strong.online::after {
    content: '';
    display: inline-block;
    width: 1ch;
    height: 1ch;
    background: currentColor;
    border-radius: 100%;
    margin-left: 0.25rem;
}

strong.offline {
    color: var(--text);
}

.link--theme {
    grid-area: theme;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 0.8em;
    color: var(--accent);
}

.link--abilities {
    grid-area: abilities;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 0.8em;
    color: var(--accent);

    & > span > iconify-icon {
        font-size: 1.9em;
        transform: translateY(1px);
    }
}


.link--abilities span > ion-icon {
    font-size: 1.4rem;
}

.link--theme span,
.link--abilities span {
    white-space: initial;
}

.link--theme ion-icon,
.link--abilities ion-icon,
h4.forks-header > ion-icon {
    transform: translateY(0.1em);
}

.link--expires {
    grid-area: expires;
}

.link--blacklist {
    grid-area: blacklist;
    color: var(--text-light);
    font-size: 0.8em;
}

.link--blacklist > div {
    display: flex;
    align-content: center;
    gap: 0.1rem 0.5rem;
    flex-wrap: wrap;
}

.link--blacklist > strong,
.link--theme > strong,
.link--abilities > strong {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-weight: normal;
    font-size: 0.8rem;
    color: var(--border);
    padding-bottom: 0.2rem;
}

.link--blacklist > strong > ion-icon,
.link--theme > strong > ion-icon,
.link--abilities > strong > ion-icon {
    font-size: 1rem;
    width: 1rem;
}

.link--blacklist span::before {
    content: '-'
}

.link--terms {
    grid-area: terms;
    position: relative;
    min-height: 12ch;
}

.link--terms blockquote p {
    margin: 0;
}

.link--terms blockquote {
    overflow-y: auto;
    margin: 0 0 0 4px;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    font-style: normal;
    border-left: 0;
    padding-left: 0;
}

.link--status-bar {
    grid-area: friends-only;
    height: 2rem;
    padding: 0.3rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: 'lock name client';
}

.link--status-bar > * {
    display: flex;
    align-items: center;
}


.link--status-bar > em {
    order: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-area: name;
}

.link--device-in-use {
    color: var(--border);
    justify-content: flex-end;
    grid-area: client;
}

.link--device-in-use > svg {
    margin-left: 0.8rem;
}

.link--device-in-use ion-icon {
    font-size: 1.3rem;
    margin-left: 0.5rem;
}

.link--device-in-use iconify-icon {
    font-size: 2em;
    margin-left: 0.25em;
}

.link--device-in-use ion-icon.apple-icon {
    transform: translateY(-2px);
}

.link--friends-only {
    align-self: flex-start;
    display: flex;
    align-items: center;
    text-decoration: none;
    grid-area: lock;
}

.link--friends-only ion-icon {
    margin-right: 0.5rem;
    font-size: 1.7rem;
}

.link--flashes {
    text-align: center;
}

.link--flashes .flash--danger,
.link--flashes .flash--success {
    display: inline-block;
    padding: 0.3rem 0.7rem;
}

.link--flashes .flash--danger {
    background: var(--danger);
    color: #dcdcdc;
}

.link--flashes .flash--success {
    background: var(--bg-accent);
    border: solid 1px var(--success);
}

.link--forked-from {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.8em;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-bg);
    padding: 0 0.45rem 0.1rem;
    border-bottom-left-radius: 0.4rem;
    border-bottom-right-radius: 0.4rem;
    max-width: 100px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.link--forked-from:hover {
    color: var(--bg);
    background: var(--accent);
}

.link--forked-from ion-icon {
    transform: translateY(1px);
    font-size: 1.3em;
}

/** Forms */

input[type=checkbox] {
    cursor: pointer;
    transform: translateY(-0.3em);
}

input[type=checkbox].toggle-next + * {
    display: none;
}

input[type=checkbox].toggle-next:checked + * {
    display: block;
}

input[type=text],
textarea {
    margin-bottom: 1rem;
}

label {
    margin-bottom: 0.5rem;
}

#link_theme {
    margin-top: 0.5rem;
    width: 180px;
}

.link--form__section + .link--form__section {
    margin-top: 3.5rem;
}

.link--form__section > h3 {
    display: flex;
    gap: 0.3rem;
}

.link--form__section > h3 > ion-icon {
    margin-right: 0.3rem;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 0.3em;
    border-radius: 0.3em;
    font-size: 0.7em;
    box-shadow: 0px 3px 0px var(--text-light);
    border: 1px solid var(--text-light);
    transform: translateY(-0.05em);
}

.link--form__section > p {
    color: var(--border);
    margin-bottom: 1.5rem;
    margin-top: 0.75rem;
}

.link--form--theme label {
    display: flex;
    align-content: center;
    margin-bottom: 0;
    gap: 0.4rem;
}

.link--form--theme em {
    color: var(--text-light);
    font-style: normal;
}

.link--form--theme label input[type=checkbox] {
    transform: translateY(-0.1em);
}

.link--form--text-row {
    display: flex;
    align-items: center;
    margin: 0.5rem 0 1.5rem;
    gap: 1rem;
}

.link--form--text-row input,
.link--form--text-row label {
    margin: 0;
}

.link--form--submit-row {
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0 4rem;
    padding: 0 3rem;
    flex-wrap: wrap;
}

.link--form--submit-row > input {
    flex: 1 1 120px;
}

.link--form--checkbox-row {
    display: flex;
    align-items: center;
    margin: 0.5rem 0 1rem;
    cursor: pointer;
}

.link--form--checkbox-row input {
    margin: 0;
}

.link--form--checkbox-row label {
    display: flex;
    align-items: center;
    margin-right: 0.5em;
}

.link--form--checkbox-row label ion-icon {
    font-size: 1.3em;
    margin-right: 0.4rem;
    transform: translateY(0em);
}

.link--form--min_score {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0rem 1rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.link--form--min_score label {
    flex: 1 1 100%;
}

.link--form--min_score input {
    margin: 0;
}

.link--form--min_score output {
    color: var(--border);
}

turbo-frame#pornsearch form {
    display: flex;
    gap: 1rem;
}

turbo-frame#pornsearch form input#tags {
    flex: 1 1 400px;
    margin: 0;
}

turbo-frame#pornsearch form > button {
    flex: 0 0 auto;
    margin: 0;
}

turbo-frame#pornsearch form > button ion-icon {
    transform: translateY(0.1rem);
}

turbo-frame#pornsearch_results .results {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(100px, 1fr) );
    gap: 1rem;
    justify-items: center;
    align-items: center;
    margin: 2rem 0;
}

turbo-frame#pornsearch_results .pornsearch_results__buttons,
.linksearch_results__buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    margin: 1rem -0 0;
    border-radius: 0.3rem;
    overflow-x: hidden;
}

turbo-frame#pornsearch_results .pornsearch_results__buttons a,
.linksearch_results__buttons a {
    padding: 0.5rem 1rem 0.5rem;
    background: var(--accent);
    color: var(--bg);
}

turbo-frame#pornsearch_results .pornsearch_results__buttons a[disabled],
.linksearch_results__buttons a[disabled] {
    pointer-events: none;
    background: var(--border);
    color: var(--disabled);
}

turbo-frame#pornsearch_results .results form {
    display: block;
    position: relative;
}

turbo-frame#pornsearch_results .results form button {
    display: block;
    background: none;
    padding: 0;
    width: 100%;
}

.link--response {
    text-align: center;
    font-size: 0.8rem;
    transform: translateY(-100%);
    max-height: 0;
    opacity: 0;
    background: var(--accent);
    padding: 0.3rem;
    margin-right: 1.5rem;
    margin-left: 1.5rem;
    margin-top: 1.3rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border-top-left-radius: 0.5rem;
    color: var(--bg);

    animation: linkResponseAppear 0.5s 1s normal forwards ease-in-out;
}

.link--response::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 0.7rem solid transparent;
    border-bottom: 0.7rem solid var(--accent);
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(0, -0.7rem);
}

.link--response strong {
    color: var(--bg);
}

.link--response small {
    display: block;
}

@keyframes linkResponseAppear {
    0% {
        transform: translateY(-100%);
        max-height: 0;
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        max-height: 60px;
        opacity: 1;
    }
}

.accent-block > .link {
    margin-top: 0;
}

@media screen and (max-width: 475px) {
    .link--device-in-use span {
        display: none;
    }
}

.tabs {
    display: grid;
    grid-template-rows: 30px auto auto;
    grid-template-areas: 'charm'
                         'labels'
                         'content';
}

.tabs__charm {
    color: var(--border);
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 0 0.75rem;
}

.tabs__labels {
    grid-area: labels;
}

.tabs__labels button {
    background: var(--bg);
    font-weight: bold;
    border-radius: 0;
    margin: 0;
    color: var(--text);
}

.tabs__labels button[data-open=true] {
    background: var(--accent-bg);
}

.tabs__labels button + button {
    margin-left: 1rem;
}

.tab {
    grid-area: content;
    padding: 1rem 1.5rem 1.5rem;
    background: var(--accent-bg);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.tab form > a {
    text-align: center;
    display: block;
    margin-top: 1rem;
}

.tab[data-open=false] {
    display: none;
}

figure > a.background-sample {
    text-decoration: none;
    position: relative;
    display: block;
}

figure:not(.embiggened) > a.background-sample img {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 1;
    object-fit: cover;
}

figure:not(.embiggened) > a.background-sample img.background-sample__image--desktop {
    top: calc(50% + 6px);
    height: 96px;
    width: 136px;
}

figure:not(.embiggened) > a.background-sample img.background-sample__image--mobile {
    top: calc(50% + 8px);
    height: 160px;
    width: 81px;
}

.embiggened img.embiggen-me-daddy {
    width:100%;
    max-height:80vh;
    object-fit: contain;
}

.embiggened .hide-when-embiggened {
    display: none;
}
.embiggen-button-container {
    display: flex;
    margin: auto;
    padding: 0;
    max-width: 25em;
}

.embiggen-button-container button {
    font-family: var(--sans-font);
}

.embiggen-button-container a {
    margin: 8px 0;
    padding: .7em .9em;
    flex-grow: 1;
    text-align: right;
}

.text-embiggen, .text-ensmallen {
    transform: translateY(2px) scale(1.1);
}

.embiggened .embiggen-button-container button .text-embiggen {
    display: none;
}

figure:not(.embiggened) .embiggen-button-container button .text-ensmallen {
    display: none;
}


figure > a.background-sample > ion-icon {
    font-size: 180px;
    color: var(--disabled);
}

figure > a.background-sample > ion-icon.background-sample__icon--desktop {
    margin-top: -40px;
}

figure > a.background-sample > ion-icon.background-sample__icon--mobile {
    mobile-top: -10px;
    margin-bottom: 40px;
}

figcaption.link--description {
    max-height: 110px;
    overflow: auto;
    padding: 1rem 0.5rem;
}

#comments {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    overflow-y: scroll;
    padding: 1rem 0 0;
    flex: 1;
}

#comments > turbo-frame {
    display: contents;
}

.comment {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 0.5rem;
}

.comment > strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.comment > p {
    margin: 0;
    line-height: inherit;
    word-wrap: anywhere;
    hyphens: auto;
}

.comment > p img {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    max-height: 190px;
    display: block;
}

.new_comment_form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.new_comment_form #comment_content,
.new_comment_form input[type=submit] {
    margin: 0;
}

.new_comment_form #comment_content {
    flex: 1 1 auto;
}

.new_comment_form input[type=submit] {
    flex: 0;
}

.new_comment_form input[type=submit][disabled] {
    color: var(--border);
}

.new_comment_form .field_with_errors {
    display: contents;
}

aside.comments-sidebar[data-hidden=true] {
    transform: translateX(100%);
}

aside.comments-sidebar {
    z-index: 999999;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    padding: 0 1rem 1rem;
    box-sizing: border-box;
    min-width: 320px;
    width: 100vw;
    max-width: 480px;
    box-shadow: 0 0 30px 5px #1111116e;
    transform: translateX(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

aside.comments-sidebar > button {
    background: var(--bg);
    position: absolute;
    left: 0px;
    transform: translateX(-100%);
    bottom: 74px;
    width: auto;
    padding: 0.6rem 0.4rem;
    margin: 0;
    color: var(--text);
    font-size: 1.7rem;
    line-height: 1rem;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

aside.comments-sidebar[data-hidden=true] > button .toggle-open-icon {
    display: block;
}

aside.comments-sidebar[data-hidden=true] > button .toggle-close-icon {
    display: none;
}

aside.comments-sidebar[data-hidden=false] > button .toggle-open-icon {
    display: none;
}

aside.comments-sidebar[data-hidden=false] > button .toggle-close-icon {
    display: block;
}

aside.comments-sidebar > button .toggle-badge {
    position: absolute;
    top: 0;
    background: var(--accent);
    width: 1rem;
    height: 1rem;
    color: var(--bg);
    font-weight: bold;
    font-size: 0.8rem;
    border-radius: 1rem;
    left: 0;
    text-align: center;
}

aside.comments-sidebar > button .toggle-badge[data-hidden=true] {
    display: none;
}

@media screen and (max-width: 525px) {
    aside.comments-sidebar > button {
        position: static;
        width: 55px;
        border: none;
        border-top-left-radius: 0;
        text-align: center;
        display: flex;
        justify-content: center;
        transform: translateX(calc(-100% - 1rem));
        background: var(--accent);
        color: var(--bg);
        transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    }

    aside.comments-sidebar[data-hidden=false] > button {
        transform: translateX(-1rem);
        border-radius: 0;
        background: rgba(0, 0, 0, 0);
        color: var(--text);
    }
}

.viewing-users__users {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.viewing-users__users a {
    color: var(--border);
}

.link--anchor-shade {
    height: 100%;
    width: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 90;
}

.link--anchor-shade-container {
    position: relative;
}

.link--anchor-shade-container a:not(.link--anchor-shade) {
    z-index: 9999;
}

.link--anchor-shade-container .link--terms p a:not(.link--anchor-shade) {
    position: relative;
}

.link-form__abilities {
    margin-top: 3rem;
}

.abilities {
    margin: 2rem 0;
}

.abilities__ability {
    display: flex;
    gap: 0.4rem 1rem;
}

.abilities__ability--disabled {
    pointer-events: none;
    position: relative;
    flex-wrap: wrap;
    background: var(--accent-bg);
    outline: var(--accent-bg) 12px solid;
    margin-top: calc(1rem + 10px) !important;
}

.abilities__ability--disabled::before {
    content: 'Coming Soon';
    display: block;
    padding: 0.2rem 10px;
    margin: -10px -10px 0.3rem -10px;
    position: relative;
    z-index: 99;
    flex: 1 1 100%;
    font-weight: bold;
    background-image: linear-gradient(45deg, #ffb300 25%, #ab8118 25%, #ab8118 50%, #ffb300 50%, #ffb300 75%, #ab8118 75%, #ab8118 100%);
    background-size: 56.57px 56.57px;
    color: var(--bg);
}

.abilities__ability--disabled button,
.abilities__ability__controls button.enabled {
    background: var(--bg);
    color: var(--accent);
    border-width: 1px;
    border-color: var(--accent);
    border-style: solid;
}

.abilities__ability + .abilities__ability {
    margin-top: 1rem;
}

.abilities__ability__title {
    flex: 1;

    & iconify-icon {
        font-size: 1.2em;
        transform: translateY(1px);
    }
}

.abilities__ability__title > p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.4rem;
}

.abilities__ability__title strong ion-icon {
    font-size: 1.2em;
    transform: translateY(3px);
    margin-right: 0.3rem;
}

.abilities__ability__title .mascot {
    transform: translateY(4px);
    margin-right: 4px;
}

.video-icon {
    transform: translateY(2px);
    margin: 0 0.1rem 0 0.2rem;
}

h4.forks-header + p {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.forks-list {
    display: grid;
    gap: 1rem 0.5rem;
    grid-template-columns: repeat(4, auto);
}

.forks-list a {
    text-align: center;
}

@media screen and (max-width: 760px) {
    .forks-list {
        grid-template-columns: repeat(2, auto);
    }
}

@media screen and (max-width: 480px) {
    .forks-list {
        grid-template-columns: repeat(1, auto);
    }
}

.embed__preview {
    position: absolute;
    inset: 0;

    & .embed__text {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        min-height: 100px;
        z-index: 999;
        background-image: linear-gradient(180deg, transparent 0%, var(--bg) 120%);

        & .embed__text__content {
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            font-size: 1.1rem;
            padding: 1.4rem 1.7rem;
        }

        & > time {
            font-size: 0.9rem;
        }

        & > #link_comments {
            position: fixed;
            right: 0;
            top: 0;
            bottom: 0;
            background-image: linear-gradient(90deg, transparent 0%, var(--bg) 120%);
            padding: 2rem;
            flex-direction: column-reverse;
            display: flex;
            gap: 0.5rem;
            overflow: hidden;

            & .comment {
                display: block;
                opacity: 0.8;
                font-size: 0.8rem;
            }

            & strong {
                display: block;
            }

            & p {
                text-align: right;
                max-width: 180px;
            }

            & img {
                display: none;
            }
        }
    }


    & img {
        opacity: 1;
        position: absolute;
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
        object-fit: cover;
    }

    &.contain img {
        object-fit: contain;
    }
}

.dashboard {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
    gap: 2rem;
}
.dashboard-header {
    margin: 1rem 0;
    background: var(--accent-bg);
    text-align: center;
    padding: 0.4rem 1rem;
    border-radius: 4px;
}

.dashboard .chart {
    margin-top: 1rem;
    margin-bottom: -6px;
}

.dashboard .chart canvas {
    width: 100% !important;
}

.dashboard table {
    margin-top: 0;
}

.dashboard table tbody {
    width: 100%;
    display: table;
    box-sizing: border-box;
}

.dashboard table a[data-online=true]::after {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--success);
    border-radius: 100%;
    margin-left: 0.25rem;
}

.dashboard table td a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 210px;
    display: block;
}

.dashboard h2 {
    margin-top: 0rem;
    text-align: left;
    font-size: 1.35rem;
    padding: 0 0 0.5rem;
    min-height: 2.4ex;
}

.dashboard h2 > small {
    margin-top: 0.85em;
    font-size: 0.5em;
}

.dashboard__recent {
    grid-column: 1 / -1;
    grid-row: 1 / span 1;
}

.dashboard__recent a {
    text-align: center;
}

.dashboard__recent__content turbo-frame {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.dashboard__recent__content turbo-frame > * {
    flex: 1 1 100px;
}

.dashboard__online {
    grid-column: 1 / span 1;
    grid-row: 2 / span 2;
    text-align: center;
}

.dashboard__online__content {
    font-size: 3.5rem;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.dashboard__online a,
.dashboard__online a:visited {
    color: var(--text);
}

.dashboard__online__content::after {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background: var(--success);
    border-radius: 100%;
    margin-left: 0.25rem;
    position: absolute;
    top: 0.3rem;
}

.dashboard__total-updates {
    grid-column: 1 / span 1;
    grid-row: 4 / span 1;
}

.dashboard__total-updates__content {
    font-size: 1.5rem;
    text-align: center;
    line-height: 2.6rem;
    margin: 2rem 0 1rem;
}

.dashboard__total-updates__content em {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    font-style: normal;
}

.dashboard__newest-user {
    grid-column: 1 / span 1;
    grid-row: 6 / span 1;
}

.dashboard__newest-user__content {
    text-align: center;
    font-size: 1.75rem;
    position: relative;
}

.dashboard__newest-user__content a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

.dashboard__leaderboard {
    grid-column: 2 / span 2;
    grid-row: 4 / span 2;
}

.dashboard__your-total-changes {
    grid-column: 1 / span 1;
    grid-row: 5 / span 1;
}

.dashboard__updates {
    grid-column: 2 / -1;
    grid-row: 3 / span 1;
    max-height: 360px;
    display: flex;
    flex-direction: column;
}

.news-room__panel {
    grid-column: 2 / -1;
    grid-row: 2 / span 1;

    h2 {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;

        & .WTN-logo {
            font-size: 1.3rem;
            padding: 5px 4px 0px;
            line-height: 18px;
        }

        & button {
            font-size: 0.75rem;
            padding: 4px 7px;
            margin: 0;
        }
    }
}

.dashboard__updates__content {
    overflow-y: auto;
    flex: 1 1 100%;
}

@media screen and (max-width: 590px) {
    .dashboard {
        grid-template-columns: 100%;
    }

    .dashboard__updates {
        grid-column: 1 / span 1;
        grid-row: 2 / span 1;
        overflow: initial;
        max-height: initial;
    }

    .news-room__panel {
        grid-column: 1 / span 1;
        grid-row: 4 / span 1;
    }

    .dashboard__updates__content {
        max-height: 300px;
    }

    .dashboard__online {
        grid-row: 3 / span 1;
    }

    .dashboard__total-updates {
        grid-row: 6 / span 1;
    }

    .dashboard__newest-user {
        grid-row: 8 / span 1;
    }

    .dashboard__your-total-changes {
        grid-row: 5 / span 1;
    }

    .dashboard__leaderboard {
        grid-column: 1 / span 1;
        grid-row: 7 / span 1;
    }
}

.kofi-button ion-icon {
    font-size: 1.4em;
    margin: 0px 0 -6px 0;
}

.dashboard__users-viewing-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.5rem 0 0;
}

.dashboard__users-viewing-links em {
    text-align: center;
    display: block;
    flex: 1 1 100%;
    font-size: 0.8rem;
}

turbo-frame#users_viewing_links {
    width: 100%;
}

turbo-frame#users_viewing_links strong {
    color: var(--border);
}

.explainer_graphic {
    padding: 2rem 0 0;
    color: var(--text-light);
}
.past-link-posts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.past-link-posts.past-link-posts--grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(100px, 1fr) );
    justify-items: center;
    justify-content: flex-start;
}

.past-link-posts > a {
    display: block;
    flex: 0 1 auto;
}

.past-link-posts > a > img {
    max-height: 200px;
}

h2 > small,
h2 > .gios-user-grid > small {
    color: var(--border);
    display: block;
    font-size: 0.35em;
    margin: 1.15rem 0 0;
}

h2 > small + small {
    margin-top: 0.5rem !important;
}

h2 > span > .text-charm__medal,
h2 > span > .text-charm__medal:hover {
    transform: translateY(0.1rem) !important;
    cursor: default;
}

.details__container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

.details__container > * {
    min-width: 0;
}

.details__container pre {
    box-sizing: border-box;
    max-width: 100%;
    overflow: auto;
}

.details__container textarea {
    width: 100%;
    min-height: 10em;
    margin-top: 1rem;
}

.markdown-editor__surface {
    background: var(--accent-bg);
    border: 1px solid var(--border);
    border-radius: 0.35rem;
    margin-top: 1rem;
    overflow: hidden;
}

.markdown-editor__toolbar {
    align-items: center;
    background: #ffb300;
    display: flex;
    gap: 0;
    min-height: 2.8rem;
    overflow-x: auto;
    padding: 0;
}

.markdown-editor__toolbar button,
.markdown-editor__color-control {
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-right: 1px solid #d99700 !important;
    box-sizing: border-box;
    color: #212121 !important;
    display: inline-flex;
    flex: 0 0 2.75rem;
    font-size: 1.05rem;
    height: 2.8rem;
    justify-content: center;
    margin: 0 !important;
    min-width: 2.75rem;
    padding: 0 !important;
    width: 2.75rem;
}

.markdown-editor__toolbar button:hover,
.markdown-editor__toolbar button:focus,
.markdown-editor__color-control:hover,
.markdown-editor__color-control:focus-within {
    background: #ffc43d !important;
    color: #212121 !important;
    filter: none !important;
}

.markdown-editor__toolbar button > * {
    color: inherit !important;
}

.markdown-editor__toolbar button ion-icon {
    font-size: 1.2rem;
    pointer-events: none;
}

.markdown-editor__color-control {
    cursor: pointer;
    flex-direction: column;
    gap: 0.1rem;
}

.markdown-editor__color-control ion-icon {
    font-size: 1rem;
    pointer-events: none;
}

.markdown-editor__color-control input[type="color"] {
    border: 1px solid #212121;
    border-radius: 1px;
    cursor: pointer;
    height: 0.35rem;
    margin: 0;
    padding: 0;
    width: 1.25rem;
}

.markdown-editor__color-control input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.markdown-editor__color-control input[type="color"]::-webkit-color-swatch {
    border: 0;
}

.markdown-editor__underline {
    text-decoration: underline;
}

.markdown-editor__divider {
    background: #d99700;
    height: 2.8rem;
    margin: 0;
    width: 1px;
}

.details__container .markdown-editor__surface textarea {
    background: var(--bg);
    border: 0;
    border-radius: 0;
    color: var(--text);
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    line-height: 1.5;
    margin: 0;
    min-height: 18rem;
    resize: vertical;
}

.markdown-editor__footer {
    color: var(--text-light);
    display: flex;
    font-size: 0.8rem;
    justify-content: space-between;
    padding: 0.3rem 0.5rem;
}

.details__container blockquote {
    margin: 1rem 1rem;
    font-style: normal;
    overflow-wrap: anywhere;
}

.details__container blockquote > h1,
.details__container blockquote > h2,
.details__container blockquote > h3,
.details__container blockquote > h4,
.details__container blockquote > h5,
.details__container blockquote > h6 {
    margin-top: 0;
}

.see-all-past-wallpapers {
    display: block;
    text-align: right;
    margin: 1rem 0 2rem;
    text-decoration: none;
}

#api_key_form,
.orgasms-log {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.api-key {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.api-key form.button_to {
    position: relative;
    width: 100%;
    display: block;
}

.api-key__key {
    font-size: 2.75rem;
    font-weight: bold;
    background: var(--disabled);
    font-family: monospace;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
    margin: 0.5rem 0 1rem;
}

.danger-button {
    background: var(--danger) !important;
    color: #FFF !important;
}

@media screen and (max-width: 475px) {
    .api-key__key {
        font-size: 2rem;
    }
}

turbo-frame#orgasm_form {
    display: flex;
    flex-direction: column;
}

turbo-frame#orgasm_form .accent-block {
    flex: 1 1 100%;
    margin-top: 0;
}

turbo-frame.accent-block {
    margin-top: 0;
}

form.orgasms {
    padding: 0;
}

form.orgasms h3 {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

form.orgasms input[type=submit] {
    width: auto;
    margin: 0 auto;
    display: block;
}

.orgasms__credit_to_user {
    width: 100%;
}

.orgasms__rating {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.orgasms__rating .orgasms__rating__option {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: bold;
}

.orgasms__rating .orgasms__rating__option label {
    margin-bottom: 0.2rem;
}

form.orgasms .form__row {
    justify-content: center;
}

.form__group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.form__group input[type=radio],
.form__group input[type=checkbox] {
    margin: 0;
}

.settings__username-note {
    display: block;
    text-align: center;
    width: 100%;
}

.settings__field-grid {
    align-items: center;
    display: grid;
    column-gap: 0.75rem;
    grid-template-columns: max-content minmax(0, 1fr);
    row-gap: 1rem;
    width: 100%;
}

.settings__field-grid .form__row {
    display: contents;
}

.settings__field-grid label {
    white-space: nowrap;
}

.settings__field-grid input {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

@media screen and (max-width: 400px) {
    .settings__field-grid {
        grid-template-columns: 1fr;
    }

    .settings__field-grid .form__row {
        align-items: stretch;
        display: flex;
        flex-direction: column;
    }

    .settings__field-grid label {
        white-space: normal;
    }
}

.form__row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0.75rem 0;
    cursor: pointer;
    position: relative;

    & > .form__row__charm {
        position: absolute;
        top: 37%;
        right: 7px;
        transform: translateY(-50%);
        opacity: 0.7;
    }

    & .full-span {
        width: 100%;
    }

    &.stacked {
        flex-direction: column;
        align-items: flex-start;
    }

    &.signature {
        &::after {
            content: "x";
            position: absolute;
            bottom: 1rem;
            left: 0.5rem;
            display: block;
            font-size: 1.7rem;
        }

        input, .signature__inner {
            margin-left: 2rem;
            border-top: none;
            border-left: none;
            border-right: none;
            border-radius: 0;
        }

        & .signature__inner {
            margin-bottom: 1rem;
            font-size: 2rem;
            transform: translateY(5px);

            & small {
                display: inline-block;
                font-size: 0.8em;
                transform: translateY(-3px) rotate(2deg);
            }
        }
    }
}

.flat-bottom {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0
}

.nut_pledge_failed {
    flex-wrap: wrap;
    margin-top: -1rem;
    margin-bottom: 1rem;
    background: var(--accent);
    color: var(--bg);
    padding: 0.4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    & .preview{
        position: relative;
        flex: 1 0 100%;
        display: flex;
        justify-content: center;

        &::before {
            position: absolute;
            left: 50%;
            top: 0;
            transform: translateX(-50%);
            z-index: 99;
            pointer-events: none;
            content: "";
            display: block;
            width: 120px;
            height: 120px;
            background:
                    repeating-conic-gradient(rgba(238, 234, 231, 0.23) 0 3%, transparent 0 11%),
                    repeating-conic-gradient(transparent 0 5%, rgba(238, 234, 231, 0.30) 0 7%) 50% / 60% 60%,
                    repeating-conic-gradient(transparent 0 7%, rgba(238, 234, 231, 0.33) 0 9%) 50% / 70% 70%,
                    repeating-conic-gradient(transparent 0 11%, rgba(238, 234, 231, 0.23) 0 13%) 50% / 80% 80%,
                    radial-gradient(rgba(238, 234, 231, 0.44) 22%, transparent 0);
            background-repeat: no-repeat;
            filter: blur(2px) contrast(50);
        }
    }
    & img {
        max-width: 120px;
    }
}

.nut-pledge-history__status {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.nut-pledge-history__preview img {
    display: block;
    max-height: 90px;
    max-width: 120px;
    object-fit: contain;
}

.form__row--stacking {
    flex-wrap: wrap;
}

.form__row--checkbox {
    align-items: flex-start;
    gap: 1rem;

    & > input[type="checkbox"] {
        margin-top: 2px;
    }
}

.form__row input.full-width {
    width: 100%;
    margin-bottom: 0;
}

.form__row label {
    margin: 0;
}

.form__row input[type=checkbox] {
    transform: translateY(0.1em);
}

h2.with-chart {
    padding: 0;
}

h2.with-chart #chart-1 {
    transform: translateY(7px);
}

.kink_tools {
    font-size: 0.9rem;
    margin-top: 1rem;
}

#kink_tools {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.kink_form {
    gap: 0 !important;
}

.kink_form input[type=text] {
    margin: 1px 0 1px 1px;
    width: 100px;
}

.kinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kinks > turbo-frame {
    display: contents;
}

.kink,
.kink_form {
    display: flex;
    align-items: center;
    border-radius: 6px;
    min-height: 30px;
}

.kink.valid,
.kink_form {
    background: var(--accent);
    color: var(--bg);
}

.kink.untested {
    background: var(--accent-bg);
    color: var(--accent);
}

.kink > a {
    color: inherit;
    display: block;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.kink > form {
    display: contents;
}

.kink.untested button {
    border: none;
}

.kink button {
    background: var(--accent-bg);
    color: var(--accent);
    border: var(--accent) 2px solid;
}

.kink button:hover {
    filter: none !important;
    background: var(--danger);
    color: var(--danger-text);
}

.kink button,
.kink_form input[type=submit] {
    margin: 0;
    padding: 0 0.5rem;
    height: 100%;
    font-size: 1.2rem;
    width: 39px !important;
    height: 38px;
}

.kink__status {
    display: contents;
}

.kink ion-icon.star {
    margin-left: 0.5rem;
}

.user_segments {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user_segment {
    display: block;
    padding: 0.75rem 1rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.user_segment .wallpapers {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    animation: 120s ease-out infinite scroll-wallpapers;

    column-count: 3;
    column-gap: 0.25rem;
}

@keyframes scroll-wallpapers {
    0% {
        opacity: 0;
        transform: translateY(4%);
    }

    1% {
        opacity: 1;
        transform: translateY(0);
    }

    95% {
        opacity: 1;
        transform: translateY(-90%);
    }

    100% {
        opacity: 0;
        transform: translateY(-120%);
    }
}

.user_segment .wallpapers img {
    opacity: 0.2;
    position: relative;
    user-select: none;
}

.user_segment h3 {
    margin: 0;
}

.user_segment .user-segement-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user_segment h3 .text-charm {
    transform: translateY(-10px);
}

.gios-user-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 0.2rem;

    @media screen and (max-width: 600px) {
        grid-template-columns: 1fr;

        & > small:last-child {
            text-align: left !important;
        }
    }

    & > small {
        display: grid !important;
        gap: 0.4rem;
        grid-template-columns: subgrid;

        &:last-child {
            text-align: right;
        }
    }
}

.wall_editor {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    & .editor {
        &::part(inner-container) {
            overflow: visible;
        }
    }
}

.editor-hints {
    margin-top: 0.5rem;
    border-width: 0 !important;
}

.editors {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    width: 95dvw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);

    & .accent-block {
        flex: 1 1 500px;
        margin-top: 0 !important;
        position: relative;

        & .editor {
            height: 500px;
        }
    }
}

.install_profile {
    margin: 1rem 0;
}

.profile_preview {
    display: block;
    pointer-events: none;
    user-select: none;
    transform: scale(0.9);
    box-shadow: 0 0 10px 4px var(--accent-bg);
    border: solid 1px var(--accent-bg);
    padding: 2rem;
}

.profile_attribution {
    position: fixed;
    bottom: 0;
    right: 0;
    background: var(--accent-bg);
    color: var(--text);
    z-index: 99999;
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
}

.profiles__browse-link {
    float: right;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 0.8rem;
}

@media screen and (max-width: 475px) {
    .profiles__browse-link {
        display: block;
        float: none !important;
        margin-top: 0.75rem !important;
    }
}

.profiles {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    & .profile {
        background: var(--accent-bg);
        padding: 1rem;
        border-radius: 5px;
        display: flex;
        flex-direction: column;
        min-height: 400px;
        gap: 1rem;

        & .profile__header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1.1rem;
        }

        & > a {
            position: relative;
            flex: 1 1 100%;
            display: flex;
            flex-direction: column;
        }

        & .profile__frame {
            flex: 1 1 100%;
            position: relative;
            border: 1px solid var(--border);
            padding: 1px;
            overflow: hidden;
            border-radius: 5px;
            --scale-factor: 0.4;

            &:hover {
                --scale-factor: 0.7;
            }

            & iframe {
                border: none;
                transform: scale(var(--scale-factor));
                width: calc(1 / var(--scale-factor) * 100%);
                height: calc(1 / var(--scale-factor) * 100%);
                transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
                transform-origin: 0 0;
                pointer-events: none;
                user-select: none;
                display: block;
                position: absolute;
            }
        }
    }
}

.user-leash {
    font-size: 1rem;
    padding: 1rem;
    border: 1px solid var(--accent);
    margin: 1rem 0;
    border-radius: 4px;
}

.user-kennel {
    margin-bottom: 1rem;

    & > [id^="leash"]:first-of-type {
        margin-top: 0;
    }
}

.lizard_type {
    font-weight: 400;
    font-style: normal;

    &.warren {
        font-family: "Lacquer", system-ui;
    }

    &.ki {
        font-family: "Vibur", cursive;
    }

    &.taylor {
        font-family: "Mrs Saint Delafield", cursive;
    }
}

.member-editor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.member-editor > *:is(.members__container, .friends__container) {
    position: relative;
}

.member-editor > *:is(.members__container, .friends__container) + *:is(.members__container, .friends__container)::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(calc(-1rem + 3px));
    height: 100%;
    width: 1px;
    background: var(--border);
}

.member-editor > *:is(.members__container, .friends__container) > h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.25rem;
    text-align: center;
}

.member-editor > *:is(.members__container, .friends__container) ul {
    padding: 0;
    list-style-type: none;
}

:is(.members__member, .friends__friend) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}
.messages {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
    height: calc(100vh - 350px);
    min-height: 450px;
    overflow-y: scroll;
    padding: 0;
    margin: 0 0 1rem;
}

#new_message_form > form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#new_message_form button[type=submit],
#new_message_form #message_content {
    margin: 0;
    padding: 0.75rem 1rem;
}


#new_message_form button[type=submit] {
    flex: 0 0 auto;
}
#new_message_form #message_content {
    flex: 1;
}

.messages__message__container {
    display: flex;
    justify-content: flex-end;
}

.messages__message {
    flex: 0 1 auto;
    text-align: right;
}

.messages__message p {
    display: inline-block;
}

.messages__message img,
.messages__message video {
    max-width: 80%;
}

.messages__message p + a > img,
.messages__message p + video {
    margin-top: 1rem;
}

.messages__message > p {
    background: var(--accent);
    border-radius: 0.25rem;
    text-align: right;
    color: var(--bg);
    padding: 0.5rem 0.8rem;
    margin: 0;
}

.messages__message > strong {
    text-align: right;
    display: block;
    color: var(--text-light);
    font-weight: normal;
    font-size: 0.8rem;
    margin: 0.25rem 0 0;
}

.messages__message_container--self {
    justify-content: flex-start;
}

.messages__message_container--self .messages__message {
    text-align: left;
}

.messages__message_container--self .messages__message > strong {
    text-align: left;
}

.messages__message_container--self .messages__message > p {
    text-align: left;
    background: var(--accent-bg);
    color: var(--text);
}

.threads__thread {
    display: flex;
    margin: 1rem 0;
    position: relative;
    gap: 1rem;
}

.threads__thread:hover a {
    background: var(--accent);
    color: var(--bg);
}

.threads__thread a {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--accent-bg);
    padding: 1rem 1.25rem;
    border-bottom-left-radius: 0.3rem;
    border-top-left-radius: 0.3rem;
    text-decoration: none;
}

.threads__thread form.button_to {
    display: block;
}

.threads__thread form.button_to button {
    margin: 0;
    background: var(--danger);
    color: #FFF;
    border: 0;
    height: 100%;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    border-bottom-right-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
    font-size: 1.4rem;
    padding: 0 1rem;
}
.news-room {
    min-height: 100dvh;
    position: relative;
    grid-column: 1 / span 3;
    overflow: hidden;

    &::after {
        content: '';
        display: block;
        position: fixed;
        background: var(--bg);
        max-height: 330px;
        max-width: 370px;
        bottom: -30px;
        right: -30px;
        z-index: 1;
        filter: blur(30px);
        opacity: 0.6;
        height: 100%;
        width: 100%;
    }
}

.news-room__desk {
    position: fixed;
    bottom: -25px;
    right: -65px;
    width: 370px;
    z-index: 10;

    & > img {
        opacity: 1;
        position: relative;
        z-index: 10;
    }
}

#news_backdrop {
    display: block;
    grid-column: 1 / -1;
    height: 100dvh;
    overflow: hidden;

    & > img {
        opacity: 1;
    }

    & .news-room__backdrop {
        width: 100%;
        height: 100%;
        border-radius: 0;
        object-fit: cover;
        position: relative;
        z-index: 1;
    }

    & .news-room__feature {
        position: fixed;
        bottom: 250px;
        right: 100px;
        width: 120px;
        transform: translate(-50%, 100%);
        border: 3px solid var(--border);
        z-index: 5;
    }
}

.thought {
    position: relative;
    top: 40px;
    left: -40px;
    z-index: 999;
    display: flex;
    background-color: var(--text);
    padding: 20px;
    border-radius: 30px;
    min-width: 40px;
    max-width: 220px;
    min-height: 40px;
    margin: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg);
    z-index: 15;
}

.thought:before,
.thought:after {
    content: "";
    background-color: var(--text);
    border-radius: 50%;
    display: block;
    position: absolute;
    z-index: -1;
}

.thought:before {
    width: 44px;
    height: 44px;
    top: -12px;
    left: 28px;
    box-shadow: -50px 30px 0 -12px var(--text);
}

.thought:after {
    bottom: -10px;
    right: 26px;
    width: 30px;
    height: 30px;
    box-shadow: 40px -34px 0 0 var(--text),
    -28px -6px 0 -2px var(--text),
    -24px 17px 0 -6px var(--text),
    -5px 25px 0 -10px var(--text);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

header .user-tools .user-tools__browse {
    position: relative;
    white-space: nowrap;
}

header .user-tools .return-from-surrender {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    font-size: inherit;
    line-height: inherit;
    z-index: 1;
}

.bot-tools {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.bot-tools__bot {
    margin: 0;
}
.bot-tools__heading,
.bot-tools__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.bot-tools__heading h3 {
    margin: 0;
    overflow-wrap: anywhere;
}
.bot-tools__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.bot-tools__form textarea {
    display: block;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}
.bot-tools__timing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.bot-tools__timing label,
.bot-tools__timing input {
    display: block;
    width: 100%;
    box-sizing: border-box;
}
.bot-tools__actions {
    justify-content: flex-start;
    margin-top: 1rem;
}
.bot-tools__actions form,
.bot-tools__actions button {
    margin: 0;
}

.client-guide {
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-guide .accent-block,
.client-guide .tab,
.client-guide pre {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.client-guide-examples {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas: 'labels' 'content';
}

.client-guide-examples .tabs__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.client-guide-examples .tabs__labels button + button {
  margin-left: 0;
}

.client-guide-examples .tab {
  padding: 1rem 0 0;
}

.client-guide pre {
  max-height: 32rem;
  overflow: auto;
  white-space: pre;
  overflow-wrap: normal;
}

.client-guide pre code.hljs {
  padding: 1rem;
  overflow: visible;
}

.client-guide-examples pre {
  margin: 0;
  padding: 0;
}

@media (max-width: 600px) {
  .client-guide .accent-block {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .client-guide .mascot {
    float: none;
    display: block;
    margin: 0 auto 1rem;
    max-width: 100%;
    height: auto;
  }
}

/* The explainer SVG uses currentColor. As a standalone image its default is
   black; preserve the old inline SVG's contrast for both dark-mode choices. */
html.force-dark .explainer_graphic { filter: invert(1); }
@media (prefers-color-scheme: dark) {
  html:not(.force-light) .explainer_graphic { filter: invert(1); }
}
/* The closed off-canvas comments panel must not widen the document. */
html:has(aside.comments-sidebar),
body:has(aside.comments-sidebar) { overflow-x: clip; }
/* Block frames contain card margins, so the heading must not add a second gap. */
h2.owned-links-heading {
  margin-bottom: 0;
}
/* Block frames avoid inline line boxes around the cards and their replies. */
#links.owned-links > [data-controller="go"] > turbo-frame,
#user > [data-controller="go"] > turbo-frame {
  display: flow-root;
}
#links.owned-links > [data-controller="go"] + [data-controller="go"],
#user > [data-controller="go"] + [data-controller="go"] {
  margin-top: 1.25rem;
}
#links.owned-links > [data-controller="go"] + [data-controller="go"] .link,
#links.owned-links > [data-controller="go"] + [data-controller="go"] > turbo-frame > .accent-block--link,
#user > [data-controller="go"] + [data-controller="go"] .link,
#user > [data-controller="go"] + [data-controller="go"] > turbo-frame > .accent-block--link {
  margin-top: 0;
}
.user-tools__browse .return-from-surrender {
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
}
