.web-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 24px 64px;
  display: grid;
  gap: 20px;
}

.web-hero {
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(10, 16, 30, 0.86);
  backdrop-filter: blur(10px);
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.mini-link, .mini-button, .primary-btn, .ghost-btn {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #eef2ff;
  text-decoration: none;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}

.primary-btn {
  border: 0;
  background: linear-gradient(135deg, #72d7ff, #8ef0c8);
  color: #07111b;
  font-weight: 700;
}

.ghost-btn:hover, .mini-button:hover, .mini-link:hover {
  background: rgba(255, 255, 255, 0.09);
}

.file-button {
  position: relative;
  overflow: hidden;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(10, 16, 30, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

.setup-card {
  padding: 24px 26px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.card-head.compact {
  margin-bottom: 12px;
}

.state {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(114, 215, 255, 0.08);
  color: #72d7ff;
  border: 1px solid rgba(114, 215, 255, 0.24);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.grid label, .composer, .sidebar, .chat {
  display: grid;
  gap: 8px;
}

.grid input, .search, textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #eef2ff;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.row.right {
  justify-content: flex-end;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  color: #a9b3d1;
}

.meta span, .subtitle {
  color: #7f8aaa;
}

.workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 680px;
  overflow: hidden;
}

.sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px;
}

.chat {
  padding: 22px;
  min-width: 0;
}

.users {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  max-height: 520px;
}

.users li {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
}

.users li.active {
  border-color: rgba(114, 215, 255, 0.42);
  background: rgba(114, 215, 255, 0.08);
}

.users .name {
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.users .sub {
  margin-top: 4px;
  color: #a9b3d1;
  font-size: 13px;
  line-height: 1.4;
}

.thread {
  min-height: 480px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: auto;
  display: grid;
  gap: 10px;
}

.bubble {
  max-width: 72%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: pre-wrap;
}

.bubble.mine {
  justify-self: end;
  background: rgba(114, 215, 255, 0.12);
  border-color: rgba(114, 215, 255, 0.25);
}

.bubble.theirs {
  justify-self: start;
  background: rgba(255, 255, 255, 0.04);
}

.bubble .meta-line {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #94a3c7;
}

.composer {
  margin-top: 14px;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

@media (max-width: 1080px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 720px) {
  .web-shell {
    padding: 18px 12px 40px;
  }

  .topline {
    flex-direction: column;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
