/* Soft accents, neutral dark surfaces, and a channel-oriented workspace. */
:root {
  --bg: #f6faf7;
  --surface: #fffefa;
  --sidebar: #eaf2ed;
  --text: #30453a;
  --muted: #6a7d71;
  --border: #dce7df;
  --accent: #b7ddc8;
  --accent-strong: #4d8265;
  --accent-ink: #254a34;
  --soft: #e5f1e9;
  --purple: #4d8265;
  --purple-hover: #406f55;
  --raised: #f0f5f0;
  --peach: #f5e8da;
  --danger: #9c555d;
  --shadow: 0 20px 70px #344a3c12;
  --chat-size: 14px;
  --message-space: 18px;
  color-scheme: light;
}

:root.dark {
  --bg: #232428;
  --surface: #2b2d31;
  --sidebar: #1e1f22;
  --text: #eeeef2;
  --muted: #afb0ba;
  --border: #3b3d44;
  --accent: #b4dec7;
  --accent-strong: #a8d8bd;
  --accent-ink: #233f2e;
  --soft: #34353d;
  --purple: #a8d8bd;
  --purple-hover: #c3e7d3;
  --raised: #303238;
  --peach: #3d3740;
  --danger: #e0a5ab;
  --shadow: 0 20px 70px #0003;
  color-scheme: dark;
}

:root[data-accent="lavender"] {
  --accent: #d7c9e8;
  --accent-strong: #8c71a9;
  --accent-ink: #493457;
}

:root[data-accent="peach"] {
  --accent: #efd0b6;
  --accent-strong: #a47752;
  --accent-ink: #593d24;
}

:root[data-accent="sky"] {
  --accent: #bddbe8;
  --accent-strong: #5a8caa;
  --accent-ink: #294656;
}

:root[data-accent="rose"] {
  --accent: #e9c5cc;
  --accent-strong: #a67484;
  --accent-ink: #573642;
}

:root.dark[data-accent="lavender"] {
  --accent-strong: #cfbce2;
}

:root.dark[data-accent="peach"] {
  --accent-strong: #e4c2a3;
}

:root.dark[data-accent="sky"] {
  --accent-strong: #b3d4e5;
}

:root.dark[data-accent="rose"] {
  --accent-strong: #e3bbc7;
}

:root[data-font-size="small"] {
  --chat-size: 12px;
}

:root[data-font-size="large"] {
  --chat-size: 17px;
}

