/* Message rhythm: author once per group, never hide message content or controls. */
html[data-look] #messages .message:not(.join-notice){border:0;box-shadow:none;border-radius:11px}
html[data-look] #messages .message.group-follow:not(.join-notice){margin-top:-4px;border-top-left-radius:4px}
html[data-look] #messages .message.own.group-follow:not(.join-notice){border-top-right-radius:4px;border-top-left-radius:11px}
html[data-look] #messages .message.group-follow .compact-message-heading>.meta{display:none}
html[data-look] #messages .message.group-follow>.message-avatar{visibility:hidden;pointer-events:none}
html[data-look] #messages .message.group-follow .compact-message-heading:empty{display:none}
html[data-look] #messages .message .message-footer{color:var(--d-muted)}
html[data-look] #messages .message .message-mini-time{font-variant-numeric:tabular-nums;color:var(--d-muted);opacity:.85}
html[data-look] #messages .message .read-receipt{color:var(--d-muted)}
html[data-look] #messages .message .read-receipt:hover,html[data-look] #messages .message .read-receipt:focus-visible{color:var(--d-accent)}
html[data-look] #messages .message .image-preview{display:block;border:0;background:transparent;box-shadow:none;padding:0;margin:3px 0;border-radius:8px;overflow:hidden;max-width:100%}
html[data-look] #messages .message .image-preview img{display:block;border-radius:8px;max-width:100%;height:auto}
html[data-look] #messages .message>a.attachment-card{margin:3px 0 1px;padding:5px 2px;gap:7px;min-height:44px;box-sizing:border-box;background:transparent;border:0;border-radius:6px;box-shadow:none}
html[data-look] #messages .message>a.attachment-card:hover{background:color-mix(in srgb,var(--d-ink) 4%,transparent)}
html[data-look] #messages .attachment-card-icon{width:28px;height:30px;border-radius:6px;background:color-mix(in srgb,var(--d-accent) 8%,transparent);font-size:12px}
html[data-look] #messages .attachment-card-info strong{font-size:12px;font-weight:500;line-height:1.3;overflow-wrap:anywhere}
html[data-look] #messages .attachment-card-info small{font-size:10px;margin-top:1px;line-height:1.3}
html[data-look] #messages .attachment-card-download{display:grid;place-items:center;width:28px;min-height:34px;font-size:18px;color:var(--d-muted)}
html[data-look] #messages .message-day{margin:10px auto 8px;padding:3px 9px;font-size:11px;border:0;box-shadow:none;background:var(--d-panel)}
/* Common panel language, leaving each panel's layout and behavior intact. */
html #toolsPanel .tools-heading,html #threadPanel .thread-bar,html #contactProfileDialog .dialog-heading,html #memberProfileDialog .dialog-heading{padding:9px 12px;gap:8px;border-bottom:1px solid var(--d-line);box-shadow:none;background:var(--d-surface)}
html #toolsPanel .tools-heading h2,html #threadPanel .thread-bar>strong,html #contactProfileDialog .dialog-heading h2,html #memberProfileDialog .dialog-heading h2{font-size:14px;line-height:1.3;margin:0;min-width:0}
html #toolsPanel .tools-heading button,html #threadPanel .thread-bar button,html #contactProfileDialog .dialog-heading button,html #memberProfileDialog .dialog-heading button{min-height:40px;padding:6px 9px;background:transparent;color:var(--d-muted);box-shadow:none;border-radius:8px}
html #toolsPanel .tools-heading button:hover,html #threadPanel .thread-bar button:hover{background:var(--d-active);color:var(--d-ink)}
html #toolsPanel .contact-row,html #toolsPanel .member-row{box-shadow:none;border:0;border-bottom:1px solid color-mix(in srgb,var(--d-line) 55%,transparent);border-radius:0;background:transparent}
html #threadPanel .thread-reply{box-shadow:none;border:0;border-bottom:1px solid var(--d-line);border-radius:0;padding:8px 2px}
html #threadPanel .thread-reply p{margin:4px 0;line-height:1.4;overflow-wrap:anywhere}
html #threadPanel .thread-reply>small{color:var(--d-muted);font-size:11px}
html #toolsPanel .contact-profile-summary{box-shadow:none;background:transparent;border:0}
@media(max-width:900px){html #toolsPanel .tools-heading,html #threadPanel .thread-bar{padding:6px 9px}html #toolsPanel .tools-heading button,html #threadPanel .thread-bar button{min-height:44px}html[data-look] #messages .message>a.attachment-card{min-height:44px}}
