:root {
    color-scheme: dark;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    background: #000;
    color: #ddd;
}
* { box-sizing: border-box; }
body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 100vh; margin: 0; background: #000; }
main { grid-column: 1; grid-row: 1; min-width: 0; }
.sidebar { grid-column: 2; grid-row: 1; position: sticky; top: 0; align-self: start; min-height: 100vh; max-height: 100vh; min-height: 100dvh; max-height: 100dvh; overflow-y: auto; padding: 0 14px; border-left: 1px solid #282828; background: #080808; }
header { padding: 22px 0 16px; margin-bottom: 16px; border-bottom: 1px solid #444; text-align: center; }
a { color: #ccc; text-decoration: underline; }
a:hover { color: #fff; }
header a, header a:hover { color: #fff; }
.logo { display: inline-block; font: bold 34px/1 "Courier New", Courier, monospace; letter-spacing: 2px; text-decoration: none; }
nav { margin-top: 12px; font-size: 12px; }
#editor { margin: 0; }
label { color: #ccc; }
input, textarea, select, button { font: inherit; border: 1px solid #383838; border-radius: 0; }
input, textarea, select { background: #000; color: #ddd; padding: 6px 8px; }
input:not([type="checkbox"]) { width: 100%; min-width: 0; }
.title-field { display: grid; gap: 6px; }
#content, #paste-content {
    display: block;
    width: 100%;
    margin: 0;
    padding: 18px 16px;
    border: 0;
    color-scheme: dark;
    background: #000;
    color: #ddd;
    font: 12px/1.4 "Courier New", Courier, monospace;
    tab-size: 4;
}
#content { min-height: 400px; height: 100vh; height: 100dvh; resize: vertical; }
#content::placeholder { color: #888; opacity: 1; }
#paste-content { min-height: 100vh; min-height: 100dvh; white-space: pre-wrap; overflow-wrap: anywhere; }
button { border-color: #484848; background: #303030; color: #eee; padding: 7px 10px; cursor: pointer; white-space: nowrap; }
button:hover:not(:disabled) { background: #414141; }
button:active:not(:disabled) { background: #222; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 1px dotted #ccc; outline-offset: 2px; }
#content:focus-visible, #paste-content:focus-visible { outline-offset: -4px; }
::selection { background: #555; color: #fff; }
.editor-options { display: grid; gap: 14px; }
.options, .size-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.submit-controls { display: grid; gap: 12px; }
select { padding: 5px 8px; }
.checkbox { display: flex; align-items: center; gap: 7px; }
input[type="checkbox"] { margin: 0; accent-color: #aaa; }
.muted { color: #999; font-size: 12px; }
#turnstile { justify-self: center; }
#turnstile:empty { display: none; }
#turnstile:not(:empty) { min-height: 140px; max-width: 100%; }
h1 { margin: 0; font: inherit; overflow-wrap: anywhere; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 14px 0; border-bottom: 1px solid #444; }
.paste-details { margin: 0; padding-bottom: 14px; border-bottom: 1px solid #444; }
.paste-details div { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px; padding: 3px 0; line-height: 1.4; }
.paste-details dt { color: #ddd; font-weight: bold; }
.paste-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; color: #bbb; }
#share { padding-top: 14px; }
#share label { display: block; margin-bottom: 6px; }
.link-row { display: flex; gap: 6px; }
#link { font-family: "Courier New", Courier, monospace; font-size: 12px; }
#link-hint { margin: 7px 0 0; line-height: 1.4; }
.notice { margin-top: 16px; padding: 14px 0; border-top: 1px solid #444; font-size: 12px; color: #aaa; line-height: 1.5; overflow-wrap: anywhere; }
.notice p { margin: 0; }
#status.error { color: #fff; font-weight: bold; }
#open { width: 100%; margin-top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
    body { display: block; }
    .sidebar { position: static; min-height: 0; max-height: none; padding: 0 12px; border-left: 0; border-bottom: 1px solid #444; overflow: visible; }
    header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; margin-bottom: 12px; }
    .logo { font-size: 24px; letter-spacing: 1px; }
    nav { margin: 0; }
    .editor-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .title-field, .size-row, .submit-controls { grid-column: 1 / -1; }
    .options { display: grid; gap: 5px; }
    .checkbox { align-self: end; min-height: 30px; }
    .submit-controls { display: flex; flex-wrap: wrap; align-items: flex-end; }
    #create { flex: 1; }
    #content { min-height: 300px; height: 60vh; height: 60dvh; }
    #paste-content { min-height: 60vh; min-height: 60dvh; }
    #content, #paste-content { padding: 16px 12px; }
    .notice { margin-top: 12px; padding: 12px 0; }
}