:root[data-density="compact"] {
  --message-space: 8px;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input,
textarea,
select {
  font-family: inherit;
}

button {
  transition: background .16s, border-color .16s, color .16s;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

input:focus,
textarea:focus {
  outline-color: var(--accent-strong);
}

.sidebar {
  width: 276px;
  background: var(--sidebar);
  color: var(--muted);
  padding: 27px 20px 0;
  border-right: 1px solid var(--border);
}

.brand {
  color: var(--text);
  font-size: 26px;
  margin: 0 8px 27px;
  letter-spacing: -1px;
}

.brand-mark {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 13px;
  transform: rotate(-5deg);
}

.brand-dot {
  color: var(--accent-strong);
}

.sidebar-scroll {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  padding-bottom: 14px;
}

.workspace-label {
  color: var(--muted);
  text-transform: none;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

.nav-item {
  color: var(--muted);
  border-radius: 11px;
  font-size: 13px;
  padding: 12px 13px;
}

.nav-item:hover,
.sidebar-join:hover {
  background: var(--raised);
}

.nav-item.selected {
  color: var(--accent-strong);
  background: var(--soft);
}

.nav-dot {
  background: var(--accent-strong);
}

.count {
  background: var(--raised);
  color: var(--muted);
}

.sidebar-section {
  color: var(--muted);
  letter-spacing: 1.5px;
  font-size: 9px;
  margin-top: 24px;
}

.tiny-tag {
  color: var(--muted);
  font-size: 8px;
}

.room-symbol {
  background: var(--soft);
  border-color: var(--border);
  color: var(--accent-strong);
  border-radius: 11px;
}

.room-card strong {
  color: var(--text);
  font-size: 12px;
}

.room-card p {
  color: var(--muted);
  font-size: 10px;
}

.sidebar-create {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  padding: 11px;
  border-radius: 10px;
  font-size: 12px;
}

.sidebar-create:hover {
  background: var(--accent);
  filter: brightness(.96);
}

.sidebar-join {
  color: var(--muted);
  font-size: 11px;
}

.sidebar-empty {
  color: var(--muted);
  font-size: 11px;
}

.privacy-note {
  padding-top: 20px;
  margin: 12px 12px 5px;
}

.privacy-note strong {
  color: var(--text);
  font-size: 11px;
}

.privacy-note p,
.privacy-icon {
  color: var(--muted);
}

.privacy-note button {
  color: var(--accent-strong);
}

.profile {
  border-color: var(--border);
  padding: 17px 2px 12px;
}

.profile strong {
  color: var(--text);
}

.profile span,
.profile .icon-button {
  color: var(--muted);
}

.profile>div:nth-child(2)>span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-settings {
  background: none;
  border: 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 12px 0 15px;
  justify-content: flex-start;
  font-size: 10px;
}

.sidebar-settings:hover {
  color: var(--accent-strong);
}

.sidebar-settings>span:first-child {
  font-size: 17px;
}

.settings-shortcut {
  margin-left: auto;
  font-size: 9px;
  opacity: .75;
}

.peer-list {
  flex-shrink: 0;
  min-height: 56px;
}

.peer-info strong {
  color: var(--text);
}

.peer-info small {
  color: var(--muted);
}

.peer-dot.connected {
  background: var(--accent-strong);
}

.avatar,
.dark .avatar,
.profile .avatar {
  background: var(--soft);
  color: var(--accent-strong);
  border-radius: 11px;
}

.avatar[data-color="mint"],
.color-choice[data-color="mint"] {
  background: #c3e4cf;
  color: #42624c;
}

.avatar[data-color="lavender"],
.color-choice[data-color="lavender"] {
  background: #d8cbea;
  color: #6a507f;
}

.avatar[data-color="peach"],
.color-choice[data-color="peach"] {
  background: #f0d5bd;
  color: #916749;
}

.avatar[data-color="sky"],
.color-choice[data-color="sky"] {
  background: #c4dfe9;
  color: #4d788e;
}

.avatar[data-color="rose"],
.color-choice[data-color="rose"] {
  background: #e9c6d0;
  color: #955a6f;
}

.topbar {
  height: 66px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 11px;
  min-width: 0;
}

.breadcrumb strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}

.breadcrumb span {
  color: var(--muted);
}

.topbar-actions {
  flex-shrink: 0;
}

.connection-badge {
  color: var(--muted);
  background: var(--surface);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 10px;
  white-space: nowrap;
}

.connection-badge.online {
  color: var(--accent-strong);
}

.connection-badge.online i {
  background: var(--accent-strong);
}

.conversation-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.conversation-header h1 {
  font-size: 18px;
  font-weight: 600;
}

.conversation-header p {
  font-size: 11px;
}

.heading-icon {
  background: var(--soft);
  color: var(--accent-strong);
  border-radius: 13px;
}

.button {
  border-radius: 10px;
  font-size: 12px;
  padding: 11px 17px;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}

.button.primary:hover {
  background: var(--accent);
  filter: brightness(.94);
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.button.secondary:hover {
  background: var(--raised);
}

.icon-button {
  color: var(--muted);
  border-radius: 10px;
}

.icon-button:hover {
  background: var(--soft);
  color: var(--accent-strong);
}

.welcome {
  padding-top: 30px;
}

.eyebrow {
  color: var(--muted);
  letter-spacing: 1.7px;
  font-size: 9px;
}

.eyebrow span {
  background: var(--accent-strong);
}

.orbit,
.dark .orbit {
  border-color: var(--border);
}

.art-chat.back {
  background: #e8d9be;
  box-shadow: none;
}

.art-chat.back:after {
  border-top-color: #e8d9be;
}

.art-chat.back span {
  background: #c7b48f;
}

.art-chat.front {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 9px 20px #00000009;
}

.art-chat.front:after {
  border-top-color: var(--accent);
}

.art-check {
  background: var(--surface);
  border-color: var(--bg);
  color: var(--accent-strong);
}

.art-spark {
  color: var(--accent-strong);
}

.welcome h2 {
  font: 500 43px/1.12 Georgia, serif;
  letter-spacing: -1.5px;
}

.welcome h2 span,
.dark .welcome h2 span {
  color: var(--accent-strong);
  font-style: italic;
}

.welcome-description {
  color: var(--muted);
  font-size: 13px;
}

.welcome-caption {
  color: var(--muted);
  font-size: 10px;
}

.feature-grid {
  margin-top: 30px;
  border-top: 1px dashed var(--border);
}

.feature-icon,
.dark .feature-icon {
  border-radius: 11px;
  background: var(--soft);
  color: var(--accent-strong);
}

.feature-icon.peach {
  background: var(--peach);
  color: var(--muted);
}

.feature h3 {
  font-size: 12px;
  color: var(--text);
}

.feature p {
  font-size: 11px;
  color: var(--muted);
}

.room-empty h2,
dialog h2 {
  font-family: Georgia, serif;
  font-weight: 500;
}

.room-empty {
  padding: 40px 20px;
}

.composer-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: none;
}

.composer-input:focus-within {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 10%, transparent);
}

.composer textarea {
  color: var(--text);
  font-size: var(--chat-size);
}

.composer textarea::placeholder,
.dark .composer textarea::placeholder {
  color: var(--muted);
}

.composer-tools,
.composer-footer {
  color: var(--muted);
}

.send-button {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-size: 12px;
}

.chat-scroll {
  overflow-anchor: none;
  scrollbar-color: var(--border) transparent;
}

:root[data-wallpaper="dots"] .chat-scroll {
  background-image: radial-gradient(var(--border) .75px, transparent .75px);
  background-size: 20px 20px;
}

.messages {
  display: block;
  padding: 22px 0 0;
  min-height: 0;
}

.virtual-item {
  display: flow-root;
  width: 100%;
  padding-bottom: var(--message-space);
}

.virtual-spacer {
  width: 100%;
  pointer-events: none;
}

.message {
  max-width: 82%;
}

.message.me {
  margin-left: auto;
}

.bubble {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 3px 14px 14px;
  font-size: var(--chat-size);
  line-height: 1.6;
}

.me .bubble {
  background: var(--soft);
  border-color: var(--border);
  border-radius: 14px 3px 14px 14px;
}

.bubble a {
  color: var(--accent-strong);
}

.system-message {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.message-meta {
  font-size: 11px;
}

.message-meta time {
  font-size: 10px;
}

:root[data-timestamps="false"] .message-meta time {
  display: none;
}

:root[data-density="compact"] .bubble {
  padding: 7px 12px;
}

:root[data-density="compact"] .message-meta {
  margin-bottom: 2px;
}

.file-card {
  max-width: 480px;
}

.file-symbol {
  color: var(--accent-strong);
  background: var(--soft);
  width: 32px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 22px;
  flex-shrink: 0;
}

.file-actions {
  flex-wrap: wrap;
}

.file-preview {
  object-fit: contain;
}

.file-status {
  max-width: 360px;
}

.file-card progress {
  accent-color: var(--accent-strong);
}

.history-notice,
.connection-notice {
  color: var(--muted);
  background: var(--raised);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 11px;
  margin-top: 12px;
}

.new-messages {
  z-index: 3;
}

.toast {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Saved rooms */
.saved-label {
  margin-bottom: 10px;
}

.saved-rooms {
  flex-shrink: 0;
  max-height: 160px;
  overflow: auto;
  scrollbar-width: thin;
}

.saved-room {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 3px 4px;
  border-radius: 10px;
}

.saved-room:hover,
.saved-room.current {
  background: var(--soft);
}

.saved-room-open {
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 9px 5px;
  font-size: 12px;
}

.saved-room-open>span:last-child {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.saved-flower {
  color: var(--accent-strong);
  font-size: 19px;
}

.saved-room .icon-button {
  width: 28px;
  height: 30px;
  padding: 6px;
  flex-shrink: 0;
}

.saved-room .icon-button svg {
  width: 14px;
}

.saved-hint {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  margin: 7px 12px 0;
}

/* Voice is a distinct, persistent part of the room. Sliders are keyed DOM
   controls: meter updates and volume persistence never replace focused inputs. */
.voice-panel {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.voice-panel.in-call {
  background: var(--surface);
  border-color: var(--accent-strong);
  box-shadow: inset 0 3px 0 var(--accent), 0 4px 25px #00000006;
}

.voice-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--soft);
  color: var(--accent-strong);
  border-radius: 12px;
}

.voice-badge svg {
  width: 23px;
  height: 23px;
}

.voice-copy {
  flex: 1;
  min-width: 160px;
}

.voice-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.voice-copy strong {
  color: var(--text);
  font-size: 13px;
}

.voice-copy p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

#voicePeople {
  display: none;
}

.call-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--accent-strong);
}

