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

:root {
  color-scheme: light;
  --ink: #141111;
  --yellow: #ffd440;
  --pink: #fe7da8;
  --cream: #fffaef;
  --panel: #fffef8;
  --muted: #77716a;
  --soft: #aaa39c;
  --line: #141111;
  --green: #8fd36a;
  --lavender: #bbafe6;
  --shadow: 4px 4px 0 #141111;
  --shadow-sm: 2px 2px 0 #141111;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.phone-shell {
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: var(--cream);
}

.desktop-shell {
  display: none;
}

.view {
  position: relative;
  width: 100%;
  max-width: 760px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.with-bottom-nav {
  padding-bottom: 62px;
}

.home-header,
.yellow-title,
.workspace-title {
  min-height: 60px;
  flex: none;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--line);
  background: var(--yellow);
  padding: 8px 16px;
}

.workspace-button {
  max-width: min(360px, calc(100vw - 32px));
  height: 42px;
  border: 2px solid var(--line);
  background: var(--ink);
  color: var(--yellow);
  padding: 0 13px;
  font-size: 15px;
  font-weight: 900;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transform: rotate(-1.5deg);
}

.yellow-title {
  display: block;
  padding: 15px 18px 12px;
}

.workspace-title {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 18px;
}

.yellow-title h1,
.workspace-title h1,
.plain-title h1,
.channel-heading h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
}

.yellow-title p,
.workspace-title p,
.plain-title p,
.channel-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 12px;
}

.home-list,
.settings-list,
.activity-list,
.graph-content {
  min-height: 0;
  overflow-y: auto;
  flex: 1;
}

.home-action,
.settings-row {
  width: 100%;
  min-height: 45px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  border: 0;
  background: #fff;
  padding: 0 18px;
  text-align: left;
  cursor: pointer;
}

.home-action strong,
.settings-row strong {
  font-size: 15px;
  font-weight: 800;
}

.home-action em {
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
}

.section-title {
  min-height: 44px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 14px 18px 5px;
}

.section-title button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.section-title span {
  color: var(--muted);
  letter-spacing: 0;
  text-decoration: underline;
}

.plain-icon {
  min-width: 24px;
  padding: 0 4px;
  color: var(--muted) !important;
  font-size: 16px !important;
}

.conversation-list {
  display: grid;
}

.conversation-row,
.dm-row {
  width: 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  display: grid;
  align-items: center;
  gap: 9px;
  padding: 4px 18px;
  cursor: pointer;
  text-align: left;
}

.conversation-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.conversation-row:hover,
.dm-row:hover,
.home-action:hover,
.settings-row:hover {
  background: #fff5d8;
}

.row-main {
  overflow: hidden;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-symbol {
  font-family: "Space Mono", monospace;
  font-size: 18px;
}

.row-count {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 10px;
}

.dm-row {
  grid-template-columns: 18px minmax(0, 1fr) 14px;
}

.avatar {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--pink);
  font-family: "Space Mono", monospace;
  font-size: 8px;
  font-weight: 900;
}

.avatar.lavender {
  background: var(--lavender);
}

.avatar.yellow {
  background: var(--yellow);
}

.avatar.green {
  background: var(--green);
}

.avatar.blue {
  background: #9dd9ff;
}

.avatar.orange {
  background: #f7a079;
}

.avatar.large {
  width: 34px;
  height: 34px;
  border-width: 2px;
  font-size: 12px;
}

.dm-copy {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.dm-copy code {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presence {
  width: 9px;
  height: 9px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--green);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  width: 100%;
  max-width: 760px;
  height: 62px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--line);
  background: #fff;
}

.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  border-right: 2px solid var(--line);
  background: #fff;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.bottom-nav button:last-child {
  border-right: 0;
}

.bottom-nav button.active {
  background: var(--yellow);
}

.bottom-nav span {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.channel-header,
.plain-title,
.search-header {
  min-height: 61px;
  flex: none;
  display: grid;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--line);
  background: #fff;
  padding: 8px 18px;
}

.channel-header {
  grid-template-columns: 34px 38px minmax(0, 1fr) 34px 34px 62px;
}

.plain-title {
  grid-template-columns: 34px minmax(0, 1fr);
}

.square-button,
.small-square {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.members-button {
  width: 58px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
}

.channel-icon,
.search-icon,
.title-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  background: var(--yellow);
  font-family: "Space Mono", monospace;
  font-size: 20px;
  font-weight: 900;
}

.desktop-title-icon,
.esc-key {
  display: none;
}

