html {
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    min-height: 100%;
}

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

body {
    font-family: OpenSans, Arial;
    color: #454545;
    font-size: 16px;
    margin: 0 auto;
    max-width: 800px;
    padding: 2em 1em 1em;
    line-height: 1.4;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.no-footer {
    padding-bottom: 5em;
}

html.modal-open,
html.modal-open body {
    overflow: hidden;
}

#app-main {
    flex: 1 1 auto;
}
html.contrast body {
    color: #050505;
}
html.contrast blockquote {
    color: #11151a;
}
html.contrast blockquote:before {
    color: #262626;
}
html.contrast a {
    color: #03f;
}
html.contrast a:visited {
    color: #7d013e;
}
html.contrast span.wr {
    color: #800;
}
html.contrast span.mfw {
    color: #4d0000;
}
@media screen and (prefers-color-scheme: light) {
    html.inverted {
        background-color: #000;
    }
    html.inverted body {
        color: #d9d9d9;
    }
    html.inverted label[for="contrast"] {
        color: #fff;
        background-color: #000;
    }
    html.inverted label[for="invmode"] {
        color: #000;
        background-color: #fff;
    }
    html.inverted blockquote {
        color: #d3c9be;
    }
    html.inverted blockquote:before {
        color: #b8b8b8;
    }
    html.inverted a {
        color: #00a2e7;
    }
    html.inverted a:visited {
        color: #ca1a70;
    }
    html.inverted span.wr {
        color: #d24637;
    }
    html.inverted span.mfw {
        color: #b00000;
    }
    html.inverted.contrast {
        background-color: #000;
    }
    html.inverted.contrast body {
        color: #fff;
    }
    html.inverted.contrast label[for="contrast"] {
        color: #fff;
        background-color: #000;
    }
    html.inverted.contrast label[for="invmode"] {
        color: #000;
        background-color: #fff;
    }
    html.inverted.contrast blockquote {
        color: #f8f6f5;
    }
    html.inverted.contrast blockquote:before {
        color: #e5e5e5;
    }
    html.inverted.contrast a {
        color: #44c7ff;
    }
    html.inverted.contrast a:visited {
        color: #e9579e;
    }
    html.inverted.contrast span.wr {
        color: #db695d;
    }
    html.inverted.contrast span.mfw {
        color: #ff0d0d;
    }
}
@media (prefers-color-scheme: dark) {
    html:not(.inverted) {
        background-color: #000;
    }
    html:not(.inverted) body {
        color: #d9d9d9;
    }
    html:not(.inverted) label[for="contrast"] {
        color: #fff;
        background-color: #000;
    }
    html:not(.inverted) label[for="invmode"] {
        color: #000;
        background-color: #fff;
    }
    html:not(.inverted) blockquote {
        color: #d3c9be;
    }
    html:not(.inverted) blockquote:before {
        color: #b8b8b8;
    }
    html:not(.inverted) a {
        color: #00a2e7;
    }
    html:not(.inverted) a:visited {
        color: #ca1a70;
    }
    html:not(.inverted) span.wr {
        color: #d24637;
    }
    html:not(.inverted) span.mfw {
        color: #b00000;
    }
    html:not(.inverted).contrast {
        background-color: #000;
    }
    html:not(.inverted).contrast body {
        color: #fff;
    }
    html:not(.inverted).contrast label[for="contrast"] {
        color: #fff;
        background-color: #000;
    }
    html:not(.inverted).contrast label[for="invmode"] {
        color: #000;
        background-color: #fff;
    }
    html:not(.inverted).contrast blockquote {
        color: #f8f6f5;
    }
    html:not(.inverted).contrast blockquote:before {
        color: #e5e5e5;
    }
    html:not(.inverted).contrast a {
        color: #44c7ff;
    }
    html:not(.inverted).contrast a:visited {
        color: #e9579e;
    }
    html:not(.inverted).contrast span.wr {
        color: #db695d;
    }
    html:not(.inverted).contrast span.mfw {
        color: #ff0d0d;
    }
    html.inverted html {
        background-color: #fefefe;
    }
}
a {
    color: #07a;
    text-decoration: none;
}
a:visited {
    color: #941352;
}
a:hover {
    text-decoration: underline;
}
.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
label.cont-inv {
    cursor: pointer;
    font-size: 0.8em;
    text-decoration: none;
    border: 0;
    padding: 2px 5px;
    display: inline-block;
}

