* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0d1620;
  --secondary-color: #101b28;
  --tertiary-color: #182738;
  --accent-color: #3c7688;
  --accent-strong: #5ea1b5;
  --gold-accent: #b78d36;
  --background: rgba(14, 23, 33, 0.9);
  --chat-bg: rgba(18, 29, 42, 0.92);
  --user-message-bg: linear-gradient(
    140deg,
    rgba(62, 118, 136, 0.92),
    rgba(18, 30, 43, 0.98)
  );
  --bot-message-bg: rgba(12, 20, 30, 0.7);
  --text-primary: #f2f4f5;
  --text-secondary: rgba(242, 244, 245, 0.64);
  --muted: rgba(242, 244, 245, 0.35);
  --border-color: rgba(190, 205, 218, 0.16);
  --shadow: 0 28px 60px rgba(3, 6, 10, 0.6);
  --shadow-soft: 0 12px 32px rgba(3, 6, 10, 0.35);
  --sidebar-width: 30%;
  --sidebar-collapsed-width: 72px;
  --transition-soft: 0.35s ease;
  --radius-large: 32px;
}

body {
  font-family: "Helvetica Neue", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: linear-gradient(150deg, #05080d 0%, #101b28 45%, #1b2939 100%);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body.chat-open {
  overflow: hidden;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-strong);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.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;
}

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

/* Hero Landing */
.hero-screen {
  min-height: 100vh;
  padding: clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  isolation: isolate;
}

.hero-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(64, 105, 124, 0.28), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(40, 58, 76, 0.45), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-progress {
  font-weight: 600;
}

.hero-title {
  color: var(--text-primary);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.24em;
}

body.chat-open .hero-screen {
  filter: blur(6px) saturate(0.85);
  transition: filter 0.3s ease;
  pointer-events: none;
  user-select: none;
}

.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 64px) 0;
}

.hero-image-frame {
  width: min(520px, 76vw);
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(28, 44, 61, 0.9), rgba(10, 17, 25, 0.95));
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(0.82);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-image-frame.has-response img {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.hero-response {
  position: absolute;
  inset: 0;
  padding: clamp(22px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: var(--text-primary);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.8;
  letter-spacing: 0.02em;
  white-space: pre-wrap;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hero-image-frame.has-response .hero-response {
  opacity: 1;
  pointer-events: auto;
}


.hero-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 40px);
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  width: 100%;
  padding-inline: clamp(24px, 5vw, 80px);
  box-sizing: border-box;
}

.hero-bio {
  max-width: 520px;
  line-height: 1.8;
  justify-self: start;
}

.landing-input {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-self: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.landing-input-wrapper {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  background: rgba(9, 15, 21, 0.75);
  border-radius: 999px;
  border: 1px solid rgba(94, 161, 181, 0.3);
  padding: 6px;
  gap: 8px;
  box-shadow: var(--shadow-soft);
}

#landingChatInput {
  background: transparent;
  border: none;
  padding: 14px 20px;
  color: var(--text-primary);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

#landingChatInput::placeholder {
  color: var(--muted);
}

#landingChatInput:focus {
  outline: none;
}

.landing-send-button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(94, 161, 181, 0.5);
  border: 1px solid rgba(94, 161, 181, 0.7);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.landing-send-button:hover {
  transform: translateY(-1px);
  background: rgba(94, 161, 181, 0.65);
  box-shadow: var(--shadow-soft);
}

.landing-send-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


.hero-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-contact--right {
  justify-self: end;
  align-items: flex-end;
  gap: 10px;
}

.hero-contact--right span {
  letter-spacing: 0.14em;
}

/* Chat Overlay */
.chat-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: rgba(4, 8, 12, 0.7);
  backdrop-filter: blur(12px);
  transition: opacity var(--transition-soft);
  z-index: 40;
}

