/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #fff;
  --panel-strong: #f0f2f5;
  --text: #17191f;
  --muted: #6d7480;
  --line: #dfe3ea;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --blue: #2563eb;
  --violet: #7c3aed;
  --danger: #b42318;
  --shadow: 0 16px 40px #12182614;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  min-height: 100vh;
  display: grid;
}

.sidebar, .tools-panel {
  background: var(--panel);
  border-color: var(--line);
  border-style: solid;
}

.sidebar {
  border-width: 0 1px 0 0;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  display: flex;
  overflow-y: auto;
}

.tools-panel {
  border-width: 0 0 0 1px;
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.panel-tabs {
  border-bottom: 1px solid var(--line);
  gap: 4px;
  padding: 0 12px;
  display: flex;
}

.tab-button {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  flex: 1;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
  transition: all .15s;
  display: inline-flex;
}

.tab-button:hover {
  color: var(--text);
  background: var(--panel-strong);
}

.tab-button.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 600;
}

.accordion-section {
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.accordion-header {
  color: var(--text);
  cursor: pointer;
  background: none;
  border: 0;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.accordion-title {
  color: var(--brand);
}

.accordion-content {
  padding: 8px 0 12px;
}

.brand-row, .panel-header, .chat-header {
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 14px 18px;
  display: flex;
}

.brand-mark {
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  font-weight: 800;
  display: inline-flex;
}

.title-stack {
  min-width: 0;
}

.title-stack strong, .item-title {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.title-stack span, .muted, .meta {
  color: var(--muted);
  font-size: 12px;
}

.sidebar-section, .panel-body {
  padding: 12px;
}

.section-label {
  color: var(--muted);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 12px 0 6px;
  font-size: 11px;
  font-weight: 700;
}

.list {
  gap: 4px;
  display: grid;
}

.project-list {
  gap: 2px;
}

.project-item {
  position: relative;
}

.project-button {
  padding-right: 70px;
  font-weight: 600;
}

.project-actions {
  opacity: 0;
  gap: 4px;
  transition: opacity .2s;
  display: flex;
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.project-item:hover .project-actions, .project-item.active-project .project-actions {
  opacity: 1;
}

.project-card-sidebar {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}

.project-card-sidebar.active {
  border-color: var(--brand);
  box-shadow: inset 3px 0 0 var(--brand);
}

.project-card-header {
  color: var(--text);
  cursor: pointer;
  background: none;
  border: 0;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 70px 10px 12px;
  font-weight: 600;
  display: flex;
}

.project-card-header:hover {
  background: var(--panel-strong);
}

.project-card-title {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.expand-icon {
  color: var(--muted);
  font-size: 10px;
}

.project-card-actions {
  opacity: 0;
  gap: 4px;
  transition: opacity .2s;
  display: flex;
  position: absolute;
  top: 10px;
  right: 8px;
}

.project-card-sidebar:hover .project-card-actions, .project-card-sidebar.active .project-card-actions {
  opacity: 1;
}

.icon-button-sm {
  color: var(--muted);
  background: none;
  border: 1px solid #0000;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
}

.icon-button-sm:hover {
  background: var(--panel-strong);
  border-color: var(--line);
}

.icon-button-sm.danger {
  color: var(--danger);
}

.icon-button-sm.danger:hover {
  background: #fff4f2;
  border-color: #fecdca;
}

.folder-list-expanded {
  background: var(--panel-strong);
  border-top: 1px solid var(--line);
  gap: 2px;
  padding: 4px 8px 8px;
  display: grid;
}

.folder-row .icon-button-sm {
  opacity: 0;
  transition: opacity .2s;
}

.folder-row:hover .icon-button-sm, .folder-row .icon-button-sm:focus {
  opacity: 1;
}

.folder-list {
  border-left: 2px solid var(--line);
  gap: 4px;
  margin: 4px 0 8px 12px;
  padding-left: 8px;
  display: grid;
}

.folder-row {
  align-items: center;
  gap: 4px;
  display: flex;
}

.folder-button {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 13px;
}

.list-button, .icon-button, .primary-button, .ghost-button, .danger-button {
  border: 1px solid #0000;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  display: inline-flex;
}

.list-button {
  color: var(--text);
  text-align: left;
  background: none;
  justify-content: flex-start;
  width: 100%;
  padding: 8px 10px;
}

.list-button:hover, .list-button.active, .ghost-button:hover, .icon-button:hover {
  background: var(--panel-strong);
}

.list-button.active {
  border-color: var(--line);
  box-shadow: inset 3px 0 0 var(--brand);
}

.folder-dot {
  border-radius: 999px;
  flex: none;
  width: 10px;
  height: 10px;
}

.icon-button {
  background: none;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
}

.primary-button, .ghost-button, .danger-button {
  justify-content: center;
  padding: 8px 12px;
}

.primary-button {
  background: var(--brand);
  color: #fff;
}

.primary-button:hover {
  background: var(--brand-strong);
}

.ghost-button {
  border-color: var(--line);
  color: var(--text);
  background: #fff;
}

.danger-button {
  color: var(--danger);
  background: #fff4f2;
}

.field {
  gap: 6px;
  margin-bottom: 12px;
  display: grid;
}

.field label {
  color: #363b44;
  font-size: 12px;
  font-weight: 700;
}

.field input, .field textarea, .field select {
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
  border-radius: 8px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
}

.field textarea {
  resize: vertical;
  min-height: 86px;
}

.chat {
  grid-template-rows: 64px minmax(0, 1fr) auto;
  min-width: 0;
  height: 100vh;
  display: grid;
  overflow: hidden;
}

.chat-header {
  border-bottom: 1px solid var(--line);
  background: #f6f7f9eb;
  justify-content: space-between;
}

.message-list {
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 24px;
  display: flex;
  overflow-y: auto;
}

.message {
  border: 1px solid var(--line);
  border-radius: 8px;
  align-self: center;
  width: min(860px, 100%);
  max-width: 860px;
  padding: 14px;
}

.message.user {
  background: #ecfdf9;
  justify-self: end;
}

.message.assistant {
  box-shadow: var(--shadow);
  background: #fff;
  justify-self: start;
}

.message.error {
  box-shadow: none;
  background: #fff4f2;
  border-color: #fecdca;
}

.message.streaming {
  border-color: #9fd8d2;
}

.message-header {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.sender-info {
  align-items: center;
  gap: 4px;
  font-weight: 600;
  display: inline-flex;
}

.model-tag {
  color: var(--muted);
  margin-left: 8px;
  font-size: 11px;
}

.message-content {
  margin-top: 8px;
  line-height: 1.6;
}

.message-content p {
  margin: .5em 0;
}

.message-content p:first-child {
  margin-top: 0;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content ul {
  margin: .5em 0;
  padding-left: 1.5em;
}

.sources-details {
  border: 1px solid var(--border);
  background: var(--bg-secondary, #00000005);
  border-radius: 6px;
  margin-top: 12px;
  padding: 0;
}

.sources-summary {
  cursor: pointer;
  color: var(--muted);
  -webkit-user-select: none;
  user-select: none;
  padding: 8px 12px;
  font-size: .85em;
}

.sources-summary:hover {
  color: var(--text);
}

.sources-list {
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin: 0;
  padding: 8px 12px 12px;
  font-size: .8em;
  list-style: none;
}

.sources-list li {
  padding: 4px 0;
}

.sources-list strong {
  color: var(--text);
}

.source-score {
  opacity: .7;
  font-size: .9em;
}

.message pre {
  white-space: pre-wrap;
  margin: 8px 0 0;
  font-family: inherit;
  line-height: 1.5;
}

.typing-indicator {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  display: flex;
}

.typing-indicator span {
  background: var(--brand);
  border-radius: 999px;
  width: 6px;
  height: 6px;
  animation: 1.2s ease-in-out infinite pulse-dot;
}

.typing-indicator span:nth-child(2) {
  animation-delay: .15s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: .3s;
}

@keyframes pulse-dot {
  0%, 80%, 100% {
    opacity: .35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.composer {
  border-top: 1px solid var(--line);
  gap: 10px;
  padding: 14px 18px 18px;
  display: grid;
}

.composer-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  display: grid;
}

.composer textarea {
  border: 1px solid var(--line);
  resize: vertical;
  border-radius: 8px;
  min-height: 72px;
  padding: 12px;
}

.composer-actions {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

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

.tool-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  gap: 8px;
  padding: 12px;
  display: grid;
}

.tool-actions {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.tool-actions .ghost-button, .tool-actions .danger-button {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
}

.document-card .danger-button {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12px;
}

.member-row select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 34px;
  padding: 0 8px;
  font-size: 13px;
}

.member-row .danger-button {
  min-height: 34px;
  padding: 4px 10px;
  font-size: 12px;
}

.tool-card strong {
  font-size: 14px;
}

.tool-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  display: grid;
}

.tool-actions .ghost-button, .tool-actions .danger-button {
  min-height: 32px;
  padding: 6px 8px;
}

.tool-editor-header {
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-top: 8px;
  display: flex;
}

.tool-editor-header .section-label {
  margin: 0 0 4px;
}

.field-builder-list {
  gap: 10px;
  margin-top: 10px;
  display: grid;
}

.field-builder {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 8px;
  gap: 8px;
  padding: 10px;
  display: grid;
}

.field-builder .field {
  margin-bottom: 0;
}

.field-builder-footer {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.settings-block {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 8px;
  gap: 6px;
  margin-bottom: 12px;
  padding: 12px;
  display: grid;
}

.settings-heading {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.settings-actions {
  gap: 8px;
  margin-top: 10px;
  display: flex;
}

.status-pill {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.status-pill.ok {
  color: #05603a;
  background: #ecfdf3;
}

.status-pill.warning {
  color: #92400e;
  background: #fffbeb;
}

.settings-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  display: grid;
}

.inline-status {
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
}

.inline-status.ok {
  color: #05603a;
  background: #ecfdf3;
  border-color: #b7ebc6;
}

.inline-status.error {
  color: var(--danger);
  background: #fff4f2;
  border-color: #fecdca;
}

.project-model-form, .admin-section {
  border-bottom: 1px solid var(--line);
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 14px;
  display: grid;
}

.member-list {
  gap: 8px;
  display: grid;
}

.member-row {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  grid-template-columns: minmax(0, 1fr) 96px auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  display: grid;
}

.member-row select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 34px;
  padding: 0 8px;
}

.member-row .danger-button {
  min-height: 34px;
}

.document-list {
  gap: 8px;
  margin-top: 12px;
  display: grid;
}

.document-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  display: grid;
}

.document-card .danger-button {
  min-height: 34px;
}

.conversation-controls {
  gap: 8px;
  margin-top: 10px;
  display: grid;
}

.search-field {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  border-radius: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  display: grid;
}

.search-field input {
  border: 0;
  outline: 0;
  width: 100%;
  min-height: 34px;
}

.filter-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  display: grid;
}

.filter-row select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
}

.mini-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px;
  display: inline-flex;
}

.mini-button.active {
  color: #92400e;
  background: #fffbeb;
  border-color: #f5d48a;
}

.conversation-row {
  border: 1px solid #0000;
  border-radius: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 4px;
  display: grid;
}

.conversation-row:hover, .conversation-row.active {
  background: var(--panel-strong);
  border-color: var(--line);
}

.conversation-row.active {
  box-shadow: inset 3px 0 0 var(--brand);
}

.conversation-main {
  color: var(--text);
  text-align: left;
  background: none;
  border: 0;
  gap: 6px;
  min-width: 0;
  padding: 8px 8px 8px 10px;
  display: grid;
}

.conversation-title {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: grid;
}

.folder-chips {
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.chip {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-height: 22px;
  padding: 2px 7px;
  font-size: 11px;
  display: inline-flex;
}

.chip .folder-dot {
  width: 7px;
  height: 7px;
}

.empty-list {
  color: var(--muted);
  padding: 10px 8px;
  font-size: 12px;
}

.folder-picker {
  gap: 8px;
  display: grid;
}

.folder-option {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  display: grid;
}

.folder-option.active {
  box-shadow: inset 3px 0 0 var(--brand);
  border-color: #9fd8d2;
}

.folder-option input {
  width: 16px;
  height: 16px;
}

.conversation-favorite {
  margin-bottom: 10px;
}

.auth-screen {
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  display: grid;
}

.auth-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 24px;
}

.auth-card h1 {
  margin: 12px 0 6px;
  font-size: 28px;
}

.empty-state {
  color: var(--muted);
  text-align: center;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 300px;
  display: grid;
}

.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  display: grid;
}

.notice.success {
  color: #05603a;
  background: #ecfdf3;
  border-color: #b7ebc6;
}

.notice.error {
  color: var(--danger);
  background: #fff4f2;
  border-color: #fecdca;
}

.notice .icon-button {
  color: inherit;
  width: 26px;
  height: 26px;
}

.modal-backdrop {
  z-index: 50;
  background: #1218267a;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.modal-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: min(560px, 100%);
  max-width: 560px;
  max-height: min(760px, 100vh - 40px);
  overflow: hidden;
  box-shadow: 0 24px 80px #12182638;
}

.modal-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 12px 16px;
  display: flex;
}

.modal-body {
  max-height: calc(100vh - 112px);
  padding: 16px;
  overflow: auto;
}

.modal-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  display: flex;
}

.modal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.check-row {
  color: #363b44;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  display: flex;
}

.check-row input {
  width: 16px;
  height: 16px;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .tools-panel {
    display: none;
  }

  .tools-panel.open {
    box-shadow: var(--shadow);
    z-index: 20;
    width: min(420px, 100vw);
    max-height: 70vh;
    display: flex;
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
  }
}

.home-page {
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  overflow-y: auto;
}

.home-header h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.home-header p {
  color: var(--muted);
  margin: 0;
}

.search-section {
  margin: 16px 0;
}

.home-search {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  display: flex;
}

.home-search input {
  border: 0;
  outline: 0;
  flex: 1;
  font-size: 15px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  display: grid;
}

.stat-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  align-items: center;
  gap: 16px;
  padding: 20px;
  display: flex;
}

.stat-info {
  display: grid;
}

.stat-info strong {
  font-size: 24px;
}

.stat-info span {
  color: var(--muted);
  font-size: 13px;
}

.home-section {
  gap: 16px;
  display: grid;
}

.home-section h2 {
  margin: 0;
  font-size: 18px;
}

.project-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  display: grid;
}

.project-card {
  border: 1px solid var(--line);
  text-align: left;
  background: #fff;
  border-radius: 12px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  display: flex;
}

.project-card:hover {
  background: var(--panel-strong);
  border-color: var(--brand);
}

.project-info {
  gap: 4px;
  display: grid;
}

.project-info strong {
  font-size: 14px;
}

.project-info span {
  color: var(--muted);
  font-size: 12px;
}

.conversation-list {
  gap: 8px;
  display: grid;
}

.conversation-item {
  border: 1px solid var(--line);
  text-align: left;
  background: #fff;
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  display: flex;
}

.conversation-item:hover {
  background: var(--panel-strong);
}

.conversation-info {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.conversation-info strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  overflow: hidden;
}

.conversation-info span {
  color: var(--muted);
  font-size: 12px;
}

.empty-state-text {
  color: var(--muted);
  padding: 16px 0;
  font-size: 14px;
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-width: 0 0 1px;
    max-height: 42vh;
    overflow: auto;
  }

  .chat {
    min-height: 58vh;
  }

  .composer-row, .modal-grid {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/