label.cont-inv:hover {
    text-decoration: underline;
}
label[for="invmode"] {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: #fff;
    background-color: #000;
    text-decoration: none;
}

label[for="invmode"]:hover {
    text-decoration: underline;
}
#invmode {
    display: none;
}
span.citneed {
    vertical-align: top;
    font-size: 0.7em;
    padding-left: 0.3em;
}
small {
    font-size: 0.4em;
}
p.st {
    margin-top: -1em;
}
div.fancyPositioning div.picture-left {
    float: left;
    width: 40%;
    overflow: hidden;
    margin-right: 1em;
}
div.fancyPositioning div.picture-left img {
    width: 100%;
}
div.fancyPositioning div.picture-left figure {
    margin: 10px;
}
div.fancyPositioning div.picture-left figure figcaption {
    font-size: 0.7em;
}
div.fancyPositioning div.tleft {
    float: left;
    width: 55%;
}
div.fancyPositioning div.tleft p:first-child {
    margin-top: 0;
}
div.fancyPositioning:after {
    display: block;
    content: "";
    clear: both;
}
ul li img {
    height: 1em;
}
blockquote {
    color: #456;
    margin-left: 0;
    margin-top: 2em;
    margin-bottom: 2em;
}
blockquote span {
    float: left;
    margin-left: 1rem;
    padding-top: 1rem;
}
blockquote author {
    display: block;
    clear: both;
    font-size: 0.6em;
    margin-left: 2.4rem;
    font-style: oblique;
}
blockquote author:before {
    content: "- ";
    margin-right: 1em;
}
blockquote:before {
    font-family:
        Times New Roman,
        Times,
        Arial;
    color: #666;
    content: open-quote;
    font-size: 2.2em;
    font-weight: 600;
    float: left;
    margin-top: 0;
    margin-right: 0.2rem;
    width: 1.2rem;
}
blockquote:after {
    content: "";
    display: block;
    clear: both;
}
@media screen and (max-width: 500px) {
    body {
        text-align: left;
        margin: 0 auto;
        padding: 1em 0.75em;
    }
    div.fancyPositioning div.picture-left,
    div.fancyPositioning div.tleft {
        float: none;
        width: inherit;
    }
    blockquote span {
        width: 80%;
    }
    blockquote author {
        padding-top: 1em;
        width: 80%;
        margin-left: 15%;
    }
    blockquote author:before {
        content: "";
        margin-right: inherit;
    }
}
span.visited {
    color: #941352;
}
span.visited-maroon {
    color: #85144b;
}
span.wr {
    color: #c0392b;
    font-weight: 600;
    text-decoration: underline;
}

button.cont-inv {
    cursor: pointer;
    border-radius: 2px;
    position: fixed;
    right: 10px;
    font-size: 0.8em;
    border: 0;
    padding: 2px 5px;
    text-decoration: none;
}

button.cont-inv:hover {
    text-decoration: underline;
}
span.sb {
    color: #00e;
}
span.sb,
span.sv {
    cursor: not-allowed;
}
span.sv {
    color: #551a8b;
}
span.foufoufou {
    color: #444;
    font-weight: 700;
}
span.foufoufou:before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 0.2em;
    margin-right: 0.2em;
    background-color: #444;
}
span.foufivfoufivfoufiv {
    color: #454545;
    font-weight: 700;
}
span.foufivfoufivfoufiv:before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 0.2em;
    margin-right: 0.2em;
    background-color: #454545;
}
span.mfw {
    color: #730000;
}
a.kopimi,
a.kopimi img.kopimi {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
a.kopimi img.kopimi {
    height: 2em;
}
p.fakepre {
    font-family: monospace;
    font-size: 0.9em;
}

@font-face {
    font-family: "OpenSans";
    src: url("./OpenSans_Variable.ttf");
}

.site-header {
    margin: 0 0 1.5em;
    text-align: center;
}

.site-header__logo-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.site-header__logo-link:hover {
    text-decoration: none;
}

.site-header__logo {
    display: block;
    width: min(100%, 36rem);
    height: auto;
    margin: 0 auto;
}

.site-header__logo--dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    html:not(.inverted) .site-header__logo--light {
        display: none;
    }

    html:not(.inverted) .site-header__logo--dark {
        display: block;
    }
}

@media screen and (prefers-color-scheme: light) {
    html.inverted .site-header__logo--light {
        display: none;
    }

    html.inverted .site-header__logo--dark {
        display: block;
    }
}

