	/* DeadDrop — consolidated forum stylesheet
   Replace the duplicated forum CSS with this single file. */

:root {
  color-scheme: dark;
  --bg-color: #090b10;
  --card-bg: #12151d;
  --card-hover: #181d28;
  --card-alt: #0e1118;
  --border-color: #252b38;
  --border-hover: #394254;
  --accent-red: #f04455;
  --accent-glow: rgba(240, 68, 85, .16);
  --accent-soft: rgba(240, 68, 85, .09);
  --text-main: #f0f2f7;
  --text-muted: #9ba4b5;
  --text-dimmed: #707a8c;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, Monaco, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* Reset and page frame */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #353c4b var(--bg-color); }
body {
  min-height: 100vh; margin: 0; padding: 2rem 1.25rem 4rem;
  background: var(--bg-color); color: var(--text-main);
  font: 15px/1.7 var(--font-sans); -webkit-font-smoothing: antialiased;
}
.container { width: 100%; max-width: 960px; margin-inline: auto; }
h1, h2, h3, h4, p { margin-top: 0; }
a { color: var(--accent-red); text-decoration: none; transition: color .15s ease; }
a:hover { color: #ff7784; }
button, input, textarea { font: inherit; }
button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1rem; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--accent-red); color: #fff; font-size: .9rem; font-weight: 650;
  line-height: 1.4; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
button:hover { background: #d93648; }
button:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-red); outline-offset: 3px;
}

/* Site header and navigation */
header {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-bottom: 1.25rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--border-color);
}
.logo { color: var(--text-main); font: 800 1.15rem var(--font-mono); letter-spacing: -.06em; text-decoration: none; }
.logo span { color: var(--accent-red); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: .875rem; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--text-main); }
.nav-notifications { display: inline-flex; align-items: center; gap: .45rem; }
.nav-notification-count {
  display: inline-grid; min-width: 19px; height: 19px; padding-inline: .25rem;
  place-items: center; border-radius: 99px; background: var(--accent-red); color: #fff;
  font-size: .7rem; font-weight: 700; line-height: 1;
}
.nav-logout-form { display: inline-flex; margin: 0; }
.nav-logout-button { padding: 0; border: 0; background: transparent; color: var(--text-muted); font-size: inherit; }
.nav-logout-button:hover { background: transparent; color: var(--text-main); }