.chat-overlay[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.chat-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.chat-overlay-close {
  position: absolute;
  top: clamp(18px, 4vw, 32px);
  right: clamp(18px, 4vw, 32px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 20, 30, 0.65);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 45;
}

.chat-overlay-close:hover {
  background: rgba(12, 20, 30, 0.85);
  border-color: rgba(255, 255, 255, 0.35);
}

.chat-shell {
  display: flex;
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, rgba(17, 27, 39, 0.92), rgba(10, 17, 25, 0.9));
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  min-width: 280px;
  background: rgba(12, 20, 30, 0.85);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: width var(--transition-soft), min-width var(--transition-soft);
  position: relative;
  backdrop-filter: blur(16px);
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
  min-width: var(--sidebar-collapsed-width);
}

.sidebar-header {
  padding: 32px 28px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(18, 30, 43, 0.9), rgba(12, 20, 30, 0.8));
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(183, 141, 54, 0.5);
  background: rgba(13, 20, 30, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.header-text h1 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-primary);
}

.status {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.1em;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3bb083;
  box-shadow: 0 0 8px rgba(59, 176, 131, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.sidebar-content {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quick-searches {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quick-searches h3 {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.quick-search-btn {
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(94, 161, 181, 0.25);
  background: rgba(25, 40, 55, 0.55);
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.quick-search-btn:hover {
  transform: translateX(6px);
  border-color: rgba(94, 161, 181, 0.5);
  background: rgba(25, 40, 55, 0.85);
}

.sidebar.collapsed .sidebar-header .header-text,
.sidebar.collapsed .sidebar-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sidebar.collapsed .logo {
  margin: 0 auto;
}

.toggle-sidebar {
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  width: 38px;
  height: 80px;
  border-radius: 0 16px 16px 0;
  background: rgba(15, 26, 38, 0.9);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease, right 0.2s ease;
}

.toggle-sidebar:hover {
  background: rgba(24, 38, 52, 0.95);
  right: -18px;
}

.toggle-sidebar svg {
  color: var(--text-primary);
  transition: transform var(--transition-soft);
}

.sidebar.collapsed .toggle-sidebar svg {
  transform: rotate(180deg);
}

/* Main Content */
.main-content {
  flex: 1;
  background: rgba(9, 15, 21, 0.65);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(18px);
}

.chat-header {
  padding: 28px clamp(28px, 4vw, 40px) 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(17, 27, 39, 0.8), rgba(13, 21, 31, 0.65));
}

.header-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(94, 161, 181, 0.4);
  background: rgba(25, 40, 55, 0.65);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover {
  border-color: rgba(94, 161, 181, 0.8);
  background: rgba(25, 40, 55, 0.85);
}

.chat-header h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-button {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(94, 161, 181, 0.15);
  border: 1px solid rgba(94, 161, 181, 0.4);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-button:hover {
  background: rgba(94, 161, 181, 0.25);
  border-color: rgba(94, 161, 181, 0.6);
}

.chat-container {
  flex: 1;
  padding: clamp(24px, 4vw, 44px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: radial-gradient(circle at 10% 0%, rgba(33, 52, 70, 0.28), transparent 60%),
    rgba(9, 15, 21, 0.45);
}

.chat-container::-webkit-scrollbar {
  width: 8px;
}

.chat-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.message {
  display: flex;
  animation: fadeUp 0.35s ease;
}

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

.message-content {
  max-width: min(75%, 560px);
  padding: 18px 22px;
  border-radius: 22px;
  line-height: 1.7;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.bot-message .message-content {
  background: var(--bot-message-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-bottom-left-radius: 6px;
}

.user-message .message-content {
  background: var(--user-message-bg);
  color: #f7f9fa;
  border-bottom-right-radius: 6px;
  border: 1px solid rgba(94, 161, 181, 0.35);
  box-shadow: var(--shadow-soft);
}

.message-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.image-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(94, 161, 181, 0.25);
  background: rgba(16, 25, 35, 0.9);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.image-item:hover {
  transform: translateY(-6px);
  border-color: rgba(94, 161, 181, 0.55);
}

.image-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: saturate(0.85);
}

.image-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 15, 21, 0.9) 85%);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.image-category {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(12, 20, 30, 0.85);
  border: 1px solid rgba(94, 161, 181, 0.4);
}

.image-caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  background: rgba(9, 15, 21, 0.72);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.image-caption-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--muted);
}

.image-base64 {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', Menlo, Courier, monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  word-break: break-word;
  white-space: pre-wrap;
  background: rgba(5, 9, 14, 0.65);
  padding: 10px;
  border-radius: 10px;
  color: var(--text-primary);
  max-height: 160px;
  overflow-y: auto;
}

.loading {
  display: inline-flex;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(12, 20, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.loading-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  animation: bounce 1.6s infinite ease-in-out;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.input-container {
  padding: 28px clamp(28px, 4vw, 44px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 20, 30, 0.65);
  backdrop-filter: blur(14px);
}

.input-wrapper {
  display: flex;
  gap: 14px;
}

#searchInput {
  flex: 1;
  padding: 16px 22px;
  border-radius: 999px;
  background: rgba(8, 14, 20, 0.85);
  border: 1px solid rgba(94, 161, 181, 0.3);
  color: var(--text-primary);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: border-color 0.2s ease, background 0.2s ease;
}

#searchInput::placeholder {
  color: var(--muted);
}

#searchInput:focus {
  outline: none;
  border-color: rgba(94, 161, 181, 0.6);
  background: rgba(8, 14, 20, 0.95);
}

.send-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(94, 161, 181, 0.4);
  border: 1px solid rgba(94, 161, 181, 0.6);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.send-button:hover {
  transform: translateY(-2px);
  background: rgba(94, 161, 181, 0.55);
  box-shadow: var(--shadow-soft);
}

.send-button:active {
  transform: translateY(0);
}

.send-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.error-message {
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(160, 51, 51, 0.18);
  border: 1px solid rgba(229, 80, 80, 0.35);
  color: #f9dcdc;
  font-size: 0.9rem;
}

/* Admin Panel */
.admin-panel {
  margin: 32px clamp(28px, 4vw, 44px) 0;
  padding: 24px 28px;
  border-radius: 24px;
  background: rgba(12, 20, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  color: var(--text-primary);
  display: none;
}

.admin-panel[aria-hidden="false"] {
  display: block;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-panel-header h3 {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--muted);
}

.admin-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text-primary);
  font-size: 1.2rem;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(8, 14, 20, 0.85);
  border: 1px solid rgba(94, 161, 181, 0.25);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.inline-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.admin-preview {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(8, 14, 20, 0.85);
  border: 1px solid rgba(94, 161, 181, 0.25);
  max-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-actions button {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(94, 161, 181, 0.4);
  background: rgba(94, 161, 181, 0.18);
  color: var(--text-primary);
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-actions button:hover:not(:disabled) {
  background: rgba(94, 161, 181, 0.3);
  border-color: rgba(94, 161, 181, 0.65);
}

.admin-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-status {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.admin-status.success {
  color: #6fedc3;
}

.admin-status.error {
  color: #f4a1a1;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-image-frame {
    width: min(480px, 88vw);
  }

  .hero-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 24px;
  }

  .hero-bio {
    max-width: 540px;
  }

  .landing-input {
    max-width: 540px;
  }

  .hero-contact--right {
    justify-self: center;
    align-items: center;
    text-align: center;
  }

  .chat-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .toggle-sidebar {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-screen {
    padding: clamp(20px, 6vw, 36px);
  }

  .chat-shell {
    height: 100%;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 80vw);
    transform: translateX(-100%);
    box-shadow: var(--shadow);
    z-index: 50;
    transition: transform var(--transition-soft);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar.collapsed {
    transform: translateX(-100%);
  }

  .sidebar-content {
    padding-bottom: 80px;
  }

  .main-content {
    width: 100%;
  }
}

@media (max-width: 600px) {
  body {
    line-height: 1.5;
  }

  .hero-image-frame {
    width: min(340px, 92vw);
  }

  .landing-input-wrapper {
    grid-template-columns: 1fr auto;
  }

  .chat-overlay {
    padding: 16px;
  }

  .chat-overlay-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .chat-header {
    padding: 24px 20px 20px;
  }

  .chat-container {
    padding: 20px;
  }

  .input-container {
    padding: 20px;
  }
}
