:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: #0b0b0d;
  --panel-raised: #101013;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f5f5f6;
  --muted: #9a9ea7;
  --dim: #666a73;
  --green: #e8794a;
  --red: #f87171;
  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(255,255,255,.11), transparent 70%),
    var(--bg);
  font: 16px/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button, input, textarea { font: inherit; }

.topbar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 12px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 3, 3, .86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .18em;
}

.brand-suffix {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .1em;
}

.topnav { display: flex; align-items: center; gap: 16px; }
.language-switcher { display: flex; align-items: center; gap: 5px; }
.language-switcher a { color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; }
.language-switcher a:hover { color: var(--text); }
.topnav form { margin: 0; }

.nav-link, .nav-button {
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover, .nav-button:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: #050505;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.account-email {
  max-width: min(36vw, 260px);
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page { width: min(100% - 36px, 880px); margin: 0 auto; }

.chat-shell { padding: clamp(44px, 8vw, 84px) 0 48px; }

.intro { max-width: 680px; margin: 0 auto 30px; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d6d7db;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .13em;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(232, 121, 74, .12);
}

h1 {
  margin: 18px 0 12px;
  font-family: var(--display);
  font-size: clamp(38px, 7vw, 66px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.intro > p, .auth-lede {
  max-width: 590px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 17px);
}

.quota-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.quota-line p { margin: 0; }
.quota-note { color: var(--dim); }

.quota-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid rgba(248, 113, 113, .3);
  border-radius: 12px;
  background: rgba(248, 113, 113, .07);
}

.quota-banner[hidden] { display: none; }
.quota-banner p { margin: 0; }
.quota-banner a, .quota-banner button { flex: 0 0 auto; }

.quota-action {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: #050505;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.quota-action.secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.chat-card, .auth-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.035), transparent 24%), var(--panel);
  box-shadow: 0 28px 100px rgba(0, 0, 0, .52);
}

.conversation-head {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.conversation-mark { width: 34px; height: 34px; }
.conversation-title { margin: 0; font-size: 14px; font-weight: 650; }
.conversation-subtitle { margin: 1px 0 0; color: var(--muted); font-size: 12px; }

.connection-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  max-height: min(54vh, 560px);
  overflow-y: auto;
  padding: 22px clamp(16px, 4vw, 28px);
  scrollbar-color: #38383c transparent;
}

.empty-state {
  align-self: center;
  margin: auto 0;
  color: var(--dim);
  text-align: center;
}

.message { max-width: min(90%, 680px); }
.message-user { align-self: flex-end; }
.message-assistant { align-self: flex-start; }

.message-label {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.message-content {
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 5px 14px 14px;
  background: var(--panel-raised);
  color: #e7e7e9;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message-user .message-content {
  border-color: rgba(255,255,255,.18);
  border-radius: 14px 5px 14px 14px;
  background: rgba(255,255,255,.09);
  color: #fff;
}

.composer {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
}

.composer textarea, .auth-form input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  background: #080809;
  color: var(--text);
}

.composer textarea {
  min-height: 64px;
  max-height: 180px;
  padding: 12px 13px;
  resize: vertical;
}

.composer textarea:focus, .auth-form input:focus {
  border-color: rgba(255,255,255,.42);
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}

.composer textarea::placeholder { color: #666970; }

.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.composer-hint, .privacy-note { color: var(--dim); font-size: 12px; }

.send-button, .primary-button, .primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #050505;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, opacity .15s;
}

.send-button:hover, .primary-button:hover, .primary-link:hover { transform: translateY(-1px); }
.send-button:disabled { opacity: .5; cursor: wait; transform: none; }

.feedback { min-height: 24px; margin: 8px 2px 0; color: var(--muted); font-size: 13px; }
.privacy-note { margin: 8px 2px 0; }

.footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 24px 18px 32px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 11px;
  text-align: center;
}

.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