.channel-heading {
  min-width: 0;
}

.channel-heading h1,
.channel-heading p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-row {
  flex: none;
  height: 32px;
  display: flex;
  border-bottom: 2px solid var(--line);
}

.tab-row button {
  min-width: 86px;
  border: 0;
  border-right: 2px solid var(--line);
  background: #fff;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
}

.tab-row button.active {
  background: var(--yellow);
}

.message-pane {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.beginning {
  color: var(--soft);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  text-align: center;
  padding: 15px;
}

.message-spacer {
  flex: 1;
  min-height: 240px;
}

.agent-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 90px);
  margin: 4px 22px 12px 68px;
  border: 2px solid var(--line);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.2;
}

.agent-typing strong {
  min-width: 0;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-typing em {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.typing-dots {
  flex: none;
  display: inline-flex;
  gap: 3px;
}

.typing-dots i {
  width: 5px;
  height: 5px;
  border: 1px solid var(--line);
  background: var(--pink);
  animation: typingPulse 1s infinite ease-in-out;
}

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

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

@keyframes typingPulse {
  0%,
  80%,
  100% {
    opacity: 0.45;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.message {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 22px 15px 68px;
}

.message .avatar {
  position: absolute;
  left: 22px;
  bottom: 18px;
}

.save-button {
  position: absolute;
  left: 20px;
  top: 2px;
  border: 0;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
}

.gbrain-button {
  position: absolute;
  left: 40px;
  top: 2px;
  border: 0;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
}

.save-button.active,
.gbrain-button.active {
  color: var(--ink);
}

.message-body {
  min-width: 0;
  grid-column: 2;
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: baseline;
}

.message-meta strong {
  font-size: 14px;
  font-weight: 900;
}

.message-meta span,
.message-meta time {
  color: var(--muted);
  font-size: 11px;
}

.memory-tag {
  border: 1px solid var(--line);
  background: var(--yellow);
  padding: 1px 4px;
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.message-body p {
  margin: 1px 0 0;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
}

.message-body a {
  color: var(--ink);
  font-weight: 900;
}

.reply-count {
  margin-top: 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.composer {
  flex: none;
  position: relative;
  margin: 12px;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.composer.drag-over {
  background: var(--yellow);
}

.mention-menu {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(100% + 6px);
  z-index: 20;
  max-height: 218px;
  overflow-y: auto;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.mention-menu[hidden] {
  display: none;
}

.mention-menu button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid #e8ded0;
  background: #fff;
  padding: 7px 10px;
  text-align: left;
  cursor: pointer;
}

.mention-menu button:last-child {
  border-bottom: 0;
}

.mention-menu button.selected,
.mention-menu button:hover {
  background: var(--yellow);
}

.mention-menu span:not(.avatar) {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.mention-menu strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mention-menu em,
.mention-menu small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer textarea {
  width: 100%;
  min-height: 40px;
  max-height: 132px;
  border: 0;
  outline: 0;
  padding: 10px;
  font-size: 17px;
  resize: none;
}

.attachment-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid #e8ded0;
  padding: 8px;
}

.attachment-preview span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 2px solid var(--line);
  background: var(--cream);
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 800;
}

.attachment-preview button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.hidden-input {
  display: none;
}

.composer-bottom {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 8px;
}

.small-square {
  width: 28px;
  height: 28px;
}

.as-task {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.as-task input {
  width: 15px;
  height: 15px;
  accent-color: var(--yellow);
}

.send-button {
  width: 31px;
  height: 31px;
  border: 2px solid var(--line);
  background: var(--pink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.send-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.sub-toolbar {
  flex: none;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 2px solid var(--line);
  padding: 8px 16px;
}

.pink-button,
.secondary-button,
.filter-button,
.segmented button {
  min-height: 31px;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 0 10px;
  box-shadow: var(--shadow-sm);
}

.pink-button,
.segmented button.active {
  background: var(--pink);
}

.danger {
  background: #fff0f0;
}

.segmented {
  display: flex;
  gap: 6px;
}

.segmented button.active {
  background: var(--yellow);
}

.empty-state {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.empty-icon {
  color: var(--soft);
  font-size: 54px;
  line-height: 1;
  margin-bottom: 12px;
}

.empty-state h2 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 900;
}

.empty-state p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.select-channel-view {
  display: grid;
  place-items: center;
}

.select-channel {
  color: var(--soft);
  font-family: "Space Mono", monospace;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-empty {
  margin: 6px 18px;
  color: var(--soft);
  font-size: 12px;
}

.agent-detail-view {
  min-height: 100%;
}

.agent-detail-body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 28px;
}

.agent-block {
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 14px;
  margin-bottom: 12px;
}

.hero-agent-block {
  background: var(--yellow);
}

.agent-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.agent-block h2 {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 900;
}

.agent-block p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.capability-grid div {
  min-width: 0;
  border: 2px solid var(--line);
  background: #fff;
  padding: 8px;
  box-shadow: 1px 1px 0 var(--line);
}

.capability-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.capability-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 900;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-chip {
  display: inline-grid;
  gap: 2px;
  border: 2px solid var(--line);
  background: var(--cream);
  padding: 4px 7px;
  font-family: "Space Mono", monospace;
  box-shadow: 1px 1px 0 var(--line);
}

.skill-chip.backed {
  background: #dcffd0;
}

.skill-chip.playbook {
  background: #fff7c7;
}

.skill-chip.needs {
  background: #ffd3d3;
}

.skill-chip strong {
  font-size: 11px;
  font-weight: 900;
}

.skill-chip em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.skill-note {
  margin-top: 10px !important;
  font-family: "Space Mono", monospace;
  font-size: 11px !important;
  font-weight: 900;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.memory-grid div {
  min-width: 0;
  border: 2px solid var(--line);
  background: var(--cream);
  padding: 8px;
  box-shadow: 1px 1px 0 var(--line);
}

.memory-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.memory-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 900;
}

.memory-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.memory-list article {
  border: 2px solid var(--line);
  background: #fff;
  padding: 9px;
  box-shadow: 1px 1px 0 var(--line);
}

.memory-list strong,
.memory-list span {
  display: block;
}

.memory-list strong {
  font-size: 12px;
  font-weight: 900;
}

.memory-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.connection-list {
  display: grid;
  gap: 8px;
}

.connection-list button {
  min-height: 38px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 1px 1px 0 var(--line);
}

.connection-list strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-list em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.open-dm-button {
  min-width: 120px;
}

.task-list,
.task-board {
  width: min(100%, 560px);
  display: grid;
  gap: 10px;
}

.task-area,
.file-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.task-area .task-list,
.task-area .task-board {
  margin: 0 auto;
}

.file-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.task-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.task-board section,
.task-card,
.file-card,
.activity-card,
.graph-list,
.stats-grid div {
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.task-board section {
  min-height: 150px;
  padding: 8px;
}

.task-board h3 {
  margin: 0 0 8px;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.task-card,
.file-card {
  padding: 10px;
  text-align: left;
}

.task-card strong,
.file-card strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.task-card span,
.file-card span,
.muted {
  color: var(--muted);
  font-size: 12px;
}

.task-actions {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}

.task-actions button,
.file-card button {
  min-height: 27px;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 900;
  padding: 0 7px;
  box-shadow: 1px 1px 0 var(--line);
}

.file-card button {
  margin-top: 9px;
}

.search-header {
  grid-template-columns: 34px 36px minmax(0, 1fr);
}

.search-header input {
  height: 40px;
  border: 2px solid var(--line);
  outline: 0;
  padding: 0 10px;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.search-filters,
.filter-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--line);
  padding: 10px 16px;
}

.search-filters button,
.filter-row button {
  min-height: 30px;
  border: 2px solid var(--line);
  background: #fff;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  padding: 0 9px;
  box-shadow: var(--shadow-sm);
}

.filter-row button.active {
  background: var(--yellow);
}

.search-filters button.active {
  background: var(--yellow);
}

.activity-list {
  padding: 16px;
}

.activity-card {
  position: relative;
  margin-bottom: 8px;
  text-align: left;
}

.activity-card > button:first-child,
.search-card {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 12px 50px 12px 12px;
  text-align: left;
}

.activity-card span,
.activity-card time {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 900;
}

.activity-card p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.35;
}

.activity-card em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.mark-done {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.member-title {
  padding-top: 16px;
}

.plain-title {
  min-height: 61px;
}

.plain-title h1 {
  display: inline-block;
}

.tag {
  width: fit-content;
  border: 1px solid var(--line);
  background: var(--green);
  padding: 2px 5px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.graph-content {
  padding: 16px 20px 24px;
}

.graph-box {
  height: 365px;
  overflow: hidden;
  border: 3px solid var(--line);
  background: var(--cream);
  margin: 14px 0;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}

.graph-node {
  display: inline-grid;
  place-items: center;
  min-width: 66px;
  height: 34px;
  border: 2px solid var(--line);
  background: var(--pink);
  color: var(--ink);
  cursor: pointer;
  margin: 8px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.graph-node.lavender {
  background: var(--lavender);
}

.graph-node.yellow {
  background: var(--yellow);
}

.graph-node.green {
  background: var(--green);
}

.graph-node.blue {
  background: #9dd9ff;
}

.graph-node.orange {
  background: #f7a079;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.stats-grid div {
  display: grid;
  place-items: center;
  min-height: 64px;
}

.stats-grid strong {
  font-size: 21px;
  font-weight: 900;
}

.stats-grid span {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.graph-list {
  margin-top: 12px;
  padding: 12px;
}

.graph-list h2 {
  margin: 0 0 10px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.graph-list p {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 13px;
  font-weight: 800;
}

.graph-list em {
  color: var(--muted);
  font-style: normal;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(20, 17, 17, 0.55);
  padding: 24px;
}

.modal {
  width: min(452px, calc(100vw - 36px));
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 10px;
}

.modal h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-body {
  display: grid;
  gap: 12px;
  padding: 12px 24px;
}

.modal label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.modal input {
  width: 100%;
  height: 42px;
  border: 2px solid var(--line);
  outline: 0;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  text-transform: none;
}

#task-inputs {
  display: grid;
  gap: 10px;
}

.modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 24px 24px;
}

.modal-copy {
  color: var(--muted);
  line-height: 1.5;
}

.modal-actions-grid,
.computer-list,
.thread-replies,
.agent-picker {
  display: grid;
  gap: 8px;
}

.agent-picker {
  max-height: min(430px, 48vh);
  overflow: auto;
  padding-right: 2px;
}

.channel-member-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.channel-member-strip span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--line);
  background: var(--yellow);
  padding: 2px 7px 2px 2px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.channel-member-strip .avatar {
  width: 22px;
  height: 22px;
  font-size: 9px;
  font-style: normal;
}

.modal-section-label,
.radio-group > span {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.radio-group {
  display: grid;
  gap: 8px;
}

.modal .radio-group label {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line);
  background: #fff;
  padding: 0 10px;
  box-shadow: var(--shadow-sm);
  text-transform: none;
}

.modal .radio-group input {
  width: 16px;
  height: 16px;
  padding: 0;
  box-shadow: none;
  accent-color: var(--pink);
}

.participant-list,
.notification-panel,
.connected-accounts,
.plan-grid {
  display: grid;
  gap: 8px;
}

.participant-list p,
.notification-panel,
.connected-accounts p,
.plan-grid p {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line);
  background: var(--cream);
  padding: 8px;
  box-shadow: var(--shadow-sm);
}

.participant-list em,
.notification-panel span,
.connected-accounts span,
.plan-grid span,
.setting-card p span {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.notification-panel {
  grid-template-columns: 1fr;
  align-items: start;
}

.modal .agent-option {
  grid-template-columns: 18px 30px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
  border: 2px solid var(--line);
  background: #fff;
  padding: 6px 8px;
  box-shadow: var(--shadow-sm);
  text-transform: none;
}

.modal .agent-option input {
  width: 16px;
  height: 16px;
  padding: 0;
  box-shadow: none;
  accent-color: var(--pink);
}

.agent-option strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-option em {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.computer-list p,
.release-note,
.thread-root,
.thread-replies article {
  margin: 0;
  border: 2px solid var(--line);
  background: var(--cream);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.computer-list strong,
.release-note strong,
.thread-root strong,
.thread-replies strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.computer-list span,
.release-note span,
.thread-root p,
.thread-replies p {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.thread-root a,
.thread-replies a {
  color: var(--ink);
  font-weight: 900;
}

.desktop-setting-panel {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 28px;
}

.setting-card {
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 16px;
  margin-bottom: 18px;
}

.setting-card h3,
.connected-accounts h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.setting-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.setting-card p strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.connected-accounts {
  margin: 14px 0;
}

.danger-zone {
  background: #fff0f0;
}

.setting-card label {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.setting-card input {
  width: 100%;
  min-height: 40px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  box-shadow: var(--shadow-sm);
}

.profile-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.profile-row strong,
.setting-card > strong,
.session-card strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.profile-row span,
.verified-line span,
.session-card p {
  color: var(--muted);
  font-size: 13px;
}

.verified-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  font-size: 13px;
}

.verified-line em {
  border: 2px solid var(--line);
  background: var(--green);
  padding: 1px 6px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logout-button {
  min-height: 38px;
  border: 2px solid var(--line);
  background: #f7a079;
  cursor: pointer;
  font-weight: 900;
  padding: 0 18px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 900px) {
  .mobile-shell {
    display: none;
  }

  .desktop-shell {
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 64px 240px minmax(0, 1fr);
    background: #fff;
  }

  .desktop-shell.no-sidebar {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .desktop-rail {
    min-height: 0;
    display: grid;
    grid-template-rows: 64px minmax(0, 1fr) 54px;
    border-right: 2px solid var(--line);
    background: var(--yellow);
  }

  .desktop-rail nav {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 8px 10px;
  }

  .rail-server,
  .rail-bottom,
  .desktop-rail nav button {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--ink);
    font-weight: 900;
  }

  .rail-server {
    width: 42px;
    height: 42px;
    align-self: center;
    justify-self: center;
    background: var(--ink);
    color: var(--yellow);
    box-shadow: var(--shadow-sm);
  }

  .desktop-rail nav button {
    width: 42px;
    height: 42px;
    border: 2px solid transparent;
    font-size: 18px;
  }

  .desktop-rail nav button.active {
    border-color: var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
  }

  .desktop-rail nav button em {
    position: absolute;
    left: 74px;
    min-width: 100px;
    display: none;
    border: 2px solid var(--line);
    background: #fff;
    padding: 4px 7px;
    font-family: "Space Mono", monospace;
    font-size: 10px;
    font-style: normal;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
  }

  .desktop-rail nav button:hover em {
    display: block;
  }

  .desktop-sidebar {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-right: 2px solid var(--line);
    background: var(--cream);
  }

  .desktop-sidebar header {
    min-height: 64px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--line);
    padding: 0 18px;
    background: var(--cream);
  }

  .desktop-sidebar header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
  }

  .desktop-sidebar-body {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
  }

  .desktop-sidebar .home-action {
    min-height: 37px;
    padding-inline: 18px;
  }

  .desktop-sidebar .home-action strong,
  .desktop-sidebar .settings-row strong {
    font-size: 14px;
  }

  .desktop-sidebar .conversation-row.selected,
  .desktop-sidebar .dm-row.selected,
  .desktop-sidebar .settings-row.selected {
    margin-inline: 10px;
    width: calc(100% - 20px);
    border: 2px solid var(--line);
    background: var(--pink);
    box-shadow: var(--shadow-sm);
  }

  .desktop-sidebar.narrow {
    background: var(--cream);
  }

  .desktop-main {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #fff;
  }

  .desktop-main .view {
    max-width: none;
    border: 0;
  }

  .desktop-main .with-bottom-nav {
    padding-bottom: 0;
  }

  .desktop-main .bottom-nav {
    display: none;
  }

  .desktop-main .yellow-title {
    min-height: 64px;
  }

  .desktop-main .workspace-title {
    min-height: 64px;
    background: #fff;
  }

  .desktop-main .channel-header,
  .desktop-main .plain-title,
  .desktop-main .search-header {
    min-height: 64px;
  }

  .desktop-main .channel-header {
    grid-template-columns: 38px minmax(0, 1fr) 34px 34px 62px;
  }

  .desktop-main .channel-header > .square-button:first-child {
    display: none;
  }

  .desktop-main .mobile-back {
    display: none;
  }

  .desktop-main .desktop-title-icon {
    display: grid;
  }

  .desktop-main .plain-title {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .desktop-main .search-header {
    grid-template-columns: 38px minmax(0, 1fr) 42px;
  }

  .desktop-main .esc-key {
    height: 30px;
    display: grid;
    place-items: center;
    border: 2px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-family: "Space Mono", monospace;
    font-size: 10px;
    font-weight: 900;
    box-shadow: var(--shadow-sm);
  }

  .desktop-main .search-filters .segmented {
    margin-left: auto;
  }

  .desktop-main .message-spacer {
    min-height: 0;
    flex: 1;
  }

  .desktop-main .message-pane {
    min-height: 0;
  }

  .desktop-main .composer {
    margin: 12px;
  }

  .desktop-main .settings-list,
  .desktop-main .activity-list,
  .desktop-main .graph-content {
    flex: 1;
  }

  .desktop-main .empty-state {
    min-height: 0;
  }

  .desktop-main .select-channel-view {
    min-height: 100%;
  }

  .desktop-main .settings-panel-view {
    min-height: 100%;
  }

  .desktop-main .desktop-setting-panel {
    max-width: none;
  }

  .view,
  .bottom-nav {
    border-inline: 2px solid var(--line);
  }

  .desktop-main .view {
    border-inline: 0;
  }
}

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