/* Shared layout components */
.panel {
  padding: clamp(1.25rem, 3.5vw, 2rem); margin-bottom: 1.25rem;
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  background: var(--card-bg); box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
}
.panel h2, .panel h3 { color: var(--text-main); line-height: 1.3; }
.panel h2 { font-size: 1.2rem; letter-spacing: -.025em; }
.panel h3 { font-size: 1rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-kicker, .page-kicker {
  margin-bottom: .35rem; color: var(--text-dimmed); font: 600 .7rem/1.4 var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase;
}
.back-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-muted); font-size: .875rem; }
.back-link:hover { color: var(--text-main); }
.back-link span { font-size: 1.15rem; }
.thread-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.inline-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 25px; height: 25px;
  padding-inline: .4rem; margin-left: .25rem; vertical-align: 2px; border: 1px solid var(--border-color);
  border-radius: 7px; background: var(--bg-color); color: var(--text-muted); font: 500 .75rem var(--font-mono);
}
.badge { display: inline-block; padding: .2rem .55rem; border: 1px solid var(--border-color); border-radius: 5px; background: #1a1f2a; color: var(--text-muted); font: .75rem var(--font-mono); }
.primary-button { white-space: nowrap; }
.button-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1rem;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--accent-red);
  color: #fff; font-size: .875rem; font-weight: 650; text-decoration: none;
}
.button-link:hover { background: #d93648; color: #fff; }
.quiet-link, .subtle-action, .reply-action-link { color: var(--text-muted); font-size: .8rem; text-decoration: none; }
.quiet-link:hover, .subtle-action:hover, .reply-action-link:hover { color: var(--accent-red); }
.secondary-button, .danger-button {
  display: inline-flex; align-items: center; justify-content: center; padding: .6rem .85rem;
  border-radius: var(--radius-sm); font-size: .82rem; cursor: pointer;
}
.secondary-button { border: 1px solid var(--border-color); background: #171b24; color: var(--text-main); }
.secondary-button:hover { border-color: var(--border-hover); background: #202633; }
.danger-button { border: 1px solid rgba(240, 68, 85, .3); background: var(--accent-soft); color: #ff8792; }
.danger-button:hover { background: rgba(240, 68, 85, .16); }

/* Form fields */
input[type="text"], input[type="password"], textarea, select {
  display: block; width: 100%; min-width: 0; min-height: 48px; margin: 0 0 1rem; padding: .85rem 1rem;
  border: 1px solid var(--border-color); border-radius: var(--radius-md); background: #0b0e14;
  color: var(--text-main); font: .95rem/1.7 var(--font-sans); transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; }
textarea::placeholder, input::placeholder { color: var(--text-dimmed); }
input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent-red); box-shadow: 0 0 0 3px var(--accent-glow);
}
.field-label { display: block; margin-bottom: .45rem; color: var(--text-muted); font-size: .82rem; font-weight: 600; }
.form-help { margin: .4rem 0 1rem; color: var(--text-dimmed); font-size: .78rem; line-height: 1.6; }
.form-error { padding: .75rem .9rem; margin-top: 1rem; border: 1px solid rgba(240, 68, 85, .3); border-radius: var(--radius-md); background: var(--accent-soft); color: #ff9aa4; font-size: .875rem; }
.form-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; }
.anonymous-toggle { display: flex; align-items: center; gap: .65rem; color: var(--text-muted); font-size: .85rem; cursor: pointer; }
.anonymous-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent-red); }
.guest-notice { color: var(--text-muted); font-size: .85rem; }
.form-identity-options { min-width: 0; flex: 1; }
.privacy-note { max-width: 460px; margin-top: .45rem; color: var(--text-dimmed); font-size: .75rem; line-height: 1.55; }
.notice-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.posting-notice h2, .posting-notice h3 { color: var(--text-main); font-size: 1.05rem; }
.posting-notice p:not(.section-kicker) { margin-top: .4rem; color: var(--text-muted); font-size: .9rem; }

/* Directory */
.directory-header { padding: 2rem 0 2.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.directory-title { margin: .65rem 0 0; color: var(--text-main); font-size: clamp(2.3rem, 6vw, 3.5rem); font-weight: 800; letter-spacing: -.065em; line-height: 1.1; }
.directory-title span { color: var(--accent-red); }
.directory-description { max-width: 480px; margin: 1rem 0 0; color: var(--text-muted); font-size: 1rem; line-height: 1.8; }
.directory-section { margin-top: 1.75rem; }
.directory-section-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.directory-section-header h2 { margin: 0; color: var(--text-main); font-size: 1.15rem; letter-spacing: -.02em; }
.item-list { display: flex; flex-direction: column; gap: .65rem; margin-top: 1rem; }
.list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem;
  border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--card-bg);
  transition: background .15s ease, border-color .15s ease;
}
.list-row:hover { border-color: var(--border-hover); background: var(--card-hover); }
.directory-list { gap: .75rem; }
.directory-row { min-width: 0; padding: 1.25rem; color: var(--text-main); text-decoration: none; }
.directory-row:hover { border-color: rgba(240, 68, 85, .4); background: var(--card-hover); color: var(--text-main); }
.directory-board-icon { display: grid; width: 48px; height: 48px; flex-shrink: 0; place-items: center; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-color); color: var(--accent-red); font: 800 .85rem var(--font-mono); }
.directory-row:hover .directory-board-icon { border-color: rgba(240, 68, 85, .35); background: var(--accent-soft); }
.directory-board-info { min-width: 0; flex: 1; }
.directory-board-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.directory-board-name { margin: 0; color: var(--text-main); font-size: 1rem; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.directory-row:hover .directory-board-name { color: #ff7784; }
.directory-board-slug { padding: .15rem .45rem; border: 1px solid var(--border-color); border-radius: 5px; color: var(--text-dimmed); font: .7rem var(--font-mono); }
.directory-board-description { margin: .3rem 0 0; color: var(--text-muted); font-size: .875rem; line-height: 1.7; overflow-wrap: anywhere; }
.directory-board-arrow { display: grid; width: 34px; height: 34px; flex-shrink: 0; place-items: center; border-radius: 8px; color: var(--text-dimmed); font-size: 1.25rem; transition: transform .15s ease, color .15s ease; }
.directory-row:hover .directory-board-arrow { transform: translateX(3px); color: var(--accent-red); }
.directory-empty, .board-empty-state { display: flex; flex-direction: column; align-items: center; padding: 3rem 1.5rem; text-align: center; }
.directory-empty h3, .board-empty-state h3 { margin: 0 0 .4rem; color: var(--text-main); font-size: 1rem; }
.directory-empty p, .board-empty-state p { max-width: 350px; margin: 0; color: var(--text-muted); font-size: .875rem; line-height: 1.7; }
.directory-empty-icon, .empty-state-icon { display: grid; width: 48px; height: 48px; flex-shrink: 0; place-items: center; margin-bottom: 1rem; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-color); color: var(--accent-red); font-size: 1.5rem; }
.directory-row:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 3px; }