.auth-shell { width: min(100%, 480px); margin: 0 auto; padding: 42px 0 70px; }
.back-link { color: var(--muted); text-decoration: none; font-size: 13px; }
.auth-card { margin-top: 18px; padding: clamp(22px, 6vw, 38px); }
.auth-card h1 { margin: 14px 0 10px; font-size: clamp(34px, 6vw, 48px); }
.auth-lede { margin: 0 0 24px; font-size: 14px; }
.auth-form { display: grid; gap: 10px; }
.auth-form label { margin-top: 7px; color: #d4d5d8; font-size: 13px; }
.auth-form input { min-height: 44px; padding: 0 12px; }
.primary-button { width: 100%; margin-top: 14px; }
.form-error { margin: 0 0 4px; color: var(--red); font-size: 13px; }
.auth-switch { margin: 20px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.auth-switch a { color: var(--text); }

.error-shell { max-width: 680px; margin: 0 auto; padding: 90px 0; text-align: center; }
.error-shell h1 { font-size: clamp(32px, 6vw, 54px); }
.primary-link { margin-top: 16px; }

.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: 640px) {
  .topbar { min-height: 60px; padding: 10px 16px; }
  .brand { gap: 7px; font-size: 11px; letter-spacing: .12em; }
  .brand-suffix { font-size: 9px; }
  .topnav { gap: 10px; }
  .account-email { display: none; }
  .nav-cta { min-height: 33px; padding: 0 12px; font-size: 12px; }
  .page { width: min(100% - 24px, 880px); }
  .chat-shell { padding-top: 42px; }
  .intro { margin-bottom: 24px; }
  .quota-line { font-size: 12px; }
  .quota-banner { align-items: flex-start; flex-direction: column; }
  .conversation-head { padding: 12px 14px; }
  .messages { min-height: 240px; padding: 18px 13px; }
  .message { max-width: 96%; }
  .composer { padding: 12px; }
  .footer { gap: 7px 12px; }
}

:root {
  --bg: #0c0d0f;
  --panel: #101113;
  --panel-raised: #17181b;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .12);
  --text: #f2f3f5;
  --muted: #8e939b;
  --dim: #5d626a;
  --green: #e8794a;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

body.chat-page { overflow: hidden; background: var(--bg); }
.topbar { min-height: 64px; padding: 8px 20px; gap: 12px; }
.brand { gap: 10px; min-width: 0; white-space: nowrap; letter-spacing: .02em; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; }
.brand-name { font-size: 15px; letter-spacing: -.02em; }
.brand-suffix { padding-left: 9px; border-left: 1px solid var(--line-strong); font-size: 10px; }
.topnav { gap: 12px; flex: 0 0 auto; white-space: nowrap; }
.nav-link, .nav-button { font-size: 13px; white-space: nowrap; }
.nav-cta { min-height: 34px; padding: 0 13px; white-space: nowrap; }
.sidebar-toggle { display: none; }
.page-chat { width: 100%; max-width: none; margin: 0; }
.chat-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); height: calc(100dvh - 64px); }
.conversation-sidebar { display: flex; min-height: 0; flex-direction: column; padding: 17px 12px 12px; border-right: 1px solid var(--line); background: #0e0f11; }
.new-conversation { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: #17181a; color: var(--text); text-align: left; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s,border-color .15s; }
.new-conversation:hover { background: #202124; border-color: rgba(255,255,255,.2); }
.new-conversation span { font-size: 18px; font-weight: 400; }
.sidebar-label { margin: 24px 8px 9px; color: var(--dim); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.conversation-list { display: flex; min-height: 0; flex-direction: column; gap: 3px; overflow-y: auto; }
.conversation-item { overflow: hidden; width: 100%; padding: 10px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); text-align: left; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; cursor: pointer; }
.conversation-item:hover { background: rgba(255,255,255,.045); color: var(--text); }
.conversation-item.active { background: #1c1d20; color: var(--text); }
.sidebar-note { margin-top: auto; padding: 13px 8px 4px; color: var(--dim); font-size: 11px; }
.chat-main { position: relative; display: flex; min-width: 0; min-height: 0; flex-direction: column; background: radial-gradient(ellipse 70% 40% at 50% 0,rgba(255,255,255,.035),transparent 75%),var(--bg); }
.chat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 10px 26px; border-bottom: 1px solid var(--line); }
.assistant-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.assistant-avatar { width: 34px; height: 34px; object-fit: contain; }
.assistant-identity h1 { margin: 0; font-family: var(--display); font-size: 14px; font-weight: 650; letter-spacing: 0; line-height: 1.2; }
.assistant-identity p { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.assistant-identity .status-dot { width: 6px; height: 6px; box-shadow: none; }
.quota-area { flex: 0 0 auto; color: var(--muted); text-align: right; font-size: 12px; }
.quota-area p { margin: 0; }
.quota-note { display: block; margin-top: 3px; color: var(--dim); font-size: 10px; }
.chat-main .quota-banner { z-index: 1; margin: 12px 22px 0; padding: 11px 14px; border-radius: 10px; font-size: 12px; }
.chat-scroll { position: relative; display: flex; flex: 1; min-height: 0; flex-direction: column; overflow-y: auto; }
.welcome { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 28px 22px 12px; text-align: center; }
.welcome[hidden] { display: none; }
.welcome-logo { width: 66px; height: 66px; margin-bottom: 18px; object-fit: contain; opacity: .95; }
.welcome .eyebrow { margin: 0 0 7px; color: var(--muted); font-size: 10px; letter-spacing: .15em; }
.welcome h2 { margin: 4px 0 8px; font-family: var(--display); font-size: clamp(24px, 3vw, 34px); font-weight: 550; letter-spacing: -.04em; }
.welcome > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.messages { display: flex; width: 100%; max-width: 810px; min-height: 0; flex-direction: column; gap: 22px; margin: 0 auto; padding: 24px 25px 30px; overflow: visible; }
.message { display: flex; align-items: flex-start; gap: 11px; max-width: 100%; animation: rise .22s ease-out; }
.message-user { justify-content: flex-end; }
.message-content { max-width: min(88%, 700px); margin: 0; padding: 11px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-raised); color: var(--text); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.message-user .message-content { border-color: rgba(255,255,255,.08); border-radius: 14px 5px 14px 14px; background: #1b1c1f; }
.message-avatar { width: 27px; height: 27px; flex: 0 0 auto; margin-top: 2px; object-fit: contain; }
.thinking[hidden] { display: none; }
.thinking { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 760px; padding: 4px 0; color: var(--muted); font-size: 13px; }
.thinking .mark { position: relative; display: flex; width: 30px; height: 30px; flex: none; align-items: center; justify-content: center; border-radius: 9px; background: #000; color: #fff; animation: tileglow 3.2s ease-in-out infinite; }
.thinking .mark svg { width: 15px; height: 15px; }
@property --ring { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.thinking .mark::before { position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: conic-gradient(from var(--ring),rgba(255,255,255,.08) 0 62%,rgba(255,255,255,.95) 82%,rgba(255,255,255,.08) 100%); content: ""; animation: ring 1.6s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0); }
.thinking-symbol { overflow: visible; }
.think { opacity: 0; }
.anim-mark .think { opacity: 1; }
.anim-mark .pillar,.anim-mark .key,.anim-mark .dot,.anim-mark .ripple { transform-box: fill-box; transform-origin: center; }
.anim-mark .pillar { animation: pillar 3.2s cubic-bezier(.65,0,.35,1) infinite; }
.anim-mark .pillar.left { animation-delay: .2s; }
.anim-mark .key { animation: keymelt 3.2s cubic-bezier(.65,0,.35,1) infinite; }
.anim-mark .dot { opacity: 0; animation: 3.2s cubic-bezier(.45,0,.3,1) infinite; }
.anim-mark .d1 { animation-name: dot1; }
.anim-mark .d2 { animation-name: dot2; }
.anim-mark .d3 { animation-name: dot3; }
.anim-mark .ripple { opacity: 0; animation: ripple 3.2s ease-out infinite; }
.thinking .phase { white-space: nowrap; font-weight: 500; background: linear-gradient(90deg,#8e939b 0%,#fff 40%,#8e939b 80%) 0 0/200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.8s linear infinite; }
.thinking .detail { overflow: hidden; color: var(--dim); text-overflow: ellipsis; white-space: nowrap; }
.thinking .detail:empty { display: none; }
@keyframes ring { to { --ring: 360deg; } }
@keyframes tileglow { 0%,24%,78%,100% { box-shadow: 0 0 0 rgba(255,255,255,0); } 40%,62% { box-shadow: 0 0 18px rgba(255,255,255,.2); } 88% { box-shadow: 0 0 24px rgba(255,255,255,.34); } }
@keyframes pillar { 0% { transform: none; opacity: 1; filter: blur(0); } 12%,80% { transform: translateY(-58px) scaleY(.5); opacity: 0; filter: blur(4px); } 91% { transform: translateY(7px) scaleY(1.08); opacity: 1; filter: blur(0); } 96%,100% { transform: none; opacity: 1; } }
@keyframes keymelt { 0%,10% { transform: none; opacity: 1; filter: none; } 22%,78% { transform: scale(.12); opacity: 0; filter: none; } 88% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 7px rgba(255,255,255,.95)); } 95%,100% { transform: none; opacity: 1; filter: none; } }
@keyframes dot1 { 0%,18% { transform: translate(0,0) scale(0); opacity: 0; } 27% { transform: translate(-32px,0) scale(1); opacity: 1; } 35% { transform: translate(-32px,-18px) scale(1.05); } 43%,51% { transform: translate(-32px,0) scale(.9); } 59% { transform: translate(-32px,-18px) scale(1.05); } 67%,72% { transform: translate(-32px,0) scale(1); opacity: 1; } 80%,100% { transform: translate(0,0) scale(0); opacity: 0; } }
@keyframes dot2 { 0%,20% { transform: translate(0,0) scale(0); opacity: 0; } 28%,34% { transform: translate(0,0) scale(1); opacity: 1; } 42% { transform: translate(0,-18px) scale(1.05); } 50%,58% { transform: translate(0,0) scale(.9); } 66% { transform: translate(0,-18px) scale(1.05); } 73% { transform: translate(0,0) scale(1); opacity: 1; } 80%,100% { transform: translate(0,0) scale(0); opacity: 0; } }
@keyframes dot3 { 0%,18% { transform: translate(0,0) scale(0); opacity: 0; } 27%,41% { transform: translate(32px,0) scale(1); opacity: 1; } 49% { transform: translate(32px,-18px) scale(1.05); } 57%,65% { transform: translate(32px,0) scale(.9); } 73% { transform: translate(32px,-18px) scale(1.05); opacity: 1; } 80%,100% { transform: translate(0,0) scale(0); opacity: 0; } }
@keyframes ripple { 0%,24% { transform: scale(.3); opacity: 0; } 27% { transform: scale(.6); opacity: .7; } 44% { transform: scale(3.4); opacity: 0; } 48% { transform: scale(.6); opacity: 0; } 51% { transform: scale(.6); opacity: .55; } 68%,100% { transform: scale(3.4); opacity: 0; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.composer-dock { width: 100%; padding: 8px 22px 15px; background: linear-gradient(180deg,transparent,var(--bg) 15%); }
.feedback { width: min(100%, 760px); min-height: 21px; margin: 0 auto 5px; color: var(--muted); font-size: 12px; }
.composer { position: relative; display: flex; width: min(100%, 760px); min-height: 62px; align-items: flex-end; gap: 10px; margin: 0 auto; padding: 10px 56px 10px 16px; border: 1px solid var(--line-strong); border-radius: 17px; background: var(--panel-raised); box-shadow: 0 10px 40px rgba(0,0,0,.32),0 1px 0 rgba(255,255,255,.035) inset; }
.composer:focus-within { border-color: rgba(255,255,255,.22); box-shadow: 0 0 0 3px rgba(255,255,255,.025),0 10px 40px rgba(0,0,0,.32); }
.composer textarea { width: 100%; min-height: 38px; max-height: 180px; padding: 8px 0; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; line-height: 1.55; }
.composer textarea:focus { border: 0; box-shadow: none; }
.composer textarea::placeholder { color: var(--dim); }
.send-button { position: absolute; right: 10px; bottom: 10px; display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #f2f3f5; color: #0b0c0e; font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; }
.send-button:disabled { opacity: .45; cursor: wait; }
.composer-hint,.privacy-note { width: min(100%,760px); margin: 7px auto 0; color: var(--dim); text-align: center; font-size: 10px; }
.privacy-note { margin-top: 4px; }
.footer { display: none; }

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

@media (max-width: 640px) {
  body.chat-page { overflow: hidden; }
  .topbar { min-height: 112px; padding: 8px 12px; gap: 4px; flex-wrap: wrap; }
  .brand { gap: 7px; }
  .brand-logo { width: 30px; height: 30px; }
  .brand-name { font-size: 13px; }
  .brand-suffix { display: none; }
  .chat-page .sidebar-toggle { display: inline-grid; order: 2; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--text); font-size: 15px; }
  .topnav { order: 3; flex: 1 1 100%; width: 100%; justify-content: center; flex-wrap: wrap; gap: 6px; margin-left: 0; }
  .language-switcher { gap: 3px; }
  .language-switcher a { font-size: 9px; }
  .nav-link,.nav-button { font-size: 11px; }
  .nav-cta { min-height: 31px; padding: 0 9px; font-size: 10px; }
  .account-email { display: none; }
  .chat-layout { position: relative; grid-template-columns: minmax(0,1fr); height: calc(100dvh - 112px); }
  .conversation-sidebar { position: fixed; z-index: 10; top: 112px; bottom: 0; left: 0; width: min(82vw,300px); border-right: 1px solid var(--line-strong); box-shadow: 22px 0 60px rgba(0,0,0,.45); transform: translateX(-110%); transition: transform .2s ease; }
  .conversation-sidebar.open { transform: translateX(0); }
  .chat-toolbar { min-height: 58px; padding: 8px 13px; }
  .quota-area { font-size: 10px; }
  .quota-note { font-size: 9px; }
  .chat-main .quota-banner { flex-direction: column; align-items: flex-start; margin: 9px 10px 0; padding: 10px; }
  .welcome { padding: 20px 18px 12px; }
  .welcome-logo { width: 54px; height: 54px; margin-bottom: 13px; }
  .welcome h2 { font-size: 25px; }
  .welcome > p:last-child { font-size: 12px; }
  .messages { gap: 16px; padding: 18px 13px 22px; }
  .message-content { max-width: 90%; padding: 10px 12px; font-size: 13px; }
  .composer-dock { padding: 5px 10px 9px; }
  .composer { min-height: 56px; padding: 8px 51px 8px 13px; border-radius: 15px; }
  .composer textarea { min-height: 36px; font-size: 13px; }
  .send-button { right: 8px; bottom: 8px; width: 34px; height: 34px; }
  .composer-hint { font-size: 9px; }
  .privacy-note { display: none; }
  .auth-shell { padding-top: 25px; }
  .topbar .brand-suffix { display: none; }
  .topbar .nav-cta { font-size: 10px; }
}


@media (prefers-reduced-motion: reduce) {
  .thinking .mark,.thinking .mark::before,.anim-mark .pillar,.anim-mark .key,.anim-mark .dot,.anim-mark .ripple,.thinking .phase { animation: none !important; }
  .thinking .phase { background: none; color: var(--muted); -webkit-text-fill-color: currentColor; }
}
/* ===== GUI v2 — ortak tasarım dili (2026-10-28, COO) ===== */

/* — Mesaj balonları: kesik kesik metin yok, düzgün akış — */
.message-content {
  padding: 12px 16px;
  border-radius: 6px 16px 16px 16px;
  line-height: 1.65;
  font-size: 14.5px;
  letter-spacing: .01em;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.message-user .message-content { border-radius: 16px 6px 16px 16px; }

/* — Mesaj satırı: avatar + balon hizası — */
.message { display: flex; align-items: flex-start; gap: 10px; }
.message-user { flex-direction: row-reverse; }
.message-avatar {
  width: 28px; height: 28px; flex: none; margin-top: 3px;
  padding: 5px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--panel-raised);
}

/* — Gönder butonu: hover'da şekil değiştirir (daire → yuvarlak kare, yeşil vurgu) — */
.send-button {
  position: absolute; right: 10px; bottom: 10px;
  width: 36px; height: 36px; min-height: 0; padding: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #f2f3f5; color: #0b0c0e; font-size: 20px;
  transition: border-radius .25s cubic-bezier(.2,.7,.2,1), background .2s, color .2s, transform .2s, box-shadow .25s;
}
.send-button span { display: block; transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.send-button:hover:not(:disabled) {
  border-radius: 12px;
  background: var(--accent-v4); color: #05230f;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 22px rgba(232, 121, 74, .35);
}
.send-button:hover:not(:disabled) span { transform: translateY(-2px); }
.send-button:active:not(:disabled) { transform: scale(.92); }
.send-button:focus-visible { outline: 2px solid var(--accent-v4); outline-offset: 3px; }

/* — Composer odak vurgusu — */
.composer:focus-within { border-color: rgba(232, 121, 74, .38); }

/* — Mobil ince ayar — */
@media (max-width: 640px) {
  .message-content { padding: 11px 13px; font-size: 13.5px; line-height: 1.6; }
  .send-button { right: 8px; bottom: 8px; width: 34px; height: 34px; font-size: 18px; }
}
/* === GUI v3 — Devin/Manus sinifi premium yenileme (2026-10-28, COO) === */
body{background:
  radial-gradient(ellipse 62% 36% at 50% -8%, rgba(232,121,78,.06), transparent 70%),
  radial-gradient(ellipse 90% 44% at 50% -12%, rgba(255,255,255,.06), transparent 72%),
  #08090b;}
::selection{background:rgba(232,121,78,.30);color:#1c0f08}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:#22252b;border-radius:10px;border:3px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background:#32363e;background-clip:padding-box}
::-webkit-scrollbar-track{background:transparent}

/* ust bar */
.topbar{background:rgba(8,9,11,.80);backdrop-filter:blur(18px) saturate(1.25);border-bottom:1px solid rgba(255,255,255,.06)}
.brand{letter-spacing:.10em;font-size:12.5px;gap:9px}
.brand-logo{filter:drop-shadow(0 0 12px rgba(232,121,78,.35))}
.brand-suffix{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;
  border:1px solid rgba(232,121,78,.35);background:rgba(232,121,78,.10);
  color:var(--accent-v4);font-size:9.5px;letter-spacing:.16em;font-weight:600}
.topnav .nav-link{color:var(--muted);padding:7px 12px;border-radius:9px;transition:color .2s,background .2s}
.topnav .nav-link:hover{color:var(--text);background:rgba(255,255,255,.05)}
.account-email{color:var(--muted);font-size:13px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-button{background:transparent;border:1px solid var(--line-strong);border-radius:10px;padding:7px 14px;cursor:pointer;transition:background .2s,border-color .2s}
.nav-button:hover{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.26)}
.nav-cta{display:inline-flex;align-items:center;border-radius:10px;padding:8px 16px;font-weight:600;
  background:linear-gradient(135deg,#f0a35e,#e8763f);color:#1c0f08;
  box-shadow:0 4px 18px rgba(232,121,78,.22);transition:transform .2s,box-shadow .25s,filter .2s}
.nav-cta:hover{transform:translateY(-1px);box-shadow:0 8px 26px rgba(232,121,78,.32);filter:brightness(1.05)}

/* yan menu */
.conversation-sidebar{background:transparent;border-right:1px solid rgba(255,255,255,.05)}
.new-conversation{width:100%;border-radius:12px;border:1px solid var(--line-strong);
  background:var(--panel-raised);color:var(--text);font-weight:550;cursor:pointer;
  transition:border-color .2s,background .2s,transform .2s}
.new-conversation:hover{border-color:rgba(232,121,78,.42);background:rgba(232,121,78,.08);transform:translateY(-1px)}
.sidebar-label{font-size:10px;letter-spacing:.18em;color:var(--dim);font-weight:600}
.conversation-item{border-radius:11px;padding:9px 12px;border:1px solid transparent;color:var(--muted);cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.conversation-item:hover{background:var(--panel-raised);color:var(--text)}
.conversation-item.active{background:var(--panel-raised);border-color:rgba(255,255,255,.08);color:var(--text);box-shadow:inset 2px 0 0 var(--accent-v4)}
.sidebar-note{color:var(--dim);font-size:12px}

/* kimlik + karsilama */
.assistant-avatar{border-radius:11px;border:1px solid rgba(255,255,255,.09);box-shadow:0 4px 14px rgba(0,0,0,.4)}
.assistant-identity h1{font-family:var(--display);letter-spacing:-.01em}
.welcome .eyebrow{color:var(--accent-v4);font-size:10.5px;letter-spacing:.20em;font-weight:600}
.welcome h2{font-family:var(--display);letter-spacing:-.02em;
  background:linear-gradient(180deg,#ffffff,#b9c2cf);-webkit-background-clip:text;background-clip:text;color:transparent}

/* mesajlar */
.message{gap:13px;animation:msgIn .28s cubic-bezier(.2,.7,.2,1)}
@keyframes msgIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
.message-avatar{width:32px;height:32px;border-radius:10px;border:1px solid rgba(255,255,255,.09);background:var(--panel-raised);flex:none}
.message-user .message-avatar{border-color:rgba(232,121,78,.32);background:rgba(232,121,78,.14)}
.message-content{font-size:15px;line-height:1.72;border-radius:16px;padding:13px 17px;max-width:min(72ch,100%)}
.message-user .message-content{background:linear-gradient(180deg,rgba(232,121,78,.15),rgba(232,121,78,.09));
  border:1px solid rgba(232,121,78,.28);border-bottom-right-radius:6px}
.message-assistant .message-content{background:var(--panel-raised);border:1px solid rgba(255,255,255,.07);border-bottom-left-radius:6px}
@media (prefers-reduced-motion:reduce){.message{animation:none}}

/* composer */
.composer-dock{max-width:840px;margin-left:auto;margin-right:auto;width:100%}
.composer{border-radius:20px;background:#12151a;border:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 36px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.03);
  transition:border-color .25s,box-shadow .25s}
.composer:focus-within{border-color:rgba(232,121,78,.52);
  box-shadow:0 12px 42px rgba(0,0,0,.42),0 0 0 4px rgba(232,121,78,.10)}
.composer textarea{background:transparent;border:0;color:var(--text);font-size:15px;line-height:1.62;max-height:220px}
.composer textarea::placeholder{color:#5d6673}
.send-button{width:38px;height:38px;border-radius:50%;border:0;cursor:pointer;display:grid;place-items:center;
  background:linear-gradient(135deg,#f0a35e,#e8763f);color:#1c0f08;
  box-shadow:0 4px 16px rgba(232,121,78,.30);
  transition:border-radius .25s cubic-bezier(.2,.7,.2,1),transform .2s,box-shadow .25s,filter .2s}
.send-button:hover:not(:disabled){border-radius:12px;transform:translateY(-2px) scale(1.07);
  box-shadow:0 8px 26px rgba(232,121,78,.42);filter:brightness(1.06)}
.send-button:active:not(:disabled){transform:scale(.92)}
.send-button:disabled{background:#23262c;color:#5d6673;box-shadow:none;border-radius:50%;cursor:default}
.composer-hint,.privacy-note{font-size:12px;color:var(--dim)}
.feedback{font-size:13px}

/* alt bar */
.footer{background:rgba(8,9,11,.85);border-top:1px solid rgba(255,255,255,.05);color:var(--dim);font-size:12px}

/* === GUI v4 — Manus/Devin sicak konsept + kullanci kenar cubugu (2026-10-28, COO) === */
:root{--accent-v4:#e8794a;--accent-v4-soft:rgba(232,121,78,.14)}
.conversation-sidebar{display:flex;flex-direction:column;min-height:0}
.conversation-list{flex:1 1 auto;min-height:0;overflow-y:auto}
.side-nav{display:flex;flex-direction:column;gap:4px;margin:14px 0 4px}
.side-item{display:flex;align-items:center;gap:9px;padding:8px 12px;border-radius:10px;color:var(--muted);text-decoration:none;font-size:13.5px;border:1px solid transparent;transition:background .2s,color .2s,border-color .2s}
.side-item:hover{background:var(--panel-raised);color:var(--text)}
.side-item.active{background:var(--accent-v4-soft);color:#f5d0b8;border-color:rgba(232,121,78,.22)}
.side-profile{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:var(--panel-raised);margin-top:10px}
.side-ava{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:13px;color:#1c0f08;background:linear-gradient(135deg,#f0a35e,#e8763f);flex:none}
.side-pinfo{display:flex;flex-direction:column;min-width:0;line-height:1.25;flex:1}
.side-pinfo strong{font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side-pinfo em{font-style:normal;font-size:10.5px;color:var(--dim)}
.side-profile form{margin:0}
.side-out{background:transparent;border:0;color:var(--dim);cursor:pointer;font-size:14px;padding:4px;transition:color .2s}
.side-out:hover{color:#f0a35e}

/* ===== GUI v4 - about page ===== */
.about-shell{max-width:680px;text-align:left;display:block}
.about-shell h1{font-size:40px;line-height:1.15;margin:14px 0 10px}
.about-lead{color:#a8a29e;font-size:17px;line-height:1.7;margin:0 0 22px}
.about-list{list-style:none;margin:0 0 26px;padding:0;display:grid;gap:10px}
.about-list li{background:rgba(255,255,255,.03);border:1px solid rgba(232,121,74,.14);border-radius:12px;padding:12px 16px;color:#d6d3d1;font-size:14.5px;line-height:1.6}
.about-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap}

/* --- Google button, divider, email verification --- */
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-raised);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s;
}
.google-button:hover { border-color: rgba(255,255,255,.3); background: #15151a; transform: translateY(-1px); }
.google-mark { width: 18px; height: 18px; flex: 0 0 18px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 4px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.verify-card { max-width: 440px; }
.verify-card .auth-lede strong { color: var(--text); }

.code-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 4px 0 2px;
}
.code-box {
  width: 100%;
  height: 58px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel-raised);
  color: var(--text);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  transition: border-color .15s, box-shadow .15s;
}
.code-box:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(232, 121, 74, .18);
}
.code-box:disabled { opacity: .45; }

.verify-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 4px;
  color: var(--muted);
  font-size: 13px;
}
.verify-timer .timer-value {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.verify-timer.is-low .timer-value { color: var(--green); }
.verify-timer.is-expired { color: var(--red); }

.resend-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.ghost-button {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ghost-button:hover:enabled { border-color: rgba(255,255,255,.3); background: var(--panel-raised); }
.ghost-button:disabled { opacity: .45; cursor: not-allowed; }
.resend-hint { color: var(--dim); font-size: 12px; }

.form-notice {
  margin: 0 0 4px;
  padding: 10px 14px;
  border: 1px solid rgba(232, 121, 74, .35);
  border-radius: 12px;
  background: rgba(232, 121, 74, .1);
  color: var(--text);
  font-size: 13px;
}

@media (max-width: 420px) {
  .code-inputs { gap: 7px; }
  .code-box { height: 50px; font-size: 20px; border-radius: 11px; }
}

/* === GUI v5 — mobil + masaüstü ilk izlenim, dil menüsü, mesaj akışı (2026-11-05) === */
.topbar { min-height: 64px; padding: 8px clamp(14px, 3vw, 24px); gap: 12px; flex-wrap: nowrap; }
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topnav { gap: 6px; }
.topnav .nav-link { padding: 7px 10px; font-size: 13px; }
.language-switcher { display: none; }

.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 9px 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: var(--text); font-size: 12.5px; font-weight: 600; letter-spacing: .05em; cursor: pointer; user-select: none; transition: border-color .2s, background .2s; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.22); }
.lang-menu summary svg { width: 12px; height: 12px; color: var(--muted); transition: transform .2s; }
.lang-menu[open] summary svg { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 176px; margin: 0; padding: 6px; list-style: none; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #141619; box-shadow: 0 18px 50px rgba(0,0,0,.55); animation: menuIn .16s ease-out; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 11px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 13.5px; }
.lang-list a small { font-size: 10.5px; letter-spacing: .1em; color: var(--dim); }
.lang-list a:hover { background: rgba(255,255,255,.06); color: var(--text); }
.lang-list a.is-active { color: var(--text); background: var(--accent-v4-soft); }
.lang-list a.is-active small { color: var(--accent-v4); }

/* sohbet akışı */
.chat-scroll { overscroll-behavior: contain; }
.messages { gap: 18px; padding: 26px 24px 28px; }
.message { align-items: flex-start; }
.message-body { display: flex; flex-direction: column; min-width: 0; max-width: min(86%, 720px); }
.message-user .message-body { align-items: flex-end; }
.message-content { max-width: 100%; white-space: normal; }
.message-user .message-content { white-space: pre-wrap; }
.message-content > :first-child { margin-top: 0; }
.message-content > :last-child { margin-bottom: 0; }
.message-content p { margin: 0 0 .75em; }
.message-content ul, .message-content ol { margin: .4em 0 .8em; padding-left: 1.35em; }
.message-content li { margin: .25em 0; }
.message-content li::marker { color: var(--accent-v4); }
.message-content h3, .message-content h4, .message-content h5 { margin: 1em 0 .4em; font-family: var(--display); font-size: 1.05em; letter-spacing: -.01em; }
.message-content code { padding: .15em .45em; border: 1px solid rgba(255,255,255,.06); border-radius: 6px; background: rgba(255,255,255,.07); color: #f3d9c7; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.message-content pre { margin: .6em 0 .9em; padding: 13px 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: #0a0b0d; overflow-x: auto; }
.message-content pre code { padding: 0; border: 0; background: none; color: #e6e8ec; }
.message-content blockquote { margin: .5em 0; padding: 4px 14px; border-left: 2px solid var(--accent-v4); color: var(--muted); }
.message-content a { color: #f0a35e; text-underline-offset: 3px; }
.message-actions { display: flex; gap: 6px; margin: 6px 0 0 4px; opacity: 0; transition: opacity .15s; }
.message:hover .message-actions, .message-actions:focus-within { opacity: 1; }
.copy-button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--dim); font-size: 11.5px; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.copy-button:hover { color: var(--text); background: rgba(255,255,255,.05); border-color: var(--line); }
.copy-button svg { width: 13px; height: 13px; }
.copy-button.is-done { color: #8fd19e; }
.message.is-pending .message-content { opacity: .6; }
.message.is-failed .message-content { border-color: rgba(248,113,113,.45); }
.message-status { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--red); font-size: 12px; }
.retry-button { padding: 3px 10px; border: 1px solid rgba(248,113,113,.4); border-radius: 999px; background: transparent; color: var(--red); font-size: 12px; cursor: pointer; }
.retry-button:hover { background: rgba(248,113,113,.1); }

/* karşılama + öneri kartları */
.welcome { padding: 28px 22px 18px; }
.welcome h2 { font-size: clamp(26px, 3.2vw, 36px); }
.suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, 620px); margin: 26px auto 0; }
.suggestion { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.025); color: var(--muted); text-align: left; font-size: 13.5px; line-height: 1.4; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.suggestion::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent-v4); opacity: .7; }
.suggestion:hover { border-color: rgba(232,121,78,.4); background: rgba(232,121,78,.07); color: var(--text); transform: translateY(-1px); }
.suggestion:focus-visible { outline: 2px solid var(--accent-v4); outline-offset: 2px; }

/* yazma alanı */
.composer-dock { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.composer .char-count { position: absolute; right: 58px; bottom: 14px; color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.composer .char-count[hidden] { display: none; }
.composer .char-count.is-over { color: var(--red); }
.sidebar-scrim { display: none; }

/* giriş / kayıt / doğrulama */
.auth-card h1 { font-size: clamp(28px, 5vw, 42px); letter-spacing: -.04em; }
.auth-form input { min-height: 48px; padding: 0 14px; border-radius: 12px; }
.primary-button { min-height: 48px; border-radius: 12px; font-size: 15px; }
.google-button { min-height: 48px; border-radius: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 640px) {
  .topbar { min-height: 58px; padding: 6px 12px; gap: 8px; flex-wrap: nowrap; }
  .topbar-left { gap: 8px; }
  .brand-logo { width: 30px; height: 30px; }
  .brand-name { font-size: 14px; }
  .brand-suffix, .nav-about, .account-email { display: none; }
  .chat-page .sidebar-toggle { display: inline-grid; order: 0; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font-size: 16px; }
  .topnav { order: 0; flex: 0 0 auto; width: auto; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; margin-left: auto; }
  .topnav .nav-link { padding: 7px 8px; font-size: 13px; }
  .lang-menu summary { min-height: 34px; padding: 0 8px 0 10px; font-size: 12px; }
  .topbar .nav-cta { min-height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
  .nav-button { padding: 7px 11px; font-size: 12.5px; }
  .chat-layout { height: calc(100dvh - 58px); }
  .conversation-sidebar { top: 58px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .sidebar-scrim { display: block; position: fixed; inset: 58px 0 0 0; z-index: 9; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .sidebar-scrim.show { opacity: 1; pointer-events: auto; }
  .chat-toolbar { min-height: 54px; padding: 8px 14px; }
  .assistant-avatar { width: 30px; height: 30px; }
  .quota-area { font-size: 11px; }
  .quota-note { font-size: 9.5px; }
  .welcome { padding: 22px 16px 14px; }
  .welcome-logo { width: 52px; height: 52px; margin-bottom: 12px; }
  .welcome h2 { font-size: 24px; }
  .suggestions { grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }
  .suggestion { min-height: 46px; padding: 11px 13px; font-size: 13px; }
  .messages { gap: 14px; padding: 16px 12px 20px; }
  .message-body { max-width: 92%; }
  .message-content { padding: 11px 13px; font-size: 14px; line-height: 1.6; }
  .message-actions { opacity: 1; }
  .composer-dock { padding: 6px 10px calc(10px + env(safe-area-inset-bottom)); }
  .composer { min-height: 54px; padding: 8px 50px 8px 14px; border-radius: 16px; }
  .composer textarea { min-height: 34px; font-size: 16px; line-height: 1.5; }
  .send-button { right: 8px; bottom: 8px; width: 36px; height: 36px; }
  .composer .char-count { right: 52px; bottom: 12px; }
  .composer-hint { font-size: 10.5px; }
  .auth-shell { padding: 18px 0 40px; }
  .auth-card { margin-top: 14px; padding: 22px 18px 24px; border-radius: 16px; }
  .auth-card h1 { font-size: 27px; }
  .auth-lede { font-size: 13.5px; }
}

/* v5 düzeltmeler */
.cta-short { display: none; }
.side-login { text-decoration: none; font-size: 12.5px; white-space: nowrap; }
.message-body { display: flex; flex-direction: column; align-items: flex-start; }
.message-user .message-body { align-items: flex-end; }
.message-content { width: fit-content; max-width: 100%; overflow-wrap: break-word; word-break: normal; }
.message-body { flex: 0 1 auto; }
.message-user .message-body { max-width: min(86%, 720px); }
.message-user .message-content { overflow-wrap: break-word; }
@media (max-width: 640px) {
  .topbar-left { flex: 1 1 auto; }
  .brand-name { overflow: hidden; text-overflow: ellipsis; }
  .nav-login { display: none; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
@media (max-width: 360px) {
  .chat-page .brand-name { display: none; }
}
.message, .message-user, .message-assistant { align-self: stretch; width: 100%; max-width: none; }
.message-user { flex-direction: row-reverse; justify-content: flex-start; }
