body { overflow-x: hidden; overflow-y: auto; padding: 76px 24px 70px; box-sizing: border-box; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: start; gap: 28px; width: 100%; max-width: 660px; }
.container { max-width: 100%; box-sizing: border-box; }
.owner-access { position: fixed; top: 16px; right: 16px; z-index: 10000; padding: 10px 14px; background: #080e12; font-family: inherit; font-size: .65rem; box-shadow: 0 0 12px rgba(0,242,255,.15); }
.owner-access:hover { background: #10242a; }
.owner-access:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; }
.owner-access:disabled { opacity: .5; cursor: wait; }
@media (max-width: 900px) { body { padding-top: 68px; } .owner-access { top: 12px; right: 16px; } }
.comments { width: 100%; min-width: 0; box-sizing: border-box; padding: 28px; background: rgba(5,5,8,.95); border: 1px solid var(--accent-color); border-left: 4px solid var(--accent-color); box-shadow: var(--glow); position: relative; z-index: 10; }
.comments h2 { color: var(--accent-color); font-size: 1rem; letter-spacing: 2px; }
.comments-note, .comment-date { color: #aaa; font-size: .7rem; line-height: 1.6; }
.comments label { display: block; font-size: .75rem; margin: 14px 0 6px; }
.comments input, .comments textarea { width: 100%; box-sizing: border-box; border: 1px solid #31747a; background: #080e12; color: var(--text-color); font: inherit; font-size: .85rem; padding: 10px; border-radius: 0; }
.comments textarea { resize: vertical; min-height: 90px; }
.comments input:focus, .comments textarea:focus { outline: 2px solid var(--accent-color); outline-offset: 2px; }
.comment-submit { padding: 10px 14px; margin-top: 10px; font: inherit; font-size: .75rem; }
.comment-submit:disabled { opacity: .5; cursor: wait; }
#comments-status { font-size: .75rem; line-height: 1.5; color: var(--accent-color); }
#comments-list { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 16px; margin: 20px 0; height: 400px; overflow-y: auto; background: #03090c; border: 1px solid #17464b; scrollbar-color: #31747a #03090c; overflow-anchor: none; }
.comment { min-width: 0; border: 1px solid #17464b; background: rgba(0,242,255,.025); padding: 12px; overflow-wrap: anywhere; }
.comment strong { color: var(--accent-color); font-size: .85rem; }
.comment time { display: block; margin-top: 5px; }
.comment p { white-space: pre-wrap; font-size: .85rem; line-height: 1.6; margin-bottom: 0; }
.chat-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chat-heading h2 { margin: 0; }
.chat-connection { font-size: .65rem; color: #6fffc2; letter-spacing: 1px; }
.chat-connection.disconnected { color: #ffbb66; }
.chat-empty { margin: auto; text-align: center; color: #81999c; line-height: 1.7; font-size: .85rem; }
.message-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.comment time { margin: 0; font-size: .6rem; flex-shrink: 0; }
.comment { max-width: 92%; align-self: flex-start; border-radius: 0 12px 12px 12px; }
.chat-image { display: block; max-width: 100%; max-height: 320px; object-fit: contain; border: 1px solid #24565b; margin-top: 12px; border-radius: 6px; }
.chat-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chat-tools .ctrl-btn { padding: 9px 10px; font: inherit; font-size: .7rem; }
.chat-tools .photo-button { margin: 0; cursor: pointer; }
.photo-input { position: absolute; width: 1px !important; height: 1px; opacity: 0; padding: 0 !important; }
.chat-tools:has(.photo-input:focus-visible) .photo-button { outline: 2px solid var(--accent-color); outline-offset: 2px; }
.chat-send { margin-left: auto; }
.emoji-picker { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; background: #080e12; border: 1px solid #31747a; padding: 10px; margin-top: 12px; }
.emoji-picker button { border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; padding: 5px; }
.emoji-picker button:hover { background: #17464b; }
.photo-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.photo-preview img { max-width: 150px; max-height: 110px; object-fit: contain; }
.message-delete { margin-top: 10px; }
[hidden] { display: none !important; }
.fixed-footer-nav { background: #030305; padding: 10px 0; bottom: 0; }
@media (max-width: 1000px) {
    .page-layout { grid-template-columns: minmax(0, 1fr); max-width: 660px; }
    .container { width: 100%; }
}
@media (max-width: 600px) {
    body { padding-right: 16px; padding-left: 16px; }
    .comments { padding: 18px; }
    #comments-list { height: 360px; padding: 10px; }
    .comment { max-width: 100%; box-sizing: border-box; }
    .message-header { flex-wrap: wrap; gap: 4px 12px; }
}
@media (max-width: 420px) {
    .container { padding: 18px; }
    .audio-interface { position: static; display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
    h1 { letter-spacing: 7px; }
}
