:root {
  --chat-bg: #050504;
  --chat-panel: #10100f;
  --chat-panel-soft: #171613;
  --chat-border: rgba(245, 230, 196, 0.14);
  --chat-border-strong: rgba(245, 230, 196, 0.28);
  --chat-text: #f7f1e6;
  --chat-muted: #aaa39a;
  --chat-gold: #f1d992;
  --chat-gold-soft: #fff3cf;
  --chat-danger: #f29a9a;
  --chat-success: #a9ddb0;
  --chat-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

body.jago-chat-page,
body.jago-chat-plans-page {
  min-height: 100%;
  background:
    radial-gradient(circle at 76% 8%, rgba(153, 125, 72, 0.16), transparent 32rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--chat-bg);
  background-size: auto, 92px 92px, 92px 92px, auto;
  color: var(--chat-text);
}

body.jago-chat-page {
  overflow: hidden;
}

body.jago-chat-plans-page {
  overflow-x: hidden;
}

.jago-chat-page .site-protected {
  user-select: auto;
}

.chat-app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
}

.chat-sidebar {
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(21, 20, 18, 0.98), rgba(7, 7, 6, 0.98));
  border-right: 1px solid var(--chat-border);
}

.chat-sidebar-head,
.chat-topbar,
.chat-topbar-actions,
.chat-brand,
.sidebar-account-card,
.conversation-item,
.composer-box,
.message-actions,
.plan-mini-grid {
  display: flex;
  align-items: center;
}

.chat-sidebar-head {
  justify-content: space-between;
}

.chat-brand {
  gap: 10px;
  color: var(--chat-text);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.chat-brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.chat-brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.icon-button,
.sidebar-primary,
.sidebar-search input,
.sidebar-nav a,
.account-link,
.chat-composer button,
.prompt-chip-row button,
.attach-button,
.chat-plan-card,
.billing-toggle button {
  border: 1px solid var(--chat-border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--chat-text);
  font: inherit;
}

.icon-button {
  min-width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
}

.sidebar-close {
  display: none;
}

.sidebar-primary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: transparent;
  border: none;
  text-align: left;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}

.sidebar-primary:hover,
.sidebar-primary:focus-visible,
.sidebar-nav a:hover,
.sidebar-nav a:focus-visible,
.prompt-chip-row button:hover,
.prompt-chip-row button:focus-visible,
.account-link:hover,
.account-link:focus-visible {
  border-color: var(--chat-border-strong);
  background: rgba(241, 217, 146, 0.11);
}

.sidebar-search {
  position: relative;
  display: block;
}

.sidebar-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--chat-muted);
}

.sidebar-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--chat-text);
  font-size: 0.95rem;
  outline: none;
}

.sidebar-search input:focus,
.chat-composer textarea:focus {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav {
  display: grid;
  gap: 2px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--chat-text);
  border: none;
}

.sidebar-nav a[aria-current="page"],
.sidebar-primary:hover,
.sidebar-nav a:hover,
.sidebar-search input:hover {
  background: rgba(255, 255, 255, 0.06);
}

.conversation-panel {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.sidebar-kicker {
  color: var(--chat-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.conversation-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 6px;
  padding-right: 2px;
}

.conversation-item {
  width: 100%;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--chat-text);
  text-align: left;
  cursor: pointer;
}

.conversation-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-item small {
  color: var(--chat-muted);
  flex: 0 0 auto;
}

.conversation-item.is-active {
  background: rgba(255, 255, 255, 0.065);
}

.conversation-empty {
  margin: 0;
  padding: 12px;
  color: var(--chat-muted);
}

.sidebar-account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease;
  margin-top: 14px;
}

.sidebar-account-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.account-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(241, 217, 146, 0.1);
  color: var(--chat-gold);
  font-weight: 700;
  font-size: 0.85rem;
}

.sidebar-account-card div:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: grid;
}

.sidebar-account-card strong {
  color: var(--chat-text);
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account-card span {
  color: var(--chat-muted);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-link {
  padding: 9px 11px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
}

.chat-main {
  height: 100vh;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.chat-topbar {
  height: 72px;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 3vw, 38px);
  border-bottom: 1px solid var(--chat-border);
  backdrop-filter: blur(18px);
  background: rgba(5, 5, 4, 0.74);
  position: relative;
  z-index: 10;
}

.sidebar-open {
  display: none;
}

.chat-title-block {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.chat-title-block strong {
  font-size: 1rem;
}

.chat-title-block span {
  color: var(--chat-muted);
  font-size: 0.9rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-topbar-actions {
  gap: 10px;
}

/* Custom Dropdown for Models */
.custom-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 168px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--chat-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--chat-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
  justify-content: space-between;
  outline: none;
}

.dropdown-trigger:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 230, 196, 0.2);
}

.dropdown-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--chat-gold);
  box-shadow: 0 0 0 4px rgba(241, 217, 146, 0.1);
}

