:root {
  color: #18242b;
  background: #f4f6f5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

[hidden] {
  display: none !important;
}

button,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: 18px;
}

.chat-workspace {
  margin: 0 auto;
  max-width: 1340px;
}

.auth-screen {
  align-items: center;
  display: grid;
  min-height: calc(100vh - 36px);
  padding: 32px 16px;
}

.auth-card {
  background:
    radial-gradient(circle at 100% 0, rgba(200, 55, 55, 0.1), transparent 38%),
    #ffffff;
  border: 1px solid #dce4e0;
  border-radius: 20px;
  box-shadow: 0 22px 70px rgba(33, 48, 44, 0.12);
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  margin: 0 auto;
  max-width: 900px;
  overflow: hidden;
  padding: 48px;
  width: 100%;
}

.auth-brand {
  align-self: center;
}

.auth-brand h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
  margin: 10px 0 20px;
}

.auth-brand > p:last-child {
  color: #5c6a71;
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 34ch;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dce4e0;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 16px 18px;
}

.eyebrow {
  color: #8f4639;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: 1.55rem;
  line-height: 1.15;
  margin-bottom: 0;
}

h2 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.conversation-layout {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: calc(100vh - 112px);
}

.conversation-panel,
.package-panel {
  background: #ffffff;
  border: 1px solid #dce4e0;
  border-radius: 8px;
}

.conversation-panel {
  display: grid;
  grid-template-rows: minmax(430px, 1fr) auto;
  min-height: 640px;
  overflow: hidden;
}

.messages {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 246, 245, 0.94)),
    radial-gradient(circle at top left, rgba(143, 70, 57, 0.08), transparent 34%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
  padding: 24px;
}

.message-row {
  align-items: flex-end;
  display: flex;
  gap: 10px;
  max-width: min(860px, 92%);
}

.message-row-agent {
  align-self: flex-start;
}

.message-row-traveler {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  align-items: center;
  aspect-ratio: 1;
  background: #eadfd8;
  border: 1px solid #d8c7bd;
  border-radius: 50%;
  color: #7b3b32;
  display: grid;
  flex: 0 0 38px;
  font-size: 0.74rem;
  font-weight: 800;
  justify-content: center;
  width: 38px;
}

.message-row-traveler .message-avatar {
  background: #1f6170;
  border-color: #1f6170;
  color: #ffffff;
}

.message-content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.message-row-traveler .message-content {
  justify-items: end;
}

.message-meta {
  color: #627078;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0 4px;
}

.message {
  border-radius: 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 12px 14px;
  white-space: pre-wrap;
}

.message-agent {
  background: #ffffff;
  border: 1px solid #dce4e0;
  border-bottom-left-radius: 3px;
  color: #23323a;
}

.message-traveler {
  background: #1f6170;
  border-bottom-right-radius: 3px;
  color: #ffffff;
}

.preview-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  max-width: 900px;
  width: 100%;
}

