:root {
  color-scheme: light;
  --bg: #f7f7f7;
  --panel: #ffffff;
  --panel-2: #f4f4f4;
  --brand: #b30216;
  --brand-dark: #87000f;
  --brand-soft: rgba(179, 2, 22, 0.1);
  --border: rgba(179, 2, 22, 0.16);
  --border-strong: rgba(179, 2, 22, 0.38);
  --text: #424242;
  --muted: #737373;
  --green: #b30216;
  --green-2: #87000f;
  --danger: #b30216;
  --shadow: 0 24px 80px rgba(66, 66, 66, 0.18);
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src:
    local("Inter Variable"),
    local("Inter");
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family:
    "Inter",
    Segoe UI,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(145deg, #e7e7e7 0%, #d9d9d9 48%, #eeeeee 100%);
  color: var(--text);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -28vmax;
  z-index: -2;
  pointer-events: none;
  will-change: transform, opacity;
}

body::before {
  background:
    radial-gradient(circle at 22% 18%, rgba(179, 2, 22, 0.14), transparent 24vmax),
    radial-gradient(circle at 78% 28%, rgba(179, 2, 22, 0.1), transparent 22vmax),
    radial-gradient(circle at 46% 82%, rgba(66, 66, 66, 0.14), transparent 24vmax);
  filter: blur(18px);
  animation: green-drift 24s ease-in-out infinite alternate;
}

body::after {
  z-index: -3;
  background:
    linear-gradient(120deg, rgba(230, 230, 230, 0.98), rgba(210, 210, 210, 0.9), rgba(238, 238, 238, 0.98)),
    radial-gradient(circle at 50% 50%, rgba(179, 2, 22, 0.08), transparent 34vmax);
  animation: green-breathe 18s ease-in-out infinite;
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  place-items: center;
}

.chat-layout {
  position: relative;
  width: min(1000px, 100%);
}

.chat-card {
  width: 100%;
  height: min(820px, calc(100vh - 56px));
  min-height: 620px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(179, 2, 22, 0.22);
  border-radius: 26px;
  box-shadow:
    0 28px 90px rgba(66, 66, 66, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  backdrop-filter: blur(18px);
}

.chat-header {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(179, 2, 22, 0.1);
}

.header-brand {
  display: contents;
}

.header-brand .options-menu {
  grid-column: 1;
  grid-row: 1;
}

.header-brand h1 {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  text-align: center;
  min-width: 0;
  padding: 0 150px;
  pointer-events: none;
}

.options-menu {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
}

.options-toggle {
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 45;
  display: inline-grid;
  place-content: center;
  gap: 5px;
  border: 0;
  border-radius: 15px;
  background: var(--brand);
  box-shadow: 0 12px 28px rgba(179, 2, 22, 0.24);
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.options-toggle:hover,
.options-menu.open .options-toggle {
  background: var(--brand-dark);
}

.options-menu.open .options-toggle {
  box-shadow: 0 14px 30px rgba(135, 0, 15, 0.3);
}

.options-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: #ffffff;
  transition:
    width 0.24s ease,
    transform 0.24s ease;
}

.options-menu.open .options-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.options-menu.open .options-toggle span:nth-child(2) {
  width: 4px;
  opacity: 0;
}

.options-menu.open .options-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.options-list {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 35;
  width: min(300px, calc(100vw - 28px));
  padding: 92px 18px 18px;
  display: grid;
  align-content: start;
  gap: 8px;
  background: #ffffff;
  border-right: 1px solid rgba(179, 2, 22, 0.18);
  box-shadow: 24px 0 70px rgba(66, 66, 66, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-104%);
  transition:
    opacity 0.24s ease,
    transform 0.32s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.option-action {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(179, 2, 22, 0.18);
  cursor: pointer;
  font-weight: 800;
  transition:
    background 0.2s ease;
}

.options-menu.open .options-list {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.option-action:hover {
  background: var(--brand-dark);
}

.log-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(36, 36, 36, 0.42);
  backdrop-filter: blur(12px);
}

.log-overlay[hidden] {
  display: none;
}

.log-panel {
  width: min(980px, 100%);
  height: min(760px, calc(100vh - 56px));
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  color: var(--text);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(179, 2, 22, 0.22);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.log-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(179, 2, 22, 0.12);
}

.log-header h2 {
  margin: 0;
  color: #2f2f2f;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.log-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.log-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(179, 2, 22, 0.2);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.log-close:hover {
  background: var(--brand-dark);
}

.log-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(244, 244, 244, 0.8);
  border-bottom: 1px solid rgba(179, 2, 22, 0.1);
}

.log-action {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(179, 2, 22, 0.18);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.log-action:hover {
  background: var(--brand-dark);
}

.log-action.danger {
  color: #ffffff;
  background: var(--brand);
}

.log-action.danger:hover {
  background: var(--brand-dark);
}

.log-list {
  min-height: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  background: #242424;
  scrollbar-color: rgba(255, 255, 255, 0.35) rgba(255, 255, 255, 0.08);
}

.log-empty {
  margin: auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.log-entry {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.log-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.log-badge {
  min-width: 50px;
  padding: 4px 7px;
  text-align: center;
  color: #ffffff;
  background: var(--brand);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.log-badge.front {
  background: #4f4f4f;
}

.log-event {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.log-time {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.log-details {
  margin: 0;
  padding: 10px;
  overflow-x: auto;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  font-family:
    Consolas,
    Monaco,
    monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: 0;
}

.status-wrap {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status-pill {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 9px 13px;
  text-align: center;
  color: #ffffff;
  background: var(--green);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(179, 2, 22, 0.22);
}

.status-pill.error {
  color: #fff;
  background: var(--danger);
  box-shadow: 0 0 24px rgba(255, 95, 102, 0.18);
}

.status-pill.loading {
  color: #ffffff;
  background: var(--brand-dark);
}

.profile-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px 26px;
  background: rgba(244, 244, 244, 0.78);
  border-bottom: 1px solid rgba(179, 2, 22, 0.09);
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.composer textarea {
  width: 100%;
  color: var(--text);
  background: #ffffff;
  border: 1px solid rgba(66, 66, 66, 0.16);
  border-radius: 16px;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.field input {
  height: 44px;
  padding: 0 14px;
}

.field input:focus,
.composer textarea:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(179, 2, 22, 0.1);
}

.ghost-button,
.composer > button {
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 800;
}

.ghost-button {
  align-self: end;
  min-height: 44px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--brand);
  border: 0;
  box-shadow: 0 12px 30px rgba(179, 2, 22, 0.22);
}

.ghost-button:hover {
  background: var(--brand-dark);
}

.messages {
  overflow-y: auto;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-color: rgba(179, 2, 22, 0.55) rgba(66, 66, 66, 0.08);
}

.message {
  display: grid;
  gap: 7px;
  max-width: 78%;
  animation: message-in 0.22s ease both;
}

.message.assistant.has-table,
.message.assistant:has(.assistant-table) {
  max-width: min(100%, 850px);
  width: 100%;
}

.message.assistant.has-rich-content {
  max-width: min(100%, 820px);
  width: 100%;
}

.message.user {
  align-self: flex-end;
}

.message.assistant {
  align-self: flex-start;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.message.user .message-meta {
  justify-content: flex-end;
}

.message-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 30px;
}

.message-copy {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  cursor: pointer;
  opacity: 1;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.message-copy:hover {
  opacity: 1;
  color: var(--text);
  background: rgba(66, 66, 66, 0.1);
}

.message-copy:focus-visible {
  outline: 3px solid rgba(31, 45, 64, 0.22);
  outline-offset: 2px;
}

.message-copy:disabled {
  cursor: default;
  opacity: 0.38;
  transform: none;
}

.message-copy svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.message-copy.copied {
  background: #2f8f4e;
  box-shadow: 0 8px 18px rgba(47, 143, 78, 0.22);
}

.message-copy.copy-error {
  background: var(--danger);
  box-shadow: 0 8px 18px rgba(179, 2, 22, 0.22);
}

.message-bubble {
  padding: 15px 16px;
  border: 1px solid rgba(66, 66, 66, 0.12);
  border-radius: 18px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message.streaming .message-bubble::after {
  content: "";
  width: 7px;
  height: 1.15em;
  margin-left: 2px;
  display: inline-block;
  vertical-align: -0.2em;
  background: var(--brand);
  border-radius: 999px;
  animation: cursor-blink 0.9s steps(2, start) infinite;
}

.message.assistant .message-bubble {
  background: rgba(244, 244, 244, 0.86);
}

.message.assistant.has-rich-content .message-bubble {
  padding: 18px 20px;
  background: #ffffff;
  border-color: rgba(179, 2, 22, 0.16);
}

.message.assistant.has-table .message-bubble,
.message.assistant:has(.assistant-table) .message-bubble {
  padding: 12px;
  background: #ffffff;
  border-color: rgba(179, 2, 22, 0.16);
}

.assistant-text {
  margin: 0 0 12px;
  white-space: pre-wrap;
}

.assistant-text:last-child {
  margin-bottom: 0;
}

.assistant-markdown {
  display: grid;
  gap: 10px;
  color: var(--text);
  white-space: normal;
}

.assistant-markdown h2,
.assistant-markdown h3,
.assistant-markdown h4 {
  margin: 0;
  color: #2f2f2f;
  line-height: 1.18;
  letter-spacing: 0;
}

.assistant-markdown h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(179, 2, 22, 0.16);
  font-size: 22px;
  font-weight: 900;
}

.assistant-markdown h3 {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 900;
}

.assistant-markdown h4 {
  margin-top: 4px;
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 900;
}

.assistant-markdown p {
  margin: 0;
}

.assistant-markdown ul,
.assistant-markdown ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 7px;
}

.assistant-markdown li {
  padding-left: 2px;
}

.assistant-markdown li::marker {
  color: var(--brand);
  font-weight: 900;
}

.assistant-markdown strong {
  color: #262626;
  font-weight: 900;
}

.assistant-markdown em {
  color: #4f4f4f;
}

.assistant-markdown code {
  padding: 2px 6px;
  color: var(--brand-dark);
  background: rgba(179, 2, 22, 0.08);
  border: 1px solid rgba(179, 2, 22, 0.12);
  border-radius: 6px;
  font-family:
    Consolas,
    Monaco,
    monospace;
  font-size: 0.92em;
}

.assistant-markdown pre {
  max-width: 100%;
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  color: #f5f5f5;
  background: #2f2f2f;
  border-radius: 8px;
  white-space: pre;
}

.assistant-markdown pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
}

.assistant-markdown blockquote {
  margin: 0;
  padding: 10px 12px;
  color: #4b4b4b;
  background: rgba(179, 2, 22, 0.06);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
}

.assistant-markdown hr {
  width: 100%;
  height: 1px;
  margin: 4px 0;
  border: 0;
  background: rgba(179, 2, 22, 0.14);
}

.table-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(179, 2, 22, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff, #fafafa),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  scrollbar-color: rgba(179, 2, 22, 0.5) rgba(66, 66, 66, 0.08);
}

.assistant-table {
  width: 100%;
  min-width: 850px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text);
  font-size: 14px;
  white-space: normal;
}

.assistant-table th,
.assistant-table td {
  min-width: 110px;
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(66, 66, 66, 0.09);
}

.assistant-table th:first-child,
.assistant-table td:first-child {
  min-width: 90px;
}

.assistant-table th:nth-child(2),
.assistant-table td:nth-child(2) {
  min-width: 180px;
}

.assistant-table th:nth-child(5),
.assistant-table td:nth-child(5),
.assistant-table th:nth-child(6),
.assistant-table td:nth-child(6),
.assistant-table th:nth-child(7),
.assistant-table td:nth-child(7) {
  min-width: 160px;
}

.assistant-table th:nth-child(8),
.assistant-table td:nth-child(8),
.assistant-table th:nth-child(9),
.assistant-table td:nth-child(9),
.assistant-table th:nth-child(10),
.assistant-table td:nth-child(10) {
  min-width: 140px;
  white-space: nowrap;
}

.assistant-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.assistant-table td {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
}

.assistant-table tbody tr:nth-child(even) td {
  background: rgba(179, 2, 22, 0.035);
}

.assistant-table tbody tr:hover td {
  background: rgba(179, 2, 22, 0.08);
}

.assistant-table tbody tr:last-child td {
  border-bottom: 0;
}

.assistant-table th:first-child {
  border-top-left-radius: 14px;
}

.assistant-table th:last-child {
  border-top-right-radius: 14px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 999px;
  box-shadow: 0 0 14px currentColor;
}

.status-open {
  color: #b30216;
}

.status-done {
  color: #2f8f4e;
}

.status-muted {
  color: #a8b8ae;
}

.status-neutral {
  color: #73a7ff;
}

.message.user .message-bubble {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: transparent;
}

.message.error .message-bubble {
  color: #fff;
  background: rgba(255, 95, 102, 0.16);
  border-color: rgba(255, 95, 102, 0.38);
}

.composer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px 26px 24px;
  border-top: 1px solid rgba(179, 2, 22, 0.1);
  background: rgba(244, 244, 244, 0.82);
}

.composer textarea {
  min-height: 50px;
  max-height: 170px;
  resize: none;
  padding: 14px 15px;
}

.composer > button {
  align-self: end;
  min-width: 132px;
  min-height: 50px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 12px 30px rgba(179, 2, 22, 0.22);
}

.composer > button:hover {
  background: var(--brand-dark);
}

.composer > button.is-stop {
  background: var(--brand-dark);
}

.composer > button.is-stop:hover {
  background: #65000b;
}

.composer > button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.slash-menu {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: calc(100% - 10px);
  z-index: 25;
  max-height: 314px;
  padding: 8px;
  overflow-y: auto;
  display: grid;
  gap: 4px;
  color: #f7f7f7;
  background:
    linear-gradient(180deg, rgba(48, 48, 48, 0.97), rgba(36, 36, 36, 0.97)),
    #2d2d2d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(36, 36, 36, 0.34);
}

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

.slash-item {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 120px 214px minmax(0, 1fr);
  grid-template-areas:
    "command syntax title"
    "command syntax description";
  gap: 4px 12px;
  align-items: center;
  padding: 10px 12px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.slash-item.is-active,
.slash-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.slash-command {
  grid-area: command;
  color: #ffffff;
  font-weight: 800;
  white-space: nowrap;
}

.slash-title {
  grid-area: title;
  min-width: 0;
  padding-left: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
}

.slash-description {
  grid-area: description;
  min-width: 0;
  padding-left: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.35;
}

.slash-example {
  grid-area: syntax;
  color: rgba(255, 255, 255, 0.46);
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 13px;
  white-space: nowrap;
}

.slash-empty {
  padding: 14px 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

@keyframes green-drift {
  0% {
    opacity: 0.72;
    transform: translate3d(-4%, -2%, 0) scale(1);
  }

  35% {
    opacity: 0.95;
    transform: translate3d(3%, 2%, 0) scale(1.04);
  }

  70% {
    opacity: 0.78;
    transform: translate3d(-1%, 5%, 0) scale(1.08);
  }

  100% {
    opacity: 0.9;
    transform: translate3d(5%, -3%, 0) scale(1.03);
  }
}

@keyframes green-breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .message {
    animation: none;
  }
}

@media (max-width: 700px) {
  .app-shell {
    padding: 0;
  }

  .chat-card {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .chat-layout {
    width: 100%;
  }

  .message.assistant.has-table,
  .message.assistant:has(.assistant-table) {
    max-width: 100%;
  }

  .assistant-table {
    min-width: 850px;
  }

  .chat-header,
  .profile-row,
  .messages,
  .composer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .chat-header {
    align-items: flex-start;
    flex-direction: column;
    grid-template-columns: auto 1fr;
  }

  .header-brand h1 {
    grid-column: 2;
    justify-self: start;
    padding: 0;
    text-align: left;
  }

  .status-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }

  .profile-row,
  .composer {
    grid-template-columns: 1fr;
  }

  .message {
    max-width: 92%;
  }

  .composer > button,
  .ghost-button {
    width: 100%;
  }

  .slash-menu {
    left: 16px;
    right: 16px;
    max-height: 290px;
  }

  .slash-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "command"
      "syntax"
      "title"
      "description";
    gap: 3px;
  }

  .log-overlay {
    padding: 0;
  }

  .log-panel {
    height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .log-header,
  .log-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .log-time {
    width: 100%;
    margin-left: 0;
  }
}