.site-header__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75em 1.25em;
    margin-top: 0.75em;
    font-size: 0.8em;
}

.site-header__list-actions {
    margin-top: 1.70em;
    text-align: center;
}

#list-actions-mount:empty {
    display: none;
}

#app-status:empty {
    display: none;
}

.site-header--compact {
    margin-bottom: 1em;
}

.site-header--compact .site-header__actions {
    margin-top: 0;
}

.site-footer {
    margin: 5em 0 0;
    text-align: center;
    font-size: 0.85em;
}

.site-footer[hidden] {
    display: none;
}

.site-footer__logo-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.site-footer__logo-link:hover {
    text-decoration: none;
}

.site-footer__logo {
    display: block;
    width: min(60%, 16rem);
    height: auto;
    margin: 0 auto;
}

.site-footer__logo--dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    html:not(.inverted) .site-footer__logo--light {
        display: none;
    }

    html:not(.inverted) .site-footer__logo--dark {
        display: block;
    }
}

@media screen and (prefers-color-scheme: light) {
    html.inverted .site-footer__logo--light {
        display: none;
    }

    html.inverted .site-footer__logo--dark {
        display: block;
    }
}

.site-footer__nav {
    margin-top: 1em;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em 1.25em;
}

.site-footer__copyright {
    margin: 1em 0 0;
}

.static-page__section {
    margin-top: 1.5em;
}

.static-page__list {
    padding-left: 1.25em;
}

.static-page__list li {
    margin-bottom: 0.5em;
}

.modal-btn,
a.modal-btn,
a.modal-btn:visited,
button.modal-btn {
    display: inline-block;
    font: inherit;
    cursor: pointer;
    padding: 0.35em 0.75em;
    border: 1px solid #ccc;
    background: none;
    color: inherit;
    text-decoration: none;
}

a.modal-btn:hover {
    text-decoration: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-view {
    display: flex;
    justify-content: center;
    margin: 1.5em 0 2em;
}

.auth-view__panel {
    width: min(100%, 22rem);
}

.auth-view__panel--wide {
    width: 100%;
}

.auth-view__subtitle {
    margin: 0 0 1.25em;
    text-align: center;
    font-size: 0.9em;
}

.auth-view .form__field label {
    display: block;
    margin-bottom: 0.5em;
}

.auth-view .form input:not([type="checkbox"]):not([type="file"]):not([type="radio"]),
.auth-view .recovery-key__value {
    width: 100%;
    max-width: 100%;
    font: inherit;
    box-sizing: border-box;
    padding: 0.35em 0.5em;
    border: 1px solid #ccc;
    background: #fff;
    color: inherit;
}

.auth-view .recovery-key__value {
    font-family: monospace, ui-monospace, "Courier New", Courier, monospace;
}

.auth-view .form input:not([type="checkbox"]):not([type="file"]):not([type="radio"]):focus,
.auth-view .recovery-key__value:focus {
    border-color: #07a;
    outline: none;
}

.auth-form__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75em;
    margin: 1.25em 0 0;
}

.auth-view__links {
    margin-top: 1.25em;
    text-align: center;
}

@media (prefers-color-scheme: dark) {
    html:not(.inverted) .auth-view .form input:not([type="checkbox"]):not([type="file"]):not([type="radio"]),
    html:not(.inverted) .auth-view .recovery-key__value {
        border-color: #666;
        background: #111;
        color: #d9d9d9;
    }

    html:not(.inverted) .auth-view .auth-form__actions button,
    html:not(.inverted) #edit-view .auth-form__actions button,
    html:not(.inverted) #detail-view .auth-form__actions button {
        border-color: #666;
        color: #fff;
    }

    html:not(.inverted) .auth-view .auth-form__actions button.recovery-key-modal__copy--done {
        color: #8fd48f;
        border-color: #8fd48f;
    }
}

@media screen and (prefers-color-scheme: light) {
    html.inverted .auth-view .form input:not([type="checkbox"]):not([type="file"]):not([type="radio"]),
    html.inverted .auth-view .recovery-key__value {
        border-color: #666;
        background: #111;
        color: #d9d9d9;
    }

    html.inverted .auth-view .auth-form__actions button,
    html.inverted #edit-view .auth-form__actions button,
    html.inverted #detail-view .auth-form__actions button {
        border-color: #666;
        color: #fff;
    }

    html.inverted .auth-view .auth-form__actions button.recovery-key-modal__copy--done {
        color: #8fd48f;
        border-color: #8fd48f;
    }
}

