@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap");

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  height: 100%;
  background: #313338;
  color: #dbdee1;
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow: hidden;
}

.app {
  display: grid;
  grid-template-columns: 72px 240px 1fr;
  height: 100%;
}

.guilds {
  background: #1e1f22;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
}

.gicon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #313338;
  color: #dbdee1;
  font-size: 18px;
  cursor: pointer;
}

.gicon.active {
  border-radius: 16px;
  background: linear-gradient(180deg, #12a8d7, #30e7cf);
  color: #04141c;
}

.channels {
  background: #2b2d31;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ch-head {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #f2f3f5;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  font-size: 16px;
}

.ch-list {
  flex: 1;
  overflow: auto;
  padding: 8px 8px 16px;
}

.ch {
  height: 34px;
  padding: 0 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #80848e;
  font-size: 16px;
  cursor: pointer;
}

.ch:hover { background: #35373c; color: #dbdee1; }
.ch.active { background: #404249; color: #fff; }

.ch svg { width: 16px; height: 16px; flex: 0 0 auto; opacity: 0.85; }
.ch .hash { width: 18px; text-align: center; color: #80848e; font-weight: 700; }

body:not(.unlocked) .ch.locked { color: #6d6f78; }
body:not(.unlocked) .ch.locked .name { filter: none; }

.sep { height: 8px; }

.chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #313338;
}

.chat-head {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  color: #f2f3f5;
  font-weight: 600;
}

.welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.welcome h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.welcome p { margin: 8px 0 0; color: #949ba4; }

.thread {
  padding: 0 16px 24px;
}

.msg {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 4px 0 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, #12a8d7, #30e7cf);
  display: grid;
  place-items: center;
  color: #04141c;
  font-weight: 800;
}

.meta { display: flex; align-items: baseline; gap: 8px; }
.meta .name { color: #fff; font-weight: 600; }
.badge {
  background: #5865f2;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
.time { color: #949ba4; font-size: 12px; }

.embed {
  margin-top: 6px;
  max-width: 520px;
  background: #2b2d31;
  border-left: 4px solid #1abc9c;
  border-radius: 4px;
  padding: 12px 16px 14px;
}

.embed h3 { margin: 0 0 4px; color: #fff; font-size: 16px; }
.embed p { margin: 0; color: #dbdee1; font-size: 14px; line-height: 1.45; }
.embed strong { font-style: italic; }

.btn-row { margin-top: 10px; display: flex; gap: 8px; }

.disc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 3px;
  background: #5865f2;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.disc-btn:hover { background: #4752c4; }
.disc-btn svg { width: 14px; height: 14px; }

.note { color: #949ba4; font-size: 12px; margin-top: 6px; }

.dm-app { grid-template-columns: 72px 1fr; }
.dm-wrap { background: #313338; display: flex; flex-direction: column; min-width: 0; }

.ephemeral {
  margin-top: 10px;
  max-width: 560px;
}

.eph-flag { color: #949ba4; font-size: 12px; margin-top: 8px; }

.countdown { color: #f0b232; font-variant-numeric: tabular-nums; }
