#talks { --talk-line: rgba(128,128,128,.25); --talk-muted: #697586; color: #34495e; }
.DarkMode #talks, html[data-color="dark"] #talks { color: #e5e7eb; --talk-muted: #bac4d1; }
#talks [hidden], #talk-comments[hidden] { display: none !important; }
#talks *, #talks *::before, #talks *::after { box-sizing: border-box; }
#talks .talks-intro { text-align: center; margin: 18px 0 28px; color: var(--talk-muted); }
#talks .talks-admin { border: 1px solid var(--talk-line); border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; }
#talks summary { cursor: pointer; font-weight: 600; min-height: 32px; }
#talks label { display: block; color: inherit; font-size: 14px; margin: 12px 0 8px; }
#talks input, #talks textarea { width: 100%; min-width: 0; height: auto; background: transparent; color: inherit; border: 1px solid var(--talk-line); border-radius: 8px; padding: 12px; margin: 0; box-shadow: none; font: inherit; }
#talks textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
#talks input:focus, #talks textarea:focus { outline: 2px solid #2196f3; outline-offset: 2px; }
#talks .talks-login-row { display: flex; gap: 12px; align-items: center; }
#talks button, #talks .talks-pagination a { min-height: 42px; padding: 9px 16px; border: 1px solid var(--talk-line); border-radius: 8px; background: transparent; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
#talks button:hover { background: rgba(33,150,243,.1); }
#talks button:disabled { opacity: .5; cursor: wait; }
#talks #talks-save { background: #1976d2; color: white; border-color: #1976d2; }
#talks .talks-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
#talks .talks-pagination { justify-content: center; }
#talks .talk-item { margin: 0 0 24px; padding: 24px; border: 1px solid var(--talk-line); border-radius: 14px; }
#talks .talk-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; }
#talks .talk-meta strong { font-size: 17px; }
#talks time { font-size: 13px; color: var(--talk-muted); }
#talks .talk-body { overflow-wrap: anywhere; line-height: 1.8; }
#talks .talk-body p { text-align: left; margin: 12px 0; }
#talks .talk-body img { display: block; max-width: 100%; max-height: 650px; height: auto; border-radius: 10px; margin: 12px auto; }
#talks .talk-body pre { overflow-x: auto; padding: 14px; background: rgba(128,128,128,.1); border-radius: 8px; }
#talks .talk-body table { display: block; overflow-x: auto; max-width: 100%; }
#talks .talk-body a, #talks .talk-comment-link { color: #1976d2; }
.DarkMode #talks .talk-body a, .DarkMode #talks .talk-comment-link,
html[data-color="dark"] #talks .talk-body a, html[data-color="dark"] #talks .talk-comment-link { color: #75bbff; }
#talks .talk-footer { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
#talks .talk-footer button { min-height: 36px; padding: 5px 12px; }
#talks-status, #talks-admin-status { color: var(--talk-muted); line-height: 1.7; }
@media (max-width: 600px) {
    #talks .talk-item, #talks .talks-admin { padding: 16px 12px; }
    #talks .talks-login-row { flex-wrap: wrap; }
    #talks .talks-login-row input { flex: 1 1 100%; }
    body:has(#talks) #gameToggleBtn, body:has(#talks) .lantern-toggle,
    body:has(#talks) #matery-mode-toggle, body:has(#talks) #waifu { display: none !important; }
}
