







:root {
  --nav-height: 64px;
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 0px;
}

html, body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  background: var(--bg-mid);
  overflow-x: hidden;
  position: relative;
}


body::after {
  content: "";
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}




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





.glass {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0.6;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  cursor: pointer;
}

.text-gradient {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.btn-3d {
  position: relative;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-3d-neon {
  background: var(--gradient-neon);
  color: white;
  box-shadow:
    0 4px 0 0 rgba(0, 0, 0, 0.3),
    0 6px 16px rgba(0, 212, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-3d-neon:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 0 rgba(0, 0, 0, 0.3),
    0 10px 24px rgba(0, 212, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-3d-neon:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 0 0 rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 212, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-3d-ghost {
  background: var(--hover-overlay);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 0 0 rgba(0, 0, 0, 0.3),
    0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-3d-ghost:hover {
  background: var(--hover-overlay-strong);
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

.btn-3d-ghost:active {
  transform: translateY(1px);
}





.chat-layout {
  display: flex;
  padding-top: var(--nav-height);
  


  height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}


.chat-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--card-bg-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  max-height: calc(100vh - var(--nav-height));
  align-self: flex-start;  
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.sidebar-title {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 500;
}

.btn-new-chat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--gradient-neon);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  width: 100%;
  justify-content: center;
  margin-bottom: 16px;
}

.btn-new-chat:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 212, 255, 0.5);
}

.btn-new-chat-icon {
  font-size: 16px;
  line-height: 1;
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 2px;
}

.chat-list::-webkit-scrollbar { width: 4px; }
.chat-list::-webkit-scrollbar-track { background: transparent; }
.chat-list::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.2);
  border-radius: 2px;
}

.chat-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  border: 1px solid transparent;
  font-size: 13px;
  color: var(--text-secondary);
}

.chat-list-item:hover {
  background: rgba(0, 212, 255, 0.06);
  color: var(--text-primary);
}

.chat-list-item.active {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(124, 58, 237, 0.12));
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
}

.chat-list-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  flex-shrink: 0;
}

.chat-list-dot.purple { background: var(--accent-purple); box-shadow: 0 0 8px rgba(124, 58, 237, 0.5); }
.chat-list-dot.blue   { background: var(--accent-blue);   box-shadow: 0 0 8px rgba(0, 212, 255, 0.5); }
.chat-list-dot.yellow { background: var(--accent-yellow); box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }

.chat-list-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-list-time {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}


.sidebar-footer {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-footer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}

.sidebar-footer-item:hover {
  background: rgba(0, 212, 255, 0.06);
  color: var(--text-primary);
}

.sidebar-footer-icon {
  font-size: 16px;
  line-height: 1;
}




.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  animation: none;  
}


.chat-topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--card-bg-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0;
}


.model-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  margin-left: auto;  
}

.model-trigger:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.5);
}

.model-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--gradient-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
  flex-shrink: 0;
}

.model-trigger-arrow {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 4px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.topbar-icon-btn:hover {
  border-color: rgba(0, 212, 255, 0.5);
  color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.06);
}




.model-dropdown {
  position: fixed;                     
  
  bottom: auto;
  left: auto;
  width: 320px;
  max-height: calc(100vh - 88px);      
  overflow-y: auto;
  background: var(--bg-card-solid);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glow-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-glow-purple), 0 12px 32px rgba(0, 0, 0, 0.4);
  padding: 8px;
  z-index: 50;
  display: none; 
}

.model-dropdown.open { display: block; }

.model-dropdown-section-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px 4px;
  font-weight: 600;
}

.model-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}

.model-option:hover {
  background: rgba(0, 212, 255, 0.08);
}

.model-option.selected {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.model-option-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 212, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.model-option.selected .model-option-icon {
  background: var(--gradient-neon);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

.model-option-body {
  flex: 1;
  min-width: 0;
}

.model-option-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.model-option-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.model-option-lock {
  font-size: 11px;
  color: var(--accent-yellow);
  font-weight: 500;
}


.model-dropdown-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(0, 212, 255, 0.04);
  border: 1px dashed rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.model-dropdown-more:hover {
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.4);
}
.model-dropdown-more:disabled,
.model-dropdown-more.expanded {
  cursor: default;
  color: var(--text-muted);
  background: transparent;
  border-color: rgba(0, 212, 255, 0.08);
  opacity: 0.6;
}
.model-dropdown-more-arrow {
  font-size: 10px;
  transition: transform 0.2s;
}
.model-dropdown.expanded .model-dropdown-more-arrow {
  transform: rotate(180deg);
}

.model-option.hidden { display: none; }




.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.2);
  border-radius: 3px;
}


.welcome-card {
  max-width: 720px;
  margin: 40px auto;
  padding: 40px 32px;
  text-align: center;
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  font-size: 12px;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.welcome-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.welcome-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}


.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.prompt-card {
  padding: 16px;
  background: var(--card-bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--text-primary);
}

.prompt-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 212, 255, 0.15);
}