.dropdown-trigger[aria-expanded="true"] .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-icon {
  color: var(--chat-muted);
  transition: transform 200ms ease;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  min-width: 200px;
  background: #151412;
  border: 1px solid var(--chat-border-strong);
  border-radius: 14px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.dropdown-trigger[aria-expanded="true"] + .dropdown-menu {
  display: flex;
  animation: dropdownFadeIn 200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--chat-text);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 150ms ease;
}

.dropdown-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
}

.dropdown-item.is-selected {
  background: rgba(241, 217, 146, 0.1);
  color: var(--chat-gold);
}

.dropdown-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dropdown-badge {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(241, 217, 146, 0.15);
  color: var(--chat-gold);
}

.compact-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
}

.chat-workspace {
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.chat-workspace.is-empty {
  justify-content: center;
  align-items: center;
}

.chat-thread {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: clamp(24px, 5vw, 64px) clamp(18px, 8vw, 120px) 190px;
}

.chat-workspace.is-empty .chat-thread {
  flex: none;
  overflow: visible;
  padding: 0;
}

.chat-empty-state {
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.chat-empty-greeting {
  margin: 0;
  font: 800 clamp(1.8rem, 4vw, 2.5rem)/1.2 var(--chat-font);
  color: #ff9f75; /* A bit orange/gold for the Ready to go text */
  letter-spacing: -0.02em;
}

.chat-empty-greeting span {
  color: var(--chat-text);
}

.chat-empty-kicker {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  border: 1px solid rgba(241, 217, 146, 0.28);
  background: rgba(255, 255, 255, 0.055);
  color: var(--chat-gold);
  font-weight: 900;
}

.chat-empty-state h1 {
  max-width: 720px;
  margin: 0;
  font: 900 clamp(2rem, 5vw, 4.2rem)/0.98 var(--font-display, Georgia, serif);
  letter-spacing: 0;
}

.chat-empty-state p {
  max-width: 680px;
  margin: 0;
  color: var(--chat-muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.prompt-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.prompt-chip-row button {
  padding: 11px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--chat-text);
}

.message-group {
  max-width: 920px;
  margin: 0 auto 26px;
  display: grid;
  gap: 10px;
}

.message-row {
  display: grid;
  gap: 8px;
}

.message-row.is-user {
  justify-items: end;
}

.message-row.is-assistant {
  justify-items: start;
}

.message-bubble {
  max-width: min(760px, 88%);
  padding: 16px 18px;
  border: 1px solid var(--chat-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--chat-text);
  line-height: 1.66;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-row.is-user .message-bubble {
  background: linear-gradient(135deg, rgba(241, 217, 146, 0.22), rgba(103, 86, 44, 0.2));
  border-color: rgba(241, 217, 146, 0.38);
}

.message-meta {
  color: var(--chat-muted);
  font-size: 0.78rem;
}

.message-actions {
  gap: 8px;
}

.message-actions button {
  border: 1px solid var(--chat-border);
  background: transparent;
  color: var(--chat-muted);
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
}

.typing {
  min-width: 86px;
}

.typing::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: typingDots 1.1s infinite steps(4, end);
}

@keyframes typingDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

.chat-composer {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: min(760px, calc(100% - 36px));
  transform: translateX(-50%);
  display: grid;
  gap: 10px;
  z-index: 5;
}

.chat-workspace.is-empty .chat-composer {
  position: static;
  transform: none;
  width: min(760px, calc(100vw - 36px));
  margin-top: 32px;
}

.composer-box {
  min-height: 64px;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(40, 40, 40, 0.4);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.attach-button {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--chat-text);
  transition: background 150ms ease;
}

.attach-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.attach-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chat-composer textarea {
  flex: 1;
  min-height: 24px;
  max-height: 180px;
  padding-top: 6px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--chat-text);
  font: inherit;
  line-height: 1.5;
}

.send-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--chat-text);
  color: #050504;
  border: none;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.send-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.15);
  color: var(--chat-text);
}

.chat-composer button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.composer-footnote {
  margin: 0;
  text-align: center;
  color: var(--chat-muted);
  font-size: 0.82rem;
}

.attachment-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--chat-border);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.42);
}

