:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-soft: #0f1217;
  --panel: #12161d;
  --panel-2: #171c25;
  --panel-3: #1d2430;
  --border: #242b38;
  --border-soft: #1c222c;
  --text: #e7ebf3;
  --text-dim: #aab3c5;
  --muted: #7f899d;
  --accent: #6aa9ff;
  --accent-strong: #3d8bff;
  --accent-soft: rgba(106, 169, 255, 0.13);
  --green: #3ddc97;
  --red: #ff6470;
  --amber: #ffb547;
  --radius: 14px;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Roboto, "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--accent);
}

[hidden] {
  display: none !important;
}

/* ---------- boot / login ---------- */

.boot,
.login {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 50% 0%, #131a26 0%, var(--bg) 55%);
  z-index: 50;
}

.boot {
  gap: 18px;
  align-content: center;
}

.boot-mark,
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  position: relative;
  flex: none;
}

.boot-mark::after,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.boot-mark {
  width: 46px;
  height: 46px;
  animation: pulse 1.4s ease-in-out infinite;
}

.boot-text {
  color: var(--muted);
  font-size: 14px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.login-card {
  width: min(360px, calc(100vw - 40px));
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 26px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.login-logo {
  position: relative;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
}

.logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--accent);
}

.logo-dot {
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--accent);
}

.login-card h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.login-sub {
  margin: 6px 0 22px;
  color: var(--muted);
  font-size: 13.5px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 13px;
  outline: none;
  transition: border-color 0.15s;
}

.field input:focus {
  border-color: var(--accent);
}

.login-error {
  min-height: 20px;
  margin-top: 12px;
  color: var(--red);
  font-size: 13px;
  text-align: center;
}

/* ---------- app shell ---------- */

.app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.topbar {
  flex: none;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  padding-top: env(safe-area-inset-top);
  background: rgba(15, 18, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 20px;
  height: 20px;
  border-width: 2.5px;
}

.brand-mark::after {
  inset: 5px;
}

.brand-name {
  font-weight: 650;
  letter-spacing: 0.3px;
  font-size: 14.5px;
}

.project-picker {
  flex: 1;
  min-width: 0;
  display: flex;
}

.project-picker select {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 30px 7px 11px;
  font-size: 13.5px;
  text-overflow: ellipsis;
  outline: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.status-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(127, 137, 157, 0.15);
  transition: background 0.2s, box-shadow 0.2s;
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.16);
}

.status-dot.bridge-offline {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 181, 71, 0.16);
}

.status-dot.offline {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 100, 112, 0.16);
}

.layout {
  flex: 1;
  min-height: 0;
  display: flex;
}

/* ---------- sidebar ---------- */

.sidebar {
  flex: none;
  width: 296px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-soft);
  border-right: 1px solid var(--border-soft);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px 9px;
}

.sidebar-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.session-list {
  flex: 1;
  overflow-y: auto;
  padding: 2px 8px 12px;
  overscroll-behavior: contain;
}

.session-item {
  width: 100%;
  display: block;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 11px;
  margin-bottom: 3px;
  transition: background 0.12s, border-color 0.12s;
}

.session-item:hover {
  background: var(--panel);
}

.session-item.active {
  background: var(--accent-soft);
  border-color: rgba(106, 169, 255, 0.32);
}

.session-item-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 520;
  line-height: 1.35;
  color: var(--text);
}

.session-item-title span:not(.session-dot) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.session-item-meta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11.5px;
}

.session-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.1s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.session-model {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  background: var(--panel);
  border-radius: 5px;
  padding: 1px 5px;
}

.session-empty,
.list-empty {
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.sidebar-foot {
  flex: none;
  border-top: 1px solid var(--border-soft);
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
}

.bridge-info {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bridge-info.online {
  color: var(--green);
}

.scrim {
  display: none;
}

/* ---------- main / chat ---------- */

.main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
}

.chat-header {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--bg), rgba(11, 13, 16, 0.86));
}

.chat-title-wrap {
  flex: 1;
  min-width: 0;
}

.chat-title {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-title:hover {
  color: var(--accent);
}

.chat-sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--mono);
}