/* Board page and thread list */
.board-header { margin-bottom: 1.75rem; }
.board-header > .back-link { margin-bottom: 1.75rem; }
.board-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.board-title { margin: .25rem 0 0; color: var(--text-main); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.2; overflow-wrap: anywhere; }
.board-subtitle { max-width: 520px; margin: .6rem 0 0; color: var(--text-muted); font-size: .95rem; }
.board-chip { padding: .2rem .55rem; border: 1px solid rgba(240, 68, 85, .25); border-radius: 5px; background: var(--accent-soft); color: #ff8792; }
.board-heading-row > .board-chip { flex-shrink: 0; margin-top: .35rem; font: 600 .65rem var(--font-mono); letter-spacing: .06em; }
.board-compose { background: var(--card-bg); }
.compose-icon { display: grid; width: 36px; height: 36px; flex-shrink: 0; place-items: center; border: 1px solid rgba(240, 68, 85, .25); border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-red); font-size: 1.35rem; }
.thread-form textarea { min-height: 135px; }
.board-discussions { overflow: hidden; }
.board-thread-list { margin-top: 1.25rem; }
.board-thread-row { padding: 1.2rem 1.25rem; }
.board-thread-main { min-width: 0; flex: 1; }
.board-thread-title { margin: 0 0 .35rem; font-size: 1rem; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.board-thread-title a { color: var(--text-main); }
.board-thread-row:hover .board-thread-title a { color: #ff7784; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-top: .35rem; color: var(--text-muted); font-size: .8rem; }
.meta-dot { color: var(--text-dimmed); font-size: .8rem; }
.board-thread-meta strong { color: #c4cad5; font-weight: 550; }
.thread-open-link { display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; padding: .5rem 0; color: var(--text-muted); font-size: .8rem; font-weight: 550; }
.thread-open-link span:last-child { color: var(--accent-red); transition: transform .15s ease; }
.thread-open-link:hover { color: var(--text-main); }
.thread-open-link:hover span:last-child { transform: translate(2px, -2px); }

/* Thread post */
.thread-panel { padding: clamp(1.5rem, 4vw, 2.5rem); }
.thread-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; color: var(--text-dimmed); font: .75rem var(--font-mono); letter-spacing: .04em; }
.thread-title { margin: 0 0 1.25rem; color: var(--text-main); font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.2; overflow-wrap: anywhere; }
.post-meta { display: flex; align-items: center; gap: .75rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.post-meta-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.post-meta-text strong { color: var(--text-main); font-size: .9rem; font-weight: 650; }
.post-meta-text span { color: var(--text-muted); font-size: .8rem; }
.post-meta-actions { display: flex; gap: .75rem; margin-left: auto; }
.post-content { color: #d9deea; font-size: 1rem; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Avatar primitives */
.user-avatar { display: inline-grid; width: 36px; height: 36px; flex-shrink: 0; place-items: center; overflow: hidden; border: 1px solid var(--border-color); border-radius: 50%; background: #1a1f2a; color: var(--text-main); font: 700 .85rem var(--font-mono); }
.user-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.user-avatar.anonymous-avatar { border-color: rgba(240, 68, 85, .3); background: var(--accent-soft); color: var(--accent-red); }
.post-author-avatar { width: 42px; height: 42px; background: var(--accent-soft); color: var(--accent-red); }
.comment-avatar { width: 28px; height: 28px; font-size: .72rem; }
.profile-avatar { width: 64px; height: 64px; font-size: 1.25rem; }

/* Reply composer and read-only notices */
.reply-panel { background: var(--card-bg); }
.reply-form textarea { min-height: 120px; }
.replying-banner { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .75rem; margin-bottom: .9rem; border: 1px solid rgba(240, 68, 85, .25); border-radius: var(--radius-md); background: var(--accent-soft); color: var(--text-main); font-size: .85rem; }
.replying-banner[hidden], .reply-panel[hidden] { display: none !important; }
.reply-context { min-width: 0; flex: 1; }
.replying-banner strong { color: #ff8792; }
.reply-context-preview { margin: .25rem 0 0; color: var(--text-muted); font-size: .82rem; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.cancel-button { padding: .25rem .4rem; background: transparent; color: var(--text-muted); font-size: .8rem; }
.cancel-button:hover { background: rgba(255, 255, 255, .05); color: var(--text-main); }
.reply-form.is-inline { padding: 1rem; margin-top: 1rem; border: 1px solid var(--border-hover); border-radius: var(--radius-md); background: #0d1017; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); animation: reply-appear .18s ease-out; }
.comment-reply-slot:empty { display: none; }
.comment-reply-slot > .reply-form { margin-top: 1rem; }
@keyframes reply-appear { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* Individual comment cards and nesting */
.comments-list { margin-top: .25rem; }
.comment-node { margin-top: .85rem; padding: 0; border: 0; background: transparent; scroll-margin-top: 2rem; }
.comments-list > .comment-node:first-child, .comment-children > .comment-node:first-child { margin-top: 0; }
.comment-details { min-width: 0; border: 0; background: transparent; }
.comment-header { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; min-height: 52px; padding: .85rem 1rem; margin: 0; border: 1px solid var(--border-color); border-bottom: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; cursor: pointer; user-select: none; list-style: none; transition: background-color .15s ease, border-color .15s ease; }
.comment-header::-webkit-details-marker { display: none; }
.comment-details:not([open]) > .comment-header { border-bottom: 1px solid var(--border-color); border-radius: var(--radius-md); }
.comment-tone-main > .comment-header, .comment-tone-main > .comment-content { background: var(--card-bg); }
.comment-tone-alt > .comment-header, .comment-tone-alt > .comment-content { background: var(--card-alt); }
.comment-header:hover { border-color: var(--border-hover); }
.comment-details[open] > .comment-header { border-bottom: 0; }
.collapse-icon { display: inline-block; flex-shrink: 0; color: var(--text-dimmed); font-size: 1rem; transform: rotate(-90deg); transition: transform .15s ease; }
.comment-details[open] > .comment-header .collapse-icon { transform: rotate(0); }
.comment-author { color: var(--text-main); font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.comment-header time { color: var(--text-dimmed); font-size: .8rem; }
.comment-id { padding: .15rem .45rem; margin-left: auto; border: 1px solid var(--border-color); border-radius: 5px; color: var(--text-dimmed); font: .7rem var(--font-mono); white-space: nowrap; }
.comment-content { min-width: 0; padding: .9rem 1rem 1rem; border: 1px solid var(--border-color); border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); }
.comment-body { padding: 0; color: #d9deea; font-size: .93rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-parent-ref { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; padding: .25rem .55rem; margin-bottom: .75rem; border: 1px solid var(--border-color); border-radius: 5px; background: rgba(0, 0, 0, .12); color: var(--text-muted); font: .75rem var(--font-mono); overflow-wrap: anywhere; transition: color .15s ease, border-color .15s ease; }
.comment-parent-ref:hover { border-color: rgba(240, 68, 85, .4); color: var(--accent-red); }
.comment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: .65rem; }
.reply-action { margin-top: 0; padding: .25rem 0; background: transparent; color: var(--text-muted); font-size: .8rem; font-weight: 550; }
.reply-action:hover { background: transparent; color: var(--accent-red); }
.comment-children { margin: .75rem 0 0 1rem; padding-left: 1rem; border-left: 1px solid var(--border-color); }
.comment-children > .comment-node { margin-top: .75rem; }
.empty-state { padding: 1.5rem 0; color: var(--text-muted); font-size: .9rem; }
/* Force all images in posts and comments to stay inside containers */
/* Force all images in posts, comments, and threads to stay inside containers */
.comment img, .post img, .content img, .comment-body img, .post-body img, .thread img, .thread-body img, .media img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 4px;
    margin-top: 8px;
}

/* Authentication pages */
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); align-items: center; gap: clamp(2rem, 6vw, 5rem); width: 100%; max-width: 960px; margin: 1.75rem auto 3rem; }
.auth-layout-single { display: flex; justify-content: center; }
.auth-intro { min-width: 0; }
.auth-intro > .back-link { margin-bottom: 2.5rem; }
.auth-title { margin: .6rem 0 0; color: var(--text-main); font-size: clamp(2.15rem, 5vw, 3.35rem); font-weight: 800; letter-spacing: -.06em; line-height: 1.08; overflow-wrap: anywhere; }
.auth-title span { color: var(--accent-red); }
.auth-subtitle { max-width: 490px; margin: 1rem 0 0; color: var(--text-muted); font-size: .95rem; line-height: 1.8; }
.auth-note { display: flex; align-items: flex-start; gap: .85rem; max-width: 490px; padding-top: 1.2rem; margin-top: 1.8rem; border-top: 1px solid var(--border-color); }
.auth-note-icon { display: grid; width: 34px; height: 34px; flex-shrink: 0; place-items: center; border: 1px solid rgba(240, 68, 85, .25); border-radius: 9px; background: var(--accent-soft); color: var(--accent-red); }
.auth-note p { margin: 0; color: var(--text-muted); font-size: .82rem; line-height: 1.65; }
.auth-note strong { color: var(--text-main); }
.auth-panel { width: 100%; margin: 0; padding: clamp(1.3rem, 3vw, 2rem); }
.auth-form { margin-top: 1.5rem; }
.auth-form input[type="text"], .auth-form input[type="password"] { margin-bottom: .65rem; }
.auth-submit { width: 100%; min-height: 46px; margin-top: .75rem; }
.auth-switch { padding-top: 1.1rem; margin: 1.4rem 0 0; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: .85rem; text-align: center; }
.auth-switch a { margin-left: .25rem; font-weight: 600; }
.saved-key-panel { max-width: 560px; }
.saved-key-mark { display: grid; width: 46px; height: 46px; margin-bottom: 1.1rem; place-items: center; border: 1px solid rgba(103, 214, 155, .25); border-radius: 13px; background: rgba(103, 214, 155, .08); color: #67d69b; font-size: 1.4rem; }
.saved-key-title { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.key-field-row { display: flex; align-items: stretch; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.key-field-row input { min-width: 0; min-height: 42px; flex: 1 1 220px; padding: .7rem .8rem; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: #0b0e14; color: var(--text-main); font: .8rem var(--font-mono); }
.saved-key-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }

/* Minimal access-key login */
.login-page { width: min(100%, 440px); margin: 1.5rem auto 3.5rem; }
.login-back { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.25rem .1rem; color: var(--text-muted); font-size: .85rem; }
.login-back > span:first-child { font-size: 1.1rem; line-height: 1; }
.login-back:hover { color: var(--text-main); }
.login-card { width: 100%; padding: clamp(1.4rem, 5vw, 2.25rem); border: 1px solid var(--border-color); border-radius: 14px; background: var(--card-bg); }
.login-brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.login-brand-mark { color: var(--text-main); font: 800 1.25rem var(--font-mono); letter-spacing: -.09em; }
.login-brand-mark span { color: var(--accent-red); }
.login-brand-caption, .login-eyebrow { color: var(--text-dimmed); font: 600 .68rem var(--font-mono); letter-spacing: .13em; }
.login-heading h1 { margin: .4rem 0 0; color: var(--text-main); font-size: clamp(2rem, 7vw, 2.5rem); font-weight: 800; letter-spacing: -.065em; line-height: 1.1; }
.login-heading h1 span { color: var(--accent-red); }
.login-heading > p:last-child { margin: .8rem 0 0; color: var(--text-muted); font-size: .9rem; line-height: 1.7; }
.login-form { margin-top: 2rem; }
.login-label { display: block; margin-bottom: .55rem; color: #dfe3eb; font-size: .83rem; font-weight: 600; }
.login-key-control { display: flex; align-items: stretch; min-width: 0; }
.login-key-control input[type="password"], .login-key-control input[type="text"] { width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: .8rem .9rem; border: 1px solid var(--border-color); border-right: 0; border-radius: 8px 0 0 8px; background: #0b0e14; color: var(--text-main); font: .84rem var(--font-mono); box-shadow: none; }
.login-key-control input::placeholder { color: #687284; font-family: var(--font-sans); }
.login-key-control input:focus { outline: none; border-color: var(--border-hover); box-shadow: none; }
.login-key-toggle { flex: 0 0 auto; min-width: 64px; padding: 0 .85rem; border: 1px solid var(--border-color); border-radius: 0 8px 8px 0; background: #171b24; color: var(--text-muted); font-size: .8rem; font-weight: 600; }
.login-key-toggle:hover { background: #202633; color: var(--text-main); }
.login-key-control:focus-within input, .login-key-control:focus-within .login-key-toggle { border-color: var(--accent-red); }
.login-field-help { margin: .55rem 0 0; color: var(--text-dimmed); font-size: .76rem; line-height: 1.55; }
.login-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: .8rem 1rem; margin-top: 1.4rem; border: 1px solid var(--accent-red); border-radius: 8px; background: var(--accent-red); color: #fff; font-size: .9rem; font-weight: 700; }
.login-submit:hover { border-color: #d93648; background: #d93648; }
.login-submit span { font-size: 1.1rem; transition: transform .15s ease; }
.login-submit:hover span { transform: translateX(3px); }
.login-divider { display: flex; align-items: center; gap: .8rem; margin: 1.65rem 0 1rem; color: var(--text-dimmed); font: .63rem var(--font-mono); letter-spacing: .1em; white-space: nowrap; }
.login-divider span:first-child, .login-divider span:last-child { height: 1px; flex: 1; background: var(--border-color); }
.login-register-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem .95rem; border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-alt); color: var(--text-main); font-size: .86rem; font-weight: 600; }
.login-register-link span { color: var(--text-muted); }
.login-register-link:hover { border-color: var(--border-hover); background: #141923; color: var(--text-main); }
.login-register-link:hover span { color: var(--accent-red); }
.login-footnote { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .55rem; margin-top: 1.1rem; color: var(--text-dimmed); font: .62rem var(--font-mono); letter-spacing: .06em; text-align: center; }
.login-footnote-dot { width: 6px; height: 6px; border-radius: 50%; background: #67d69b; }
.login-footnote-separator { color: var(--border-hover); }

/* Profile */
.profile-title { margin-bottom: 0; color: var(--text-main); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.25; }
.profile-subtitle { margin: .5rem 0 0; color: var(--text-muted); font-size: .9rem; }
.profile-preview-row { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0; margin: 1.25rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.profile-form, .remove-avatar-form, .report-form { margin-top: 1.25rem; }
.file-input { display: block; width: 100%; margin: .35rem 0 .5rem; padding: .8rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: #0b0e14; color: var(--text-muted); font-size: .875rem; }
.file-input::file-selector-button { padding: .45rem .7rem; margin-right: .75rem; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--card-bg); color: var(--text-main); cursor: pointer; }

/* Notifications */
.notification-list, .moderation-list, .banned-user-list { display: flex; flex-direction: column; gap: .65rem; margin-top: 1.25rem; }
.notification-row { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--card-bg); color: var(--text-main); transition: background .15s ease, border-color .15s ease; }
.notification-row:hover { border-color: var(--border-hover); background: var(--card-hover); color: var(--text-main); }
.notification-icon { display: grid; width: 34px; height: 34px; flex-shrink: 0; place-items: center; border: 1px solid var(--border-color); border-radius: 9px; background: var(--bg-color); color: var(--accent-red); font-size: 1.1rem; }
.notification-copy { display: block; min-width: 0; flex: 1; color: var(--text-muted); font-size: .875rem; }
.notification-copy strong, .notification-thread { color: var(--text-main); }
.notification-thread, .notification-preview, .notification-time { display: block; margin-top: .25rem; }
.notification-preview { color: var(--text-muted); overflow-wrap: anywhere; }
.notification-time { color: var(--text-dimmed); font-size: .75rem; }
.notification-arrow { color: var(--text-dimmed); }

/* Reporting and moderation */
.report-target, .moderation-report { padding: 1rem; margin-top: 1.25rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--card-alt); }
.report-target-label, .report-target-context { display: block; margin-bottom: .4rem; color: var(--text-dimmed); font-size: .78rem; }
.report-target strong { color: var(--text-main); }
.report-target p { margin: .75rem 0 0; color: var(--text-muted); font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-success { padding: 1.25rem 0 .25rem; }
.report-success h2 { font-size: 1.1rem; }
.report-success p { margin: .45rem 0 1rem; color: var(--text-muted); }
.moderation-report-meta, .moderation-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.moderation-report-meta { color: var(--text-muted); font-size: .78rem; }
.moderation-target-title { margin: .85rem 0 0; color: var(--text-main); font-size: 1rem; }
.moderation-author { margin: .25rem 0 0; color: var(--text-muted); font-size: .82rem; }
.moderation-content { padding: .8rem; margin: .9rem 0; border-left: 2px solid var(--border-hover); background: rgba(0, 0, 0, .12); color: #d9deea; font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.moderation-reason { padding: .8rem; border: 1px solid rgba(240, 68, 85, .2); border-radius: var(--radius-sm); background: var(--accent-soft); font-size: .85rem; }
.moderation-reason strong { color: #ff9aa4; }
.moderation-reason p { margin: .3rem 0 0; color: var(--text-main); white-space: pre-wrap; overflow-wrap: anywhere; }
.moderation-actions { margin-top: 1rem; }
.moderation-actions form, .banned-user-row form { display: inline-flex; margin: 0; }
.banned-user-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--card-bg); }
.banned-user-row strong { overflow-wrap: anywhere; }

/* Responsive layout and reduced motion */
@media (max-width: 760px) {
  .auth-layout { grid-template-columns: 1fr; gap: 1.5rem; max-width: 520px; margin-top: .75rem; }
  .auth-intro > .back-link { margin-bottom: 1.5rem; }
  .auth-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .auth-note { margin-top: 1.25rem; }
}
@media (max-width: 600px) {
  body { padding: 1.25rem .85rem 3rem; font-size: 14px; }
  header { align-items: flex-start; margin-bottom: 1.75rem; }
  .nav-links { justify-content: flex-end; flex-wrap: wrap; gap: .5rem .9rem; font-size: .8rem; }
  .page-kicker { display: none; }
  .panel { margin-bottom: .9rem; border-radius: var(--radius-md); }
  .thread-title { font-size: 1.65rem; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer button { width: 100%; }
  .directory-header { padding-top: 1rem; padding-bottom: 1.75rem; }
  .directory-title { font-size: 2.4rem; }
  .directory-description { font-size: .925rem; }
  .directory-row { gap: .8rem; padding: 1rem; }
  .directory-board-icon { width: 42px; height: 42px; border-radius: 10px; }
  .directory-board-heading { gap: .35rem; }
  .directory-board-name { font-size: .95rem; }
  .directory-board-description { font-size: .825rem; }
  .directory-board-arrow { width: 24px; height: 30px; }
  .board-heading-row { flex-direction: column; gap: .8rem; }
  .board-heading-row > .board-chip { margin-top: 0; }
  .board-header > .back-link { margin-bottom: 1.25rem; }
  .board-thread-row { align-items: flex-start; gap: .75rem; padding: 1rem; }
  .thread-open-link { padding-top: .15rem; }
  .thread-open-link span:first-child { display: none; }
  .board-thread-title { font-size: .95rem; }
  .board-thread-meta { gap: .35rem; }
  .board-compose .form-footer { align-items: stretch; flex-direction: column; }
  .board-compose .form-footer button { width: 100%; }
  .comment-header { gap: .45rem; padding: .75rem; }
  .comment-content { padding: .8rem .75rem .85rem; }
  .comment-children { margin-left: .45rem; padding-left: .65rem; }
  .comment-id { font-size: .65rem; }
  .profile-preview-row { align-items: center; }
  .moderation-actions { align-items: stretch; }
  .moderation-actions > a, .moderation-actions > form, .moderation-actions button { max-width: 100%; }
  .moderation-actions form button { width: 100%; }
  .auth-layout { gap: 1.5rem; }
  .login-page { margin-top: .5rem; }
  .login-card { padding: 1.35rem; }
  .login-brand { margin-bottom: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
