/* src/client/site.css */
@font-face {
  font-family: Inter;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  color: #f4f4f6;
  background: #13141a;
  font-synthesis: none;
  line-height: 1.5;
  --muted: #acadb9;
  --line: #30323d;
  --accent: #b4a3ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button,
.button,
input,
select,
textarea {
  border-radius: 10px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #13141a;
  padding: 0.8rem 1rem;
  color: inherit;
}
input[type=file] {
  padding: 0.6rem;
}
input::file-selector-button {
  font: inherit;
  color: #f4f4f6;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #30313b;
  margin-right: 0.7rem;
  cursor: pointer;
}
button,
.button {
  border: 1px solid transparent;
  padding: 0.7rem 1rem;
  font-weight: 600;
  background: #b4a3ff;
  color: #1e1739;
  text-decoration: none;
}
button.secondary,
.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: #d8d8df;
}
:focus-visible {
  outline: 3px solid #b4a3ff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}
h2 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 2rem 0;
}
.brand {
  color: #f4f4f6;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
}
.text-button {
  background: transparent;
  color: var(--muted);
  padding: 0.3rem 0;
}
.primary-button,
.secondary-button {
  display: inline-block;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  text-decoration: none;
}
.primary-button {
  background: var(--accent);
  color: #1e1739;
}
.secondary-button {
  border: 1px solid var(--line);
  color: #d8d8df;
  background: transparent;
}
.privacy-note {
  margin: 1.3rem 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
}
.photo-preview-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.muted,
small,
.hint,
.description {
  color: var(--muted);
}
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 650;
}
.join-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}
.join-card {
  width: min(100%, 440px);
  margin: clamp(2rem, 7vh, 6rem) auto;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #1b1c24;
}
.join-card .brand {
  display: inline-block;
  margin-bottom: 2.5rem;
}
.join-card h1 {
  margin-bottom: 0.7rem;
}
.join-card form {
  display: grid;
  gap: 0.7rem;
  margin-top: 2rem;
}
#join-form > label {
  display: block;
}
#join-form > label:not(:first-child) {
  margin-top: 0.6rem;
}
.join-card form > button[type=submit] {
  margin-top: 0.7rem;
}
.photo-preview-wrap:not(:has(img:not([hidden]))) {
  display: none;
}
label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 550;
}
label small {
  font-weight: 400;
}
.field {
  display: grid;
  gap: 0.45rem;
}
#photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
#remove-photo {
  justify-self: start;
  padding: 0.3rem 0.6rem;
  background: transparent;
  color: var(--muted);
}
.error,
[role=alert] {
  color: #ffb7be;
}
#join-error {
  padding: 0.8rem 1rem;
  background: #362028;
  border-radius: 10px;
  margin: 0;
  font-size: 0.85rem;
}
.chat-page {
  width: 100%;
  height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.chat-page > header,
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.chat-page h1 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin: 0;
}
#connection-status {
  font-size: 0.75rem;
  color: var(--muted);
}
#connection-status[data-state=connected] {
  color: #8dd5b4;
}
#connection-status[data-state=error] {
  color: #ffb7be;
}
#chat-app {
  min-height: 0;
}
.chat-page #chat-app,
#chat-app.chat-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}
#chat-panel {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
#chat-panel > .chat-root {
  height: 100%;
}
.chat-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}
.chat-layout #chat-panel {
  min-width: 0;
}
.member-sidebar,
.members-panel {
  width: 220px;
  flex: 0 0 220px;
  padding: 1.2rem;
  border-left: 1px solid var(--line);
  overflow-y: auto;
}
.members-panel h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.members-panel > .muted {
  font-size: 0.7rem;
  line-height: 1.6;
  margin-top: 2rem;
}
.chat-identity {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 0.2rem;
  font-size: 0.85rem;
}
#member-count {
  font-size: 0.8rem;
  color: var(--muted);
}
#member-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
#member-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.member-avatar {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #30313b;
  font-size: 0.65rem;
}
.member-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.surface {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: #1b1c24;
}
.stack {
  display: grid;
  gap: 1rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 0.8rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}