.archives__list {
    margin: 3em 0 0;
    padding: 0;
    list-style: none;
}

.archives__item {
    margin: 0.35em 0;
}

.archives__item a {
    display: block;
    text-align: center;
}

.archives__item--pinned a {
    font-weight: 700;
}

.archive__back {
    margin-top: -0.5em;
}

#detail-view .archive__back,
#edit-view .archive__back {
    margin-top: 0;
    margin-bottom: 1.75em;
}

.archive-detail__meta {
    margin: 0 0 1.5em;
    font-size: 0.9em;
}

.archive-detail__meta:empty {
    display: none;
}

#detail-view h2 {
    margin: 0 0 0.85em;
    line-height: 1.25;
}

.archive-detail__content .form__label {
    display: block;
}

.archive-detail__content .archive__content {
    margin-top: 0.35em;
}

#detail-view .archive__content {
    margin: 0;
    line-height: 1.65;
    color: inherit;
    font-weight: 400;
}

#detail-view .archive__content :where(p, ul, ol, blockquote, pre),
#edit-view .archive__content :where(p, ul, ol, blockquote, pre) {
    margin: 0 0 1.15em;
}

#detail-view .archive__content :where(p, ul, ol, blockquote, pre):last-child,
#edit-view .archive__content :where(p, ul, ol, blockquote, pre):last-child {
    margin-bottom: 0;
}

#detail-view .archive__content :where(p, li, span, div, td, th, h1, h2, h3, h4, h5, h6) {
    color: inherit;
}

.archive__content :where(table),
.editor__area :where(table) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.archive__content :where(pre),
.editor__area :where(pre) {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#detail-view .form__field--files {
    margin-top: 2em;
}

.archive__preview {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 0.35em);
    z-index: 2;
    padding: 0.25em;
    background: #fff;
    border: 1px solid #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.archive__preview--above {
    top: auto;
    bottom: calc(100% + 0.35em);
}

.archive__preview-media:not(.archive__preview-media--m44) {
    display: block;
    height: 24rem;
    object-fit: contain;
}

.m44-tile--hue {
    filter: hue-rotate(260deg);
}

.archive__preview--m44 {
    max-width: min(44rem, 92vw);
}

.archive__preview-media--m44 {
    width: min(42rem, 90vw);
}

.archive__preview-media--m44 .m44-board__svg {
    display: block;
    width: 100%;
    height: auto;
}

@media screen and (prefers-color-scheme: light) {
    html.inverted .archive__preview {
        background: #111;
        border-color: #666;
    }
}

@media (prefers-color-scheme: dark) {
    html:not(.inverted) .archive__preview {
        background: #111;
        border-color: #666;
    }
}

.auth {
    margin: 0;
    font-size: inherit;
    text-align: center;
}

.auth__guest,
.auth__user {
    margin: 0;
    overflow-wrap: anywhere;
}

.auth__links {
    margin: 0.75em 0 0;
    font-size: 0.9em;
}

.form__hint {
    display: block;
    margin-top: 0.25em;
    font-size: 0.85em;
    opacity: 0.85;
}

.recovery-key {
    margin: 1em 0;
    padding: 0.75em 1em;
    border: 1px solid #d0d0d0;
}

.recovery-key__value {
    width: min(100%, 28rem);
    font-family: monospace;
}

.recovery-key__success {
    color: #0a6b0a;
}

html.inverted .recovery-key {
    border-color: #666;
}

html.inverted .recovery-key__success {
    color: #8fd48f;
}


.auth__form button,
.auth__user button,
.form:not(.auth-form) button:not(.modal-btn) {
    font: inherit;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    text-decoration: none;
}

.auth__form button:hover,
.auth__user button:hover,
.form:not(.auth-form) button:not(.modal-btn):hover {
    text-decoration: underline;
}

.auth-view .auth-form__actions button,
#edit-view .auth-form__actions button,
#detail-view .auth-form__actions button {
    font: inherit;
    cursor: pointer;
    padding: 0.35em 0.75em;
    border: 1px solid #ccc;
    background: none;
    color: inherit;
    text-decoration: none;
}

.auth-view .auth-form__actions button:hover,
#edit-view .auth-form__actions button:hover,
#detail-view .auth-form__actions button:hover {
    text-decoration: none;
}

.auth-view .auth-form__actions button.recovery-key-modal__copy--done {
    color: #0a6b0a;
    border-color: #0a6b0a;
}

