/* ── Left Panel (Chat) ──────────────────────────── */
#left-panel {
  width: min(var(--panel-width), calc(100vw - 360px));
  min-width: 320px; max-width: calc(100vw - 360px);
  display: flex; flex-direction: column; border-right: 1px solid var(--border);
  flex-shrink: 0; container: chat-panel / inline-size;
  transition: width 0.2s ease, min-width 0.2s ease, border-color 0.2s ease;
}
#left-panel.resizing { transition: none; }
#left-panel.collapsed {
  width: 48px !important; min-width: 48px; max-width: 48px;
  border-right-color: var(--border-hi);
}
#left-panel.collapsed #messages,
#left-panel.collapsed #composer,
#left-panel.collapsed .chat-panel-title,
#left-panel.collapsed .panel-actions { display: none; }
#left-panel.collapsed .panel-header {
  flex: 1; align-items: flex-start; justify-content: center;
  padding: 12px 6px; border-left-width: 1px;
}
#left-panel.collapsed + #resize-handle { display: none; }

.panel-header {
  padding: 10px 16px; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-dim); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: flex-start;
  background: var(--surface);
  position: relative;
}
#left-panel > .panel-header { border-left: 0; padding-left: 20px; }
.panel-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.chat-panel-title {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  color: #aab7c5; font-size: 10px; letter-spacing: 0.13em;
}
.chat-panel-title::after {
  content: ''; position: absolute; left: 0; bottom: -11px; width: 108px; height: 1px;
  background: linear-gradient(90deg, var(--accent) 0 68%, rgba(69,183,207,0.2) 68%, transparent 100%);
}
.chat-panel-title-icon { width: 16px; height: 16px; color: var(--accent); filter: drop-shadow(0 0 4px rgba(69,183,207,0.18)); }
.chat-panel-title-icon svg { display: block; width: 100%; height: 100%; }
.chat-panel-title strong { color: var(--accent); font-weight: 700; letter-spacing: 0.12em; }
#chat-panel-toggle {
  width: 28px; height: 28px; padding: 0; justify-content: center; flex-shrink: 0;
  margin-left: 16px;
}
#chat-panel-toggle svg { transition: transform 0.2s ease; }
#left-panel.collapsed #chat-panel-toggle svg { transform: rotate(180deg); }
#left-panel.collapsed #chat-panel-toggle { margin-left: 0; }
#reset-btn { color: #e1f3f6; }
.recent-wrapper { position: relative; }
.recent-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 20;
  width: 320px; max-width: calc(100vw - 32px);
  max-height: min(420px, calc(100vh - 132px)); overflow: auto;
  overscroll-behavior: contain; scrollbar-width: thin;
  scrollbar-color: rgba(138,155,171,0.3) transparent;
  border: 1px solid var(--border-hi); background: rgba(8,10,14,0.98);
  box-shadow: 0 12px 30px rgba(0,0,0,0.42), 0 0 24px var(--accent-glow);
}
.recent-menu.visible { display: block; }
.recent-menu-header {
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  position: sticky; top: 0; z-index: 2;
  background: rgba(8,10,14,0.98); backdrop-filter: blur(8px);
}
.recent-menu-title { color: var(--accent); font-size: 10px; letter-spacing: 0.12em; }
.recent-list { display: flex; flex-direction: column; }
.recent-item, .recent-save {
  width: 100%; border: 0; border-bottom: 1px solid var(--border);
  background: transparent; color: var(--text); font-family: inherit;
  text-align: left; cursor: pointer;
}
.recent-save {
  padding: 9px 12px; color: var(--accent); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.recent-item { padding: 10px 12px; }
.recent-item:hover, .recent-save:hover { background: var(--accent-glow); }
.recent-title { color: var(--text); font-size: 11px; line-height: 1.45; }
.recent-meta { color: var(--text-dim); font-size: 10px; line-height: 1.5; margin-top: 4px; text-transform: none; letter-spacing: 0.02em; }
.recent-empty { padding: 14px 12px; color: var(--text-dim); font-size: 11px; line-height: 1.55; text-transform: none; letter-spacing: 0.02em; }

#messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px;
  scrollbar-gutter: stable; scrollbar-width: thin;
  scrollbar-color: rgba(105,151,171,0.5) rgba(13,20,27,0.45);
}
#messages::-webkit-scrollbar { width: 9px; }
#messages::-webkit-scrollbar-track { background: rgba(13,20,27,0.45); }
#messages::-webkit-scrollbar-thumb {
  border: 2px solid rgba(13,20,27,0.45); border-radius: 8px;
  background: rgba(105,151,171,0.5);
}

