:root {
    color-scheme: light;
    --bg: #f5f5f4;
    --surface: #ffffff;
    --text: #222222;
    --text-soft: #444444;
    --muted: #777777;
    --border: #d4d4d8;
    --field: #f5f5f4;
    --field-editor: #ffffff;
    --btn: #d4d4d8;
    --btn-hover: #bcbcc0;
    --th: #f5f5f4;
    --code: #f5f5f5;
    --quote: #d4d4d8;
    --link: #0000ee;
    --primary-color: #d4d4d8;
    --accent: #615fff;
    --go-bg: #f5f5f4;
    --go-hover: #bcbcc0;
    --go-border: #d4d4d8;
    --go-border-hover: #bcbcc0;
    --danger: #b00020;
    --danger-btn: #cc0000;
    --danger-btn-text: #ffffff;
    --error-bg: #fdecea;
    --error-border: #f5c2c7;
    --notice: #1e4620;
    --notice-bg: #edf7ed;
    --notice-border: #c3e6c3;
    --overlay: rgba(0, 0, 0, 0.45);
    --paste-outer: #ffffff;
    --paste-inner: #ffffff;
    --paste-text: #000000;
    --paste-link: #0000ee;
    --paste-bullet: #000000;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #141518;
    --surface: #1d1e22;
    --text: #e6e6e8;
    --text-soft: #c4c5ca;
    --muted: #9b9ca4;
    --border: #2f3138;
    --field: #292b31;
    --field-editor: #1d1e22;
    --btn: #2f3139;
    --btn-hover: #3b3e48;
    --th: #24262b;
    --code: #292b31;
    --quote: #3c3e46;
    --link: #8ab4ff;
    --primary-color: #4a4f5e;
    --accent: #8b89ff;
    --go-bg: #2a2c32;
    --go-hover: #353840;
    --go-border: #3d4049;
    --go-border-hover: #555967;
    --danger: #ff7b8a;
    --danger-btn: #b3182b;
    --danger-btn-text: #ffffff;
    --error-bg: #3a1d22;
    --error-border: #6b2a33;
    --notice: #a9dcab;
    --notice-bg: #1d2d1e;
    --notice-border: #2f5a31;
    --overlay: rgba(0, 0, 0, 0.65);
    --paste-outer: #121316;
    --paste-inner: #1c1d21;
    --paste-text: #e8e8ea;
    --paste-link: #8ab4ff;
    --paste-bullet: #e8e8ea;
}
.muted {
    color: var(--muted);
    font-size: 13px;
}
.bio {
    white-space: pre-wrap;
}
.badge {
    display: inline-block;
    padding: 0 6px;
    margin-left: 4px;
    font-size: 11px;
    line-height: 18px;
    color: var(--muted);
    background: var(--field);
    border: 1px solid var(--border);
    text-transform: lowercase;
    vertical-align: middle;
}
.badge-flag {
    color: var(--danger);
    border-color: var(--danger);
}
.profile-container {
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
    background: var(--profile-bg, var(--surface));
    border: 1px ridge var(--primary-color);
    padding: 20px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.profile-container {
    margin-left: auto;
    margin-right: auto;
}
.profile-container > * {
    max-width: 100%;
}
.profile-cover {
    width: calc(100% + 40px);
    max-width: none !important;
    height: 160px;
    margin: -20px -20px 0;
    overflow: hidden;
    background: var(--field);
}
.profile-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
}
.profile-container .pfp {
    width: 96px;
    height: 96px;
    object-fit: cover;
    background: var(--field);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.profile-container.has-cover .pfp {
    margin-top: -58px;
    border: 4px solid var(--profile-bg, var(--surface));
    position: relative;
}
.profile-container h1 {
    margin: 0 0 4px;
}
.profile-container h2 {
    margin: 6px 0 0;
    font-size: 17px;
}
.profile-container p {
    margin: 0;
}
.profile-info .muted {
    margin: 0;
}
.paste-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}
.paste-list li {
    padding: 2px 0;
}
.profile-container form.inline-form {
    display: inline;
    margin: 0;
}
.profile-container button.linklike {
    min-height: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    color: var(--link);
    font: inherit;
    cursor: pointer;
}
.profile-container button.linklike:hover {
    text-decoration: underline;
}
.page-tools {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    display: flex;
    gap: 6px;
    margin: 10px;
}
.page-tools a.report-link,
.page-tools .theme-toggle,
.page-tools .audio-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    color: var(--muted);
    cursor: pointer;
    line-height: 0;
}
.page-tools a.report-link:hover,
.page-tools .theme-toggle:hover,
.page-tools .audio-toggle:hover {
    color: var(--text);
    text-decoration: none;
    background: var(--surface);
}
.theme-toggle .ico-moon {
    display: none;
}
:root[data-theme="dark"] .theme-toggle .ico-sun {
    display: none;
}
:root[data-theme="dark"] .theme-toggle .ico-moon {
    display: block;
}
#content-warning {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    overflow-y: auto;
    background: var(--bg);
    color: var(--text);
    font-family: Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
    text-shadow: none;
    letter-spacing: normal;
    direction: ltr;
    cursor: auto;
}
#content-warning * {
    box-sizing: border-box;
    text-shadow: none;
}
#content-warning .cw-card {
    width: min(384px, calc(100% - 32px));
    margin: 37px auto 32px;
    padding: 22px;
    background: var(--surface);
    border: 1px ridge var(--primary-color);
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
}
#content-warning .cw-title {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    color: var(--danger);
    line-height: 1.2;
}
#content-warning .cw-label {
    text-align: center;
    font-size: 14px;
    margin: 6px 0 14px;
    color: var(--muted);
}
#content-warning .cw-desc {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 10px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
#content-warning .cw-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    cursor: pointer;
}
#content-warning .cw-opt input {
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
}
#content-warning .cw-actions {
    margin-top: 18px;
}
#content-warning .cw-btn {
    display: block;
    width: 100%;
    height: 45px;
    min-height: 0;
    margin: 0 0 5px;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-family: inherit;
    font-size: 16px;
    line-height: 45px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