.call-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-strong);
}

#callDuration {
  font: 10px ui-monospace, monospace;
  color: var(--muted);
}

.voice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.voice-actions .button {
  padding: 8px 11px;
  font-size: 11px;
}

.voice-join {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.voice-leave {
  background: transparent;
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
  color: var(--danger);
}

.voice-leave:hover {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
}

#muteVoice[aria-pressed="true"],
#deafenVoice[aria-pressed="true"] {
  background: var(--soft);
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.voice-participants {
  flex-basis: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  max-height: 210px;
  overflow: auto;
  padding: 2px;
}

.voice-person {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  border: 1px solid var(--border);
  background: var(--raised);
  border-radius: 11px;
  padding: 12px;
  min-width: 0;
}

.voice-person>.avatar {
  width: 31px;
  height: 31px;
  font-size: 16px;
}

.voice-person-info {
  flex: 1;
  min-width: 0;
}

.voice-person-info strong {
  display: block;
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-person-state {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}

.voice-person.speaking {
  border-color: var(--accent-strong);
}

.voice-person.speaking .avatar {
  box-shadow: 0 0 0 2px var(--raised), 0 0 0 3px var(--accent-strong);
}

.voice-person.mic-muted .voice-person-state {
  color: var(--danger);
}

.speaking-meter {
  display: block;
  height: 4px;
  width: 18px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}

.speaking-meter:before {
  content: "";
  display: block;
  height: 100%;
  width: var(--level, 0%);
  background: var(--accent-strong);
}

.person-volume {
  display: flex;
  flex-basis: 100%;
  align-items: center;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}

.person-mute {
  background: none;
  border: 0;
  color: var(--muted);
  width: 25px;
  height: 25px;
  border-radius: 7px;
}

.person-mute[aria-pressed="true"] {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}

.volume-slider {
  accent-color: var(--accent-strong);
  min-width: 50px;
  width: 100%;
  flex: 1;
  height: 18px;
  cursor: pointer;
}

.volume-value {
  color: var(--muted);
  min-width: 31px;
  text-align: right;
  font: 9px ui-monospace, monospace;
}

.voice-volume-hint {
  color: var(--muted);
  flex-basis: 100%;
  font-size: 9px;
  margin: 0;
}

.voice-error {
  flex-basis: 100%;
  color: var(--danger);
  font-size: 12px;
}

/* Profile and appearance settings */
dialog {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  border-radius: 19px;
}

dialog::backdrop {
  background: #0b141080;
}

dialog input,
dialog select {
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  font: 12px "Segoe UI", sans-serif;
}

dialog select {
  width: 100%;
  padding: 11px;
}

dialog input[type="checkbox"],
dialog input[type="radio"] {
  width: auto;
  accent-color: var(--accent-strong);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.settings-dialog {
  width: min(570px, calc(100vw - 28px));
  padding: 25px;
}

.settings-dialog .dialog-top {
  margin-bottom: 18px;
}

.settings-eyebrow {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.7px;
  display: block;
  margin-bottom: 7px;
}

.settings-dialog h2 {
  font-size: 28px;
}

.settings-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.settings-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--muted);
  padding: 10px 1px 13px;
  font-size: 12px;
}

.settings-tabs button[aria-selected="true"] {
  border-bottom-color: var(--accent-strong);
  color: var(--text);
}

.profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 17px;
}