.chat-actions {
  display: flex;
  gap: 2px;
}

.messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 18px 16px 26px;
}

.history,
.live {
  max-width: 880px;
  margin: 0 auto;
}

.msg {
  margin-bottom: 20px;
  animation: fade-in 0.18s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.msg.user {
  display: flex;
  justify-content: flex-end;
}

.user-bubble {
  max-width: min(78%, 620px);
  background: linear-gradient(180deg, #23385c, #1c2f4d);
  border: 1px solid #2f4a74;
  border-radius: 16px 16px 5px 16px;
  padding: 10px 14px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14.5px;
}

.user-files {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.user-file {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--text-dim);
}

.msg.assistant {
  max-width: 100%;
}

.assistant-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-size: 11.5px;
  color: var(--muted);
}

.assistant-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: relative;
  flex: none;
}

.assistant-avatar::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.assistant-name {
  color: var(--text-dim);
  font-weight: 600;
}

.part + .part {
  margin-top: 10px;
}

.md {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.md p {
  margin: 0 0 10px;
}

.md p:last-child {
  margin-bottom: 0;
}

.md code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 1px 5px;
}

.md pre {
  margin: 10px 0;
  padding: 12px 13px;
  background: #0a0c10;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow-x: auto;
  max-height: 460px;
  overflow-y: auto;
}

.md pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre;
}

.md a {
  text-decoration: none;
  border-bottom: 1px dotted rgba(106, 169, 255, 0.5);
}

.reasoning {
  border: 1px solid var(--border-soft);
  border-left: 2px solid #56617a;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
  padding: 8px 11px;
}

.reasoning[open] {
  background: rgba(255, 255, 255, 0.032);
}

.reasoning summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reasoning summary::-webkit-details-marker {
  display: none;
}

.reasoning summary::before {
  content: "▸";
  font-size: 9px;
  transition: transform 0.15s;
}

.reasoning[open] summary::before {
  transform: rotate(90deg);
}

.reasoning-body {
  margin-top: 7px;
  color: #a9b3c5;
  font-size: 12.8px;
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 420px;
  overflow-y: auto;
  font-family: var(--mono);
}

.tool {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
  overflow: hidden;
}

.tool-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  font-size: 12.5px;
}

.tool-name {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 2px 6px;
}

.tool-summary {
  flex: 1;
  min-width: 0;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-status {
  flex: none;
  font-size: 10.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.tool-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.tool-status.running::before {
  background: var(--amber);
  animation: blink 1s infinite;
}

.tool-status.done::before {
  background: var(--green);
}

.tool-status.error::before {
  background: var(--red);
}

.tool-body {
  border-top: 1px solid var(--border-soft);
  padding: 9px 11px;
}

.tool-body details summary {
  cursor: pointer;
  font-size: 11.5px;
  color: var(--muted);
  list-style: none;
}

.tool-body details summary::-webkit-details-marker {
  display: none;
}

.tool-body details summary::before {
  content: "▸ ";
}

.tool-body details[open] summary::before {
  content: "▾ ";
}

.tool-pre {
  margin: 8px 0 0;
  padding: 9px 10px;
  background: #090b0f;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: #b9c3d6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 340px;
  overflow: auto;
}

.tool-error {
  margin: 8px 0 0;
  color: var(--red);
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.assistant-foot {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10.8px;
  color: var(--muted);
  font-family: var(--mono);
}

.assistant-foot span {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 1px 6px;
}

.note {
  max-width: 880px;
  margin: 0 auto 16px;
  padding: 7px 11px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.note.error {
  border-color: rgba(255, 100, 112, 0.35);
  color: var(--red);
  background: rgba(255, 100, 112, 0.06);
}

.note.warn {
  border-color: rgba(255, 181, 71, 0.32);
  color: var(--amber);
  background: rgba(255, 181, 71, 0.05);
}

.load-older-wrap {
  display: flex;
  justify-content: center;
  margin: 2px 0 18px;
}

.empty-state {
  max-width: 460px;
  margin: 12vh auto 0;
  text-align: center;
  color: var(--muted);
}

.empty-state .empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--border);
  margin: 0 auto 16px;
  position: relative;
}

.empty-state .empty-icon::after {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: var(--border);
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text-dim);
  font-weight: 600;
}

.empty-state p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  animation: typing 1.2s ease-in-out infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.scroll-down {
  position: absolute;
  right: 20px;
  bottom: 130px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-dim);
  font-size: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  z-index: 6;
}