.msg { display: flex; flex-direction: column; gap: 4px; }
.msg-role {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0 2px; display: flex; align-items: center; gap: 5px;
}
.msg-role::before { content: '//'; opacity: 0.35; font-weight: 400; letter-spacing: 0; }
.msg.user .msg-role { color: var(--accent); }
.msg.assistant .msg-role { color: var(--green); }
.msg-bubble {
  padding: 10px 14px; border-radius: 2px; font-size: 12.5px; line-height: 1.62;
  white-space: normal; word-break: break-word; max-width: 100%; font-family: inherit;
}
.msg.user .msg-bubble {
  background: var(--user-bubble);
  border: 1px solid var(--border); border-left: 2px solid rgba(69,183,207,0.32);
  white-space: pre-wrap;
}
.msg.assistant .msg-bubble {
  background: var(--assistant-bubble);
  border: 1px solid var(--border); border-left: 2px solid rgba(0,255,136,0.28);
}

.msg.assistant .msg-bubble h1,
.msg.assistant .msg-bubble h2,
.msg.assistant .msg-bubble h3,
.msg.assistant .msg-bubble h4,
.msg.assistant .msg-bubble h5,
.msg.assistant .msg-bubble h6 {
  color: var(--text); line-height: 1.35; letter-spacing: 0.015em;
  margin: 15px 0 7px; text-transform: none;
}
.msg.assistant .msg-bubble h1 { font-size: 17px; color: var(--accent); }
.msg.assistant .msg-bubble h2 { font-size: 15px; color: var(--accent); }
.msg.assistant .msg-bubble h3 { font-size: 13.5px; color: #8cecff; }
.msg.assistant .msg-bubble h4,
.msg.assistant .msg-bubble h5,
.msg.assistant .msg-bubble h6 { font-size: 12.5px; }
.msg.assistant .msg-bubble > :first-child,
.msg.assistant .msg-response > :first-child { margin-top: 0; }
.msg.assistant .msg-bubble p { margin: 0 0 9px; }
.msg.assistant .msg-bubble p:last-child { margin-bottom: 0; }
.msg.assistant .msg-bubble ul,
.msg.assistant .msg-bubble ol { margin: 7px 0 10px 20px; padding-left: 5px; }
.msg.assistant .msg-bubble li { margin: 3px 0; padding-left: 2px; }
.msg.assistant .msg-bubble li::marker { color: var(--accent); }
.msg.assistant .msg-bubble blockquote {
  margin: 9px 0; padding: 7px 11px; border-left: 2px solid var(--accent-dim);
  color: #91a6b9; background: rgba(69,183,207,0.025);
}
.msg.assistant .msg-bubble hr { border: 0; border-top: 1px solid var(--border-hi); margin: 13px 0; }
.msg.assistant .msg-bubble a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent-dim); }
.msg.assistant .msg-bubble a:hover { color: #9cefff; border-bottom-style: solid; }
.msg.assistant .msg-bubble strong { color: #e0e8f0; }
.msg.assistant .msg-bubble .md-task { color: var(--green); }
.msg-bubble pre {
  margin: 9px 0; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 3px; overflow: auto; font-size: 11.5px; background: #070a0f;
}
.msg-bubble pre code { white-space: pre; }
.msg-bubble code:not(pre code) {
  background: rgba(69,183,207,0.05); border: 1px solid var(--border);
  padding: 1px 5px; border-radius: 2px; font-size: 11.5px; color: var(--accent);
}
.md-table-wrap { margin: 9px 0 12px; overflow-x: auto; border: 1px solid var(--border); }
.msg.assistant .msg-bubble table { width: 100%; border-collapse: collapse; font-size: 11px; }
.msg.assistant .msg-bubble th,
.msg.assistant .msg-bubble td { padding: 7px 9px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.msg.assistant .msg-bubble th { color: var(--accent); background: rgba(69,183,207,0.035); font-weight: 700; }

.typing-indicator { display: flex; gap: 5px; padding: 10px 14px; align-items: center; }
.typing-indicator::before { content: '>'; color: var(--accent); font-size: 11px; margin-right: 2px; }
.typing-indicator span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.7;
  animation: bounce 1.2s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }

.telox-timer { font-size: 10px; color: var(--text-dim); padding: 4px 0 0; font-style: italic; }

/* ── Thinking section ───────────────────────────── */
.thought-section {
  margin-bottom: 10px; border: 1px solid var(--border);
  border-radius: 2px; overflow: hidden; font-size: 11px;
}
.thought-toggle {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px; cursor: pointer;
  background: rgba(255,255,255,0.018); color: var(--text-dim);
  user-select: none; border: none; width: 100%; text-align: left;
  font-size: 10px; font-family: inherit; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; transition: color 0.15s;
}
.thought-toggle:hover { color: var(--accent); }
.thought-toggle .arrow { font-size: 8px; transition: transform 0.2s; color: var(--accent); }
.thought-toggle.open .arrow { transform: rotate(90deg); }
.thought-count { margin-left: auto; color: var(--text-dim); font-size: 10px; }
.thought-list { display: none; }
.thought-list.open { display: block; }
.thought-item {
  padding: 7px 10px; border-top: 1px solid var(--border);
  white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; color: var(--text-dim);
  line-height: 1.5; font-family: inherit; font-size: 10.5px;
  background: rgba(0,0,0,0.2);
}
.thought-item .thought-label {
  color: var(--accent); font-weight: 700; font-size: 10px;
  display: block; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.08em;
}
.thought-item .thought-detail {
  color: var(--text-dim); white-space: pre-wrap;
  word-break: normal; overflow-wrap: anywhere;
  text-transform: none; letter-spacing: normal;
}
.msg-response { white-space: normal; word-break: break-word; }
.stream-cursor {
  color: var(--accent); margin-left: 1px;
  animation: stream-cursor-blink 0.9s step-end infinite;
}
@keyframes stream-cursor-blink { 50% { opacity: 0; } }

.empty-state {
  position: relative; flex: 1; width: 100%; min-height: 500px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-dim); text-align: center; padding: 14px 28px;
  background:
    linear-gradient(180deg, rgba(170,188,201,0.012), transparent 25%, transparent 75%, rgba(170,188,201,0.008)),
    radial-gradient(circle at 50% 28%, rgba(69,183,207,0.045), transparent 30%);
  overflow: hidden;
}
.welcome-corners { position: absolute; inset: 24px; pointer-events: none; }
.welcome-corners::before, .welcome-corners::after,
.welcome-frame::before, .welcome-frame::after {
  content: ''; position: absolute; width: 12px; height: 12px; opacity: 0.7;
}
.welcome-corners::before { left: 0; top: 0; border-left: 1px solid var(--accent); border-top: 1px solid var(--accent); }
.welcome-corners::after { right: 0; top: 0; border-right: 1px solid var(--accent); border-top: 1px solid var(--accent); }
.welcome-frame::before { left: 0; bottom: 0; border-left: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.welcome-frame::after { right: 0; bottom: 0; border-right: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.welcome-frame {
  position: relative; width: min(100%, 540px); min-height: 480px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px 30px;
}
.welcome-mark {
  position: relative; width: 70px; height: 70px; display: grid; place-items: center;
  margin-bottom: 18px; color: var(--accent); isolation: isolate;
}
.welcome-mark::before {
  content: ''; position: absolute; inset: 7px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(69,183,207,0.11) 0, rgba(69,183,207,0.035) 34%, transparent 68%);
  filter: blur(7px); animation: welcome-halo 3.6s ease-in-out infinite;
}
.welcome-mark::after {
  content: ''; position: absolute; left: 17px; right: 17px; top: 50%; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(69,183,207,0.15), transparent);
}
.welcome-mark svg {
  width: 70px; height: 70px; overflow: visible;
  filter: drop-shadow(0 0 6px rgba(69,183,207,0.3));
  animation: welcome-emblem 3.6s ease-in-out infinite;
}
.welcome-mark .reticle-corners { opacity: 0.55; stroke-width: 1.25; }
.welcome-mark .diamond-outer { opacity: 0.56; stroke-width: 1.25; }
.welcome-mark .diamond-main { stroke: #5bb7c9; stroke-width: 2.2; }
@keyframes welcome-emblem {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(69,183,207,0.26)); }
  50% { transform: scale(1.025); filter: drop-shadow(0 0 9px rgba(69,183,207,0.38)); }
}
@keyframes welcome-halo { 0%, 100% { opacity: 0.64; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .welcome-mark::before, .welcome-mark svg { animation: none; }
}
.empty-state h3 {
  color: #f0f5f8; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(22px, 4cqw, 30px); line-height: 1.2; font-weight: 500;
  letter-spacing: 0; text-transform: none; text-shadow: 0 0 18px rgba(255,255,255,0.08);
}
.empty-state > .welcome-frame > p {
  max-width: 470px; margin-top: 14px; color: #70869a;
  font-size: 12px; line-height: 1.75;
}
.examples-label {
  width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 18px; margin: 20px 0 12px; color: var(--accent-dim);
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.examples-label::before, .examples-label::after {
  content: ''; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(69,183,207,0.2));
}
.examples-label::after { transform: rotate(180deg); }
.example-prompts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; width: 100%; margin-top: 10px;
}
.example-prompt {
  width: 100%; min-height: 104px; padding: 14px 16px 14px 12px;
  display: grid; grid-template-columns: 54px minmax(0,1fr) 20px; align-items: center; gap: 14px;
  border-radius: 7px; border: 1px solid rgba(94,139,166,0.22);
  background: linear-gradient(100deg, rgba(17,27,35,0.84), rgba(13,20,27,0.9));
  color: var(--text-dim); cursor: pointer; text-align: left;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
  font-family: inherit; position: relative; overflow: hidden;
}
.example-prompt[hidden] { display: none; }
.example-prompt::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); opacity: 0; box-shadow: 0 0 12px var(--accent);
  transition: opacity 0.18s;
}
.example-prompt:hover:not(:disabled), .example-prompt:focus-visible {
  border-color: rgba(69,183,207,0.46);
  background: linear-gradient(100deg, rgba(27,48,57,0.7), rgba(15,26,34,0.94));
  box-shadow: 0 0 18px rgba(69,183,207,0.07); transform: translateX(2px);
}
.example-prompt:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.example-prompt:active:not(:disabled) { transform: translateX(2px) scale(0.99); }
.example-prompt:disabled { opacity: 0.45; cursor: not-allowed; }
.example-prompt:hover:not(:disabled)::before, .example-prompt:focus-visible::before { opacity: 1; }
.prompt-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid var(--border-hi); border-radius: 6px;
  color: var(--accent);
  background: radial-gradient(circle at 50% 40%, rgba(69,183,207,0.1), rgba(69,183,207,0.02));
}
.prompt-icon svg { width: 29px; height: 29px; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.prompt-thumbnail {
  width: 52px; height: 52px; display: block; object-fit: cover;
  border: 1px solid var(--border-hi); border-radius: 6px;
  background: #101820; filter: saturate(0.9) contrast(1.04);
}
.prompt-copy { min-width: 0; }
.prompt-category { display: block; margin-bottom: 5px; color: #88a6b4; font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }
.prompt-title {
  display: block; color: #d5e0e9; font-size: 13px; font-weight: 500;
  letter-spacing: 0.01em; text-transform: none; line-height: 1.3;
}
.prompt-subtitle {
  display: block; margin-top: 5px; color: #91a2b1; font-size: 10.5px;
  line-height: 1.5; text-wrap: pretty;
}
.prompt-arrow { width: 20px; height: 20px; color: var(--accent); transition: transform 0.18s; }
.example-prompt:hover:not(:disabled) .prompt-arrow { transform: translateX(3px); }
.templates-toggle {
  width: 100%; min-height: 38px; padding: 8px 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(94,139,166,0.22); border-radius: 6px;
  background: rgba(14,23,30,0.72); color: #a9c0cd; cursor: pointer;
  font-family: inherit; font-size: 10px; font-weight: 700; line-height: 1;
  letter-spacing: 0.07em; text-transform: uppercase;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.templates-toggle:hover, .templates-toggle:focus-visible {
  border-color: rgba(69,183,207,0.46); background: rgba(27,48,57,0.58); color: #d9eef3;
}
.templates-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.templates-toggle-count { color: var(--accent); }
.templates-toggle svg { width: 15px; height: 15px; transition: transform 0.18s; }
.templates-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.empty-state.templates-expanded { justify-content: flex-start; overflow: visible; }
.examples-hint { margin-top: 12px; color: #889ba9; font-size: 10px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .example-prompt, .example-prompt::before, .prompt-arrow, .templates-toggle svg { transition: none; }
  .example-prompt:hover, .example-prompt:active, .example-prompt:hover .prompt-arrow { transform: none; }
}

#composer {
  padding: 10px 16px 12px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 7px;
  background: linear-gradient(180deg, rgba(8,12,18,0.96), var(--surface));
}
#composer-row { display: flex; gap: 7px; align-items: stretch; }
.composer-example { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #9ab3c1; font-size: 10px; line-height: 1.5; }
.composer-example[hidden] { display: none; }
.composer-example .btn { min-height: 28px; padding: 4px 8px; font-size: 10px; text-transform: none; letter-spacing: 0; flex-shrink: 0; }
.composer-input-shell {
  position: relative; overflow: hidden;
  flex: 1; min-width: 0; min-height: 52px; display: flex; align-items: center; flex-wrap: nowrap; gap: 12px;
  padding: 7px 12px 7px 14px; border: 1px solid transparent; border-radius: 5px;
  background:
    linear-gradient(#10171e, #10171e) padding-box,
    linear-gradient(102deg, #4cb6cc 0%, #377f8e 24%, #596b75 61%, #29353e 100%) border-box;
  box-shadow: -2px 0 12px rgba(69,183,207,0.12), 0 0 10px rgba(69,183,207,0.025),
    inset 0 1px 0 rgba(212,239,247,0.035);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.composer-input-shell:focus-within {
  border-color: transparent;
  background:
    linear-gradient(#111a22, #111a22) padding-box,
    linear-gradient(102deg, #67c5d8 0%, #4595a5 28%, #71828b 64%, #384750 100%) border-box;
  box-shadow: -2px 0 15px rgba(69,183,207,0.2), 0 0 14px rgba(69,183,207,0.07),
    inset 0 1px 0 rgba(217,244,250,0.045);
}
.composer-spark {
  position: relative; flex: 0 0 17px; width: 17px; height: 20px;
  color: var(--accent); font-size: 20px; line-height: 20px; text-align: center;
  align-self: center; z-index: 1; text-shadow: 0 0 10px rgba(69,183,207,0.55);
}
.composer-spark::after {
  content: '+'; position: absolute; right: -3px; bottom: 0;
  font-size: 9px; line-height: 1; font-weight: 700;
}
#input {
  position: relative; z-index: 1; flex: 1; min-width: 0; height: 33px; align-self: center; background: transparent; border: 0;
  color: var(--text); font-size: 11px; padding: 8px 0;
  resize: none; min-height: 33px; max-height: 240px; line-height: 17px;
  overflow-x: hidden; overflow-y: auto; scrollbar-width: thin;
  font-family: inherit; outline: none;
}
#input::placeholder { color: #607589; opacity: 1; white-space: nowrap; }
#send-btn {
  min-width: 72px; min-height: 52px; padding: 7px 12px; border-radius: 5px;
  height: 52px; align-self: flex-end;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, #255d6b, #1d414c) padding-box,
    linear-gradient(135deg, #67c5d8, #438b9b 58%, #495b64) border-box;
  color: #e6fbff; font-size: 10px; font-weight: 800; font-family: inherit;
  text-transform: uppercase; letter-spacing: 0.1em;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 12px rgba(69,183,207,0.06);
}
#send-btn svg { width: 12px; height: 12px; }
#send-btn:hover {
  border-color: transparent;
  background:
    linear-gradient(135deg, #2d7181, #24515e) padding-box,
    linear-gradient(135deg, #82d3e2, #55a5b5 58%, #60717a) border-box;
  box-shadow: 0 0 15px rgba(69,183,207,0.14); transform: translateY(-1px);
}
#send-btn:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; transform: none; }
.composer-hint { text-align: center; font-size: 9.5px; color: #4d6175; letter-spacing: 0.04em; }

@container chat-panel (max-width: 600px) {
  .panel-actions .btn { padding-inline: 8px !important; }
  .panel-actions .btn-label { display: none; }
  #messages { padding: 8px; }
  .empty-state { padding: 12px 10px; min-height: 500px; }
  .welcome-frame { padding-inline: 16px; }
  .welcome-mark { margin-bottom: 16px; }
  .empty-state h3 { font-size: 22px; }
  .empty-state > .welcome-frame > p { font-size: 10.5px; }
  .example-prompt { grid-template-columns: 36px minmax(0,1fr); min-height: 96px; padding: 11px 10px; gap: 8px; }
  .prompt-icon, .prompt-thumbnail { width: 42px; height: 42px; }
  .prompt-icon svg { width: 24px; height: 24px; }
  .prompt-arrow { display: none; }
  .prompt-title { font-size: 11.5px; }
  .prompt-subtitle { font-size: 10px; }
  .templates-toggle { min-height: 42px; }
  #composer { padding-inline: 10px; }
  #send-btn { min-width: 54px; padding-inline: 14px; }
  #send-btn .send-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ── Resize Handle ──────────────────────────────── */
#resize-handle {
  width: 4px; cursor: col-resize; background: transparent; flex-shrink: 0;
  transition: background 0.15s;
}
#resize-handle:hover, #resize-handle.dragging { background: rgba(69,183,207,0.2); }

/* Stable project identity survives reload and keeps example switching explicit. */
.current-project {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  border-bottom: 1px solid var(--border); background: var(--surface); flex-shrink: 0;
}
.current-project-identity { min-width: 0; flex: 1; }
.current-project-label { display: block; color: var(--text-dim); font-size: 10px; margin-bottom: 4px; }
#current-project-name { display: block; color: var(--text); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
#project-examples-btn { flex-shrink: 0; }
#project-switch-error { margin: 0; color: var(--red); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
#project-switch-error:not(:empty) { padding: 8px 16px; }
#left-panel.collapsed .current-project,
#left-panel.collapsed #project-switch-error { display: none; }