.prompt-card-icon {
  font-size: 20px;
  margin-bottom: 8px;
}

.prompt-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.prompt-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}


.msg {
  display: flex;
  gap: 12px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  animation: fadeInUp 0.3s ease both;
}

.msg-user {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.msg-avatar.ai {
  background: var(--gradient-neon);
  color: white;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.4);
}

.msg-avatar.user {
  background: var(--hover-overlay-strong);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.msg-body {
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 48px);
}

.msg-name {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.msg-user .msg-name { text-align: right; }


.msg-bubble-ai {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  border-top-left-radius: 4px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.7;
  box-shadow: var(--shadow-glow);
}


.msg-bubble-ai.loading { color: var(--text-muted); }
.msg-bubble-ai.loading .msg-content { display: flex; align-items: center; gap: 6px; }
.msg-bubble-ai.loading .msg-content::before {
  content: "💭";
  font-size: 16px;
}
.msg-bubble-ai.loading .msg-content::after {
  content: "思考中";
  font-size: 13px;
  opacity: 0.7;
  animation: thinkingDots 1.2s steps(1) infinite;  
}
@keyframes thinkingDots {
  0%   { content: "思考中"; }
  25%  { content: "思考中."; }
  50%  { content: "思考中.."; }
  75%  { content: "思考中..."; }
  100% { content: "思考中"; }
}
.msg-bubble-ai.loading .msg-content > * { display: none; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.msg-bubble-ai .msg-content p {
  margin-bottom: 10px;
}

.msg-bubble-ai .msg-content p:last-child {
  margin-bottom: 0;
}

.msg-bubble-ai .msg-content code {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-blue);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
}


.msg-bubble-user {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(0, 212, 255, 0.08));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  border-top-right-radius: 4px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  margin-left: auto;
  max-width: fit-content;
}




.chat-input-wrap {
  flex-shrink: 0;
  padding: 16px 24px 20px;
  background: linear-gradient(180deg, transparent, rgba(10, 14, 26, 0.7) 30%);
}
/* 2026-07-26 Phase 9p: 浅色模式 chat-input-wrap 顶部 fade 改浅紫
   - 之前深色 rgba(10,14,26,0.7) 在浅色背景下 = 黑色阴影带, 盖住输入区
   - 改 transparent → var(--bg-mid) (purple-50), 跟 body bg 无缝衔接
   - 视觉: 输入区上方有轻微浅紫渐变 (跟 hero 球 pastel 协调) */
:root[data-theme="light"] .chat-input-wrap {
  background: linear-gradient(180deg, transparent, var(--bg-mid, #faf5ff) 60%);
}

.chat-input-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card-solid);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}


.input-toggles {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  align-items: center;  
}


.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  background: var(--hover-overlay);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
  font-family: inherit;
}

.toggle-chip:hover {
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
}

.toggle-chip.active {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--text-primary);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

.toggle-chip-icon {
  font-size: 13px;
  line-height: 1;
}


.toggle-switch {
  width: 24px;
  height: 14px;
  background: var(--hover-overlay-strong);
  border-radius: 7px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-chip.active .toggle-switch {
  background: var(--gradient-neon);
}

.toggle-chip.active .toggle-switch::after {
  transform: translateX(10px);
}


.input-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.chat-textarea {
  flex: 1;
  background: var(--card-bg-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  min-height: 42px;
  max-height: 160px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.chat-textarea:focus {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.chat-textarea::placeholder {
  color: var(--text-muted);
}

.btn-send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: var(--gradient-neon);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.btn-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 212, 255, 0.5);
}

.btn-send:active {
  transform: translateY(1px);
}


.btn-send.streaming {
  border-radius: 8px;            
  animation: sendBtnPulse 1.2s ease-in-out infinite;  
}
@keyframes sendBtnPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(0.94); }
}

.input-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}




.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: none; 
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-mask.open { display: flex; }

.modal-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card-solid);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow-strong);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-glow-purple), 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.3s ease both;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.15s;
}

.modal-close:hover {
  border-color: var(--accent-red-soft);
  color: var(--accent-red-soft);
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.field input {
  width: 100%;
  padding: 11px 14px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.field input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.field input::placeholder {
  color: var(--text-muted);
}

.field-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.modal-actions .btn-3d {
  flex: 1;
  justify-content: center;
}







@media (min-width: 769px) {
  .chat-sidebar {
    transform: none !important;
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
  }


  .chat-sidebar {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 280px;
    height: calc(100vh - var(--nav-height));
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.25s;
  }

  

  .chat-topbar { padding: 0 12px; }  
  
  .model-dropdown { width: auto; max-width: calc(100vw - 24px); max-height: calc(100vh - 88px); }
  .chat-messages { padding: 20px 16px; }
  .chat-input-wrap { padding: 12px 12px 16px; }

  .prompt-grid { grid-template-columns: 1fr; }
  .welcome-card { padding: 24px 16px; margin: 16px 0; }
  .welcome-title { font-size: 28px; }
}