/* Small additions on top of the mockup stylesheet. */

.app { min-height: 100vh; }

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-card { width: min(440px, 100%); }

.auth-card h1 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 16px 0 6px;
}

.auth-card .subtitle {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.auth-card .btn-lg {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.topbar-nav span {
  color: var(--text-soft);
  padding: 6px 12px;
  font-weight: 500;
  font-size: 13px;
}

.intake-layout {
  grid-template-columns: 240px 1fr;
  align-items: start;
}

button.step-item {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.inline-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.inline-row .input { width: 280px; max-width: 100%; }
.employee-link-url { width: min(100%, 520px); }
.inline-row .select { width: 120px; }

button.chip {
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

button.chip.selected {
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

.chip-remove {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.notice-error {
  background: var(--danger-soft);
  border: 1px solid #fecaca;
  color: #991b1b;
}

.table-scroll { overflow-x: auto; }

.empty-copy {
  text-align: center;
  color: var(--text-muted);
  padding: 28px 12px;
}

.page-header .actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.interview-main { padding-top: 16px; padding-bottom: 16px; }

.interview-layout.interview-text {
  grid-template-columns: 200px minmax(0, 1fr) 260px;
  height: calc(100vh - 96px);
  min-height: 560px;
  max-height: none;
}

.chat-log { display: flex; flex-direction: column; gap: 10px; }

.chat-row { display: flex; }
.chat-row.employee { justify-content: flex-end; }

.chat-bubble {
  max-width: min(100%, 640px);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 14px;
}

.chat-row.ai .chat-bubble {
  background: var(--ai-soft);
  border-color: var(--ai-border);
}

.chat-row.file .chat-bubble {
  background: var(--surface);
  border-style: dashed;
}

.chat-who {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
}

.chat-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.chat-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.topic-item.thin { color: var(--text); }
.topic-item.thin .topic-status { background: var(--warning); color: white; }

.file-panel,
.file-panel .panel-body {
  min-width: 0;
}

.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 14px;
  padding: 20px 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  text-align: center;
}

.file-drop strong,
.file-drop-limits {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.file-drop-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
}

.file-drop.disabled { opacity: 0.55; cursor: default; }
.file-drop.dragover {
  border-color: var(--ai);
  background: var(--ai-soft);
}
.file-drop:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.file-list { margin-top: 4px; }
.file-panel-note { margin: 12px 0 0; }

.join-continue {
  display: flex;
  justify-content: center;
  margin: 0 0 32px;
}

.logo-lockup {
  height: 36px;
  width: auto;
  display: block;
}

@media (max-width: 800px) {
  .intake-layout { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .main { padding: 20px 16px 32px; }
  .interview-layout.interview-text {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
}