.form__field {
    margin: 0 0 1em;
}

.form__field .editor__area {
    margin-top: 0.35em;
}

.form__file-actions {
    margin-top: 0.35em;
    text-align: left;
}

.form__files {
    margin: 0.5em 0 0;
    padding: 0;
    list-style: none;
}

.form__file {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1em;
    margin: 0.35em 0;
}

.form__file-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form__file-name--has-preview {
    position: relative;
    display: inline-block;
    max-width: calc(100% - 5rem);
    overflow: visible;
    cursor: default;
}

.form__file-name--has-preview.form__file-name--preview-open .archive__preview,
.form__file-name--has-preview:hover .archive__preview,
.form__file-name--has-preview:focus-within .archive__preview {
    display: block;
}

@media (hover: none), (pointer: coarse) {
    .form__file-name--has-preview {
        display: block;
    }

    .form__file-name--has-preview .archive__preview {
        position: static;
        margin-top: 0.35em;
        width: 100%;
        box-shadow: none;
    }

    .form__file-name--has-preview .archive__preview-media:not(.archive__preview-media--m44) {
        height: auto;
        max-height: 16rem;
        width: 100%;
    }
}

.form__file-remove {
    flex-shrink: 0;
    font: inherit;
    cursor: pointer;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-decoration: none;
}

.form__file-remove:hover {
    text-decoration: underline;
}

.form__label,
.form label {
    font-weight: 700;
}

.form input[type="text"],
.form textarea,
.editor__area {
    width: 100%;
    max-width: 100%;
    font: inherit;
    box-sizing: border-box;
}

.editor__area {
    min-height: 16em;
    padding: 0.5em;
    border: 1px solid #ccc;
    outline: none;
}

.editor__area:focus {
    border-color: #07a;
}

