/* Final legibility and native-control polish for the light macOS product window. */
.mimicry-app {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}

/* Keep the visible conversation and its selected chat consistent in every state. */
.world-product-host .mimicry-app .chat-row:first-child {
  background: rgba(10, 132, 255, 0.16);
}

.world-product-host .mimicry-app .chat-row:nth-child(2) {
  background: transparent;
}

.mimicry-app[data-active-state="resolved"] .chat-row:first-child {
  background: rgba(10, 132, 255, 0.16);
}

.mimicry-app[data-active-state="resolved"] .chat-row:nth-child(2) {
  background: transparent;
}

.chat-row div span {
  color: #5f5f66;
  font-size: 12.5px;
}

.chat-row time {
  color: #68686f;
  font-size: 11px;
}

.chat-header span,
.ai-header span {
  color: #606067;
  font-size: 12px;
}

.telegram-message {
  font-size: 13.5px;
}

.telegram-message time {
  right: 9px;
  bottom: 6px;
  color: #74747a;
  font-size: 10px;
}

.mimicry-app .message-author {
  font-size: 12.5px;
}

.voice-note small {
  color: #66666d;
  font-size: 9.5px;
}

/* Replace placeholder glyphs with stable CSS-drawn macOS-style composer controls. */
.composer button {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0;
}

.composer-add span {
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

.composer-emoji span {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.composer-emoji span::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 2px;
  height: 4px;
  border-bottom: 1.5px solid currentColor;
  border-radius: 0 0 8px 8px;
}

.composer-emoji span::after {
  content: "··";
  position: absolute;
  inset: -4px 0 0;
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
}

.composer-mic span {
  position: relative;
  display: block;
  width: 8px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
}

.composer-mic span::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 5px;
  width: 12px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.composer-mic span::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 4px;
  height: 3px;
  border-bottom: 1.5px solid currentColor;
}

.assistant-turn {
  font-size: 13px;
}

.assistant-turn small {
  color: #5f5f66;
  font-size: 11.5px;
}

.runtime-row {
  color: #5d5d64;
  font-size: 12px;
}

.assistant-summary {
  font-size: 13px;
}

.proposal-card {
  padding: 13px;
  font-size: 12.25px;
}

.proposal-card header strong {
  font-size: 12px;
}

.proposal-controls select {
  height: 30px;
  padding-inline: 7px 24px;
  font-size: 11px;
}

.proposal-controls button {
  min-width: 58px;
  min-height: 30px;
  padding: 5px 10px;
  font-size: 11px;
}

.ai-prompt.approval {
  border: 1px solid rgba(36, 138, 61, 0.16);
  background: #e8f6ea;
  color: #1f7a37;
  font-weight: 600;
}

.proposal-card.resolved footer {
  min-height: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-top: 8px;
  border-color: var(--mac-separator);
  color: #696970;
  font-size: 11px;
}

.status-sent {
  color: #248a3d;
  font-weight: 600;
}

.ai-composer {
  height: 100px;
  min-height: 100px;
  font-size: 12.5px;
}

.model-row {
  margin-top: 26px;
}

.model-row small {
  color: #5f5f66;
  font-size: 10.5px;
}

.model-row button {
  width: 30px;
  height: 30px;
}