.profile-preview .avatar {
  width: 49px;
  height: 49px;
  font-size: 25px;
  border-radius: 15px;
}

.profile-preview>div:nth-child(2) {
  min-width: 0;
}

.profile-preview strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.profile-preview p {
  margin: 3px 0 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.preview-tag {
  margin-left: auto;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
}

.settings-dialog fieldset {
  border: 0;
  padding: 0;
  margin: 18px 0;
}

.settings-dialog legend {
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 10px;
}

.avatar-choices {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}

.avatar-choice {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--raised);
  padding: 8px;
  min-height: 38px;
  font-size: 19px;
}

.avatar-choice[aria-pressed="true"] {
  border-color: var(--accent-strong);
  background: var(--soft);
}

.color-choices {
  display: flex;
  gap: 11px;
}

.color-choice {
  width: 29px;
  height: 29px;
  border: 3px solid transparent;
  border-radius: 50%;
}

.color-choice[aria-pressed="true"] {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.settings-note {
  color: var(--muted);
  font-size: 11px;
  margin: 18px 0 0;
  line-height: 1.7;
}

.settings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.settings-footer>span {
  font-size: 10px;
  color: var(--muted);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.theme-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.theme-choices label {
  position: relative;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px;
  cursor: pointer;
  font-size: 11px;
}

.theme-choices label:has(:checked) {
  border-color: var(--accent-strong);
}

.theme-choices input {
  position: absolute;
  bottom: 12px;
  right: 12px;
}

.theme-sample {
  display: flex;
  gap: 6px;
  padding: 13px;
  border-radius: 7px;
  height: 65px;
  margin-bottom: 9px;
}

.theme-sample.night {
  background: #1b241f;
}

.theme-sample.day {
  background: #e8f1e9;
}

.theme-sample i {
  width: 18%;
  background: #40584a;
  border-radius: 3px;
}

.theme-sample i:nth-child(2) {
  background: #b5dcc7;
  width: 55%;
  height: 18px;
}

.theme-sample i:nth-child(3) {
  background: #788c7d;
  height: 18px;
  margin-top: 22px;
  margin-left: -40%;
  width: 40%;
}

.theme-sample.day i:first-child {
  background: #bfd4c6;
}

.settings-dialog .check-setting {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}

.check-setting input {
  height: 15px;
  width: 15px;
}

:root[data-reduced-motion="true"] *,
:root[data-reduced-motion="true"] *::before {
  transition: none !important;
  animation: none !important;
  scroll-behavior: auto !important;
}

@media(min-width:1500px) {
  .welcome h2 {
    font-size: 49px;
  }
}

@media(max-height:850px) and (min-width:761px) {
  .welcome {
    padding-top: 20px
  }

  .welcome-art {
    height: 120px;
    transform: scale(.78);
    margin: 0 auto
  }

  .welcome h2 {
    font-size: 36px
  }

  .feature-grid {
    margin-top: 22px
  }

  .voice-participants {
    max-height: 170px
  }
}

@media(max-width:1100px) {
  .sidebar {
    width: 244px;
    padding-left: 15px;
    padding-right: 15px
  }

  .breadcrumb strong {
    max-width: 160px
  }

  .voice-copy {
    min-width: 140px
  }

  .voice-heading {
    gap: 8px
  }
}

@media(max-width:760px) {
  .sidebar {
    width: 280px
  }

  .topbar {
    height: 60px
  }

  .breadcrumb {
    font-size: 10px;
    gap: 7px;
    overflow: hidden
  }

  .breadcrumb strong {
    max-width: 95px
  }

  .topbar-actions {
    gap: 4px
  }

  .connection-badge {
    font-size: 9px;
    padding: 4px 7px
  }

  .conversation-header {
    padding: 16px 0
  }

  .conversation-header h1 {
    font-size: 16px
  }

  .conversation-header p {
    font-size: 10px
  }

  .welcome {
    padding-top: 22px
  }

  .welcome-art {
    height: 110px;
    transform: scale(.75);
    margin: 0 auto 8px
  }

  .welcome h2 {
    font-size: 35px
  }

  .welcome-description {
    font-size: 12px
  }

  .welcome-caption {
    font-size: 9px
  }

  .feature-grid {
    gap: 10px;
    margin-top: 24px
  }

  .feature h3 {
    font-size: 10px
  }

  .feature p {
    font-size: 9px
  }

  .composer textarea,
  dialog input,
  dialog select {
    font-size: 16px
  }

  .composer textarea::placeholder {
    font-size: 12px
  }

  .message {
    max-width: 95%
  }

  .message-meta {
    font-size: 10px
  }

  .bubble {
    font-size: var(--chat-size)
  }

  .voice-panel {
    padding: 12px;
    margin-top: 12px;
    gap: 9px
  }

  .voice-badge {
    width: 32px;
    height: 32px
  }

  .voice-copy {
    min-width: 130px
  }

  .voice-copy strong {
    font-size: 12px
  }

  .voice-copy p {
    font-size: 10px
  }

  .voice-actions {
    margin-left: auto
  }

  .voice-actions .button {
    font-size: 10px;
    padding: 8px 10px
  }

  .voice-heading {
    gap: 6px
  }

  .call-live {
    font-size: 7px
  }

  #callDuration {
    font-size: 9px
  }

  .voice-participants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 156px;
    gap: 7px
  }

  .voice-person {
    padding: 9px;
    gap: 7px
  }

  .voice-person>.avatar {
    width: 27px;
    height: 27px;
    font-size: 15px
  }

  .voice-person-info strong {
    font-size: 10px
  }

  .voice-person-state {
    font-size: 8px
  }

  .speaking-meter {
    width: 12px
  }

  .person-volume {
    gap: 4px
  }

  .voice-volume-hint {
    font-size: 8px
  }

  .settings-dialog {
    padding: 19px
  }

  .settings-grid {
    gap: 9px
  }

  .settings-footer>span {
    font-size: 9px
  }

  .profile-preview {
    padding: 13px;
    gap: 10px
  }

  .preview-tag {
    display: none
  }

  .settings-dialog h2 {
    font-size: 25px
  }
}
:root { --action-surface: var(--surface); }
.message-actions, .message-reactions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:6px; }
.message-action, .reaction-chip, .reaction-option { border:1px solid var(--border); background:var(--surface); color:var(--muted); border-radius:10px; padding:4px 9px; font:inherit; font-size:11px; cursor:pointer; }
.message-action:hover, .reaction-chip:hover, .reaction-option:hover { color:var(--text); border-color:var(--accent); }
.reaction-picker summary { list-style:none; }
.reaction-picker summary::-webkit-details-marker { display:none; }
.reaction-options { display:flex; flex-wrap:wrap; gap:4px; padding:6px 0; }
.reaction-option { font-size:17px; min-width:34px; min-height:34px; }
.reaction-chip[aria-pressed="true"] { background:var(--accent); color:var(--accent-ink); }
.message-quote { display:block; width:100%; text-align:left; border:0; border-left:3px solid var(--accent); border-radius:5px; padding:8px 10px; margin-bottom:8px; background:var(--surface); color:var(--muted); font:inherit; font-size:12px; cursor:pointer; overflow-wrap:anywhere; white-space:pre-wrap; }
.reply-draft { display:flex; align-items:center; gap:12px; padding:10px 0; margin-bottom:6px; border-bottom:1px solid var(--border); }
.reply-draft>div { flex:1; min-width:0; border-left:3px solid var(--accent); padding-left:10px; }
.reply-draft strong, .reply-draft span { display:block; font-size:12px; }
.reply-draft span { color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:4px; }
#audioDialog { width:min(540px,calc(100vw - 32px)); }
.audio-field { display:grid; gap:8px; font-weight:600; margin-top:20px; }
.audio-field select { width:100%; padding:12px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--text); }
.audio-hint { color:var(--muted); font-size:12px; line-height:1.6; margin:10px 0 18px; }
.audio-test { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.audio-test meter { flex:1; min-width:100px; accent-color:var(--accent); height:20px; }
.audio-check { display:flex; align-items:center; gap:10px; margin-top:22px; }
#holdTalk { touch-action:none; user-select:none; }
#holdTalk[aria-pressed="true"] { background:var(--accent); color:var(--accent-ink); }
@media (max-width:760px) { .message-action, .reaction-chip { min-height:32px; } .voice-actions { flex-wrap:wrap; } }
/* Channel workspace: familiar rhythm, with Crypt's soft accents and small details. */
.sidebar { width: 256px; padding: 20px 14px 0; }
.brand { margin-bottom: 20px; font-size: 24px; }
.nav-item { border-radius: 6px; padding: 9px 12px; font-size: 14px; }
.nav-item.selected { box-shadow: inset 3px 0 var(--accent-strong); color: var(--text); }
.sidebar-section { font-size: 10px; letter-spacing: 1px; }
.saved-room { border-radius: 6px; }
.saved-room.current { background: var(--soft); box-shadow: inset 3px 0 var(--accent-strong); }
.saved-flower { font-size: 18px; }
.topbar { height: 52px; padding-inline: 24px; background: var(--sidebar); }
.breadcrumb { font-size: 12px; }
.main { padding-inline: 24px; }
.conversation-header { padding: 14px 0; }
.conversation-header h1 { font-size: 17px; }
.heading-icon { width: 38px; height: 38px; border-radius: 10px; }
.message, .message.me { width: 100%; max-width: 100%; flex-direction: row; align-self: flex-start; margin-left: 0; padding: 6px 8px; border-radius: 6px; }
.message:hover { background: var(--raised); }
.message-body { flex: 1; }
.me .message-meta { justify-content: flex-start; }
.bubble, .me .bubble, :root[data-density="compact"] .bubble { background: transparent; border: 0; border-radius: 0; padding: 0; }
.message-meta { margin-bottom: 3px; }
.message-meta strong { font-size: 13px; }
.delivery { text-align: left; }
.virtual-item { padding-bottom: calc(var(--message-space) * .55); }
.composer { border-radius: 12px; background: var(--surface); }
.composer-input { background: var(--surface); border-radius: 12px; }
.privacy-note { margin-top: auto; padding-top: 24px; }
#hostControls { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 18px; }
#hostControls h3 { font-size: 15px; }
.access-toggle { display: flex; align-items: center; gap: 10px; }
dialog .access-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-strong); }
#inviteExpiry { width: 100%; padding: 10px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; }
.access-actions, .admission-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.admission-row { align-items: center; }
.admission-row span { flex: 1; overflow-wrap: anywhere; min-width: 80px; }
#accessStatus { font-size: 12px; margin-top: 12px; }
#accessPending { font-size: 11px; }
:root.dark dialog::backdrop { background: #111216b3; }
@media (max-width: 700px) {
  .sidebar { width: 272px; }
  .topbar { padding-inline: 12px; }
  .main { padding-inline: 12px; }
  .breadcrumb { display: none; }
  .topbar-actions { margin-left: auto; gap: 6px; }
  #retryConnection, #accessPending { padding: 8px; font-size: 10px; }
  .connection-badge { padding: 5px 7px; }
  .message, .message.me { gap: 9px; padding-inline: 0; }
  .conversation-header { gap: 8px; }
}