.preview-card {
  background: #ffffff;
  border: 1px solid #dce4e0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(26, 48, 43, 0.08);
  display: grid;
  grid-template-rows: 150px minmax(0, 1fr);
  min-height: 330px;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.preview-card:hover {
  border-color: #b8ccc7;
  box-shadow: 0 12px 30px rgba(26, 48, 43, 0.13);
  transform: translateY(-2px);
}

.preview-visual {
  align-items: center;
  background: #d8e4e2;
  color: #204d55;
  display: grid;
  font-weight: 900;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.preview-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.preview-visual-destination {
  background: #e9d6c8;
  color: #834131;
}

.preview-visual-experience {
  background: #d9e5d1;
  color: #3d623d;
}

.preview-visual-flight {
  background: #d7e6ea;
  color: #1f6170;
}

.preview-visual-hotel,
.preview-visual-accommodation {
  background: #eee4cd;
  color: #735629;
}

.preview-visual-status {
  background: #dce7dd;
  color: #27613c;
}

.preview-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 14px 16px 16px;
}

.preview-label {
  color: #7a6460;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-body strong {
  color: #1f2f36;
  font-size: 1.05rem;
  line-height: 1.25;
}

.preview-body p {
  color: #5c6a71;
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.preview-details {
  color: #6f7d79;
}

.preview-link {
  color: #1f6170;
  font-weight: 700;
  margin-top: auto;
  text-decoration: none;
}

.preview-link:hover {
  text-decoration: underline;
}

.composer {
  align-items: end;
  background: #ffffff;
  border-top: 1px solid #dce4e0;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.composer-label {
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

textarea {
  border: 1px solid #b9c6c2;
  border-radius: 8px;
  min-height: 52px;
  padding: 12px 13px;
  resize: vertical;
}

textarea:focus {
  border-color: #1f6170;
  outline: 3px solid rgba(31, 97, 112, 0.16);
}

button {
  background: #1f6170;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  min-height: 46px;
  padding: 10px 16px;
}

button:hover:not(:disabled) {
  background: #174c58;
}

button:disabled {
  background: #a7b3b0;
  cursor: not-allowed;
}

.button-link {
  background: #1f6170;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  min-height: 38px;
  padding: 8px 13px;
  text-decoration: none;
  align-items: center;
}

.button-link:hover {
  background: #174c58;
}

.account-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.account-actions span {
  color: #50615e;
  font-size: 0.9rem;
  width: 100%;
}

.account-actions button,
.trip-card button {
  min-height: 38px;
  padding: 7px 12px;
}

.account-panel,
.trip-library {
  background: #fff;
  border: 1px solid #dbe4e1;
  border-radius: 14px;
  margin: 16px 0;
  padding: 18px;
}

.auth-card .account-panel {
  align-self: center;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.auth-card .account-panel form {
  max-width: none;
}

.auth-card .account-panel h2 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.auth-card .account-panel input {
  background: #fbfcfc;
  min-height: 48px;
}

.text-button {
  background: transparent;
  color: #1f6170;
  min-height: auto;
  padding: 6px;
}

.text-button:hover:not(:disabled) {
  background: transparent;
  color: #153f48;
  text-decoration: underline;
}

.auth-message {
  color: #5c6a71;
  line-height: 1.45;
  min-height: 1.5em;
}

.account-panel form {
  display: grid;
  gap: 12px;
  max-width: 440px;
}

.account-panel label {
  display: grid;
  gap: 5px;
}

.account-panel input {
  border: 1px solid #a7b3b0;
  border-radius: 8px;
  font: inherit;
  padding: 10px;
}

.library-header,
.trip-card {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.trip-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.trip-card {
  border: 1px solid #e0e7e4;
  border-radius: 10px;
  gap: 16px;
  padding: 14px;
}

.trip-card h3,
.trip-card p {
  margin: 0 0 5px;
}

.trip-card small,
.empty-state {
  color: #60706d;
}

.package-panel {
  align-content: start;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.section-header p {
  color: #5c6a71;
  margin-bottom: 0;
}

.api-status,
.result-list {
  margin: 0;
}

.api-status div,
.result-list div {
  display: grid;
  gap: 6px;
  grid-template-columns: 128px minmax(0, 1fr);
  margin-bottom: 10px;
}

dt {
  color: #5c6a71;
  font-weight: 800;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

dd[data-api-status='ok'] {
  color: #176d3b;
}

dd[data-api-status='error'] {
  color: #a83232;
}

.component-list {
  display: grid;
  gap: 10px;
}

.component-item {
  align-items: center;
  border: 1px solid #dce4e0;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  min-height: 48px;
  padding: 10px 12px;
}

.component-item strong {
  text-transform: capitalize;
}

.component-item span,
.component-item em,
.component-item small {
  color: #5c6a71;
  font-style: normal;
  overflow-wrap: anywhere;
}

.component-item em,
.component-item small {
  grid-column: 1 / -1;
}

.empty-state {
  color: #5c6a71;
}

.package-narrative {
  border-left: 3px solid #8f4639;
  color: #34424a;
  margin-bottom: 0;
  padding-left: 12px;
}

.booking-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.booking-panel form,
.booking-terms {
  display: grid;
  gap: 0.75rem;
}

.booking-panel label {
  display: grid;
  gap: 0.25rem;
}

.booking-panel input,
.booking-panel select {
  width: 100%;
  box-sizing: border-box;
}

.booking-acceptance {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.outcome-panel {
  border-bottom: 1px solid #dce4e0;
  border-top: 1px solid #dce4e0;
  padding: 14px 0;
}

.outcome-summary {
  display: grid;
  gap: 10px;
}

.outcome-row,
.outcome-tools {
  background: #f7f9f8;
  border: 1px solid #dce4e0;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.outcome-row strong,
.outcome-tools strong {
  color: #34424a;
  font-size: 0.82rem;
}

.outcome-row span,
.outcome-tools span {
  color: #5c6a71;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .conversation-layout {
    grid-template-columns: 1fr;
  }

  .package-panel {
    order: 2;
  }
}

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

  .topbar {
    align-items: start;
    display: grid;
  }

  .auth-screen {
    min-height: calc(100vh - 20px);
    padding: 8px 0;
  }

  .auth-card {
    gap: 24px;
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .auth-brand h1 {
    font-size: 2.5rem;
  }

  .conversation-panel {
    min-height: 560px;
  }

  .messages {
    padding: 16px 12px;
  }

  .message-row {
    max-width: 100%;
  }

  .message-avatar {
    flex-basis: 34px;
    width: 34px;
  }

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

  .preview-card {
    grid-template-columns: 1fr;
    grid-template-rows: 140px minmax(0, 1fr);
    min-height: 310px;
  }

  .api-status div,
  .result-list div,
  .component-item {
    grid-template-columns: 1fr;
  }
}

/* 2026 cinematic interface */
:root {
  --navy-950: #071a2e;
  --navy-900: #0b2541;
  --navy-800: #123858;
  --aegean: #296b88;
  --gold: #c89a4b;
  --gold-soft: #ead2a6;
  --ivory: #f8f5ee;
  --paper: #fffdf8;
  --ink: #142536;
  --muted: #66747e;
  --line: rgba(17, 47, 70, 0.13);
  color: var(--ink);
  background: var(--ivory);
}

body {
  background: var(--ivory);
}

h1,
h2,
.preview-body strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.app-shell {
  min-height: 100vh;
  padding: 0;
}

.auth-screen {
  background:
    linear-gradient(90deg, rgba(3, 19, 36, .18), rgba(3, 19, 36, .55)),
    url("../assets/suggestions/destination.webp") center / cover no-repeat;
  min-height: 100vh;
  padding: clamp(20px, 4vw, 64px);
}

.auth-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, .75fr);
  max-width: 1440px;
  min-height: min(780px, calc(100vh - 80px));
  padding: 0;
}

.auth-brand {
  align-self: end;
  color: #fff;
  padding: clamp(30px, 6vw, 90px);
  text-shadow: 0 2px 26px rgba(0, 0, 0, .3);
}

.auth-brand .eyebrow {
  color: var(--gold-soft);
  letter-spacing: .22em;
}

.auth-brand h1 {
  font-size: clamp(3.4rem, 6vw, 6.5rem);
  letter-spacing: -.045em;
  line-height: .92;
  max-width: 8ch;
}

.auth-brand > p:last-child {
  color: rgba(255, 255, 255, .86);
  max-width: 38ch;
}

.auth-card .account-panel {
  align-self: center;
  background: linear-gradient(145deg, rgba(10, 38, 65, .93), rgba(5, 24, 44, .96));
  border: 1px solid rgba(235, 210, 163, .42);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(1, 13, 27, .42);
  color: #fff;
  margin: 30px;
  padding: clamp(32px, 4vw, 58px);
  backdrop-filter: blur(18px);
}

.auth-card .account-panel h2 {
  color: #fff;
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1;
  margin-bottom: 12px;
}

.auth-kicker {
  color: var(--gold-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  margin: 0;
  text-transform: uppercase;
}

.form-intro,
.auth-card .account-panel form > p {
  color: rgba(255, 255, 255, .68);
}

.auth-card .account-panel label {
  color: rgba(255, 255, 255, .82);
  font-size: .82rem;
  font-weight: 700;
}

.auth-card .account-panel input {
  background: rgba(2, 18, 34, .42);
  border-color: rgba(255, 255, 255, .24);
  color: #fff;
  min-height: 54px;
}

.auth-card .account-panel input:focus {
  border-color: var(--gold-soft);
  outline: 3px solid rgba(234, 210, 166, .12);
}

.auth-card .account-panel button[type="submit"] {
  background: linear-gradient(100deg, #e4c58b, #f4dfb6);
  color: #142536;
  margin-top: 4px;
}

.auth-card .text-button {
  color: var(--gold-soft);
  font-size: .84rem;
}

.auth-message {
  color: rgba(255, 255, 255, .72);
}

.chat-workspace {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  margin: 0;
  max-width: none;
  min-height: 100vh;
}

.app-sidebar,
.profile-sidebar {
  background:
    radial-gradient(circle at 20% 0, rgba(46, 100, 130, .28), transparent 34%),
    var(--navy-950);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 34px 20px 24px;
}

.brand-mark {
  align-items: center;
  color: var(--gold-soft);
  display: flex;
  min-height: 74px;
  text-decoration: none;
}

.brand-mark img {
  display: block;
  filter: invert(89%) sepia(20%) saturate(541%) hue-rotate(358deg) brightness(104%) contrast(86%);
  height: auto;
  max-width: 168px;
  width: 100%;
}

.app-sidebar nav,
.profile-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 58px;
}

.app-sidebar nav a,
.profile-sidebar nav a,
.sidebar-action {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, .72);
  display: flex;
  font-size: .9rem;
  font-weight: 600;
  gap: 11px;
  min-height: 46px;
  padding: 10px 12px;
  text-align: left;
  text-decoration: none;
}

.app-sidebar nav a:hover,
.profile-sidebar nav a:hover,
.sidebar-action:hover:not(:disabled),
.sidebar-action.is-active,
.profile-sidebar nav a.is-active {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(234, 210, 166, .42);
  color: #fff;
}

.sidebar-account {
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: grid;
  gap: 2px;
  grid-template-columns: 38px 1fr;
  margin-top: auto;
  padding-top: 22px;
}

.account-avatar {
  align-items: center;
  background: var(--gold);
  border-radius: 50%;
  color: var(--navy-950);
  display: flex;
  font-size: .72rem;
  font-weight: 900;
  grid-row: span 2;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.sidebar-account > span[data-profile-name] {
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
}

.sidebar-account a,
.sidebar-signout {
  background: transparent;
  color: rgba(255, 255, 255, .58);
  font-size: .73rem;
  min-height: auto;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.sidebar-signout {
  grid-column: 2;
  margin-top: 10px;
}

.workspace-main {
  min-width: 0;
  padding: 24px clamp(20px, 3vw, 46px) 46px;
}

.topbar {
  background:
    linear-gradient(90deg, rgba(8, 31, 54, .88), rgba(8, 31, 54, .16)),
    url("../assets/suggestions/stay.webp") center 54% / cover no-repeat;
  border: 0;
  border-radius: 20px;
  color: #fff;
  min-height: 190px;
  padding: 36px 42px;
}

.topbar .eyebrow {
  color: var(--gold-soft);
}

.topbar h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  letter-spacing: -.035em;
}

.topbar p {
  color: rgba(255, 255, 255, .78);
  margin: 10px 0 0;
}

.api-status {
  align-self: start;
  background: rgba(5, 25, 44, .62);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 99px;
  padding: 8px 14px;
  backdrop-filter: blur(10px);
}

.api-status div {
  display: flex;
  gap: 8px;
  margin: 0;
}

.api-status dt,
.api-status dd {
  color: rgba(255, 255, 255, .82);
  font-size: .73rem;
}

.api-status dd[data-api-status="ok"] {
  color: #bce8c7;
}

.trip-library {
  background: var(--paper);
  border-color: var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(12, 38, 56, .05);
  margin: 20px 0;
}

.trip-list {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.trip-card {
  background: linear-gradient(145deg, #fff, #f7f2e8);
  border-color: var(--line);
  min-height: 120px;
}

.conversation-layout {
  grid-template-columns: minmax(360px, .72fr) minmax(420px, 1.28fr);
  min-height: calc(100vh - 262px);
}

.conversation-panel,
.package-panel {
  background: var(--paper);
  border-color: var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(12, 38, 56, .06);
}

.conversation-panel {
  grid-template-rows: minmax(440px, 1fr) auto;
}

.messages {
  background:
    radial-gradient(circle at 0 0, rgba(199, 154, 75, .08), transparent 30%),
    var(--paper);
}

.message-agent {
  background: #f5f0e6;
  border-color: rgba(17, 47, 70, .08);
}

.message-traveler {
  background: #dfeaf0;
  color: var(--navy-950);
}

.message-avatar {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--gold-soft);
}

.message-row-traveler .message-avatar {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-950);
}

.composer {
  border-color: var(--line);
  margin: 14px;
  padding: 0;
}

.composer textarea {
  background: #fff;
  border-color: var(--line);
  border-radius: 14px;
  min-height: 58px;
}

.composer button,
.package-panel > button,
.button-link {
  background: var(--navy-900);
}

.package-panel {
  padding: 24px;
}

.package-panel > .section-header h2 {
  font-size: 1.75rem;
}

.result-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-list div {
  background: #f7f3eb;
  border-radius: 10px;
  display: block;
  margin: 0;
  padding: 10px 12px;
}

.result-list dt {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.preview-grid {
  grid-template-columns: repeat(2, minmax(210px, 1fr));
}

.preview-card {
  border-color: var(--line);
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(12, 38, 56, .08);
  grid-template-rows: 145px minmax(0, 1fr);
}

.preview-label {
  color: var(--aegean);
  letter-spacing: .08em;
}

.preview-link {
  color: var(--navy-800);
}

.component-item,
.outcome-row,
.outcome-tools {
  background: #f7f3eb;
  border-color: var(--line);
}

@media (max-width: 1100px) {
  .chat-workspace {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .brand-mark {
    justify-content: center;
    min-height: 48px;
    width: 46px;
  }

  .app-sidebar nav a:not(.is-active),
  .app-sidebar nav a,
  .sidebar-action {
    font-size: 0;
  }

  .app-sidebar nav a span,
  .sidebar-action span {
    font-size: 1.15rem;
  }

  .sidebar-account > :not(.account-avatar) {
    display: none;
  }
}

@media (max-width: 860px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    align-self: start;
    padding: 25px;
  }

  .auth-brand h1 {
    font-size: 3.2rem;
  }

  .auth-card .account-panel {
    margin: 0;
  }

  .chat-workspace {
    display: block;
  }

  .app-sidebar {
    align-items: center;
    flex-direction: row;
    gap: 14px;
    min-height: auto;
    padding: 12px 18px;
  }

  .brand-mark {
    min-height: 48px;
    width: 118px;
  }

  .app-sidebar nav {
    display: flex;
    margin: 0 0 0 auto;
  }

  .sidebar-account {
    border: 0;
    margin: 0;
    padding: 0;
  }

  .workspace-main {
    padding: 14px;
  }

  .conversation-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auth-screen {
    padding: 12px;
  }

  .auth-brand {
    padding: 26px 12px 12px;
  }

  .auth-brand h1 {
    font-size: 2.7rem;
  }

  .auth-card .account-panel {
    border-radius: 20px;
    padding: 26px 20px;
  }

  .app-sidebar nav a {
    display: none;
  }

  .topbar {
    min-height: 170px;
    padding: 26px 24px;
  }

  .topbar h1 {
    font-size: 2.4rem;
  }

  .api-status {
    display: none;
  }

  .preview-grid,
  .result-list {
    grid-template-columns: 1fr;
  }
}