.editor__area--title {
    min-height: auto;
    padding: 0.15em 0.5em;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.editor__area--title:empty::before {
    content: 'Titre de l\'archive…';
    color: #888;
}

.editor__area:not(.editor__area--title):empty::before {
    content: 'Saisir le contenu…';
    color: #888;
}

@media (prefers-color-scheme: dark) {
    html:not(.inverted) .editor__area {
        border-color: #666;
    }
}

@media screen and (prefers-color-scheme: light) {
    html.inverted .editor__area {
        border-color: #666;
    }
}

.form textarea {
    resize: vertical;
}

.account__section {
    margin: 0 0 2em;
    padding: 0 0 1.5em;
    border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.account__section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.comments {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
    margin-top: 4em;
}

.comments__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comments__meta-main {
    min-width: 0;
}

.comments__item {
    margin: 0;
    padding: 1.75em 0;
    border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.comments__item:first-child {
    padding-top: 0;
}

.comments__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.comments__meta {
    margin: 0 0 0.35em;
}

.comments__meta.st {
    margin-top: 0;
}

.comments__author {
    font-weight: 700;
}

.comments__link,
button.comments__link {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 0.85em;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.comments__content {
    overflow-wrap: anywhere;
}

.comments__content :where(p, ul, ol, blockquote, pre) {
    margin: 0 0 0.75em;
}

.comments__content :where(p, ul, ol, blockquote, pre):last-child {
    margin-bottom: 0;
}

.comments__form {
    margin-bottom: 2em;
}

.comments__form-actions {
    margin-top: 0.75em;
}

.comments__editor {
    min-height: 6em;
}

.recovery-key-modal {
    width: min(36em, calc(100vw - 2em));
    max-height: calc(100vh - 2em);
    margin: auto;
    padding: 1.25em 1.5em;
    border: 1px solid #ccc;
    font: inherit;
    color: inherit;
    background: #fff;
    box-sizing: border-box;
}

.recovery-key-modal::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.recovery-key-modal__title {
    margin: 0 0 0.75em;
    font-size: 1.15em;
}

.recovery-key-modal__message {
    margin: 0 0 1em;
}

.recovery-key-modal__message:last-child {
    margin-bottom: 0;
}

.recovery-key-modal__field {
    margin: 0 0 1em;
}

.recovery-key-modal__field label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.75em;
}

.recovery-key-modal .recovery-key__value {
    width: 100%;
    max-width: 100%;
    font: inherit;
    font-family: monospace;
    box-sizing: border-box;
    padding: 0.35em 0.5em;
    border: 1px solid #ccc;
    background: #fff;
    color: inherit;
}

.recovery-key-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75em 1em;
    margin: 1.25em 0 0;
}

.recovery-key-modal__actions button {
    font: inherit;
    cursor: pointer;
    padding: 0.35em 0.75em;
    border: 1px solid #ccc;
    background: none;
    color: inherit;
}

.recovery-key-modal__actions button.recovery-key-modal__copy--done {
    color: #0a6b0a;
    border-color: #0a6b0a;
}

.recovery-key-modal--confirm .recovery-key-modal__message {
    font-weight: bold;
}

.announcement {
    width: min(36em, calc(100vw - 2em));
    max-height: calc(100vh - 2em);
    margin: auto;
    padding: 1.25em 1.5em;
    border: 1px solid #ccc;
    font: inherit;
    color: inherit;
    background: #fff;
    box-sizing: border-box;
}

.announcement::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.announcement__body {
    max-height: calc(100vh - 8em);
    overflow-y: auto;
}

.announcement__body p {
    margin: 0 0 1em;
}

.announcement__body p:last-child {
    margin-bottom: 0;
}

.announcement__body ul {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

.announcement__body ul:last-child {
    margin-bottom: 1em;
}

.announcement__body li {
    margin: 0.35em 0;
}

.announcement__highlight {
    background-color: #fff3b0;
    color: #2d2d2d;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.announcement__actions {
    margin: 1.25em 0 0;
    text-align: right;
}

.announcement__actions button {
    font: inherit;
    cursor: pointer;
    padding: 0.35em 0.75em;
    border: 1px solid #ccc;
    background: none;
    color: inherit;
}

@media (prefers-color-scheme: dark) {
    html:not(.inverted) .announcement,
    html:not(.inverted) .recovery-key-modal {
        background: #1a1a1a;
        border-color: #666;
    }

    html:not(.inverted) .announcement__highlight {
        background-color: #6b5c1a;
        color: #f2f2f2;
    }

    html:not(.inverted) .announcement__actions button,
    html:not(.inverted) .recovery-key-modal__actions button,
    html:not(.inverted) .modal-btn,
    html:not(.inverted) a.modal-btn,
    html:not(.inverted) a.modal-btn:visited,
    html:not(.inverted) button.modal-btn {
        border-color: #666;
        color: #fff;
    }

    html:not(.inverted) .recovery-key-modal .recovery-key__value {
        border-color: #666;
        background: #111;
        color: #d9d9d9;
    }

    html:not(.inverted) .recovery-key-modal__actions button.recovery-key-modal__copy--done {
        color: #8fd48f;
        border-color: #8fd48f;
    }
}

@media screen and (prefers-color-scheme: light) {
    html.inverted .announcement,
    html.inverted .recovery-key-modal {
        background: #1a1a1a;
        border-color: #666;
        color: #d9d9d9;
    }

    html.inverted .announcement__highlight {
        background-color: #6b5c1a;
        color: #f2f2f2;
    }

    html.inverted .announcement__actions button,
    html.inverted .recovery-key-modal__actions button,
    html.inverted .modal-btn,
    html.inverted a.modal-btn,
    html.inverted a.modal-btn:visited,
    html.inverted button.modal-btn {
        border-color: #666;
        color: #fff;
    }

    html.inverted .recovery-key-modal .recovery-key__value {
        border-color: #666;
        background: #111;
        color: #d9d9d9;
    }

    html.inverted .recovery-key-modal__actions button.recovery-key-modal__copy--done {
        color: #8fd48f;
        border-color: #8fd48f;
    }
}

@media screen and (max-width: 640px) {
    .site-header {
        margin-bottom: 1em;
    }

    .site-header__list-actions {
        margin-top: 1em;
    }

    .archives__list {
        margin-top: 2em;
    }

    .archives__item a {
        text-align: left;
    }

    .auth-view {
        margin: 1em 0 1.5em;
    }

    .auth-view__panel,
    .auth-view__panel--wide {
        width: 100%;
    }

    .auth-view__subtitle,
    .auth-view__links {
        text-align: left;
    }

    .form__file {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.35em 0.75em;
    }

    .form__file-name--has-preview {
        max-width: 100%;
    }

    .recovery-key-modal,
    .announcement {
        width: calc(100vw - 1.5em);
        padding: 1em;
    }

    .editor__area:not(.editor__area--title) {
        min-height: 12em;
    }

    #detail-view h2,
    #edit-view h2 {
        overflow-wrap: anywhere;
    }
}
