/* Industry template strip + modal */
.industry-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin: 0;
  background: linear-gradient(180deg, #121218 0%, #0f0f12 100%);
  border-bottom: 1px solid #1e1e1e;
  flex-shrink: 0;
}
.industry-strip-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
}
.industry-strip-left .strip-icon { font-size: 18px; flex-shrink: 0; }
.industry-strip-left .strip-label {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  white-space: nowrap;
}
.industry-pill-select {
  min-width: 120px;
  max-width: 220px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: #141414;
  color: #ddd;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}
.industry-pill-select:focus { border-color: #8b5cf6; box-shadow: 0 0 0 2px #8b5cf622; }
.industry-select-wrap { position: relative; flex-shrink: 0; }
.industry-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.industry-select-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}
.industry-select-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.industry-select-edit {
  color: #888;
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}
.industry-select-trigger:hover .industry-select-edit,
.industry-select-wrap.open .industry-select-edit { color: #c4b5fd; }
.industry-select-caret {
  color: #666;
  font-size: 10px;
  flex-shrink: 0;
}
.industry-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(280px, 70vw);
  max-height: 240px;
  overflow-y: auto;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 60;
  padding: 4px;
}
.industry-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.industry-select-option:hover,
.industry-select-option.active { background: #8b5cf611; }
.industry-select-option-name {
  flex: 1;
  min-width: 0;
  color: #ddd;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.industry-select-option-edit {
  color: #888;
  font-size: 12px;
  flex-shrink: 0;
  padding: 2px 4px;
  line-height: 1;
}
.industry-select-option-edit:hover { color: #c4b5fd; }
.industry-strip-left .pill-btn { flex-shrink: 0; }
.pill-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: #141414;
  color: #aaa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.pill-btn:hover { border-color: #8b5cf6; color: #ddd; background: #1a1a22; }
.pill-btn.primary {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-color: transparent;
  color: #fff;
}
.pill-btn.primary:hover { opacity: .92; color: #fff; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-overlay.show { display: flex; animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.industry-modal {
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 18px;
  box-shadow: 0 28px 64px rgba(0,0,0,.5);
  padding: 0;
}
.industry-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #1e1e1e;
}
.industry-modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.industry-modal-body { padding: 16px 20px 8px; display: flex; flex-direction: column; gap: 12px; }
.industry-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
  letter-spacing: .3px;
}
.industry-field input,
.industry-field textarea {
  width: 100%;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  background: #0d0d0d;
  color: #e8e8e8;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6;
  outline: none;
  font-family: inherit;
}
.industry-field input:focus,
.industry-field textarea:focus { border-color: #8b5cf6; }
.industry-field textarea { min-height: 220px; resize: vertical; max-height: 42vh; }
.industry-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px 18px;
  border-top: 1px solid #1e1e1e;
}
.industry-modal-foot button {
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #2a2a2a;
  background: #141414;
  color: #888;
}
.industry-modal-foot button:hover { background: #1a1a1a; color: #ccc; }
.industry-modal-foot .primary {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: #fff;
}
.industry-modal-foot .primary:hover { opacity: .92; color: #fff; }

.chat-header { flex-wrap: nowrap; }
.chat-header .info { flex-shrink: 0; }
.chat-header .actions { flex-shrink: 0; margin-left: auto; }