#content-warning .cw-go {
    background: var(--danger-btn);
    color: var(--danger-btn-text);
}
#content-warning .cw-no {
    background: var(--btn);
    color: var(--text);
}
#content-warning .cw-no:hover {
    background: var(--btn-hover);
    text-decoration: none;
}
html.cw-locked,
html.cw-locked body {
    overflow: hidden;
}
html.cw-blur main img,
html.cw-blur main video,
html.cw-blur main canvas,
html.cw-blur main iframe {
    filter: blur(22px);
}
html.cw-blur main img.cw-revealed,
html.cw-blur main video.cw-revealed {
    filter: none;
}
html.cw-blur body,
html.cw-blur main {
    background-image: none !important;
}
html.cw-contrast body,
html.cw-contrast main {
    background: #000 !important;
    background-image: none !important;
    color: #fff !important;
}
html.cw-contrast main *,
html.cw-contrast .page-footer * {
    color: #fff !important;
    background-color: transparent !important;
    border-color: #fff !important;
    text-shadow: none !important;
}
html.cw-contrast main a,
html.cw-contrast .page-footer a {
    color: #ff0 !important;
}
#link-warning {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--overlay);
    color: var(--text);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
    text-shadow: none;
    direction: ltr;
}
#link-warning[hidden] {
    display: none;
}
#link-warning * {
    box-sizing: border-box;
    text-shadow: none;
}
#link-warning .lw-card {
    width: min(384px, 100%);
    padding: 22px;
    background: var(--surface);
    border: 1px ridge var(--primary-color);
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
}
#link-warning .lw-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: var(--danger);
}
#link-warning .lw-label {
    text-align: center;
    font-size: 14px;
    margin: 4px 0 12px;
    color: var(--muted);
}
#link-warning .lw-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
#link-warning .lw-url {
    font-size: 13px;
    padding: 6px 8px;
    margin-bottom: 14px;
    background: var(--field);
    color: var(--text-soft);
    word-break: break-all;
}
#link-warning .lw-btn {
    display: block;
    width: 100%;
    height: 42px;
    min-height: 0;
    margin: 0 0 5px;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
}
#link-warning .lw-go {
    background: var(--danger-btn);
    color: var(--danger-btn-text);
}
#link-warning .lw-no {
    background: var(--btn);
    color: var(--text);
}
#link-warning .lw-no:hover {
    background: var(--btn-hover);
}
@media (max-width: 700px) {
    .page-tools {
        position: static;
        order: -1;
        justify-content: space-between;
        gap: 16px;
        margin: 0;
        padding: 10px 12px;
        width: 100%;
    }
    .page-tools a.report-link,
    .page-tools .theme-toggle,
    .page-tools .audio-toggle {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        border: 1px solid var(--border);
    }
    .page-tools a.report-link svg,
    .page-tools .theme-toggle svg,
    .page-tools .audio-toggle svg {
        width: 22px;
        height: 22px;
    }
}
.audio-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    line-height: 0;
    cursor: pointer;
}
.audio-toggle:hover {
    color: var(--text);
    text-decoration: none;
}
.audio-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.audio-toggle .ico-playing,
.audio-toggle.is-on .ico-muted {
    display: none;
}
.audio-toggle.is-on .ico-playing {
    display: inline-block;
}
.sure-dialog {
    max-width: min(92vw, 400px);
    padding: 0;
    border: 1px solid var(--border, #ccc);
    border-radius: 12px;
    background: var(--surface, #fff);
    color: var(--text, #111);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    text-shadow: none;
}
.sure-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
}
.sure-dialog form {
    margin: 0;
    padding: 20px;
}
.sure-dialog h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 400;
}
.sure-dialog .sure-msg {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.sure-dialog .sure-btns {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.sure-dialog button {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid var(--border, #999);
    background: var(--field, transparent);
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.sure-dialog .sure-ok {
    background: var(--danger, #b00020);
    border-color: var(--danger, #b00020);
    color: #fff;
}
.sure-dialog button:focus-visible {
    outline: 2px solid var(--accent, #4a90d9);
    outline-offset: 2px;
}
