/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@14.2.32_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.2.32_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #f5efe4;
  --surface: rgba(255, 250, 243, 0.9);
  --surface-strong: #ffffff;
  --border: rgba(16, 52, 45, 0.12);
  --text: #16352f;
  --muted: #5d786f;
  --accent: #187f68;
  --accent-strong: #0f5e4d;
  --bubble-user: #d9f5df;
  --bubble-assistant: #ffffff;
  --bubble-system: #fff2cf;
  --danger: #b13e32;
  --shadow: 0 30px 70px rgba(10, 42, 36, 0.12);
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-display: "Trebuchet MS", "Avenir Next Condensed", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(24, 127, 104, 0.22), transparent 32%),
    radial-gradient(circle at bottom right, rgba(241, 188, 79, 0.2), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body), sans-serif;
}

body {
  overscroll-behavior-y: contain;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-shell,
.app-shell {
  min-height: 100dvh;
}

.login-shell {
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  width: min(100%, 28rem);
  padding: 2rem;
  border-radius: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px);
          backdrop-filter: blur(24px);
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.login-card h1,
.sidebar-header h1,
.chat-header h2 {
  margin: 0;
  font-family: var(--font-display), sans-serif;
}

.login-copy,
.login-error,
.helper-text,
.placeholder-panel p,
.empty-state span,
.profile-card p,
.agent-card p,
.chat-header p {
  color: var(--muted);
}

.login-error {
  color: var(--danger);
}

.google-button,
.composer button,
.fab-inline,
.modal-actions button:last-child {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(20rem, 24rem) 1fr;
  height: 100dvh;
  grid-gap: 1rem;
  gap: 1rem;
  padding: 1rem;
  overflow: hidden;
}

.agents-sidebar,
.chat-panel,
.modal-card,
.profile-card,
.agent-card,
.composer,
.terminal-card,
.command-card,
.log-card,
.stream-status-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
}

.agents-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  min-width: 0;
  border-radius: 2rem;
  padding: 1rem;
}

.sidebar-header,
.agent-row,
.chat-header,
.chat-header-left,
.chat-header-actions,
.profile-card,
.composer,
.modal-actions {
  display: flex;
  align-items: center;
}

.sidebar-header,
.chat-header,
.modal-actions {
  justify-content: space-between;
}

.profile-card {
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1.25rem;
}

.avatar {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(24, 127, 104, 0.12);
  color: var(--accent-strong);
  font-weight: 700;
}

.text-button {
  border: none;
  background: transparent;
  color: var(--accent-strong);
}

.text-button.danger {
  color: var(--danger);
}