.attachment-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--chat-border);
  border-radius: 999px;
  color: var(--chat-muted);
}

.attachment-chip button {
  border: 0;
  background: transparent;
  color: var(--chat-text);
  cursor: pointer;
}

.plans-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 80px;
}

.plans-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.plans-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: end;
  padding: 56px 0 34px;
}

.plans-hero h1 {
  margin: 0;
  font: 900 clamp(2.8rem, 7vw, 6.8rem)/0.9 var(--font-display, Georgia, serif);
  letter-spacing: 0;
}

.plans-hero p {
  max-width: 760px;
  color: var(--chat-muted);
  font-size: 1.14rem;
}

.billing-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--chat-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.billing-toggle button {
  min-height: 48px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
}

.billing-toggle button.is-active {
  background: var(--chat-gold-soft);
  color: #080807;
}

.chat-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.chat-plan-card {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(20, 20, 18, 0.9), rgba(10, 10, 9, 0.95));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.chat-plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0.5;
  transition: opacity 400ms ease;
}

.chat-plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.chat-plan-card:hover::before {
  opacity: 1;
}

.chat-plan-card.is-recommended {
  border-color: rgba(241, 217, 146, 0.4);
  background: linear-gradient(145deg, rgba(28, 25, 20, 0.95), rgba(15, 14, 12, 0.95));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(241, 217, 146, 0.1);
}

.chat-plan-card.is-recommended::before {
  background: linear-gradient(90deg, transparent, rgba(241, 217, 146, 0.8), transparent);
  opacity: 0.8;
}

.chat-plan-card.is-selected {
  border-color: rgba(255, 243, 207, 0.8);
  box-shadow: 0 0 0 2px rgba(241, 217, 146, 0.2), 0 24px 64px rgba(0, 0, 0, 0.5);
}

.plan-card-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(241, 217, 146, 0.3);
  background: rgba(241, 217, 146, 0.08);
  color: var(--chat-gold);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chat-plan-card h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--chat-muted);
}

.plan-meta {
  color: var(--chat-muted);
  font-size: 1.05rem;
  margin: 0;
}

.plan-benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-benefits li {
  position: relative;
  padding-left: 28px;
  color: #dcd6ce;
  font-size: 1.05rem;
  line-height: 1.5;
}

.plan-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1d992' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.chat-plan-card .primary-button,
.chat-plan-card .text-button {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.subscription-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 20px;
  margin-top: 28px;
}

.subscription-panel,
.subscription-invoice {
  padding: 24px;
  border: 1px solid var(--chat-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.subscription-panel h2,
.subscription-invoice h2 {
  margin: 0 0 14px;
}

.subscription-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.subscription-panel div,
.subscription-invoice dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--chat-border);
}

.subscription-panel dt,
.subscription-invoice dt {
  color: var(--chat-muted);
}

.subscription-panel dd,
.subscription-invoice dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.subscription-invoice {
  display: grid;
  gap: 16px;
}

.subscription-invoice img {
  width: min(280px, 100%);
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--chat-border);
  background: #fff;
}

.subscription-actions {
  display: grid;
  gap: 10px;
}

.subscription-actions .primary-button,
.subscription-actions .text-button {
  justify-content: center;
}

.chat-plan-card.is-selected {
  border-color: rgba(255, 243, 207, 0.72);
}

.tool-field {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.tool-field span {
  color: var(--chat-muted);
  font-weight: 900;
}

.tool-field input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--chat-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.52);
  color: var(--chat-text);
  font: inherit;
  outline: none;
}

.tool-field input:focus {
  border-color: rgba(241, 217, 146, 0.72);
  box-shadow: 0 0 0 4px rgba(241, 217, 146, 0.13);
}

.code-tool-message {
  display: block;
  min-height: 24px;
  color: var(--chat-muted);
}

.code-tool-message.is-error {
  color: var(--chat-danger);
}

.code-tool-message.is-success {
  color: var(--chat-success);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .chat-app-shell {
    grid-template-columns: 1fr;
  }

  .chat-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(340px, calc(100vw - 32px));
    z-index: 20;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .chat-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close,
  .sidebar-open {
    display: inline-grid;
  }

  .chat-thread {
    padding-inline: 18px;
  }

  .plans-hero,
  .subscription-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .chat-topbar {
    height: auto;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .chat-topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dropdown-trigger {
    grid-column: 1 / -1;
    width: 100%;
  }

  .chat-thread {
    padding-bottom: 210px;
  }

  .composer-box {
    align-items: end;
    border-radius: 18px;
  }

  .send-button {
    min-width: 72px;
  }
}