td {
  font-size: 0.85rem;
}
td form {
  display: inline;
}
@media (max-width: 640px) {
  .join-card {
    border: 0;
    background: transparent;
    padding: 1rem 0.25rem;
    margin: 1rem auto;
  }
  .page-shell {
    width: calc(100% - 28px);
    padding-top: 1.25rem;
  }
  .chat-page > header,
  .chat-header {
    padding: 0.8rem 1rem;
  }
  .member-sidebar,
  .members-panel {
    display: none;
  }
}
.chat-header .chat-title {
  flex: 1;
  min-width: 0;
}
.chat-title h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-header .chat-identity {
  flex-direction: row;
  align-items: center;
  min-width: 0;
  gap: 0.75rem;
}
#self-name {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-toggle {
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem;
}
.chat-layout {
  position: relative;
  overflow: hidden;
}
.chat-layout .members-panel {
  order: 1;
  width: 280px;
  flex: 0 0 280px;
  padding: 1rem;
  border-left: 1px solid var(--line);
  border-right: 0;
  background: #13141a;
  display: none;
}
.sidebar-open .members-panel {
  display: block;
}
@media (min-width: 961px) {
  .chat-layout .members-panel {
    display: block;
    margin-right: -280px;
    visibility: hidden;
    transition: margin-right 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.28s;
  }
  .sidebar-open .members-panel {
    margin-right: 0;
    visibility: visible;
    transition-delay: 0s;
  }
}
.sidebar-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.sidebar-toggle:hover {
  color: var(--text);
}
.sidebar-toggle[aria-expanded=true] {
  color: var(--accent);
}
.sidebar-heading {
  margin-bottom: 1rem;
}
.sidebar-backdrop {
  display: none;
}
#media-status {
  font-size: 0.8rem;
  color: var(--muted);
}
.chat-root.sidebar-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: auto;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
#media-more {
  width: 100%;
  margin-top: 1rem;
}
@media (max-width: 640px) {
  .chat-header {
    gap: 0.5rem;
  }
  .chat-header .chat-identity {
    gap: 0.4rem;
    font-size: 0.75rem;
  }
  #self-name {
    max-width: 5rem;
  }
  #connection-status {
    max-width: 5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 960px) {
  .chat-layout .members-panel {
    display: block;
    position: absolute;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    z-index: 20;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.22s ease, visibility 0.22s;
  }
  .sidebar-open .members-panel {
    transform: translateX(0);
    visibility: visible;
  }
  .sidebar-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 19;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: rgb(0 0 0 / 55%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s;
  }
  .sidebar-open .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-layout .members-panel,
  .sidebar-backdrop {
    transition: none;
  }
}
#chat-app.chat-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.chat-main > .chat-header {
  flex: 0 0 54px;
  min-height: 54px;
  padding: 0 16px;
  gap: 12px;
  background: #1a1a1e;
}
.chat-main .chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-main .chat-title h1 {
  font-size: 16px;
  font-weight: 650;
}
.channel-header-hash {
  color: #80848e;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}
.chat-main .sidebar-toggle {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 6px;
}
.channel-navigation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid #28292f;
  background: #16171b;
}
.channel-room-heading {
  display: flex;
  flex: 0 0 54px;
  align-items: center;
  min-width: 0;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid #28292f;
  color: #f2f3f5;
  font-size: 15px;
  font-weight: 650;
}
.channel-room-heading > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-navigation-body {
  flex: 1;
  min-height: 0;
  padding: 22px 10px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.channel-navigation-body h2 {
  margin: 0 8px 9px;
  color: #8e929c;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.channel-item {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 38px;
  gap: 10px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a4a7b0;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
}
.channel-item:hover {
  color: #e4e5e9;
  background: #24252b;
}
.channel-item[aria-current=page] {
  color: #f2f3f5;
  background: #303138;
}
.channel-item-hash {
  flex: 0 0 15px;
  color: #858994;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.channel-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-unread {
  flex-shrink: 0;
  color: #c5c1ff;
  font-size: 10px;
  font-weight: 650;
}
.channel-list-empty {
  margin: 8px;
  color: #8e929c;
  font-size: 13px;
}
.channel-profile {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 12px 10px;
  background: #111215;
  border-top: 1px solid #24252b;
}
.self-avatar {
  position: relative;
  display: inline-flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  background: #3e4366;
  color: #eceeff;
  font-size: 12px;
  font-weight: 650;
}
.self-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.channel-profile-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}
.channel-profile #self-name {
  max-width: none;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
.channel-profile #connection-status {
  display: block;
  max-width: none;
  font-size: 10px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a4a7b0;
}
.icon-button:hover {
  color: #f2f3f5;
  background: #292b32;
}
.channel-menu-button,
.channel-close,
.channel-backdrop {
  display: none;
}
#channel-draft-status {
  color: #f0b232;
  font-size: 12px;
  background: #1a1a1e;
}
#channel-draft-status:not(:empty) {
  padding: 8px 16px;
}
@media (max-width: 1042px) {
  #chat-app.chat-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-main > .chat-header {
    flex-basis: 52px;
    min-height: 52px;
    padding: 0 8px;
    gap: 8px;
  }
  .chat-main .chat-title {
    gap: 6px;
  }
  .chat-main .chat-title h1 {
    font-size: 15px;
  }
  .channel-menu-button,
  .channel-close {
    display: inline-flex;
  }
  .channel-menu-button {
    width: 40px;
    height: 40px;
  }
  .channel-close {
    margin-left: auto;
  }
  .channel-navigation {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, calc(100vw - 48px));
    z-index: 40;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.22s ease, visibility 0.22s;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 8px 0 30px rgb(0 0 0 / 25%);
  }
  .channels-open .channel-navigation {
    visibility: visible;
    transform: translateX(0);
  }
  .channel-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 39;
    padding: 0;
    border: 0;
    border-radius: 0;
    visibility: hidden;
    opacity: 0;
    background: rgb(0 0 0 / 55%);
    transition: opacity 0.22s ease, visibility 0.22s;
  }
  .channels-open .channel-backdrop {
    visibility: visible;
    opacity: 1;
  }
  .channel-profile {
    min-height: 72px;
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .channel-navigation,
  .channel-backdrop {
    transition: none;
  }
}
/*# sourceMappingURL=site.css.map */