.agent-list {
  display: flex;
  flex-direction: column;
  flex: 1 1;
  gap: 0.75rem;
  height: 0;
  overflow: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.agent-card {
  width: 100%;
  padding: 1rem;
  border-radius: 1.35rem;
  text-align: left;
}

.agent-card.active {
  border-color: rgba(24, 127, 104, 0.45);
  background: rgba(255, 255, 255, 0.96);
}

.agent-row {
  justify-content: space-between;
  gap: 1rem;
}

.agent-row p {
  margin: 0.35rem 0 0;
  font-size: 0.94rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(16, 52, 45, 0.08);
}

.status-pill.running {
  background: rgba(241, 188, 79, 0.24);
}

.status-pill.error {
  background: rgba(177, 62, 50, 0.16);
}

.chat-panel {
  display: flex;
  flex-direction: column;
  border-radius: 2rem;
  min-height: 0;
  min-width: 0;
  height: calc(100dvh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
  position: relative;
}

.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 0.75rem;
}

.chat-header-left {
  gap: 0.85rem;
  min-width: 0;
}

.chat-header-left > div {
  min-width: 0;
}

.chat-header-left h2,
.chat-header-left p {
  overflow-wrap: anywhere;
}

.chat-header-actions {
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-error {
  margin-top: 0.35rem;
  color: var(--danger);
}

.back-button {
  display: none;
  border: none;
  background: rgba(24, 127, 104, 0.12);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: var(--accent-strong);
}

.messages-area {
  flex: 1 1;
  height: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.2rem;
  overflow: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.bubble {
  max-width: min(42rem, 88%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border-radius: 1.4rem;
  align-self: flex-start;
  overflow: hidden;
  border: 1px solid rgba(16, 52, 45, 0.08);
}

.bubble.live {
  border: 1px solid rgba(24, 127, 104, 0.22);
}

.bubble-timestamp {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.bubble.user {
  align-self: flex-end;
  background: var(--bubble-user);
}

.bubble.assistant {
  background: var(--bubble-assistant);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.bubble.system {
  background: var(--bubble-system);
}

.live-run {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stream-status-card,
.command-card,
.log-card {
  border-radius: 1.25rem;
  padding: 1rem;
}

.stream-status-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.stream-status-card p,
.command-card p,
.log-card p,
.message-image figcaption {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.typing-dots {
  display: inline-flex;
  gap: 0.28rem;
  padding: 0.6rem 0.1rem;
}

.typing-dots span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--accent);
  animation: typing-bounce 1.2s infinite ease-in-out;
}

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

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

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

  40% {
    transform: translateY(-0.28rem);
    opacity: 1;
  }
}

.command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.command-status.in_progress {
  background: rgba(241, 188, 79, 0.24);
}

.command-status.completed {
  background: rgba(24, 127, 104, 0.16);
}

.code-block,
.command-output,
.log-card pre {
  margin: 0;
  overflow: auto;
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 0.84rem;
  line-height: 1.55;
  border-radius: 1rem;
}

.code-block {
  padding: 1rem;
  background: #0f201d;
  color: #dff6ef;
}

.code-block.diff {
  background: #13161f;
}

.code-block.shell {
  background: #1c1a16;
  color: #f9edcf;
}

.diff-code {
  display: block;
  white-space: pre-wrap;
}

.diff-line {
  display: block;
  padding: 0 0.1rem;
}

.diff-line.added {
  background: rgba(51, 171, 105, 0.18);
  color: #c9ffd8;
}

.diff-line.removed {
  background: rgba(193, 74, 61, 0.18);
  color: #ffd6d1;
}

.diff-line.hunk {
  color: #8ad7ff;
}

.diff-line.meta {
  color: #f8d587;
}

.command-output,
.log-card pre {
  margin-top: 0.85rem;
  padding: 1rem;
  background: rgba(16, 52, 45, 0.06);
  color: var(--text);
}

.expandable-block {
  position: relative;
  border-radius: 1rem;
  background: rgba(16, 52, 45, 0.04);
  border: 1px solid rgba(16, 52, 45, 0.08);
  overflow: hidden;
}

.expandable-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(16, 52, 45, 0.08);
}

.expandable-header strong {
  display: block;
}

.expandable-header p {
  margin: 0.18rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.expandable-body {
  padding: 0.9rem;
}

.expandable-block.collapsed .expandable-body {
  max-height: 6.75rem;
  overflow: hidden;
}

.expandable-block.expanded.message .expandable-body {
  max-height: 18rem;
  overflow: auto;
}

.expandable-block.expanded.log .expandable-body,
.expandable-block.expanded.generic .expandable-body {
  max-height: 20rem;
  overflow: auto;
}

.expandable-body > :first-child {
  margin-top: 0;
}

.expandable-body > :last-child {
  margin-bottom: 0;
}

.expandable-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3rem;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0), rgba(255, 250, 243, 0.96));
  pointer-events: none;
}

.expandable-jump {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.72rem;
  background: rgba(15, 94, 77, 0.92);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.log-card.error {
  border-color: rgba(177, 62, 50, 0.22);
  background: rgba(255, 244, 240, 0.86);
}

.rich-text {
  line-height: 1.6;
  margin: 0;
}

.message-heading,
.message-list,
.message-quote,
.message-callout,
.agent-ui-panel,
.rich-text + .rich-text,
.rich-text + .code-block,
.code-block + .rich-text,
.message-image + .rich-text,
.rich-text + .message-image,
.code-block + .message-image,
.message-image + .code-block,
.message-heading + .rich-text,
.rich-text + .message-list,
.message-list + .rich-text,
.rich-text + .message-callout,
.message-callout + .rich-text,
.agent-ui-panel + .rich-text,
.rich-text + .agent-ui-panel,
.message-quote + .rich-text,
.rich-text + .message-quote {
  margin-top: 0.85rem;
}

.message-heading {
  margin-bottom: 0;
  font-family: var(--font-display), sans-serif;
  font-size: 1.05rem;
  line-height: 1.25;
}

.message-list {
  margin-bottom: 0;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.message-list li + li {
  margin-top: 0.45rem;
}

.message-quote {
  margin-bottom: 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid rgba(24, 127, 104, 0.34);
  border-radius: 0 1rem 1rem 0;
  background: rgba(24, 127, 104, 0.07);
  color: var(--muted);
}

.message-callout {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(16, 52, 45, 0.08);
}

.message-callout strong,
.agent-ui-panel h4 {
  display: block;
  margin-bottom: 0.35rem;
}

.message-callout p,
.agent-ui-panel p {
  margin: 0;
  color: var(--muted);
}

.message-callout.verification {
  background: rgba(24, 127, 104, 0.08);
}

.message-callout.summary {
  background: rgba(241, 188, 79, 0.14);
}

.message-callout.note {
  background: rgba(16, 52, 45, 0.05);
}

.inline-code {
  display: inline-block;
  padding: 0.08rem 0.36rem;
  border-radius: 0.45rem;
  background: rgba(16, 52, 45, 0.08);
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 0.92em;
}

.message-link {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.file-reference {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(16, 52, 45, 0.1);
  border-radius: 1rem;
  background: rgba(16, 52, 45, 0.04);
  text-align: left;
}

.file-reference + .file-reference {
  margin-top: 0.55rem;
}

.file-reference-label,
.file-reference-path,
.file-reference-state {
  display: block;
}

.file-reference-label {
  font-weight: 700;
}

.file-reference-path {
  margin-top: 0.18rem;
  font-size: 0.8rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.file-reference-state {
  margin-top: 0.45rem;
  font-size: 0.76rem;
  color: var(--accent-strong);
}

.agent-ui-panel {
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(24, 127, 104, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 243, 237, 0.92)),
    rgba(24, 127, 104, 0.04);
}

.agent-ui-panel h4 {
  margin-top: 0;
}

.agent-ui-buttons,
.agent-ui-form {
  display: grid;
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.agent-ui-buttons {
  margin-top: 0.85rem;
}

.agent-ui-button {
  border: none;
  border-radius: 999px;
  padding: 0.82rem 1rem;
  font-weight: 700;
}

.agent-ui-button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
}

.agent-ui-button.secondary {
  background: rgba(16, 52, 45, 0.08);
  color: var(--text);
}

.agent-ui-field {
  display: grid;
  grid-gap: 0.4rem;
  gap: 0.4rem;
}

.agent-ui-field span {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

.agent-ui-field input,
.agent-ui-field textarea,
.agent-ui-field select {
  width: 100%;
  border: 1px solid rgba(16, 52, 45, 0.14);
  border-radius: 0.95rem;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  outline: none;
}

.agent-ui-field textarea {
  resize: vertical;
  min-height: 5rem;
}

.message-image {
  margin: 0;
}

.message-image img {
  display: block;
  max-width: min(100%, 28rem);
  border-radius: 1rem;
  border: 1px solid var(--border);
  height: auto;
}

.terminal-card {
  border-radius: 1.5rem;
  overflow: hidden;
}

.terminal-card.compact {
  box-shadow: none;
}

.terminal-header {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.88rem;
}

.terminal-card pre {
  margin: 0;
  padding: 1rem;
  overflow: auto;
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  background: #102420;
  color: #dff6ef;
}

.composer {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  z-index: 2;
  width: calc(100% - 2rem);
  gap: 0.85rem;
  padding: 0.85rem;
  margin: 1rem;
  border-radius: 1.5rem;
  align-items: flex-end;
}

.composer textarea,
.create-form input,
.create-form textarea {
  width: 100%;
  border: none;
  background: transparent;
  resize: none;
  color: var(--text);
  outline: none;
}

.composer textarea {
  min-height: 1.6rem;
  max-height: 11.25rem;
  overflow-y: auto;
  line-height: 1.45;
  padding: 0.35rem 0;
}

.composer button {
  flex: 0 0 auto;
}

.scroll-to-latest {
  position: absolute;
  right: 1.2rem;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 3;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 16px 30px rgba(15, 94, 77, 0.28);
  font-size: 1.35rem;
  font-weight: 700;
}

.queue-helper {
  margin: 0 1rem 0.75rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.placeholder-panel {
  flex: 1 1;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.modal-shell {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(13, 27, 24, 0.36);
  padding: 1rem;
}

.modal-card {
  width: min(100%, 32rem);
  border-radius: 1.8rem;
  padding: 1.3rem;
}

.danger-modal {
  border-color: rgba(177, 62, 50, 0.22);
}

.create-form {
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
}

.create-form label {
  display: grid;
  grid-gap: 0.45rem;
  gap: 0.45rem;
}

.create-form input,
.create-form textarea,
.danger-modal input {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.75);
}

.danger-button {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #c94d3e, #982f22);
  color: #fff;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
}

.empty-state {
  padding: 2rem 1rem;
  text-align: center;
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
    height: 100dvh;
    padding: 0;
    gap: 0;
  }

  .agents-sidebar,
  .chat-panel {
    min-height: 0;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }

  .agents-sidebar {
    display: none;
    padding-bottom: 6rem;
  }

  .agents-sidebar.visible,
  .chat-panel.visible {
    display: flex;
  }

  .chat-panel {
    height: 100dvh;
  }

  .chat-header {
    padding: 0.9rem 1rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-header-actions {
    width: 100%;
    gap: 0.5rem;
    justify-content: space-between;
  }

  .chat-header-actions .text-button {
    padding: 0.35rem 0.25rem;
  }

  .chat-header-left {
    width: 100%;
  }

  .chat-header-left h2 {
    font-size: 1.15rem;
  }

  .status-pill {
    min-width: 0;
  }

  .messages-area {
    padding: 1rem 0.9rem 7.5rem;
  }

  .bubble,
  .command-card,
  .stream-status-card,
  .terminal-card,
  .log-card {
    max-width: 100%;
  }

  .composer {
    margin: 0;
    width: 100%;
    border-radius: 1.4rem 1.4rem 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 0.85rem 0.9rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 250, 243, 0.98);
    -webkit-backdrop-filter: blur(22px);
            backdrop-filter: blur(22px);
  }

  .composer button {
    padding: 0.85rem 1rem;
  }

  .composer textarea {
    font-size: 1rem;
  }

  .scroll-to-latest {
    right: 0.9rem;
    bottom: calc(5.9rem + env(safe-area-inset-bottom, 0px));
  }

  .modal-shell {
    align-items: end;
    padding: 0.75rem;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100dvh - 1.5rem);
    overflow: auto;
    border-radius: 1.5rem;
  }

  .back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .chat-panel:not(.visible) {
    display: none;
  }

}

