/* Auth & Login */
.auth-screen {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lift);
}
.auth-head {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.auth-subtitle {
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth-label {
  font-size: 12px;
  color: var(--fg-3);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.auth-users {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.auth-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: all 200ms ease-out;
  font-family: inherit;
  text-align: left;
}
.auth-user:hover {
  border-color: var(--fg-2);
  background: var(--surface-3);
}
.auth-user.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.auth-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fg-2);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}
.auth-user.is-selected .auth-avatar {
  background: var(--accent);
}
.auth-user-info {
  flex: 1;
  min-width: 0;
}
.auth-user-name {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}
.auth-user-role {
  font-size: 11px;
  color: var(--fg-3);
  margin-bottom: 2px;
}
.auth-user-ventures {
  font-size: 10px;
  color: var(--fg-3);
  font-family: var(--mono);
}
.auth-user-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}
.auth-note {
  font-size: 11px;
  color: var(--fg-3);
  text-align: center;
  margin-top: 16px;
}

/* Dashboard */
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.dashboard-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.venture-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.vc-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.vc-name {
  font-weight: 600;
  font-size: 14px;
}
.vc-phase {
  font-size: 11px;
  font-weight: 600;
}
.vc-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
}
.progress-label {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--fg-3);
  min-width: 30px;
  text-align: right;
}
.vc-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--fg-3);
}

/* TopBar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  height: var(--top-h);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.topbar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cmd-btn {
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--fg-3);
  cursor: pointer;
}
.cmd-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.user-menu {
  position: relative;
}
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
}
.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: white;
}
.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 200px;
  z-index: 1000;
  box-shadow: var(--shadow-lift);
}

/* Tasks Kanban */
.tasks-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  min-height: 600px;
}
.kanban-col {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  gap: 12px;
}
.kanban-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.kanban-col-title {
  font-weight: 600;
  font-size: 13px;
}
.kanban-col-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 3px;
}
.kanban-col-tasks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
  min-height: 400px;
}
.kanban-task {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: move;
  transition: all 200ms ease-out;
  user-select: none;
}
.kanban-task:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}
.kanban-task:active {
  opacity: 0.7;
}
.kt-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.kt-title {
  font-weight: 500;
  font-size: 12px;
  color: var(--fg);
  flex: 1;
  word-wrap: break-word;
}
.kt-delete {
  background: none;
  border: none;
  color: var(--fg-3);
  cursor: pointer;
  font-size: 12px;
  opacity: 0;
  transition: opacity 200ms;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kanban-task:hover .kt-delete {
  opacity: 1;
}
.kt-delete:hover {
  color: #FB7185;
}
.kt-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.kt-venture {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-3);
  background: var(--surface-3);
  padding: 2px 6px;
  border-radius: 3px;
}
.kt-priority {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: capitalize;
  font-weight: 500;
}
.kt-priority.priority-high {
  background: rgba(251, 113, 133, 0.15);
  color: #8B1E3F;
}
.kt-priority.priority-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #7A4A00;
}
.kt-priority.priority-low {
  background: rgba(59, 130, 246, 0.15);
  color: #1E3A6B;
}
.kt-due {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-3);
}
.kanban-add {
  padding: 12px;
  background: transparent;
  border: 2px dashed var(--line);
  border-radius: 6px;
  color: var(--fg-3);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  transition: all 200ms ease-out;
}
.kanban-add:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.kanban-create {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.create-input {
  padding: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  color: var(--fg);
}
.create-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.create-select {
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
  color: var(--fg);
}
.create-actions {
  display: flex;
  gap: 8px;
}
.create-actions button {
  flex: 1;
}
