:root {
    color-scheme: dark;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    background: #000;
    color: #ddd;
}
* { box-sizing: border-box; }
body { width: calc(100% - 32px); max-width: 1240px; margin: 16px auto; background: #000; border: 1px solid #262626; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; border-bottom: 1px solid #444; background: #090909; color: #fff; }
a { color: #ccc; text-decoration: underline; }
a:hover { color: #fff; }
header a, header a:hover { color: #fff; }
.logo { font-size: 22px; font-weight: bold; text-decoration: none; }
nav { font-size: 12px; white-space: nowrap; }
main { padding: 12px 14px 10px; }
#editor { margin: 0; }
label { color: #ccc; }
input, textarea, select, button { font: inherit; border: 1px solid #383838; border-radius: 0; }
input, textarea, select { background: #050505; color: #ddd; padding: 6px 8px; }
input:not([type="checkbox"]) { width: 100%; min-width: 0; }
.title-field { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 12px; }
.editor-heading { display: flex; justify-content: space-between; gap: 16px; margin: 14px 0 5px; }
#content, #paste-content {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px;
    color-scheme: dark;
    background: #000;
    color: #ddd;
    font: 12px/1.3 "Courier New", Courier, monospace;
    tab-size: 4;
}
#content { min-height: 380px; height: 60vh; resize: vertical; }
#content::placeholder { color: #888; opacity: 1; }
#paste-content { min-height: 380px; border: 1px solid #383838; white-space: pre-wrap; overflow-wrap: anywhere; }
button { border-color: #4a4a4a; background: #303030; color: #eee; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
button:hover:not(:disabled) { background: #404040; }
button:active:not(:disabled) { background: #222; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 1px dotted #ccc; outline-offset: 2px; }
header a:focus-visible { outline-color: #fff; }
::selection { background: #555; color: #fff; }
.editor-options { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 10px; }
.options, .submit-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.submit-controls { margin-left: auto; align-items: flex-end; }
select { padding: 4px; background: #111; }
.checkbox { display: flex; align-items: center; gap: 6px; margin-left: 10px; }
input[type="checkbox"] { margin: 0; accent-color: #aaa; }
.muted { color: #999; font-size: 12px; }
#turnstile:not(:empty) { min-height: 140px; }
.paste-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
h1 { margin: 0; font-size: 16px; color: #ddd; overflow-wrap: anywhere; }
.actions { display: flex; gap: 8px; }
.paste-details { display: flex; flex-wrap: wrap; gap: 5px 18px; margin: 10px 0 14px; font-size: 12px; }
.paste-details div { display: flex; gap: 8px; }
.paste-details dt { color: #bbb; font-weight: bold; }
.paste-details dd { margin: 0; }
#share { margin-bottom: 16px; }
#share label { display: block; margin-bottom: 6px; }
.link-row { display: flex; gap: 8px; }
.notice { margin-top: 12px; padding-top: 9px; border-top: 1px solid #444; font-size: 12px; color: #999; line-height: 1.4; }
.notice p { margin: 0; }
#status.error { color: #fff; font-weight: bold; }
#open { margin-top: 12px; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
    body { width: calc(100% - 16px); margin: 8px auto; }
    main { padding: 12px 8px 8px; }
    .title-field { grid-template-columns: minmax(0, 1fr); gap: 5px; }
    #content, #paste-content { min-height: 280px; padding: 8px; }
    .editor-options { gap: 10px; }
    .options { width: 100%; }
    .checkbox { margin-left: 0; }
    .submit-controls { width: 100%; justify-content: flex-end; }
    #turnstile { margin-right: auto; }
    .link-row { flex-wrap: wrap; }
    .link-row button { width: 100%; }
}
