.listing-markdown {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.listing-markdown strong { font-weight: 900; }
.listing-markdown em { font-style: italic; }
.listing-markdown u { text-decoration: underline; text-underline-offset: .16em; }
.listing-markdown s { text-decoration: line-through; }
.listing-markdown a,
.markdown-editor__link {
    position: relative;
    z-index: 3;
    color: var(--season-link, #1d4ed8);
    text-decoration: underline;
    text-underline-offset: .16em;
    pointer-events: auto;
}
.listing-markdown code {
    border: 1px solid rgb(100 116 139 / .18);
    border-radius: .35rem;
    background: rgb(100 116 139 / .10);
    padding: .08em .3em;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .9em;
    font-weight: 500;
    font-style: normal;
    white-space: pre-wrap;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.listing-markdown .listing-markdown__code-block {
    display: block;
    margin-block: .5em;
    padding: .7em .9em;
    overflow-x: auto;
    text-align: left;
}
.markdown-source { display: none !important; }
.markdown-editor {
    display: block;
    width: 100%;
    max-height: 22rem;
    overflow-y: auto;
    cursor: text;
    font-weight: 500;
    line-height: 1.7;
}
.markdown-editor:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}
.markdown-editor__syntax {
    color: #64748b;
    opacity: .65;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
}
.markdown-toolbar[hidden], .markdown-toolbar__link[hidden] { display: none !important; }
.markdown-toolbar {
    position: fixed;
    z-index: 10020;
    max-width: calc(100vw - 16px);
    border: 1px solid rgb(255 255 255 / .94);
    border-radius: 1.4rem;
    background: linear-gradient(145deg, rgb(255 255 255 / .98), rgb(var(--theme-blue-50-rgb, 239 246 255) / .96));
    color: var(--ink, #172033);
    padding: .5rem;
    box-shadow: var(--shadow-soft, 0 24px 70px rgb(30 54 94 / .14));
    backdrop-filter: blur(18px);
}
.markdown-toolbar__actions { display: flex; gap: 3px; }
.markdown-toolbar__button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 40px;
    flex: 0 0 38px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
}
.markdown-toolbar__button svg { width: 20px; height: 20px; }
.markdown-toolbar__button:focus-visible { outline: 2px solid rgb(var(--theme-blue-300-rgb, 147 197 253)); outline-offset: -2px; }
.markdown-toolbar__link {
    position: absolute;
    inset: calc(100% + .5rem) 0 auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem;
    border: 1px solid rgb(255 255 255 / .94);
    border-radius: 1.25rem;
    background: linear-gradient(145deg, #fff, rgb(var(--theme-blue-50-rgb, 239 246 255)));
    box-shadow: var(--shadow-soft, 0 24px 70px rgb(30 54 94 / .14));
}
.markdown-toolbar__link[data-placement="above"] { top: auto; bottom: calc(100% + .5rem); }
.markdown-toolbar__link input {
    min-width: 0;
    width: 170px;
    flex: 1;
    padding: .65rem .75rem;
    font-size: 16px;
}
.markdown-toolbar__link button {
    min-height: 42px;
    flex: 0 0 auto;
    padding: .65rem .85rem;
    white-space: nowrap;
    font-size: 12px;
}