/* ---------- permission ---------- */

.permission-bar {
  flex: none;
  max-width: 880px;
  width: calc(100% - 32px);
  margin: 0 auto;
  padding: 11px 13px;
  border: 1px solid rgba(255, 181, 71, 0.4);
  border-radius: 12px;
  background: rgba(255, 181, 71, 0.08);
  font-size: 13px;
}

.permission-bar + .permission-bar {
  margin-top: 8px;
}

.permission-title {
  color: var(--amber);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.permission-text {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 11.5px;
  word-break: break-word;
  margin-bottom: 9px;
}

.permission-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ---------- composer ---------- */

.composer {
  flex: none;
  padding: 0 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--bg) 38%);
  max-width: 912px;
  width: 100%;
  margin: 0 auto;
}

.composer-box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 8px 8px 8px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.composer-box:focus-within {
  border-color: rgba(106, 169, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(106, 169, 255, 0.08);
}

.composer textarea {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  resize: none;
  padding: 7px 0;
  max-height: 180px;
  line-height: 1.5;
  font-size: 14.5px;
}

.composer textarea::placeholder {
  color: #636d80;
}

.composer-side {
  display: flex;
  gap: 6px;
  flex: none;
}

.composer-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 3px 0;
  font-size: 10.8px;
  color: #626c7e;
}

.model-hint {
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hint {
  white-space: nowrap;
}

/* ---------- buttons ---------- */

.btn {
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 13px;
  transition: background 0.12s, border-color 0.12s, opacity 0.12s;
}

.btn:hover {
  background: var(--panel-3);
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.btn.primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #06101f;
  font-weight: 650;
}

.btn.primary:hover:not(:disabled) {
  background: #5b9dff;
}

.btn.danger {
  background: rgba(255, 100, 112, 0.12);
  border-color: rgba(255, 100, 112, 0.4);
  color: var(--red);
}

.btn.ghost {
  background: transparent;
}

.btn.small {
  padding: 4px 9px;
  font-size: 11.5px;
  border-radius: 7px;
}

.btn.square {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  font-size: 16px;
  display: grid;
  place-items: center;
  flex: none;
}

.btn.block {
  width: 100%;
  padding: 11px;
  border-radius: 11px;
}

.icon-btn {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font-size: 15px;
}

.icon-btn:hover {
  background: var(--panel-2);
  color: var(--text);
}

.icon-btn.danger:hover {
  color: var(--red);
}

.menu-btn {
  display: none;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  top: calc(66px + env(safe-area-inset-top));
  transform: translateX(-50%);
  background: var(--panel-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12.5px;
  padding: 9px 15px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  z-index: 60;
  max-width: calc(100vw - 40px);
  text-align: center;
}

/* ---------- scrollbars ---------- */

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-thumb {
  background: #2a3342;
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- mobile ---------- */

@media (max-width: 820px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(84vw, 330px);
    z-index: 30;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    padding-top: env(safe-area-inset-top);
    box-shadow: 24px 0 50px rgba(0, 0, 0, 0.45);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }

  .scrim.show {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-btn {
    display: grid;
  }

  .brand-name {
    display: none;
  }

  .topbar {
    gap: 7px;
    padding-left: 7px;
    padding-right: 11px;
  }

  .chat-header {
    padding: 10px 12px 8px;
  }

  .messages {
    padding: 14px 12px 20px;
  }

  .composer {
    padding-left: 10px;
    padding-right: 10px;
  }

  .user-bubble {
    max-width: 88%;
  }

  .chat-title {
    font-size: 14.5px;
  }

  .hint {
    display: none;
  }

  .composer-meta {
    justify-content: flex-end;
  }
}

@media (min-width: 821px) {
  .messages {
    padding-left: 26px;
    padding-right: 26px;
  }

  .scrim {
    display: none !important;
  }
}