:root {
    --bg: #001100;
    --text: #00ff00;
    --accent: #003300;
    --dim: #5f9f5f;
    --soft: #7fbf7f;
    --black: #000000;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--soft);
    font-family: monospace;
    font-size: 16px;
    line-height: 1.45;
}

.monitor {
    width: min(800px, calc(100% - 24px));
    min-height: calc(100vh - 32px);
    margin: 16px auto;
    padding: 24px;
    background: var(--bg);
    border: 1px solid var(--dim);
}

.logo {
    margin: 0 0 16px;
    overflow-x: auto;
    color: var(--soft);
    font-size: 13px;
    line-height: 1.12;
}

.nav,
.section-line,
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

a,
button {
    color: var(--soft);
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

a:hover,
button:hover {
    color: var(--black);
    background: var(--text);
}

h1,
h2,
p {
    margin: 16px 0;
}

h1,
h2 {
    font-size: 16px;
    font-weight: normal;
}

h1::before {
    content: "== ";
}

h1::after {
    content: " ==";
}

h2::before {
    content: "-- ";
}

h2::after {
    content: " --";
}

.terminal-section {
    border-top: 1px solid var(--text);
    margin-top: 20px;
    padding-top: 12px;
}

.flash-log {
    margin-top: 18px;
    border-top: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
    padding: 8px 0;
}

.flash {
    color: var(--text);
}

.flash.error {
    background: var(--accent);
}

.terminal-form {
    max-width: 620px;
}

.terminal-form label,
.terminal-form small {
    display: block;
    margin-top: 12px;
}

input,
textarea {
    width: 100%;
    margin-top: 4px;
    padding: 8px;
    color: var(--soft);
    background: var(--black);
    border: 1px solid var(--text);
    border-radius: 0;
    font: inherit;
    outline: none;
}

input:focus,
textarea:focus {
    box-shadow: inset 0 0 10px var(--accent);
}

textarea {
    resize: vertical;
}

.terminal-form button,
.terminal-section > form button,
.thread-actions {
    margin-top: 14px;
}

.post-list {
    margin-top: 14px;
}

.new-texxts {
    display: inline-block;
    margin: 6px 0 10px;
    color: var(--text);
    animation: blink-twice 0.35s step-end 4;
}

.new-texxts[hidden] {
    display: none;
}

@keyframes blink-twice {
    50% {
        opacity: 0;
    }
}

.texxt {
    border-top: 1px solid var(--accent);
    padding: 14px 0;
}

.meta,
.stats,
.muted,
small,
.counter {
    color: var(--dim);
}

.body,
.empty,
.profile-box,
.reply-context {
    margin: 8px 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--text);
    font: inherit;
}

.texxt .body {
    color: var(--text);
}

.actions form {
    display: inline;
}

.section-line {
    justify-content: space-between;
}

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    .monitor {
        width: calc(100% - 12px);
        margin: 6px auto;
        padding: 12px;
    }

    .logo {
        font-size: 8px;
    }
}
